Question: Is Ipswich, population 147522, or Aylesbury smaller, in terms of area?
Choices:
Oxford
Dorchester
Warwick
Guildford
Reading
Northampton
Maidstone
Bedford
Aylesbury
Ipswich
Program:
function: Find
inputs: Ipswich
function: FilterNum
dependencies: 0
inputs: population
147522
=
function: Find
inputs: Aylesbury
function: SelectBetween
dependencies: 1
2
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Ipswich" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "147522"^^xsd:double . } UNION { ?e <pred:name> "Aylesbury" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Aylesbury