Task: Text to Code
Input (English): Query: SELECT DISTINCT ?x0 WHERE {
?x0 ns:film.film.directed_by ?x1 .
?x0 ns:film.film.written_by ?x1 .
?x1 ns:film.cinematographer.film M0
} Question: Was a art director a cinematographer that was employed by M2 and M3 and founded M4
Output (English): 0