Was M2 executive produced by a writer of M1 , written by M3 , M4 , and M5 , and executive produced by a film director
SELECT count(*) WHERE {
?x0 a ns:film.director .
?x1 ns:film.writer.film M1 .
M2 ns:film.film.executive_produced_by ?x0 .
M2 ns:film.film.executive_produced_by ?x1 .
M2 ns:film.film.written_by M3 .
M2 ns:film.film.written_by M4 .
M2 ns:film.film.written_by M5
}