Solved the issues Caio pointed out, we are now printing Query objects in a more readable form