Question: Which area is larger, San Diego or Odessa (the one whose population is 99940)?
Choices:
Franklin
Boulder
Lansing
New Haven
San Diego
Odessa
Compton
Oakland
Waukegan
Greenville
Answer: San Diego
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "San Diego" . } UNION { ?e <pred:name> "Odessa" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "99940"^^xsd:double . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: San Diego
function: Find
inputs: Odessa
function: FilterNum
dependencies: 1
inputs: population
99940
=
function: SelectBetween
dependencies: 0
2
inputs: area
greater