Question: Which area is smaller, Harrisburg or Scranton?
Choices:
Philadelphia
York
Bethlehem
Harrisburg
Wilkes-Barre
Scranton
Pittsburgh
Greensburg
Johnstown
Chester
Program:
function: Find
inputs: Harrisburg
function: Find
inputs: Scranton
function: SelectBetween
dependencies: 0
1
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Harrisburg" .  } UNION { ?e <pred:name> "Scranton" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Harrisburg