question: Did M2 and M3 write and produce a film distributed and produced by a production company 's child
query: SELECT count(*) WHERE {
  ?x0 a ns:film.film .
  ?x0 ns:film.film.distributors/ns:film.film_film_distributor_relationship.distributor ?x1 .
  ?x0 ns:film.film.produced_by|ns:film.film.production_companies ?x1 .
  ?x1 ns:people.person.parents|ns:fictional_universe.fictional_character.parents|ns:organization.organization.parent/ns:organization.organization_relationship.parent ?x2 .
  ?x2 a ns:film.production_company .
  M2 ns:film.producer.film|ns:film.production_company.films ?x0 .
  M2 ns:film.writer.film ?x0 .
  M3 ns:film.producer.film|ns:film.production_company.films ?x0 .
  M3 ns:film.writer.film ?x0
  }