I have the following RDF data (Person, worksAt, Branch) (Branch, location, Town) (Town, country, Country)
and the property path
worksAt, location, country
Can I formulate a SPARQL query where given a property e.g. country it will return me the most-left class (i.e. Person) of the graph?