Catalyzes amidations at positions B, D, E, and G on adenosylcobyrinic A,C-diamide. NH(2) groups are provided by glutamine, and one molecule of ATP is hydrogenolyzed for each amidation. Cofactor biosynthesis; adenosylcobalamin biosynthesis. Homodimer. Belongs to the CobB/CobQ family. CobQ subfamily. Was originally thought to originate from Pseudomonas denitrificans, but similarity searches show that the sequence is much closer to Sinorhizobium. The entry's taxonomy has been changed.