Was a film produced by and written by M1 executive produced by a costume designer and written by M2
SELECT count(*) WHERE {
?x0 a ns:film.film .
?x0 ns:film.film.executive_produced_by ?x1 .
?x0 ns:film.film.produced_by|ns:film.film.production_companies M1 .
?x0 ns:film.film.written_by M1 .
?x0 ns:film.film.written_by M2 .
?x1 a ns:film.film_costumer_designer
}