Question: What percentage of Individual Contributors had more than twenty years of experience?
SQL:
SELECT (SUM(CASE WHEN WorkExp >= 20 THEN 1 ELSE 0 END) * 100. / COUNT(*)) AS percentage FROM Responses WHERE NOT WorkExp IS NULL AND IndividualContributorOrPeopleManager = 'Individual contributor'
SELECT ROUND(CAST((SELECT COUNT(*) FROM Responses WHERE WorkExp > 20 AND IndividualContributorOrPeopleManager = 'Individual contributor') AS REAL) / CAST((SELECT COUNT(*) FROM Responses WHERE IndividualContributorOrPeopleManager = 'Individual contributor') AS REAL) * 100, 2) AS Percentage