Learning Relational Sum-Product Networks