question: Was M2 produced by a production company , executive produced by M0 's employee , and written by M3
query: SELECT count(*) WHERE {
  ?x0 ns:people.person.employment_history/ns:business.employment_tenure.company M0 .
  ?x1 a ns:film.production_company .
  M2 ns:film.film.executive_produced_by ?x0 .
  M2 ns:film.film.produced_by|ns:film.film.production_companies ?x1 .
  M2 ns:film.film.written_by M3
  }