What is {chef-lieu} of {subitem of} of {history of West Virginia} ?
Who is the chef - lieu of West Virginia's sub - item of history?
Who is chef-lieu of the sub item of history of West Virginia?
SELECT ?f WHERE { ?e property:capital ?f . resource:history_of_West_Virginia property:facet_of ?e }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q11288505> . ?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/P36> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . }
SELECT ?answer WHERE { wd:Q11288505 wdt:P1269 ?X . ?X wdt:P36 ?answer}