Did a screenwriter write M1 , direct M4 , direct M5 , and write M2 and M3
SELECT count(*) WHERE {
?x0 a ns:film.writer .
?x0 ns:film.director.film M4 .
?x0 ns:film.director.film M5 .
?x0 ns:film.writer.film M1 .
?x0 ns:film.writer.film M2 .
?x0 ns:film.writer.film M3
}