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