Question: Which area is larger, London (the one whose population is 8164416) or Rawalpindi?
Choices:
London
Rawalpindi
Abidjan
Santo Domingo
Chihuahua
Kingston
Kilkenny
Cork
Trieste
Dundee
Program:
function: Find
inputs: London
function: FilterNum
dependencies: 0
inputs: population
8164416
=
function: Find
inputs: Rawalpindi
function: SelectBetween
dependencies: 1
2
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "London" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "8164416"^^xsd:double . } UNION { ?e <pred:name> "Rawalpindi" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Rawalpindi