temporal query system