What is the {kingdom} for {country} of {Kingdom of Wessex}
Which is the kingdom of the nation of Kingdom of Wessex?
Which is the kingdom of the country of Kingdom of Wessex?
SELECT DISTINCT ?i WHERE { ?i property:country resource:Wessex . ?i rdf:type ontology:kingdom }
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/P17> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q105313> . ?subj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q417175> } 
 select distinct ?sbj where { ?sbj wdt:P17 wd:Q105313 . ?sbj wdt:P31 wd:Q417175 } 
Wessex