Made TQuery contravariant