path querying prepared for query types without surrogates