added Query pretty printer