use self.query so that we are querying with a time