Question: Which is the princely state of the British Raj for the capital of Thiruvananthapuram?
SPARQL (Wikidata):  select distinct ?sbj where { ?sbj wdt:P36 wd:Q167715 . ?sbj wdt:P31 wd:Q1336152 } 
Answer: Travancore