Question: Which has more people, Hamilton (the one whose country is United States of America) or Greenwood?
Choices: Hamilton
Waukegan
Greenwood
Compton
Lansing
Franklin
Columbus
New Haven
Oakland
Boulder
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Hamilton" . ?e <country> ?e_1 . ?e_1 <pred:name> "United States of America" .   } UNION { ?e <pred:name> "Greenwood" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: country
backward
function: Find
inputs: Hamilton
function: And
dependencies: 1
2
function: Find
inputs: Greenwood
function: SelectBetween
dependencies: 3
4
inputs: population
greater
Answer: Hamilton