Question: Which has more people, Norwich (the one whose TOID is 7000000000006759) or Barrow-in-Furness (the one whose GSS code (2011) is E07000027)?
Choices:
South Somerset
Craven
Great Yarmouth
Kettering
West Dorset
Norwich
Barrow-in-Furness
Chichester
Carlisle
North Norfolk
Answer: Norwich
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Norwich" . ?e <TOID> ?pv_1 . ?pv_1 <pred:value> "7000000000006759" . } UNION { ?e <pred:name> "Barrow-in-Furness" . ?e <GSS_code_(2011)> ?pv_2 . ?pv_2 <pred:value> "E07000027" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Norwich
function: FilterStr
dependencies: 0
inputs: TOID
7000000000006759
function: Find
inputs: Barrow-in-Furness
function: FilterStr
dependencies: 2
inputs: GSS code (2011)
E07000027
function: SelectBetween
dependencies: 1
3
inputs: population
greater