Question: Which has a larger percentage water coverage, South Carolina or Illinois, where Cook County is located?
Choices: Iowa
Massachusetts
Hawaii
South Carolina
Illinois
New Mexico
Florida
New Jersey
Kansas
California
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "South Carolina" .  } UNION { ?e <pred:name> "Illinois" . ?e_1 <located_in_the_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Cook County" .   } ?e <water_as_percent_of_area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: South Carolina
function: Find
inputs: Cook County
function: Relate
dependencies: 1
inputs: located in the administrative territorial entity
forward
function: Find
inputs: Illinois
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: water as percent of area
greater
Answer: South Carolina