Were M3 and M4 written by a film producer and written by a writer and cinematographer of M1 and M2
SELECT count(*) WHERE {
?x0 a ns:film.producer .
?x1 ns:film.cinematographer.film M1 .
?x1 ns:film.cinematographer.film M2 .
?x1 ns:film.writer.film M1 .
?x1 ns:film.writer.film M2 .
M3 ns:film.film.written_by ?x0 .
M3 ns:film.film.written_by ?x1 .
M4 ns:film.film.written_by ?x0 .
M4 ns:film.film.written_by ?x1
}