Question: Does Liverpool, designated by TOID number 7000000000005974, or Manchester, home of Manchester City F.C., have the larger populace?
Choices:
Liverpool
Rochdale
Sheffield
Birmingham
Wakefield
Walsall
Manchester
Bury
Solihull
Newcastle upon Tyne
Program:
function: Find
inputs: Liverpool
function: FilterStr
dependencies: 0
inputs: TOID
7000000000005974
function: Find
inputs: Manchester City F.C.
function: Relate
dependencies: 2
inputs: located in the administrative territorial entity
forward
function: Find
inputs: Manchester
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Liverpool" . ?e <TOID> ?pv_1 . ?pv_1 <pred:value> "7000000000005974" . } UNION { ?e <pred:name> "Manchester" . ?e_1 <located_in_the_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Manchester City F.C." . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Manchester