Question: Does Basra or Barcelona (the one whose population is 544137) have the greater area?
Choices:
Barcelona
İzmir
Alexandria
Nazi Germany
Odessa
Busan
Tianjin
Basra
Gibraltar
Fremantle
Program:
function: Find
inputs: Basra
function: Find
inputs: Barcelona
function: FilterNum
dependencies: 1
inputs: population
544137
=
function: SelectBetween
dependencies: 0
2
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Basra" . } UNION { ?e <pred:name> "Barcelona" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "544137"^^xsd:double . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Basra