Did M3 produce a film that was produced , written , and executive produced by M1 and M2
SELECT count(*) WHERE {
?x0 a ns:film.film .
?x0 ns:film.film.executive_produced_by M1 .
?x0 ns:film.film.executive_produced_by M2 .
?x0 ns:film.film.produced_by|ns:film.film.production_companies M1 .
?x0 ns:film.film.produced_by|ns:film.film.production_companies M2 .
?x0 ns:film.film.written_by M1 .
?x0 ns:film.film.written_by M2 .
M3 ns:film.producer.film|ns:film.production_company.films ?x0
}