convenience function for performing query lookups

can perform a key lookup on any QueryLike structure with any QueryKeyLike key