Which best describes the relationship between internal energy and thermal energy?

Thermal energy is a measure of the internal energy of a substance.
Internal energy is a measure of the thermal energy of a substance.
Internal energy is the portion of thermal energy that can be transferred.
Thermal energy is the portion of internal energy that can be transferred.