Were M2 and M5 influenced by M3 , influenced by M4 , and influenced by a Canadian film producer
SELECT count(*) WHERE {
?x0 a ns:film.producer .
?x0 ns:people.person.nationality ns:m.0d060g .
M2 ns:influence.influence_node.influenced_by ?x0 .
M2 ns:influence.influence_node.influenced_by M3 .
M2 ns:influence.influence_node.influenced_by M4 .
M5 ns:influence.influence_node.influenced_by ?x0 .
M5 ns:influence.influence_node.influenced_by M3 .
M5 ns:influence.influence_node.influenced_by M4
}