Question: Which has less population, Livingston that is located in the Eastern Time Zone or Montclair?
Choices:
West Orange
North Hollywood
Wexford
Livingston
Red Bank
Ridgewood
Princeton
Montclair
Verona
Whanganui
Program:
function: Find
inputs: Eastern Time Zone
function: Relate
dependencies: 0
inputs: located in time zone
backward
function: Find
inputs: Livingston
function: And
dependencies: 1
2
function: Find
inputs: Montclair
function: SelectBetween
dependencies: 3
4
inputs: population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Livingston" . ?e <located_in_time_zone> ?e_1 . ?e_1 <pred:name> "Eastern Time Zone" .   } UNION { ?e <pred:name> "Montclair" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Livingston