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