Question: Is the larger area occupied by Washington County, population 16804, or Madison County, with Huntsville as its capital?
Choices:
Jackson County
Shelby County
Monroe County
Jefferson County
Montgomery County
Madison County
Baldwin County
Dallas County
Washington County
Mobile County
Program:
function: Find
inputs: Washington County
function: FilterNum
dependencies: 0
inputs: population
16804
=
function: Find
inputs: Huntsville
function: Relate
dependencies: 2
inputs: capital
backward
function: Find
inputs: Madison County
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Washington County" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "16804"^^xsd:double . } UNION { ?e <pred:name> "Madison County" . ?e <capital> ?e_1 . ?e_1 <pred:name> "Huntsville" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Washington County