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