question: Was M0 a film producer that M2 and M3 starred , were executive produced by , and were written by
query: SELECT count(*) WHERE {
  M0 a ns:film.producer .
  M0 ns:film.actor.film/ns:film.performance.film M2 .
  M0 ns:film.actor.film/ns:film.performance.film M3 .
  M0 ns:film.producer.films_executive_produced M2 .
  M0 ns:film.producer.films_executive_produced M3 .
  M0 ns:film.writer.film M2 .
  M0 ns:film.writer.film M3
  }