Question: Which one, Istanbul (the one that is the twinned administrative body of Tabriz) or Rome (the one whose population is 2188160), has greater area?
Choices:
Riga
Tallinn
Doha
New Delhi
Istanbul
Moscow
Sarajevo
Lausanne
Mexico City
Manila
Program:
function: Find
inputs: Tabriz
function: Relate
dependencies: 0
inputs: twinned administrative body
forward
function: Find
inputs: Istanbul
function: And
dependencies: 1
2
function: Find
inputs: Rome
function: FilterNum
dependencies: 4
inputs: population
2188160
=
function: SelectBetween
dependencies: 3
5
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Istanbul" . ?e_1 <twinned_administrative_body> ?e . ?e_1 <pred:name> "Tabriz" . } UNION { ?e <pred:name> "Rome" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "2188160"^^xsd:double . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Istanbul