Question: Among the United States states that share a border with Colorado (which contains Boulder County), which has the smallest percent of water area?
Choices:
Arizona
Massachusetts
Colorado
Kansas
Utah
Illinois
New Mexico
Nebraska
Oklahoma
Florida
Program:
function: Find
inputs: Boulder County
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
forward
function: Find
inputs: Colorado
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: shares border with
forward
function: FilterConcept
dependencies: 4
inputs: state of the United States
function: SelectAmong
dependencies: 5
inputs: water as percent of area
smallest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "state of the United States" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Colorado" . ?e_2 <located_in_the_administrative_territorial_entity> ?e_1 . ?e_2 <pred:name> "Boulder County" .  ?e <water_as_percent_of_area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: New Mexico