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