who has collaborated with richard wagner as librettist for operas?
Entity
m.02th6
Edward Bulwer-Lytton
class class entity
opera.librettist opera.opera m.06c44
opera.librettist opera.opera opera.librettist
Librettist Opera Richard Wagner
none none none
opera.librettist.libretti opera.opera.librettist
Opera libretti written Librettist
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX : <http://rdf.freebase.com/ns/> 
SELECT (?x0 AS ?value) WHERE {
SELECT DISTINCT ?x0  WHERE { 
?x0 :type.object.type :opera.librettist . 
?x1 :type.object.type :opera.opera . 
VALUES ?x2 { :m.06c44 } 
?x0 :opera.librettist.libretti ?x1 . 
?x1 :opera.opera.librettist ?x2 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND opera.librettist (JOIN opera.librettist.libretti (JOIN opera.opera.librettist m.06c44)))