which librettists have written carmen opera opera?
Entity Entity
m.02x49f m.02x439
Ludovic Halévy Henri Meilhac
class entity
opera.librettist m.09g6g
opera.librettist opera.opera
Librettist carmen opera
none none
opera.librettist.libretti
Opera libretti written
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 . 
VALUES ?x1 { :m.09g6g } 
?x0 :opera.librettist.libretti ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND opera.librettist (JOIN opera.librettist.libretti m.09g6g))