Question: Does Riyadh or Paris (the one whose postal code is 75002) has greater area ?
Choices:
Doha
Mexico City
Tallinn
Moscow
Sarajevo
Lausanne
New Delhi
Paris
Riyadh
Riga
Program:
function: Find
inputs: Riyadh
function: Find
inputs: Paris
function: FilterStr
dependencies: 1
inputs: postal code
75002
function: SelectBetween
dependencies: 0
2
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Riyadh" . } UNION { ?e <pred:name> "Paris" . ?e <postal_code> ?pv_1 . ?pv_1 <pred:value> "75002" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Riyadh