Question: Of historical countries where Bertolt Brecht was citizen, which is greatest in area?
Choices:
Kingdom of Portugal
Swedish Empire
Spanish Empire
Confederate States of America
Second French Empire
Qing dynasty
German Empire
Crown of Aragón
Abyssinia
Union of South Africa
Program:
function: Find
inputs: Bertolt Brecht
function: Relate
dependencies: 0
inputs: country of citizenship
forward
function: FilterConcept
dependencies: 1
inputs: historical country
function: SelectAmong
dependencies: 2
inputs: area
largest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "historical country" . ?e_1 <country_of_citizenship> ?e . ?e_1 <pred:name> "Bertolt Brecht" .  ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: German Empire