I have missed several trains because of this, the ticket box with the shortest line was usually the one when some clueless grandma sieged the cashier with endless stream of questions about the ticket and travel directions and who knows what, with only few last remaining people, who have invested so much of their time that they couldn't justify leaving for another, longer, queue line.