What is {mayor} of {location where filmed} of {Fred Ott's Sneeze} ?
Who is the leader of the Fred Ott's Sneeze?
Who is the mayor of the Fred Ott's Sneeze?
SELECT ?p WHERE { ?u property:head_of_government ?p . resource:Fred_Ott's_Sneeze property:filming_location ?u }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1128535> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P915>. ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?X . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?X. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P6> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . }
SELECT ?answer WHERE { wd:Q1128535 wdt:P915 ?X . ?X wdt:P6 ?answer}
Phil Murphy