Question: Which has fewer people, Liverpool (the one that is an administrative division of Merseyside) or Manchester (the one that is an administrative division of Greater Manchester)?
Choices:
Manchester
Liverpool
Birmingham
Bury
Sheffield
Wakefield
Solihull
Leeds
Newcastle upon Tyne
Rochdale
Answer: Liverpool
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Liverpool" . ?e_1 <contains_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Merseyside" .   } UNION { ?e <pred:name> "Manchester" . ?e_2 <contains_administrative_territorial_entity> ?e . ?e_2 <pred:name> "Greater Manchester" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Merseyside
function: Relate
dependencies: 0
inputs: contains administrative territorial entity
forward
function: Find
inputs: Liverpool
function: And
dependencies: 1
2
function: Find
inputs: Greater Manchester
function: Relate
dependencies: 4
inputs: contains administrative territorial entity
forward
function: Find
inputs: Manchester
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: population
less