Question: Which one has the lower number of people living there, Stockport (the one whose ISO 3166-2 code is GB-SKP) or Birmingham (the one whose population is 1,111,300)?
Choices: Bradford
Bury
Rochdale
Stockport
Leeds
Wakefield
Newcastle upon Tyne
Birmingham
Walsall
Solihull
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Stockport" . ?e <ISO_3166-2_code> ?pv_1 . ?pv_1 <pred:value> "GB-SKP" . } 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: Stockport
function: FilterStr
dependencies: 0
inputs: ISO 3166-2 code
GB-SKP
function: Find
inputs: Birmingham
function: FilterNum
dependencies: 2
inputs: population
1111300
=
function: SelectBetween
dependencies: 1
3
inputs: population
less
Answer: Stockport