Were M2 and M6 written by M4 and M5 , executive produced by a male person , and executive produced by M3
SELECT count(*) WHERE {
?x0 a ns:people.person .
?x0 ns:people.person.gender ns:m.05zppz .
M2 ns:film.film.executive_produced_by ?x0 .
M2 ns:film.film.executive_produced_by M3 .
M2 ns:film.film.written_by M4 .
M2 ns:film.film.written_by M5 .
M6 ns:film.film.executive_produced_by ?x0 .
M6 ns:film.film.executive_produced_by M3 .
M6 ns:film.film.written_by M4 .
M6 ns:film.film.written_by M5
}