Question: What is the CANTIC-ID of the person who works in Adelaide (the one whose local dialing code is 08747)?
Choices:
a10485788
a10458438
a10905698
a10418192
a1063938x
a11856270
a11445531
a10433557
a11729119
a11590919
Answer: a10485788
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "human" . ?e <work_location> ?e_1 . ?e_1 <pred:name> "Adelaide" . ?e_1 <local_dialing_code> ?pv_1 . ?pv_1 <pred:value> "08747" . ?e <CANTIC-ID> ?pv .  }
Program:
function: Find
inputs: Adelaide
function: FilterStr
dependencies: 0
inputs: local dialing code
08747
function: Relate
dependencies: 1
inputs: work location
backward
function: FilterConcept
dependencies: 2
inputs: human
function: QueryAttr
dependencies: 3
inputs: CANTIC-ID