Question: What is the WOEID of the town that is the birthplace of Adam Smith (the one that was born in Huddersfield)?
Choices:
1915031
24083
1353281
890869
30599
2483553
1586614
2418681
2214662
2395799
Answer: 24083
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "town" . ?e_1 <place_of_birth> ?e . ?e_1 <pred:name> "Adam Smith" . ?e_1 <place_of_birth> ?e_2 . ?e_2 <pred:name> "Huddersfield" .  ?e <WOEID> ?pv .  }
Program:
function: Find
inputs: Huddersfield
function: Relate
dependencies: 0
inputs: place of birth
backward
function: Find
inputs: Adam Smith
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: place of birth
forward
function: FilterConcept
dependencies: 4
inputs: town
function: QueryAttr
dependencies: 5
inputs: WOEID