What is {subject in} of {history of Missouri}, that has {has shires} is {Cape Girardeau County} ?
What {subject in} the {history of Missouri} has its origins, or {has shires}, in {Cape Girardeau County}?
What {subject in} the {history of Missouri} has its origins, or {has shires}, in {Cape Girardeau County}?
SELECT ?w WHERE { ?w property:contains_administrative_territorial_entity resource:Cape_Girardeau_County . resource:history_of_Missouri property:facet_of ?w }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q5865528> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1269>. ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?answer. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P150> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q484740> . }
SELECT ?answer WHERE { wd:Q5865528 wdt:P1269 ?answer . ?answer wdt:P150 wd:Q484740}