Question: Does the city where mathematician James Ivory was born have a GSS code (2011) of S12000042?
Choices:
yes
no
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
Answer: yes
SPARQL: ASK { ?e <pred:instance_of> ?c . ?c <pred:name> "city" . ?e_1 <place_of_birth> ?e . ?e_1 <pred:name> "James Ivory" . ?e_1 <occupation> ?e_2 . ?e_2 <pred:name> "mathematician" .  ?e <GSS_code_(2011)> ?pv . ?pv <pred:value> "S12000042" .  }
Program:
function: Find
inputs: mathematician
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: James Ivory
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: place of birth
forward
function: FilterConcept
dependencies: 4
inputs: city
function: QueryAttr
dependencies: 5
inputs: GSS code (2011)
function: VerifyStr
dependencies: 6
inputs: S12000042