Question: Which city was the capital of British Raj, ending in 1947?
Choices: Santo Domingo
Abidjan
Bergen
Kolkata
Cairo
Trieste
Cork
Dundee
Kingston
Kilkenny
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city" . ?e <capital_of> ?e_1 . ?e_1 <pred:name> "British Raj" .  [ <pred:fact_h> ?e ; <pred:fact_r> <capital_of> ; <pred:fact_t> ?e_1 ] <end_time> ?qpv . ?qpv <pred:year> 1947 .  }
Program:
function: Find
inputs: British Raj
function: Relate
dependencies: 0
inputs: capital of
backward
function: QFilterYear
dependencies: 1
inputs: end time
1947
=
function: FilterConcept
dependencies: 2
inputs: city
function: What
dependencies: 3
Answer: Kolkata