Question: Which has fewer people, Oldham (the one whose population is 96555) or Harlow (the one that is the birthplace of Victoria Beckham)?
Choices:
Wigan
Harlow
Blackburn
Royal Tunbridge Wells
Macclesfield
Colchester
Oldham
Edmonton
Doncaster
Wimbledon
Program:
function: Find
inputs: Oldham
function: FilterNum
dependencies: 0
inputs: population
96555
=
function: Find
inputs: Victoria Beckham
function: Relate
dependencies: 2
inputs: place of birth
forward
function: Find
inputs: Harlow
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Oldham" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "96555"^^xsd:double . } UNION { ?e <pred:name> "Harlow" . ?e_1 <place_of_birth> ?e . ?e_1 <pred:name> "Victoria Beckham" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Harlow