Question: Does Manchester (an administrative division of Greater Manchester) or Birmingham (established on 1974-04-01) have the larger population?
Choices: Birmingham
Sheffield
Wakefield
Walsall
Solihull
Manchester
Bury
Stockport
Leeds
Rochdale
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Manchester" . ?e_1 <contains_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Greater Manchester" . } UNION { ?e <pred:name> "Birmingham" . ?e <inception> ?pv_1 . ?pv_1 <pred:date> "1974-04-01"^^xsd:date . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Greater Manchester
function: Relate
dependencies: 0
inputs: contains administrative territorial entity
forward
function: Find
inputs: Manchester
function: And
dependencies: 1
2
function: Find
inputs: Birmingham
function: FilterDate
dependencies: 4
inputs: inception
1974-04-01
=
function: SelectBetween
dependencies: 3
5
inputs: population
greater
Answer: Birmingham