Question: Which one has greater percent of water area,New Jersey or Alabama?
Choices:
Massachusetts
Iowa
Illinois
California
New Mexico
Kansas
Colorado
Alabama
Hawaii
New Jersey
Answer: New Jersey
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "New Jersey" . } UNION { ?e <pred:name> "Alabama" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "4040587"^^xsd:double . } ?e <water_as_percent_of_area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: New Jersey
function: Find
inputs: Alabama
function: FilterNum
dependencies: 1
inputs: population
4040587
=
function: SelectBetween
dependencies: 0
2
inputs: water as percent of area
greater