Question: How is Romeo and Juliet (produced by Irving Thalberg) connected to melodrama?
Choices:
public holiday
contributing factor of
drug used for treatment
native language
basin country
geography of topic
designated as terrorist by
works in collection
foundational text
genre
Answer: genre
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Romeo and Juliet" . ?e_1 <producer> ?e_3 . ?e_3 <pred:name> "Irving Thalberg" . ?e_2 <pred:name> "melodrama" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Irving Thalberg
function: Relate
dependencies: 0
inputs: producer
backward
function: Find
inputs: Romeo and Juliet
function: And
dependencies: 1
2
function: Find
inputs: melodrama
function: QueryRelation
dependencies: 3
4