Question: Which area has more people, Rock Island or Lexington (the one that contains University of Kentucky)?
Choices:
Lansing
New Haven
Franklin
Compton
Boulder
Columbus
Greenville
Rock Island
Waukegan
Lexington
Answer: Lexington
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Rock Island" .  } UNION { ?e <pred:name> "Lexington" . ?e_1 <located_in_the_administrative_territorial_entity> ?e . ?e_1 <pred:name> "University of Kentucky" .   } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Rock Island
function: Find
inputs: University of Kentucky
function: Relate
dependencies: 1
inputs: located in the administrative territorial entity
forward
function: Find
inputs: Lexington
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: population
greater