queries related to time