Question: What is the connection between Almost Famous to Peter Frampton (the one whose genre is rock music)?
Choices: movement
legal form
designed by
rector
native language
model item
head coach
cast member
parent club
captain
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Almost Famous" . ?e_2 <pred:name> "Peter Frampton" . ?e_2 <genre> ?e_3 . ?e_3 <pred:name> "rock music" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Almost Famous
function: Find
inputs: rock music
function: Relate
dependencies: 1
inputs: genre
backward
function: Find
inputs: Peter Frampton
function: And
dependencies: 2
3
function: QueryRelation
dependencies: 0
4
Answer: cast member