Which of the following best describes the producers in a terrestrial food web?

A) They are at the top of the energy pyramid.
B) They obtain their energy from consumers.
C) They are unaffected by decomposers.
D) They convert energy from the sun to chemical energy.