Task: Text to Code
Input (English): Query: SELECT count(*) WHERE {
M0 ns:film.cinematographer.film M1 .
M0 ns:film.producer.film|ns:film.production_company.films M1 .
M0 ns:film.writer.film M1
} Question: Was M0 a cinematographer that wrote , edited , and executive produced M2
Output (English): 0