Question: Which has a greater percent of water area, Virginia (which contains the administrative division Fauquier County) or New Hampshire?
Choices:
Hawaii
Virginia
Illinois
Florida
New Mexico
New Jersey
California
Iowa
Colorado
New Hampshire
Program:
function: Find
inputs: Fauquier County
function: Relate
dependencies: 0
inputs: contains administrative territorial entity
backward
function: Find
inputs: Virginia
function: And
dependencies: 1
2
function: Find
inputs: New Hampshire
function: SelectBetween
dependencies: 3
4
inputs: water as percent of area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Virginia" . ?e <contains_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Fauquier County" .   } UNION { ?e <pred:name> "New Hampshire" .  } ?e <water_as_percent_of_area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Virginia