SELECT DISTINCT * WHERE { ?c . ?e ?c . ?p ?c }