Made TQuery contravariant
Made it not abstract