Were M3 and M5 written by M4 , produced by a Italian screenwriter , and written by M0 's writer
SELECT count(*) WHERE {
?x0 ns:film.writer.film M0 .
?x1 a ns:film.writer .
?x1 ns:people.person.nationality ns:m.03rjj .
M3 ns:film.film.produced_by|ns:film.film.production_companies ?x1 .
M3 ns:film.film.written_by ?x0 .
M3 ns:film.film.written_by M4 .
M5 ns:film.film.produced_by|ns:film.film.production_companies ?x1 .
M5 ns:film.film.written_by ?x0 .
M5 ns:film.film.written_by M4
}