There's fewer than 500 players in the NBA. There are hundreds of millions of people in the US (being US-centric initially to try to do the YMCA comparison), so probably a few million that play frequently as amateurs? One in a hundred? Let's call it 3 million out of 300,000,000, to work with relatively round numbers.
So being in the best 1 out of 100 - top 99% - is a z score of 2.3. Being in the best 500 is then much smaller even than THAT! 99.983%, z score of 3.481. The single best one? 99.99997%, z score of 4.991.
So if you define closer by z score, they "good amateur" YMCAer is closer to the worst in the NBA than that person is to Lebron, but I think it's more meaningful to define closer by "how many people stand in between you and them" - and the answer is millions for the amateur.
And I think that shows that work alone only gets you so far compared to talent. If you and a million other amateurs all start putting in ten hour days, the vast majority of you aren't getting to the NBA - it's just not big enough.
But in the absence of a reliable way to measure absolute skill, the z score one does seem about as good as we can get, though it can't truly answer something like "Lebron vs Jordan" - and you also would get different numbers depending on which population you picked. Population of the world, population of the US, population of the basketball-playing world, population of people who play basketball at least once a month? That's gonna change the denominator for the percentiles for the Scalabrines and Lebrons both.
NB: I'm a huge LeBron fan and a huge Magnus fan.
So with these hand waving assumptions, Brian's comment holds true if the ymca players are <= 84th percentile of basket ball players. Sounds reasonable to me.