question: Were M2 , M6 , and M7 written by M3 , M4 , and M5 and executive produced by a film producer that wrote M1
query: SELECT count(*) WHERE {
  ?x0 a ns:film.producer .
  ?x0 ns:film.writer.film M1 .
  M2 ns:film.film.executive_produced_by ?x0 .
  M2 ns:film.film.written_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.written_by M3 .
  M6 ns:film.film.written_by M4 .
  M6 ns:film.film.written_by M5 .
  M7 ns:film.film.executive_produced_by ?x0 .
  M7 ns:film.film.written_by M3 .
  M7 ns:film.film.written_by M4 .
  M7 ns:film.film.written_by M5
  }