Question: Did Sunset Boulevard, with a libretto by Christopher Hampton, have its premiere show prior to 2004 ?
Choices:
yes
no
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
Answer: yes
SPARQL: ASK { ?e <pred:name> "Sunset Boulevard" . ?e <librettist> ?e_1 . ?e_1 <pred:name> "Christopher Hampton" .  ?e <date_of_first_performance> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 2004 ) .  }
Program:
function: Find
inputs: Christopher Hampton
function: Relate
dependencies: 0
inputs: librettist
backward
function: Find
inputs: Sunset Boulevard
function: And
dependencies: 1
2
function: QueryAttr
dependencies: 3
inputs: date of first performance
function: VerifyYear
dependencies: 4
inputs: 2004
<