SELECT AVG(value), _id, Node_ID, Modality, value, Timestamp
FROM yourTable
GROUP BY DATE(Timestamp), HOUR(Timestamp);
SELECT AVG(value), _id, Node_ID, Modality, value, Timestamp
FROM yourTable
GROUP BY DATE(Timestamp), HOUR(Timestamp);