Question: What is the local dialing code for a city in the US where John Logan (born 1st January 1747) died ?
Choices:
416
0295
502
831
901
08730
0732
930
232
039
Program:
function: Find
inputs: John Logan
function: FilterDate
dependencies: 0
inputs: date of birth
1747-01-01
=
function: Relate
dependencies: 1
inputs: place of death
forward
function: FilterConcept
dependencies: 2
inputs: city of the United States
function: QueryAttr
dependencies: 3
inputs: local dialing code
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city of the United States" . ?e_1 <place_of_death> ?e . ?e_1 <pred:name> "John Logan" . ?e_1 <date_of_birth> ?pv_1 . ?pv_1 <pred:date> "1747-01-01"^^xsd:date . ?e <local_dialing_code> ?pv .  }
Answer: 502