Question: Does Casper, population 2639, or Sunnyvale take up a larger area?
Choices:
Oakland
Greenville
Compton
Sunnyvale
Casper
Boulder
New Haven
Columbus
Lansing
Waukegan
Program:
function: Find
inputs: Casper
function: FilterNum
dependencies: 0
inputs: population
2639
=
function: Find
inputs: Sunnyvale
function: SelectBetween
dependencies: 1
2
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Casper" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "2639"^^xsd:double . } UNION { ?e <pred:name> "Sunnyvale" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Casper