Were M2 and M5 founded by M3 and M4 , founded by a actor , and founded by a film 's writer
SELECT count(*) WHERE {
?x0 a ns:film.actor .
?x1 ns:film.writer.film ?x2 .
?x2 a ns:film.film .
M2 ns:organization.organization.founders ?x0 .
M2 ns:organization.organization.founders ?x1 .
M2 ns:organization.organization.founders M3 .
M2 ns:organization.organization.founders M4 .
M5 ns:organization.organization.founders ?x0 .
M5 ns:organization.organization.founders ?x1 .
M5 ns:organization.organization.founders M3 .
M5 ns:organization.organization.founders M4
}