Removed redeclaration of Query