Did M2 write , produce , and edit a film produced and directed by M1
SELECT count(*) WHERE {
?x0 a ns:film.film .
?x0 ns:film.film.directed_by M1 .
?x0 ns:film.film.produced_by|ns:film.film.production_companies M1 .
M2 ns:film.editor.film ?x0 .
M2 ns:film.producer.film|ns:film.production_company.films ?x0 .
M2 ns:film.writer.film ?x0
}