What actor employed by M2 and employed by M3 and M4 executive produced and wrote M1
SELECT DISTINCT ?x0 WHERE {
?x0 a ns:film.actor .
?x0 ns:film.producer.films_executive_produced M1 .
?x0 ns:film.writer.film M1 .
?x0 ns:people.person.employment_history/ns:business.employment_tenure.company M2 .
?x0 ns:people.person.employment_history/ns:business.employment_tenure.company M3 .
?x0 ns:people.person.employment_history/ns:business.employment_tenure.company M4
}