SELECT DISTINCT ?uri WHERE { ?x <http://dbpedia.org/property/almaMater> <http://dbpedia.org/resource/Ghana_School_of_Law> . ?x <http://dbpedia.org/ontology/nationality> ?uri . ?x <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/Person>}
Which country's people have graduated from Ghana School of Law?
SELECT DISTINCT ?i WHERE { ?o property:alma_mater resource:Ghana_School_of_Law . ?o property:nationality ?i . ?o rdf:type ontology:Person }
Ghana
[Ghana] is the nationality of the people whose alma mater is Ghana School of Law.
[Ghana] is the nationality of people whose alma mater is the Ghana Law School.