What was directed and written by a actor that influenced M1 and M2
SELECT DISTINCT ?x0 WHERE {
?x0 ns:film.film.directed_by ?x1 .
?x0 ns:film.film.written_by ?x1 .
?x1 a ns:film.actor .
?x1 ns:influence.influence_node.influenced M1 .
?x1 ns:influence.influence_node.influenced M2
}