Did M3 executive produce a film that M2 wrote and M1 executive produced
SELECT count(*) WHERE {
?x0 a ns:film.film .
?x0 ns:film.film.executive_produced_by M1 .
?x0 ns:film.film.written_by M2 .
M3 ns:film.producer.films_executive_produced ?x0
}