Question: What is the relation between High School Musical (the one whose genre is musical) and musical?
Choices:
terminus
political alignment
continent
month of the year
contains settlement
fictional universe described in
original network
series spin-off
famous people
genre
Program:
function: Find
inputs: musical
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: High School Musical
function: And
dependencies: 1
2
function: Find
inputs: musical
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "High School Musical" . ?e_1 <genre> ?e_3 . ?e_3 <pred:name> "musical" . ?e_2 <pred:name> "musical" . ?e_1 ?p ?e_2 .  }
Answer: genre