Was M1 a film whose writer influenced a character
SELECT count(*) WHERE {
?x0 ns:influence.influence_node.influenced ?x1 .
?x1 a ns:fictional_universe.fictional_character .
M1 a ns:film.film .
M1 ns:film.film.written_by ?x0
}