Question: Which city is famous as the site where the Taj Mahal was constructed?
Choices:
San Francisco
Santiago de Cuba
Agra
Cork
Trieste
Kilkenny
Baghdad
Peterborough
Abidjan
Kingston
Answer: Agra
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city" . ?e_1 <located_in_the_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Taj Mahal" . ?e_1 <significant_event> ?e_2 . ?e_2 <pred:name> "construction" .   }
Program:
function: Find
inputs: construction
function: Relate
dependencies: 0
inputs: significant event
backward
function: Find
inputs: Taj Mahal
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: located in the administrative territorial entity
forward
function: FilterConcept
dependencies: 4
inputs: city
function: What
dependencies: 5