question: Did a person that M1 was produced by , directed by , and written by play M2
query: SELECT count(*) WHERE {
  ?x0 a ns:people.person .
  ?x0 ns:film.actor.film/ns:film.performance.character M2 .
  ?x0 ns:film.director.film M1 .
  ?x0 ns:film.producer.film|ns:film.production_company.films M1 .
  ?x0 ns:film.writer.film M1
  }