Question: Where is there a greater population, in Liverpool in Merseyside or in Leeds (the one that is the twinned administrative body of Hangzhou)?
Choices:
Wakefield
Sheffield
Leeds
Newcastle upon Tyne
Liverpool
Bury
Birmingham
Solihull
Walsall
Stockport
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: Hangzhou
function: Relate
dependencies: 4
inputs: twinned administrative body
forward
function: Find
inputs: Leeds
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: population
greater
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> "Leeds" . ?e_2 <twinned_administrative_body> ?e . ?e_2 <pred:name> "Hangzhou" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Leeds