Question: Which has a greater population, Bridgeport or New Rochelle?
Choices:
Greenville
Bridgeport
Franklin
Columbus
Compton
Boulder
New Rochelle
New Haven
Oakland
Waukegan
Program:
function: Find
inputs: Bridgeport
function: Find
inputs: New Rochelle
function: SelectBetween
dependencies: 0
1
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Bridgeport" .  } UNION { ?e <pred:name> "New Rochelle" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Bridgeport