Question: Which has a larger percent of water area, Prince George's County or Montgomery County (the one that contains Takoma Park)?
Choices:
Harford County
Montgomery County
Cecil County
Baltimore County
Howard County
Kent County
Charles County
Prince George's County
Allegany County
Frederick County
Program:
function: Find
inputs: Prince George's County
function: Find
inputs: Takoma Park
function: Relate
dependencies: 1
inputs: located in the administrative territorial entity
forward
function: Find
inputs: Montgomery County
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: water as percent of area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Prince George's County" .  } UNION { ?e <pred:name> "Montgomery County" . ?e_1 <located_in_the_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Takoma Park" .   } ?e <water_as_percent_of_area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Montgomery County