What is the {princely state of the British Raj} for {capital} of {Thiruvananthapuram}
[]
Which is the princely state of the British Raj for the capital of Thiruvananthapuram?
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:princely_state . ?c property:capital resource:Thiruvananthapuram }
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/P36> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q167715> . ?subj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q1336152> } 
 select distinct ?sbj where { ?sbj wdt:P36 wd:Q167715 . ?sbj wdt:P31 wd:Q1336152 } 
Travancore