Question: A Clockwork Orange, with Milena Canonero as a costume designer, is related in what way to the drama film genre?
Choices:
director of photography
next lower rank
employer
had as last meal
sibling
organizer
genre
doctoral student
edition or translation of
medical treatment
Answer: genre
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "A Clockwork Orange" . ?e_1 <costume_designer> ?e_3 . ?e_3 <pred:name> "Milena Canonero" . ?e_2 <pred:name> "drama film" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Milena Canonero
function: Relate
dependencies: 0
inputs: costume designer
backward
function: Find
inputs: A Clockwork Orange
function: And
dependencies: 1
2
function: Find
inputs: drama film
function: QueryRelation
dependencies: 3
4