Question: Which area has higher elevation above sea level, New Delhi (the one whose inception time is 1911-01-01) or Lisbon (the one that is the twinned administrative body of Mexico City)?
Choices:
Doha
Tallinn
New Delhi
Manila
Lausanne
Moscow
Paris
Riga
Lisbon
Sarajevo
Answer: New Delhi
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "New Delhi" . ?e <inception> ?pv_1 . ?pv_1 <pred:date> "1911-01-01"^^xsd:date . } UNION { ?e <pred:name> "Lisbon" . ?e_1 <twinned_administrative_body> ?e . ?e_1 <pred:name> "Mexico City" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: New Delhi
function: FilterDate
dependencies: 0
inputs: inception
1911-01-01
=
function: Find
inputs: Mexico City
function: Relate
dependencies: 2
inputs: twinned administrative body
forward
function: Find
inputs: Lisbon
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: elevation above sea level
greater