Maybe you were looking for...

Is there a way to kill all players not in a minecart in Minecraft?

I am building a musical chairs Minecraft map, and I was wondering if there is a way to kill all players who aren't riding in a minecart?