New query file to understand payments