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