Question: Which WOEID designates Kabul,  capital of Afghanistan?
Choices: 2489025
2456611
18152
36177
2456750
24996
2383078
2475403
1326075
1922738
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:name> "Kabul" . ?e_1 <capital> ?e . ?e_1 <pred:name> "Afghanistan" .  ?e <WOEID> ?pv .  }
Program:
function: Find
inputs: Afghanistan
function: Relate
dependencies: 0
inputs: capital
forward
function: Find
inputs: Kabul
function: And
dependencies: 1
2
function: QueryAttr
dependencies: 3
inputs: WOEID
Answer: 1922738