Question: Which one of Maine and North Dakota has a higher percentage of water area ?
Choices:
New Mexico
Hawaii
Iowa
Maine
Illinois
North Dakota
California
Florida
New Jersey
Colorado
Program:
function: Find
inputs: Maine
function: Find
inputs: North Dakota
function: SelectBetween
dependencies: 0
1
inputs: water as percent of area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Maine" .  } UNION { ?e <pred:name> "North Dakota" .  } ?e <water_as_percent_of_area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Maine