Relational Reasoning and Learning in Children and AI