Those are all real variants of the problem, and just looking at the way people answer these questions has become a miniature field of its own, dubbed "trolleyology." Notable conclusions are that men are more likely than women to push someone onto the tracks for the greater good, young people are ruthless as hell, and everyone is more reluctant to push a woman than a man.
But ultimately, there's no way to tell what people would do in real life, right? Unfortunately, the buzzkills at the ethics board wouldn't allow Bostyn, et al to tie real humans to real train tracks, but they could use mice and (fake) electric shocks. Participants, not knowing the shocks were fake, had to choose between zapping one mouse or letting five be zapped. Before doing so, they were questioned on how they would react to a variety of trolley genre moral dilemmas.
The result found almost no correlation to what participants said they would do and what they actually did. People were more decisive in real life than in the hypothetical scenarios. And yes, we're aware that zapping mice isn't exactly analogous to putting human lives on the line, but philosophers and social scientists have long been arguing that the Trolley Problem is overhyped and over-applied. As a general rule, a discussion you once had with your college buddies over some beers doesn't have much to do with how you'd react in the heat of the moment. That Good Place episode was solid, though.