Were M2 and M3 produced by and written by a actor that M1 was founded by
SELECT count(*) WHERE {
?x0 a ns:film.actor .
?x0 ns:organization.organization_founder.organizations_founded M1 .
M2 ns:film.film.produced_by|ns:film.film.production_companies ?x0 .
M2 ns:film.film.written_by ?x0 .
M3 ns:film.film.produced_by|ns:film.film.production_companies ?x0 .
M3 ns:film.film.written_by ?x0
}