Involved in both the arginine and lysine biosynthetic pathways. [amino-group carrier protein]-C-terminal-N-(1-carboxy-5-oxopentan-1-yl)-L-glutamine + NADP(+) + phosphate = [amino-group carrier protein]-C-terminal-N-(1-carboxy-5-phosphooxy-5-oxopentan-1-yl)-L-glutamine + H(+) + NADPH [amino-group carrier protein]-C-terminal-gamma-(L-glutamyl-5-semialdehyde)-L-glutamate + NADP(+) + phosphate = [amino-group carrier protein]-C-terminal-gamma-(5-phospho-L-glutamyl)-L-glutamate + H(+) + NADPH Amino-acid biosynthesis; L-lysine biosynthesis via AAA pathway; L-lysine from L-alpha-aminoadipate (Thermus route): step 3/5. Amino-acid biosynthesis; L-arginine biosynthesis. Belongs to the NAGSA dehydrogenase family. Type 1 subfamily. LysY sub-subfamily.