Question: Which has a greater area, Oklahoma or Minnesota (which has a population of 4,375,099)?
Choices:
Illinois
Florida
Oklahoma
California
Iowa
Minnesota
Colorado
Massachusetts
New Jersey
Hawaii
Program:
function: Find
inputs: Oklahoma
function: Find
inputs: Minnesota
function: FilterNum
dependencies: 1
inputs: population
4375099
=
function: SelectBetween
dependencies: 0
2
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Oklahoma" . } UNION { ?e <pred:name> "Minnesota" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "4375099"^^xsd:double . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Minnesota