Group queries into a package