Question: Which one covers a smaller area, Dessau or Gotha (population 45,410) ?
Choices:
Leonard Cohen
Topsy-Turvy
Anne Bancroft
Gotha
Cheltenham
1968 Winter Olympics
FC Vaslui
Dessau
Warwick
Portsmouth F.C.
Program:
function: Find
inputs: Dessau
function: Find
inputs: Gotha
function: FilterNum
dependencies: 1
inputs: population
45410
=
function: SelectBetween
dependencies: 0
2
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Dessau" . } UNION { ?e <pred:name> "Gotha" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "45410"^^xsd:double . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Gotha