What is {has towns} of {subitem of} of {history of Texas} ?
Let me know the history of Texas which towns are separated of this nation.
Tell me the history of Texas which towns are apart of this country.
SELECT ?e WHERE { resource:history_of_Texas property:facet_of ?p . ?p property:contains_administrative_territorial_entity ?e }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1149383> . ?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> ?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/P150> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . }
SELECT ?answer WHERE { wd:Q1149383 wdt:P1269 ?X . ?X wdt:P150 ?answer}