Question: Which is the most populous former French region bordering the Lorraine that occupies 23547 square km?
Choices:
Burgundy
Champagne-Ardenne
Lower Normandy
Nord-Pas-de-Calais
Picardy
Alsace
Lorraine
Aquitaine
Poitou-Charentes
Languedoc-Roussillon
Program:
function: Find
inputs: Lorraine
function: FilterNum
dependencies: 0
inputs: area
23547 square kilometre
=
function: Relate
dependencies: 1
inputs: shares border with
forward
function: FilterConcept
dependencies: 2
inputs: former French region
function: SelectAmong
dependencies: 3
inputs: population
largest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "former French region" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Lorraine" . ?e_1 <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: Alsace