Question: Tell me the relationship between Peter Berg (who uses the German language) and German.
Choices:
had as last meal
convicted of
successful candidate
relative
languages spoken, written or signed
original language of film or TV show
continent
geographic distribution
captain
employer
Program:
function: Find
inputs: German
function: Relate
dependencies: 0
inputs: languages spoken, written or signed
backward
function: Find
inputs: Peter Berg
function: And
dependencies: 1
2
function: Find
inputs: German
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Peter Berg" . ?e_1 <languages_spoken,_written_or_signed> ?e_3 . ?e_3 <pred:name> "German" . ?e_2 <pred:name> "German" . ?e_1 ?p ?e_2 .  }
Answer: languages spoken, written or signed