question: Did M1 and M7 write M2 , M3 , and M4 , direct M5 and M6 , and produce a film
query: SELECT count(*) WHERE {
  ?x0 a ns:film.film .
  M1 ns:film.director.film M5 .
  M1 ns:film.director.film M6 .
  M1 ns:film.producer.film|ns:film.production_company.films ?x0 .
  M1 ns:film.writer.film M2 .
  M1 ns:film.writer.film M3 .
  M1 ns:film.writer.film M4 .
  M7 ns:film.director.film M5 .
  M7 ns:film.director.film M6 .
  M7 ns:film.producer.film|ns:film.production_company.films ?x0 .
  M7 ns:film.writer.film M2 .
  M7 ns:film.writer.film M3 .
  M7 ns:film.writer.film M4
  }