Was M1 written by M2 , executive produced by a film producer , and executive produced by a film producer
SELECT count(*) WHERE {
?x0 a ns:film.producer .
?x1 a ns:film.producer .
M1 ns:film.film.executive_produced_by ?x0 .
M1 ns:film.film.executive_produced_by ?x1 .
M1 ns:film.film.written_by M2
}