question: Was M2 written by M3 , directed by M1 's cinematographer and executive producer , and produced by a film producer
query: SELECT count(*) WHERE {
  ?x0 a ns:film.producer .
  ?x1 ns:film.cinematographer.film M1 .
  ?x1 ns:film.producer.films_executive_produced M1 .
  M2 ns:film.film.directed_by ?x1 .
  M2 ns:film.film.produced_by|ns:film.film.production_companies ?x0 .
  M2 ns:film.film.written_by M3
  }