GO:0004088:   carbamoyl-phosphate synthase (glutamine-hydrolyzing) activity
Catalysis of the reaction: 2 ATP + L-glutamine + CO2 + H2O = 2 ADP + phosphate + glutamate + carbamoyl phosphate.