Question: What is the connection between Harry Potter and the Chamber of Secrets (the one that has John Cleese as a cast member) to film based on literature?
Choices:
father
genre
military rank
native language
original network
published in
founded by
officially opened by
takes place in fictional universe
film release region
Program:
function: Find
inputs: John Cleese
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Harry Potter and the Chamber of Secrets
function: And
dependencies: 1
2
function: Find
inputs: film based on literature
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Harry Potter and the Chamber of Secrets" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "John Cleese" . ?e_2 <pred:name> "film based on literature" . ?e_1 ?p ?e_2 .  }
Answer: genre