Question: Which has fewer people, St Helens (the one whose FIPS 10-4 (countries and regions) is UKN1) or Liverpool (the one whose TOID is 7000000000005974)?
Choices:
Bury
Sheffield
Leeds
Rochdale
Solihull
Wakefield
St Helens
Walsall
Birmingham
Newcastle upon Tyne
Answer: St Helens
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "St Helens" . ?e <FIPS_10-4_(countries_and_regions)> ?pv_1 . ?pv_1 <pred:value> "UKN1" . } UNION { ?e <pred:name> "Liverpool" . ?e <TOID> ?pv_2 . ?pv_2 <pred:value> "7000000000005974" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: St Helens
function: FilterStr
dependencies: 0
inputs: FIPS 10-4 (countries and regions)
UKN1
function: Find
inputs: Liverpool
function: FilterStr
dependencies: 2
inputs: TOID
7000000000005974
function: SelectBetween
dependencies: 1
3
inputs: population
less