Question: What is the CANTIC-ID of the person who lives in London (the one that is the headquarter location of University of Western Ontario)?
Choices:
a10461899
a10056622
a11437480
a10082505
a10436352
a10750460
a10610807
a10470323
a10887490
a16318778
Answer: a10610807
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "human" . ?e <residence> ?e_1 . ?e_1 <pred:name> "London" . ?e_2 <headquarters_location> ?e_1 . ?e_2 <pred:name> "University of Western Ontario" .  ?e <CANTIC-ID> ?pv .  }
Program:
function: Find
inputs: University of Western Ontario
function: Relate
dependencies: 0
inputs: headquarters location
forward
function: Find
inputs: London
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: residence
backward
function: FilterConcept
dependencies: 4
inputs: human
function: QueryAttr
dependencies: 5
inputs: CANTIC-ID