Was M2 produced by M3 , directed by a film director , and produced by a production company
SELECT count(*) WHERE {
?x0 a ns:film.production_company .
?x1 a ns:film.director .
M2 ns:film.film.directed_by ?x1 .
M2 ns:film.film.produced_by|ns:film.film.production_companies ?x0 .
M2 ns:film.film.produced_by|ns:film.film.production_companies M3
}