How to create a sales order query for tickets sold today