Question: What is the relationship between The Sound of Music (the one that was nominated for Academy Award for Best Director) and The Sound of Music (the one whose lyrics is written by Oscar Hammerstein II)?
Choices:
appears in the form of
based on
producer
main subject
military rank
replaced by
film distribute region
voice actor
location
honorific prefix
Program:
function: Find
inputs: Academy Award for Best Director
function: Relate
dependencies: 0
inputs: nominated for
backward
function: Find
inputs: The Sound of Music
function: And
dependencies: 1
2
function: Find
inputs: Oscar Hammerstein II
function: Relate
dependencies: 4
inputs: lyrics by
backward
function: Find
inputs: The Sound of Music
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "The Sound of Music" . ?e_1 <nominated_for> ?e_3 . ?e_3 <pred:name> "Academy Award for Best Director" . ?e_2 <pred:name> "The Sound of Music" . ?e_2 <lyrics_by> ?e_4 . ?e_4 <pred:name> "Oscar Hammerstein II" . ?e_1 ?p ?e_2 .  }
Answer: based on