Were M3 and M4 directed by a person that was influenced by a screenwriter and executive produced by a film producer
SELECT count(*) WHERE {
?x0 a ns:film.producer .
?x1 a ns:people.person .
?x1 ns:influence.influence_node.influenced_by ?x2 .
?x2 a ns:film.writer .
M3 ns:film.film.directed_by ?x1 .
M3 ns:film.film.executive_produced_by ?x0 .
M4 ns:film.film.directed_by ?x1 .
M4 ns:film.film.executive_produced_by ?x0
}