Did M2 executive produce and write a film that M1 directed
SELECT count(*) WHERE {
?x0 a ns:film.film .
?x0 ns:film.film.directed_by M1 .
M2 ns:film.producer.films_executive_produced ?x0 .
M2 ns:film.writer.film ?x0
}