Test print all queries