Did M0 executive produce and write M1 and M2
SELECT count(*) WHERE {
M0 ns:film.producer.films_executive_produced M1 .
M0 ns:film.producer.films_executive_produced M2 .
M0 ns:film.writer.film M1 .
M0 ns:film.writer.film M2
}