Question: Which location—out of Waltham or Rockford—has a smaller total area?
Choices:
Boulder
Rockford
Waukegan
Franklin
New Haven
Compton
Lansing
Waltham
Columbus
Oakland
Program:
function: Find
inputs: Rockford
function: Find
inputs: Waltham
function: SelectBetween
dependencies: 0
1
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Rockford" .  } UNION { ?e <pred:name> "Waltham" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Waltham