Was a character that wrote and executive produced M2 a film producer
SELECT count(*) WHERE {
?x0 a ns:fictional_universe.fictional_character .
?x0 a ns:film.producer .
?x0 ns:film.producer.films_executive_produced M2 .
?x0 ns:film.writer.film M2
}