Question: Is the population size larger in Burbank or in Hollywood, elevation 3 meters?
Choices:
Greenville
New Haven
Columbus
Franklin
Oakland
Compton
Burbank
Hollywood
Lansing
Waukegan
Answer: Hollywood
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Burbank" . } UNION { ?e <pred:name> "Hollywood" . ?e <elevation_above_sea_level> ?pv_1 . ?pv_1 <pred:unit> "metre" . ?pv_1 <pred:value> "3"^^xsd:double . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Burbank
function: Find
inputs: Hollywood
function: FilterNum
dependencies: 1
inputs: elevation above sea level
3 metre
=
function: SelectBetween
dependencies: 0
2
inputs: population
greater