Question: Which one has the lowest percentage of water area,  North Dakota or Virginia (the one that contains Appalachian Mountains) ?
Choices:
Illinois
Massachusetts
North Dakota
Colorado
Florida
Hawaii
California
Iowa
New Mexico
New Jersey
Program:
function: Find
inputs: North Dakota
function: Find
inputs: Appalachian Mountains
function: Relate
dependencies: 1
inputs: located in the administrative territorial entity
forward
function: Find
inputs: Virginia
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: water as percent of area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "North Dakota" .  } UNION { ?e <pred:name> "Virginia" . ?e_1 <located_in_the_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Appalachian Mountains" .   } ?e <water_as_percent_of_area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: North Dakota