GenericTableQuery implementation