Did M3 produce a film that M1 wrote and M2 wrote
SELECT count(*) WHERE {
?x0 a ns:film.film .
?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
}