Were M3 and M4 influenced by a founder and employee of M1 and M2 and influenced by a screenwriter
SELECT count(*) WHERE {
?x0 a ns:film.writer .
?x1 ns:organization.organization_founder.organizations_founded M1 .
?x1 ns:organization.organization_founder.organizations_founded M2 .
?x1 ns:people.person.employment_history/ns:business.employment_tenure.company M1 .
?x1 ns:people.person.employment_history/ns:business.employment_tenure.company M2 .
M3 ns:influence.influence_node.influenced_by ?x0 .
M3 ns:influence.influence_node.influenced_by ?x1 .
M4 ns:influence.influence_node.influenced_by ?x0 .
M4 ns:influence.influence_node.influenced_by ?x1
}