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