Question: Among the historical countries with German as their official language, which has the smallest area?
Choices:
Confederate States of America
Crown of Aragón
Second French Empire
German Democratic Republic
Qing dynasty
Abyssinia
Union of South Africa
Swedish Empire
Kingdom of Portugal
Spanish Empire
Program:
function: Find
inputs: German
function: Relate
dependencies: 0
inputs: official language
backward
function: FilterConcept
dependencies: 1
inputs: historical country
function: SelectAmong
dependencies: 2
inputs: area
smallest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "historical country" . ?e <official_language> ?e_1 . ?e_1 <pred:name> "German" .  ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: German Democratic Republic