question: Were M3 and M5 influenced by M4 , influenced by a male person , and influenced by M0 's writer
query: SELECT count(*) WHERE {
  ?x0 ns:film.writer.film M0 .
  ?x1 a ns:people.person .
  ?x1 ns:people.person.gender ns:m.05zppz .
  M3 ns:influence.influence_node.influenced_by ?x0 .
  M3 ns:influence.influence_node.influenced_by ?x1 .
  M3 ns:influence.influence_node.influenced_by M4 .
  M5 ns:influence.influence_node.influenced_by ?x0 .
  M5 ns:influence.influence_node.influenced_by ?x1 .
  M5 ns:influence.influence_node.influenced_by M4
  }