question: Was M2 a film producer that was influenced by a costume designer , married M4 , and was influenced by M1 's producer
query: SELECT count(*) WHERE {
  ?x0 a ns:film.film_costumer_designer .
  ?x1 ns:film.producer.film|ns:film.production_company.films M1 .
  FILTER ( M2 != M4 ) .
  M2 a ns:film.producer .
  M2 ns:influence.influence_node.influenced_by ?x0 .
  M2 ns:influence.influence_node.influenced_by ?x1 .
  M2 ns:people.person.spouse_s/ns:people.marriage.spouse|ns:fictional_universe.fictional_character.married_to/ns:fictional_universe.marriage_of_fictional_characters.spouses M4
  }