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