Can Artificial Neural Networks Learn Compositional Reasoning?