Did M2 direct a film that M1 produced and directed
SELECT count(*) WHERE {
?x0 a ns:film.film .
?x0 ns:film.film.directed_by M1 .
?x0 ns:film.film.produced_by|ns:film.film.production_companies M1 .
M2 ns:film.director.film ?x0
}