Question: Which has more population, Worcester whose WOEID is 41117 or Kingston whose area is 450.39 square kilometres?
Choices:
Cairo
Bergen
Trieste
Abidjan
Kilkenny
Kingston
Cork
Santo Domingo
Chihuahua
Worcester
Answer: Kingston
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Worcester" . ?e <WOEID> ?pv_1 . ?pv_1 <pred:value> "41117" . } UNION { ?e <pred:name> "Kingston" . ?e <area> ?pv_2 . ?pv_2 <pred:unit> "square kilometre" . ?pv_2 <pred:value> "450.39"^^xsd:double . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Worcester
function: FilterStr
dependencies: 0
inputs: WOEID
41117
function: Find
inputs: Kingston
function: FilterNum
dependencies: 2
inputs: area
450.39 square kilometre
=
function: SelectBetween
dependencies: 1
3
inputs: population
greater