Learning Math from Relation