Question: Does Rochdale (ISO 3166-2 code GB-RCH) or Bradford (population 531200) occupy a smaller area?
Choices:
Stockport
Newcastle upon Tyne
Bury
Walsall
Leeds
Solihull
Birmingham
Rochdale
Wakefield
Sheffield
Program:
function: Find
inputs: Rochdale
function: FilterStr
dependencies: 0
inputs: ISO 3166-2 code
GB-RCH
function: Find
inputs: Bradford
function: FilterNum
dependencies: 2
inputs: population
531200
=
function: SelectBetween
dependencies: 1
3
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Rochdale" . ?e <ISO_3166-2_code> ?pv_1 . ?pv_1 <pred:value> "GB-RCH" . } UNION { ?e <pred:name> "Bradford" . ?e <population> ?pv_2 . ?pv_2 <pred:unit> "1" . ?pv_2 <pred:value> "531200"^^xsd:double . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Rochdale