Were M3 , M4 , and M5 influenced by a film producer , influenced by a screenwriter , and influenced by a character
SELECT count(*) WHERE {
?x0 a ns:film.writer .
?x1 a ns:film.producer .
?x2 a ns:fictional_universe.fictional_character .
M3 ns:influence.influence_node.influenced_by ?x0 .
M3 ns:influence.influence_node.influenced_by ?x1 .
M3 ns:influence.influence_node.influenced_by ?x2 .
M4 ns:influence.influence_node.influenced_by ?x0 .
M4 ns:influence.influence_node.influenced_by ?x1 .
M4 ns:influence.influence_node.influenced_by ?x2 .
M5 ns:influence.influence_node.influenced_by ?x0 .
M5 ns:influence.influence_node.influenced_by ?x1 .
M5 ns:influence.influence_node.influenced_by ?x2
}