Question: What is the connection between the Richard Rodgers whose genre is musical and The King and I, with librettist Oscar Hammerstein II?
Choices:
has immediate cause
military rank
filmography
relative
instrumentation
notable work
participant of
production company
member of political party
culture
Program:
function: Find
inputs: musical
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Richard Rodgers
function: And
dependencies: 1
2
function: Find
inputs: Oscar Hammerstein II
function: Relate
dependencies: 4
inputs: librettist
backward
function: Find
inputs: The King and I
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Richard Rodgers" . ?e_1 <genre> ?e_3 . ?e_3 <pred:name> "musical" . ?e_2 <pred:name> "The King and I" . ?e_2 <librettist> ?e_4 . ?e_4 <pred:name> "Oscar Hammerstein II" . ?e_1 ?p ?e_2 .  }
Answer: notable work