question: Were M3 , M4 , M5 , M6 , and M7 produced by a film distributor and written by a male writer of M0
query: SELECT count(*) WHERE {
  ?x0 ns:film.writer.film M0 .
  ?x0 ns:people.person.gender ns:m.05zppz .
  ?x1 a ns:film.film_distributor .
  M3 ns:film.film.produced_by|ns:film.film.production_companies ?x1 .
  M3 ns:film.film.written_by ?x0 .
  M4 ns:film.film.produced_by|ns:film.film.production_companies ?x1 .
  M4 ns:film.film.written_by ?x0 .
  M5 ns:film.film.produced_by|ns:film.film.production_companies ?x1 .
  M5 ns:film.film.written_by ?x0 .
  M6 ns:film.film.produced_by|ns:film.film.production_companies ?x1 .
  M6 ns:film.film.written_by ?x0 .
  M7 ns:film.film.produced_by|ns:film.film.production_companies ?x1 .
  M7 ns:film.film.written_by ?x0
  }