Learning big logical rules by joining small rules