Question: Does North Carolina or South Carolina have a larger area?
Choices:
North Carolina
Illinois
Hawaii
Iowa
New Mexico
Florida
New Jersey
Massachusetts
South Carolina
California
Program:
function: Find
inputs: South Carolina
function: Find
inputs: North Carolina
function: SelectBetween
dependencies: 0
1
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "South Carolina" .  } UNION { ?e <pred:name> "North Carolina" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: North Carolina