Rename query in queries