query generator basics are working