On the predictive power of graph neural networks