Did a person that M1 starred , was edited by , and was written by influence M2
SELECT count(*) WHERE {
?x0 a ns:people.person .
?x0 ns:film.actor.film/ns:film.performance.film M1 .
?x0 ns:film.editor.film M1 .
?x0 ns:film.writer.film M1 .
?x0 ns:influence.influence_node.influenced M2
}