Question: Is the smaller population in Manchester (TOID 7000000000018821) or in Birmingham, with 1111300 inhabitants?
Choices:
Solihull
Birmingham
Wakefield
Rochdale
Sheffield
Manchester
Walsall
Stockport
Newcastle upon Tyne
Leeds
Answer: Manchester
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Manchester" . ?e <TOID> ?pv_1 . ?pv_1 <pred:value> "7000000000018821" . } UNION { ?e <pred:name> "Birmingham" . ?e <population> ?pv_2 . ?pv_2 <pred:unit> "1" . ?pv_2 <pred:value> "1111300"^^xsd:double . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Manchester
function: FilterStr
dependencies: 0
inputs: TOID
7000000000018821
function: Find
inputs: Birmingham
function: FilterNum
dependencies: 2
inputs: population
1111300
=
function: SelectBetween
dependencies: 1
3
inputs: population
less