Question: Which one, Polk County (the one that is located in North Carolina) or Madison County (the one that is located in North Carolina) has greater area?
Choices:
Madison County
Davidson County
Gaston County
Cumberland County
Franklin County
Mecklenburg County
Brunswick County
Polk County
Wake County
Buncombe County
Program:
function: Find
inputs: North Carolina
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
backward
function: Find
inputs: Polk County
function: And
dependencies: 1
2
function: Find
inputs: North Carolina
function: Relate
dependencies: 4
inputs: located in the administrative territorial entity
backward
function: Find
inputs: Madison County
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Polk County" . ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "North Carolina" .   } UNION { ?e <pred:name> "Madison County" . ?e <located_in_the_administrative_territorial_entity> ?e_2 . ?e_2 <pred:name> "North Carolina" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Madison County