Question: What is the association of Pinocchio (in the English language) to children's film?
Choices:
producer
cites
permanent resident of
separated from
educated at
genre
head of government
official language
broadcast by
league
Answer: genre
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Pinocchio" . ?e_1 <language_of_work_or_name> ?e_3 . ?e_3 <pred:name> "English" . ?e_2 <pred:name> "children's film" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: English
function: Relate
dependencies: 0
inputs: language of work or name
backward
function: Find
inputs: Pinocchio
function: And
dependencies: 1
2
function: Find
inputs: children's film
function: QueryRelation
dependencies: 3
4