Question: Which one's metro area has fewer inhabitants: Baltimore or Chicago?
Choices:
Seattle metropolitan area
Pittsburgh metropolitan area
Greater Houston
New Orleans metropolitan area
Greater Los Angeles Area
Portland metropolitan area
Chicago metropolitan area
Washington metropolitan area
Greater St. Louis
Baltimore metropolitan area
Program:
function: Find
inputs: Baltimore metropolitan area
function: Find
inputs: Chicago metropolitan area
function: SelectBetween
dependencies: 0
1
inputs: population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Baltimore metropolitan area" .  } UNION { ?e <pred:name> "Chicago metropolitan area" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Baltimore metropolitan area