Question: Does Dalian or Windsor whose postal code is N8P have less area?
Choices:
Kilkenny
Cork
Bergen
Kingston
Dundee
Chihuahua
Abidjan
Trieste
Santo Domingo
Windsor
Program:
function: Find
inputs: Dalian
function: Find
inputs: Windsor
function: FilterStr
dependencies: 1
inputs: postal code
N8P
function: SelectBetween
dependencies: 0
2
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Dalian" . } UNION { ?e <pred:name> "Windsor" . ?e <postal_code> ?pv_1 . ?pv_1 <pred:value> "N8P" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Windsor