Question: Which area is larger, Marietta or Haverhill?
Choices:
Haverhill
Oakland
Franklin
Boulder
Greenville
Marietta
New Haven
Compton
Columbus
Lansing
Program:
function: Find
inputs: Marietta
function: Find
inputs: Haverhill
function: SelectBetween
dependencies: 0
1
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Marietta" .  } UNION { ?e <pred:name> "Haverhill" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Haverhill