Question: What historical country is a member of the United Nations and is the country of Thuringia (whose country is Nazi Germany)?
Choices: Crown of Aragón
German Democratic Republic
Qing dynasty
Mongol Empire
Second French Empire
Confederate States of America
Union of South Africa
Kingdom of Portugal
Swedish Empire
Spanish Empire
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "historical country" . ?e <member_of> ?e_1 . ?e_1 <pred:name> "United Nations" .  ?e_2 <country> ?e . ?e_2 <pred:name> "Thuringia" . ?e_2 <country> ?e_3 . ?e_3 <pred:name> "Nazi Germany" .  }
Program:
function: Find
inputs: United Nations
function: Relate
dependencies: 0
inputs: member of
backward
function: FilterConcept
dependencies: 1
inputs: historical country
function: Find
inputs: Nazi Germany
function: Relate
dependencies: 3
inputs: country
backward
function: Find
inputs: Thuringia
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: country
forward
function: FilterConcept
dependencies: 7
inputs: historical country
function: And
dependencies: 2
8
function: What
dependencies: 9
Answer: German Democratic Republic