integrate today query