Question: Is the population count higher for Palo Alto, where the Grateful Dead formed, or Mesa (in the Mountain Time Zone)?
Choices:
Palo Alto
New Haven
Franklin
Oakland
Columbus
Waukegan
Greenville
Mesa
Boulder
Lansing
Answer: Mesa
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Palo Alto" . ?e_1 <location_of_formation> ?e . ?e_1 <pred:name> "Grateful Dead" .   } UNION { ?e <pred:name> "Mesa" . ?e <located_in_time_zone> ?e_2 . ?e_2 <pred:name> "Mountain Time Zone" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Grateful Dead
function: Relate
dependencies: 0
inputs: location of formation
forward
function: Find
inputs: Palo Alto
function: And
dependencies: 1
2
function: Find
inputs: Mountain Time Zone
function: Relate
dependencies: 4
inputs: located in time zone
backward
function: Find
inputs: Mesa
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: population
greater