Question: Which has more people, Guildford (the one that is the death place of Lewis Carroll) or Ipswich (the one whose population is 147522)?
Choices: Maidstone
Ipswich
Guildford
Warwick
Northampton
Dorchester
Bedford
Oxford
Reading
Aylesbury
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Guildford" . ?e_1 <place_of_death> ?e . ?e_1 <pred:name> "Lewis Carroll" . } UNION { ?e <pred:name> "Ipswich" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "147522"^^xsd:double . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Lewis Carroll
function: Relate
dependencies: 0
inputs: place of death
forward
function: Find
inputs: Guildford
function: And
dependencies: 1
2
function: Find
inputs: Ipswich
function: FilterNum
dependencies: 4
inputs: population
147522
=
function: SelectBetween
dependencies: 3
5
inputs: population
greater
Answer: Ipswich