Was M3 written by a male person and written by M2 's editor
SELECT count(*) WHERE {
?x0 a ns:people.person .
?x0 ns:people.person.gender ns:m.05zppz .
?x1 ns:film.editor.film M2 .
M3 ns:film.film.written_by ?x0 .
M3 ns:film.film.written_by ?x1
}