Question: Which has a larger percentage of water, Oregon (the one whose population is 2091385) or Texas (the one that shares border with Oklahoma)?
Choices: Iowa
Colorado
Massachusetts
New Jersey
Hawaii
Florida
Illinois
California
Oregon
Texas
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Oregon" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "2091385"^^xsd:double . } UNION { ?e <pred:name> "Texas" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Oklahoma" . } ?e <water_as_percent_of_area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Oregon
function: FilterNum
dependencies: 0
inputs: population
2091385
=
function: Find
inputs: Oklahoma
function: Relate
dependencies: 2
inputs: shares border with
backward
function: Find
inputs: Texas
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: water as percent of area
greater
Answer: Texas