Was M1 directed by M2 and directed by M0 's producer
SELECT count(*) WHERE {
?x0 ns:film.producer.film|ns:film.production_company.films M0 .
M1 ns:film.film.directed_by ?x0 .
M1 ns:film.film.directed_by M2
}