Question: Where in German is Gotha located and what is it's role to the German Democratic Republic?
Choices:
sport
developer
geographic distribution
position held
country
political ideology
partner
superhuman feature or ability
public holiday
has edition
Program:
function: Find
inputs: German Democratic Republic
function: Relate
dependencies: 0
inputs: country
backward
function: Find
inputs: Gotha
function: And
dependencies: 1
2
function: Find
inputs: Germany
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Gotha" . ?e_1 <country> ?e_3 . ?e_3 <pred:name> "German Democratic Republic" . ?e_2 <pred:name> "Germany" . ?e_1 ?p ?e_2 .  }
Answer: country