Question: Which has more people, Champagne-Ardenne or Lorraine (the one whose area is 23547 square kilometre)?
Choices:
Lower Normandy
Poitou-Charentes
Upper Normandy
Aquitaine
Picardy
Burgundy
Languedoc-Roussillon
Nord-Pas-de-Calais
Alsace
Lorraine
Program:
function: Find
inputs: Champagne-Ardenne
function: Find
inputs: Lorraine
function: FilterNum
dependencies: 1
inputs: area
23547 square kilometre
=
function: SelectBetween
dependencies: 0
2
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Champagne-Ardenne" . } UNION { ?e <pred:name> "Lorraine" . ?e <area> ?pv_1 . ?pv_1 <pred:unit> "square kilometre" . ?pv_1 <pred:value> "23547"^^xsd:double . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Lorraine