Improved Query.names_to_path docstring