In bio the as moves in to next tropical level why gpp decreased

I said because of respiration energy and gpp=input minus waste is both correct?

Yes, you are correct. As energy moves from one trophic level to the next in a food chain or food web, there is a decrease in Gross Primary Productivity (GPP) due to the energy lost through respiration and other metabolic processes of the organisms at each trophic level. GPP represents the total amount of energy captured by primary producers through photosynthesis, while respiration refers to the energy used by organisms for their own metabolic processes. So, GPP - respiration (energy used for metabolic processes) = Net Primary Productivity (NPP), which is the energy available for consumption by organisms at the next trophic level.