Hi and welcome to the site. I believe that when you see ones and two’s they are usually in a breeding pair but non breeding Magpies will gather into flocks. I have also read that starting around this time of year large numbers of Magpies often gather to resolve territorial conflicts and social standing and that these types of gatherings are called parliaments.
David