But this is discluding those who work in academic research labs for major tech companies.
There are indeed people with CS PhDs at Google and Microsoft whose primary job involves publishing papers rather than building applications. But that's not the norm.