Were M2 and M6 written by a screenwriter , executive produced by M3 , M4 , and M5 , and written by a person
SELECT count(*) WHERE {
?x0 a ns:film.writer .
?x1 a ns:people.person .
M2 ns:film.film.executive_produced_by M3 .
M2 ns:film.film.executive_produced_by M4 .
M2 ns:film.film.executive_produced_by M5 .
M2 ns:film.film.written_by ?x0 .
M2 ns:film.film.written_by ?x1 .
M6 ns:film.film.executive_produced_by M3 .
M6 ns:film.film.executive_produced_by M4 .
M6 ns:film.film.executive_produced_by M5 .
M6 ns:film.film.written_by ?x0 .
M6 ns:film.film.written_by ?x1
}