Question: Does Liverpool in Merseyside or Bury in Greater Manchester have fewer inhabitants?
Choices:
Rochdale
Bury
Liverpool
Solihull
Stockport
Walsall
Birmingham
Newcastle upon Tyne
Sheffield
Wakefield
Program:
function: Find
inputs: Merseyside
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
backward
function: Find
inputs: Liverpool
function: And
dependencies: 1
2
function: Find
inputs: Greater Manchester
function: Relate
dependencies: 4
inputs: located in the administrative territorial entity
backward
function: Find
inputs: Bury
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Liverpool" . ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Merseyside" .   } UNION { ?e <pred:name> "Bury" . ?e <located_in_the_administrative_territorial_entity> ?e_2 . ?e_2 <pred:name> "Greater Manchester" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Bury