GO:0003922:   GMP synthase (glutamine-hydrolyzing) activity
Catalysis of the reaction: ATP + xanthosine 5"-phosphate + L-glutamine + H2O = AMP + diphosphate + GMP + L-glutamate.