SELECT DISTINCT ?uri WHERE { ?x <http://dbpedia.org/property/almaMater> <http://dbpedia.org/resource/Hellenic_Naval_Academy> . ?x <http://dbpedia.org/ontology/stateOfOrigin> ?uri . ?x <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/President>}
What is the state of origin of the president whose alma mater is Hellenic Naval Academy ?
SELECT DISTINCT ?e WHERE { ?i property:state_of_origin ?e . ?i property:alma_mater resource:Hellenic_Naval_Academy . ?i rdf:type ontology:President }
Greece
The state of origin of the president whose alma mater is Hellenic Naval Academy is [Greece].
The country of the president, whose alma mater is the Naval Academy, is [Greece].
[Greece] is the state of origin of the president whose alma mater is the organisation .
[Greece] is the country of a president whose alma mater is the organization.