query sleep duration for last 7 days fixed