Was M1 directed by a film producer , directed by M2 , and edited by a film producer
SELECT count(*) WHERE {
?x0 a ns:film.producer .
?x1 a ns:film.producer .
M1 ns:film.film.directed_by ?x1 .
M1 ns:film.film.directed_by M2 .
M1 ns:film.film.edited_by ?x0
}