Was M2 executive produced by M1 's writer , written by M3 , and executive produced by a character
SELECT count(*) WHERE {
?x0 a ns:fictional_universe.fictional_character .
?x1 ns:film.writer.film M1 .
M2 ns:film.film.executive_produced_by ?x0 .
M2 ns:film.film.executive_produced_by ?x1 .
M2 ns:film.film.written_by M3
}