What is the {national association football team} for {head coach} of {Alex Ferguson}
Which Alex Ferguson football team is running?
Which football team is managed by Alex Ferguson?
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:national_association_football_team . ?p property:head_coach resource:Alex_Ferguson }
select distinct ?subj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?subj . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P286> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q44980> . ?subj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q6979593> } 
 select distinct ?sbj where { ?sbj wdt:P286 wd:Q44980 . ?sbj wdt:P31 wd:Q6979593 } 
Scotland national football team