Question: Which has more area, Salem founded in 1842 or Oklahoma City?
Choices:
Lansing
Oklahoma City
Oakland
New Haven
Columbus
Franklin
Waukegan
Boulder
Compton
Greenville
Program:
function: Find
inputs: Salem
function: FilterYear
dependencies: 0
inputs: inception
1842
=
function: Find
inputs: Oklahoma City
function: SelectBetween
dependencies: 1
2
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Salem" . ?e <inception> ?pv_1 . ?pv_1 <pred:year> 1842 . } UNION { ?e <pred:name> "Oklahoma City" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Oklahoma City