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