Write SQL query to solve given problem: How many percent of senators were from class 1?. Keep the solution inside sql tag ```sql [SQL-Query] ```
SELECT CAST(SUM(CASE WHEN class = 1 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM `historical-terms` WHERE type = 'sen'