who collaborated with leonard foglia as librettist for operas?
Entity
m.05fr0d
Jake Heggie
class class entity
opera.librettist opera.opera m.02ppjj4
opera.librettist opera.opera opera.librettist
Librettist Opera Leonard Foglia
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.02ppjj4 } 
?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.02ppjj4)))