Question: Does Warwick (the one that is the origin of the name University of Warwick) or Ipswich (the one whose WOEID is 24522) have greater population?
Choices:
Guildford
Dorchester
Aylesbury
Bedford
Ipswich
Warwick
Taunton
Oxford
Northampton
Reading
Answer: Ipswich
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Warwick" . ?e_1 <named_after> ?e . ?e_1 <pred:name> "University of Warwick" . } UNION { ?e <pred:name> "Ipswich" . ?e <WOEID> ?pv_1 . ?pv_1 <pred:value> "24522" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: University of Warwick
function: Relate
dependencies: 0
inputs: named after
forward
function: Find
inputs: Warwick
function: And
dependencies: 1
2
function: Find
inputs: Ipswich
function: FilterStr
dependencies: 4
inputs: WOEID
24522
function: SelectBetween
dependencies: 3
5
inputs: population
greater