Did M2 influence a person , influence M3 , and influence a costume designer
SELECT count(*) WHERE {
?x0 a ns:film.film_costumer_designer .
?x1 a ns:people.person .
M2 ns:influence.influence_node.influenced ?x0 .
M2 ns:influence.influence_node.influenced ?x1 .
M2 ns:influence.influence_node.influenced M3
}