Were M2 and M6 produced by a French actor , produced by M4 and M5 , and written by M3
SELECT count(*) WHERE {
?x0 a ns:film.actor .
?x0 ns:people.person.nationality ns:m.0f8l9c .
M2 ns:film.film.produced_by|ns:film.film.production_companies ?x0 .
M2 ns:film.film.produced_by|ns:film.film.production_companies M4 .
M2 ns:film.film.produced_by|ns:film.film.production_companies M5 .
M2 ns:film.film.written_by M3 .
M6 ns:film.film.produced_by|ns:film.film.production_companies ?x0 .
M6 ns:film.film.produced_by|ns:film.film.production_companies M4 .
M6 ns:film.film.produced_by|ns:film.film.production_companies M5 .
M6 ns:film.film.written_by M3
}