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