set up intial query from example