Catalyzes the ATP-dependent amidation of deamido-NAD to form NAD. Uses L-glutamine as a nitrogen source (By similarity). Because of its role in energy metabolism, involved in the modulation of aged-related cardiac function, mobility, and lifespan (PubMed:27448710). ATP + deamido-NAD(+) + H2O + L-glutamine = AMP + diphosphate + H(+) + L-glutamate + NAD(+) Cofactor biosynthesis; NAD(+) biosynthesis; NAD(+) from deamido-NAD(+) (L-Gln route): step 1/1. In the C-terminal section; belongs to the NAD synthetase family.