Question: Do more people live in the San Francisco Bay Area or the Baltimore metro area?
Choices:
Greater St. Louis
Washington metropolitan area
New Orleans metropolitan area
New York metropolitan area
Greater Houston
Pittsburgh metropolitan area
Baltimore metropolitan area
Seattle metropolitan area
Greater Los Angeles Area
San Francisco Bay Area
Program:
function: Find
inputs: San Francisco Bay Area
function: Find
inputs: Baltimore metropolitan area
function: SelectBetween
dependencies: 0
1
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "San Francisco Bay Area" .  } UNION { ?e <pred:name> "Baltimore metropolitan area" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: San Francisco Bay Area