SELECT gender, ethnicity, COUNT(*) AS num_senators FROM us_senate GROUP BY gender, ethnicity ORDER BY num_senators DESC;
select gender, ethnicity, count(1) as num_senators from us_senate group by 1, 2 order by 3 desc;
select gender, ethnicity, count(1) as num_senators from us_senate group by 1, 2 order by 3 desc;
select gender, ethnicity, count(1) as num_senators from us_senate group by 1, 2 order by 3 desc;
select gender, ethnicity from us_senate group by gender, ethnicity ;
select gender, ethnicity from us_senate group by gender, ethnicity ;
select gender, ethnicity, count(*) as num_senators from us_senate group by gender, ethnicity;
SELECT gender, ethnicity, COUNT(*) AS num_senators FROM us_senate GROUP BY gender, ethnicity ORDER BY COUNT(*) DESC;
select us.gender, us.ethnicity, count(*) num_senators from us_senate us group by us.gender, us.ethnicity order by num_senators desc;
SELECT COUNT(id) AS num_senators, gender, ethnicity FROM us_senate GROUP BY 2, 3 ORDER BY 1 DESC;
select gender, ethnicity, count(id) as num_senators from us_senate group by gender,ethnicity order by num_senators desc;
select gender, ethnicity, count(id) as num_senators from us_senate group by gender,ethnicity order by num_senators desc;
select gender, ethnicity, count(id) as num_senators from us_senate group by gender,ethnicity order by num_senators desc;
select gender, ethnicity, count(id) as num_senators from us_senate group by gender,ethnicity order by num_senators desc;
select gender, ethnicity, count(id) as num_senators from us_senate group by gender,ethnicity order by num_senators desc;
select gender, ethnicity, count(*) as num_senators from us_senate group by gender, ethnicity order by num_senators desc;
select gender,ethnicity, count(*) as num_senators from us_senate group by gender, ethnicity order by count(*) desc;
select gender,ethnicity, count(*) as num_senators from us_senate group by gender, ethnicity order by count(*) desc;
SELECT gender, ethnicity, COUNT(*) AS 'num_senators' FROM us_senate GROUP BY gender, ethnicity;
SELECT gender, ethnicity, COUNT(*) AS 'num_senators' FROM us_senate GROUP BY gender, ethnicity;
SELECT gender, ethnicity, COUNT(*) AS num_senators FROM us_senate uss GROUP BY gender, ethnicity ORDER BY COUNT(*) DESC;
SELECT gender, ethnicity, count(*) num_senators FROM us_senate GROUP BY gender, ethnicity;
select gender, ethnicity , count(*) as num_senators from us_senate group by gender, ethnicity;
select gender, ethnicity , count(*) as num_senators from us_senate group by gender, ethnicity;
select gender, ethnicity, count(*) as num_senators from us_senate group by gender, ethnicity order by num_senators desc;
select gender, ethnicity, count(*) as num_senators from us_senate group by gender, ethnicity order by num_senators desc;
select gender, ethnicity, count(*) as num_senators from us_senate group by gender, ethnicity order by num_senators desc;