The trick is to have numbers. Even if you just beat their forces, wait until your forces regroup before attacking the queen. Camp just inside the entrance of her base when regrouping to keep an eye on the inside of the base and eliminate any single ants still alive that walk near you...