reworks queries