QueryDefinition Class