Was M1 's producer and art director M0 's writer and director
SELECT count(*) WHERE {
?x0 ns:film.director.film M0 .
?x0 ns:film.film_art_director.films_art_directed M1 .
?x0 ns:film.producer.film|ns:film.production_company.films M1 .
?x0 ns:film.writer.film M0
}