question: Was M0 a Mexican cinematographer that M2 was produced and written by
query: SELECT count(*) WHERE {
  M0 a ns:film.cinematographer .
  M0 ns:film.producer.film|ns:film.production_company.films M2 .
  M0 ns:film.writer.film M2 .
  M0 ns:people.person.nationality ns:m.0b90_r
  }