Question: What has a larger area of space, Tehran which was established on 1794-03-20, or Riyadh?
Choices:
Riyadh
Moscow
Tehran
Doha
Riga
Mexico City
Sarajevo
Tallinn
Lausanne
New Delhi
Program:
function: Find
inputs: Tehran
function: FilterDate
dependencies: 0
inputs: inception
1794-03-20
=
function: Find
inputs: Riyadh
function: SelectBetween
dependencies: 1
2
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Tehran" . ?e <inception> ?pv_1 . ?pv_1 <pred:date> "1794-03-20"^^xsd:date . } UNION { ?e <pred:name> "Riyadh" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Riyadh