Did M2 direct a film written and executive produced by M1
SELECT count(*) WHERE {
?x0 a ns:film.film .
?x0 ns:film.film.executive_produced_by M1 .
?x0 ns:film.film.written_by M1 .
M2 ns:film.director.film ?x0
}