question: Were M1 and M5 written by M2 , produced by M3 and M4 , and directed by a film producer 's employee
query: SELECT count(*) WHERE {
  ?x0 ns:people.person.employment_history/ns:business.employment_tenure.company ?x1 .
  ?x1 a ns:film.producer .
  M1 ns:film.film.directed_by ?x0 .
  M1 ns:film.film.produced_by|ns:film.film.production_companies M3 .
  M1 ns:film.film.produced_by|ns:film.film.production_companies M4 .
  M1 ns:film.film.written_by M2 .
  M5 ns:film.film.directed_by ?x0 .
  M5 ns:film.film.produced_by|ns:film.film.production_companies M3 .
  M5 ns:film.film.produced_by|ns:film.film.production_companies M4 .
  M5 ns:film.film.written_by M2
  }