question: Was M5 written by and directed by a French cinematographer that M2 , M3 , and M4 starred
query: SELECT count(*) WHERE {
  ?x0 a ns:film.cinematographer .
  ?x0 ns:film.actor.film/ns:film.performance.film M2 .
  ?x0 ns:film.actor.film/ns:film.performance.film M3 .
  ?x0 ns:film.actor.film/ns:film.performance.film M4 .
  ?x0 ns:people.person.nationality ns:m.0f8l9c .
  M5 ns:film.film.directed_by ?x0 .
  M5 ns:film.film.written_by ?x0
  }