Question: Which has the largest population among the former French regions that share a border with Lorraine (whose Dewey Decimal Classification is 2--4438)?
Choices:
Poitou-Charentes
Nord-Pas-de-Calais
Burgundy
Upper Normandy
Picardy
Lower Normandy
Aquitaine
Lorraine
Alsace
Champagne-Ardenne
Answer: Alsace
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "former French region" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Lorraine" . ?e_1 <Dewey_Decimal_Classification> ?pv_1 . ?pv_1 <pred:value> "2--4438" . ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Lorraine
function: FilterStr
dependencies: 0
inputs: Dewey Decimal Classification
2--4438
function: Relate
dependencies: 1
inputs: shares border with
backward
function: FilterConcept
dependencies: 2
inputs: former French region
function: SelectAmong
dependencies: 3
inputs: population
largest