question: Were M3 and M4 executive produced by a male person and written by M2 's cinematographer
query: SELECT count(*) WHERE {
  ?x0 a ns:people.person .
  ?x0 ns:people.person.gender ns:m.05zppz .
  ?x1 ns:film.cinematographer.film M2 .
  M3 ns:film.film.executive_produced_by ?x0 .
  M3 ns:film.film.written_by ?x1 .
  M4 ns:film.film.executive_produced_by ?x0 .
  M4 ns:film.film.written_by ?x1
  }