Question: Which has the larger area, Easton or Altoona?
Choices:
Wilkes-Barre
Easton
Bethlehem
Pittsburgh
Harrisburg
Greensburg
Philadelphia
Altoona
York
Johnstown
Program:
function: Find
inputs: Easton
function: Find
inputs: Altoona
function: SelectBetween
dependencies: 0
1
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Easton" .  } UNION { ?e <pred:name> "Altoona" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Altoona