Question: Does Leeds (whose population is 774100) or Manchester (that contains Manchester Metropolitan University) have the smaller population?
Choices:
Leeds
Newcastle upon Tyne
Sheffield
Solihull
Walsall
Birmingham
Manchester
Bury
Wakefield
Rochdale
Program:
function: Find
inputs: Leeds
function: FilterNum
dependencies: 0
inputs: population
774100
=
function: Find
inputs: Manchester Metropolitan University
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
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Leeds" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "774100"^^xsd:double . } UNION { ?e <pred:name> "Manchester" . ?e_1 <located_in_the_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Manchester Metropolitan University" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Manchester