Superconductivity of ternary rare-earth compounds