Question: Which area has fewer people, Liverpool (the one whose ISO 3166-2 code is GB-LIV) or Stockport (the one whose population is 288700)?
Choices:
Rochdale
Solihull
Stockport
Leeds
Sheffield
Bury
Walsall
Birmingham
Liverpool
Wakefield
Answer: Stockport
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Liverpool" . ?e <ISO_3166-2_code> ?pv_1 . ?pv_1 <pred:value> "GB-LIV" . } UNION { ?e <pred:name> "Stockport" . ?e <population> ?pv_2 . ?pv_2 <pred:unit> "1" . ?pv_2 <pred:value> "288700"^^xsd:double . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Liverpool
function: FilterStr
dependencies: 0
inputs: ISO 3166-2 code
GB-LIV
function: Find
inputs: Stockport
function: FilterNum
dependencies: 2
inputs: population
288700
=
function: SelectBetween
dependencies: 1
3
inputs: population
less