Question: Which has more people, Greenock or Harlow (the one whose area is 30.54 square kilometre)?
Choices:
Wigan
Greenock
Blackburn
Colchester
Macclesfield
Wimbledon
Edmonton
Harlow
Doncaster
Royal Tunbridge Wells
Answer: Harlow
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Greenock" . } UNION { ?e <pred:name> "Harlow" . ?e <area> ?pv_1 . ?pv_1 <pred:unit> "square kilometre" . ?pv_1 <pred:value> "30.54"^^xsd:double . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Greenock
function: Find
inputs: Harlow
function: FilterNum
dependencies: 1
inputs: area
30.54 square kilometre
=
function: SelectBetween
dependencies: 0
2
inputs: population
greater