who has worked alongside nicolò beregan as librettist for operas?
Entity
m.0ndjwbs
Pietro Pariati
class class entity
opera.librettist opera.opera m.0ndj976
opera.librettist opera.opera opera.librettist
Librettist Opera Nicolò Beregan
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.0ndj976 } 
?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.0ndj976)))