date query added