Question: Tell me which city has the WOEID of 2349680 and whose country is New Zealand
Choices:
Abidjan
Kingston
Invercargill
Kilkenny
Auckland
Cork
Palmerston North
Dunedin
Trieste
New Plymouth
Answer: New Plymouth
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city" . ?e <WOEID> ?pv . ?pv <pred:value> "2349680" . ?e <country> ?e_1 . ?e_1 <pred:name> "New Zealand" .  }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: WOEID
2349680
function: FilterConcept
dependencies: 1
inputs: city
function: Find
inputs: New Zealand
function: Relate
dependencies: 3
inputs: country
backward
function: FilterConcept
dependencies: 4
inputs: city
function: And
dependencies: 2
5
function: What
dependencies: 6