shorter query macro