Question: What is the WOEID of the capital of West Sussex?
Choices:
943828
2388174
34260
845805
15871
2349680
560472
1580913
2383078
2444458
Answer: 15871
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city" . ?e_1 <capital> ?e . ?e_1 <pred:name> "West Sussex" .  ?e <WOEID> ?pv .  }
Program:
function: Find
inputs: West Sussex
function: Relate
dependencies: 0
inputs: capital
forward
function: FilterConcept
dependencies: 1
inputs: city
function: QueryAttr
dependencies: 2
inputs: WOEID