Question: Which has fewer people, Barrow-in-Furness (the one whose GSS code (2011) is E07000027) or Cambridge (the one that contains Queens' College)?
Choices:
West Dorset
Chichester
Guildford
Carlisle
North Norfolk
Craven
Barrow-in-Furness
Great Yarmouth
Cambridge
Kettering
Answer: Barrow-in-Furness
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Barrow-in-Furness" . ?e <GSS_code_(2011)> ?pv_1 . ?pv_1 <pred:value> "E07000027" . } UNION { ?e <pred:name> "Cambridge" . ?e_1 <located_in_the_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Queens' College" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Barrow-in-Furness
function: FilterStr
dependencies: 0
inputs: GSS code (2011)
E07000027
function: Find
inputs: Queens' College
function: Relate
dependencies: 2
inputs: located in the administrative territorial entity
forward
function: Find
inputs: Cambridge
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: population
less