Was M2 executive produced by M3 , directed by a cinematographer , written by M4 , and directed by M0 's editor
SELECT count(*) WHERE {
?x0 ns:film.editor.film M0 .
?x1 a ns:film.cinematographer .
M2 ns:film.film.directed_by ?x0 .
M2 ns:film.film.directed_by ?x1 .
M2 ns:film.film.executive_produced_by M3 .
M2 ns:film.film.written_by M4
}