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