Question: What is the relationship between Cleopatra (the one that uses the language English) and Germany?
Choices:
grants
country of origin
has edition
medical condition
winner
composer
quotes work
geography of topic
official residence
continent
Program:
function: Find
inputs: English
function: Relate
dependencies: 0
inputs: language of work or name
backward
function: Find
inputs: Cleopatra
function: And
dependencies: 1
2
function: Find
inputs: Germany
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Cleopatra" . ?e_1 <language_of_work_or_name> ?e_3 . ?e_3 <pred:name> "English" . ?e_2 <pred:name> "Germany" . ?e_1 ?p ?e_2 .  }
Answer: country of origin