Chinastark/bird_dataset huggingface dataset:
Database: legislator
Note: once a senator during term refers to state_rank IS NOT NULL;
Question: Please list the official full names of all the current legislators who were once a senator during his or her terms.
SQL: SELECT CURRENT.official_full_name FROM `current-terms` INNER JOIN CURRENT ON CURRENT.bioguide_id = current-terms.bioguide WHERE current-terms.state_rank IS NOT NULL
Database: legislator
Note: Sherrod Brown is an full official name; started on 1993/1/5 refers to start = '1993-01-05';
Question: For which state did current legislator Sherrod Brown serve during his term that started on 1993/1/5?
SQL: SELECT current-terms.state FROM `current-terms` INNER JOIN CURRENT ON CURRENT.bioguide_id = current-terms.bioguide WHERE current-terms.start = '1993-01-05' AND CURRENT.official_full_name = 'Sherrod Brown'
Database: legislator
Note: female refers to gender_bio = 'F'; served for more than 4 terms refers to COUNT(bioguide > 4);
Question: Among all the female current legislators, how many of them have served for more than 4 terms?
SQL: SELECT count(cid) FROM ( SELECT CURRENT.bioguide_id AS cid FROM CURRENT INNER JOIN `current-terms` ON CURRENT.bioguide_id = current-terms.bioguide WHERE CURRENT.gender_bio = 'F' GROUP BY current-terms.bioguide HAVING count(current-terms.bioguide) > 4 )
Database: legislator
Note: served for more than 6 terms refers to COUNT(bioguide > 6); born after 1960 refers to birthday_bio >= '1960-01-01';
Question: Among the current legislators who have served for more than 6 terms, how many of them were born after 1960?
SQL: SELECT count(cid) FROM ( SELECT CURRENT.bioguide_id AS cid FROM CURRENT INNER JOIN `current-terms` ON CURRENT.bioguide_id = current-terms.bioguide WHERE CURRENT.birthday_bio >= '1960-01-01' GROUP BY current-terms.bioguide HAVING count(current-terms.bioguide) > 6 )
Database: legislator
Note: female refers to gender_bio = 'F'; calculation refers to DIVIDE(COUNT(bioguide WHERE gender_bio = 'F'), COUNT(bioguide_id));
Question: What is the average number of terms for a current female legislator?
SQL: SELECT cast(count(current-terms.bioguide) AS REAL) / count(DISTINCT CURRENT.bioguide_id) FROM CURRENT INNER JOIN `current-terms` ON CURRENT.bioguide_id = current-terms.bioguide WHERE CURRENT.gender_bio = 'F'
Database: legislator
Note: religion is Roman Catholic refers to religion_bio = 'Roman Catholic'; calculation = MULTIPLY(DIVIDE(COUNT(instagram is null), COUNT(bioguide_id)), 1.0);
Question: Among all the current legislators whose religion is Roman Catholic, what is the percentage of the ones without an instagram account?
SQL: SELECT cast(sum(CASE WHEN social-media.instagram IS NULL THEN 1 ELSE 0 END) AS REAL) * 100 / count(*) FROM `social-media` INNER JOIN CURRENT ON social-media.bioguide = CURRENT.bioguide_id WHERE CURRENT.religion_bio = 'Roman Catholic'
Database: legislator
Note: male refers to gender_bio = 'M';
Question: How many males were members of the current legislators?
SQL: SELECT count(*) FROM CURRENT WHERE gender_bio = 'M'
Database: legislator
Note: chose Republican as their political party refers to party = 'Republican';
Question: How many current legislators chose Republican as their political party?
SQL: SELECT count(*) FROM `current-terms` WHERE party = 'Republican'
Database: legislator
Note: have an instagram account refers to instagram is NOT null and instagram <>'';
Question: How many legislators have an Instagram account?
SQL: SELECT count(*) FROM `social-media` WHERE instagram IS NOT NULL AND instagram <> ''
Database: legislator
Note: female refers to gender_bio = 'F';
Question: How many females were members of the past legislators?
SQL: SELECT count(*) FROM historical WHERE gender_bio = 'F'
Database: legislator
Note: male refers to gender_bio = 'M'; Roman Catholic is a religion_bio;
Question: How many male legislators are Roman Catholic?
SQL: SELECT count(*) FROM CURRENT WHERE religion_bio = 'Roman Catholic' AND gender_bio = 'M'
Database: legislator
Note: political party refers to party; Sherrod Brown is an official_full_name; official_full_name refers to first_name, last_name; 2005 refers to start = 2005;
Question: What type of political party Sherrod Brown has in 2005?
SQL: SELECT current-terms.party FROM `current-terms` INNER JOIN CURRENT ON CURRENT.bioguide_id = current-terms.bioguide WHERE CURRENT.first_name = 'Sherrod' AND CURRENT.last_name = 'Brown' AND current-terms.start LIKE '%2005%'
Database: legislator
Note: full name refers to official_full_name; senior refers to state_rank = 'senior'; senators refers to type = 'sen'; 2013 refers to start LIKE '2013%';
Question: List the full name of all the senior senators in year 2013.
SQL: SELECT CURRENT.official_full_name FROM `current-terms` INNER JOIN CURRENT ON CURRENT.bioguide_id = current-terms.bioguide WHERE current-terms.state_rank = 'senior' AND current-terms.type = 'sen' AND current-terms.start LIKE '2013%'
Database: legislator
Note: youtube username refers to youtube; Chris Van Hollen is an official_full_name;
Question: What is the current official Youtube username of Chris Van Hollen?
SQL: SELECT social-media.youtube FROM CURRENT INNER JOIN `social-media` ON social-media.bioguide = CURRENT.bioguide_id WHERE CURRENT.official_full_name = 'Chris Van Hollen'
Database: legislator
Note: official social media refers to facebook is not null, instagram is not null, twitter is not null, youtube is not null; Mark Warner is an official_full_name; official_full_name refers to first_name, last_name;
Question: How many official social media does Mark Warner have?
SQL: SELECT CASE WHEN social-media.facebook IS NOT NULL THEN 1 END + CASE WHEN social-media.instagram IS NOT NULL THEN 1 END + CASE WHEN social-media.twitter IS NOT NULL THEN 1 END + CASE WHEN social-media.youtube IS NOT NULL THEN 1 END AS countsocial FROM `social-media` INNER JOIN CURRENT ON social-media.bioguide = CURRENT.bioguide_id WHERE CURRENT.first_name = 'Mark' AND CURRENT.last_name = 'Warner'
Database: legislator
Note: California refers to state = 'CA';
Question: List the last name of all current legislators who live in California.
SQL: SELECT CURRENT.last_name FROM CURRENT INNER JOIN `current-terms` ON CURRENT.bioguide_id = current-terms.bioguide WHERE current-terms.state = 'CA' GROUP BY CURRENT.last_name
Database: legislator
Note: full name refers to official_full_name; female refers to gender_bio = 'F'; senators refers to type = 'sen';
Question: List the full name of all current female senators.
SQL: SELECT CURRENT.first_name, CURRENT.last_name FROM `current-terms` INNER JOIN CURRENT ON CURRENT.bioguide_id = current-terms.bioguide WHERE current-terms.type = 'sen' AND CURRENT.gender_bio = 'F' GROUP BY CURRENT.ballotpedia_id
Database: legislator
Note: Chris Van Hollen is an official_full_name; numeric ID on govtrack.us refers to govtrack;
Question: What is the numeric ID of Chris Van Hollen on GovTrack.us?
SQL: SELECT social-media.govtrack FROM CURRENT INNER JOIN `social-media` ON social-media.bioguide = CURRENT.bioguide_id WHERE CURRENT.official_full_name = 'Chris Van Hollen'
Database: legislator
Note: twitter handle refers to twitter; Roger F. Wicker is an official_full_name;
Question: What is the current official Twitter handle of Roger F. Wicker?
SQL: SELECT social-media.twitter FROM CURRENT INNER JOIN `social-media` ON social-media.bioguide = CURRENT.bioguide_id WHERE CURRENT.official_full_name = 'Roger F. Wicker'
Database: legislator
Note: full name refers to official_full_name; chose Pro-Administration as their political party refers to party = 'Pro-Administration'; 1791 refers to start <= 1791 AND end >= 1791;
Question: List the full name of all past legislators that chose Pro-Administration as their political party in year 1791.
SQL: SELECT historical.first_name, historical.last_name FROM historical INNER JOIN `historical-terms` ON historical.bioguide_id = historical-terms.bioguide WHERE historical-terms.party = 'Pro-Administration' AND cast(historical-terms.start AS DATE) <= 1791 AND cast(historical-terms.end AS DATE) >= 1791
Database: legislator
Note: full name refers to official_full_name; official_full_name refers to first_name, last_name; female refers to gender_bio = 'F'; chose Republican as their political party refers to party = 'Republican'; current legislators refers to end > Date();
Question: Provide the full name of all current female legislators that chose Republican as their political party.
SQL: SELECT CURRENT.first_name, CURRENT.last_name FROM CURRENT INNER JOIN `current-terms` ON CURRENT.bioguide_id = current-terms.bioguide WHERE current-terms.party = 'Republican' AND CURRENT.gender_bio = 'F' AND current-terms.end > date() GROUP BY CURRENT.bioguide_id
Database: legislator
Note: Chris Van Hollen is an official_full_name;
Question: What is the district number that Chris Van Hollen serving?
SQL: SELECT current-terms.district FROM CURRENT INNER JOIN `current-terms` ON CURRENT.bioguide_id = current-terms.bioguide WHERE CURRENT.official_full_name = 'Chris Van Hollen' AND current-terms.district IS NOT NULL GROUP BY current-terms.district
Database: legislator
Note: Richard Durbin is an official_full_name;  official_full_name refers to first_name, last_name; district 20 refers to district = 20;
Question: How many times did Richard Durbin become a legislator in district 20?
SQL: SELECT sum(CASE WHEN current-terms.district = 20 THEN 1 ELSE 0 END) AS COUNT FROM CURRENT INNER JOIN `current-terms` ON CURRENT.bioguide_id = current-terms.bioguide WHERE CURRENT.first_name = 'Richard' AND CURRENT.last_name = 'Durbin'
Database: legislator
Note: male refers to gender_bio = 'M'; legislators who chose Democrat refers to party = 'Democrat'; from 2000 until 2021 refers to start >= 2000 AND end <= 2021; calculation = DIVIDE(COUNT(bioguide_id), 22);
Question: Calculate the average number of current male legislators who chose Democrat from 2000 until 2021.
SQL: SELECT cast(count(CURRENT.bioguide_id) AS REAL) / 22 FROM CURRENT INNER JOIN `current-terms` ON CURRENT.bioguide_id = current-terms.bioguide WHERE CURRENT.gender_bio = 'M' AND cast(current-terms.start AS DATE) >= 2000 AND cast(current-terms.end AS DATE) <= 2021 AND current-terms.party = 'Democrat'
Database: legislator
Note: female refers to gender_bio = 'F'; calculation = MULTIPLY(DIVIDE(COUNT(current.gender_bio = 'F' THEN current.bioguide_id)), (COUNT(historical.gender_bio = 'F' then historical.bioguide_id)), 1.0); the highest value refers to MAX(calculation);
Question: Calculate the percentage of the total number of current female legislators and past female legislators. State which one has the highest value.
SQL: SELECT cast(count(CASE WHEN current.gender_bio = 'F' THEN current.bioguide_id ELSE NULL END) AS REAL) * 100 / ( SELECT count(CASE WHEN historical.gender_bio = 'F' THEN historical.bioguide_id ELSE NULL END) FROM historical ) FROM CURRENT
Database: legislator
Note: RepWassermanSchultz refers to youtube;
Question: Give the YouTube ID of the channel 'RepWassermanSchultz.'
SQL: SELECT youtube_id FROM `social-media` WHERE youtube = 'RepWassermanSchultz'
Database: legislator
Note: facebook, twitter and youtube usernames refers to facebook, twitter, youtube; Adam Kinzinger is an official_full_name;
Question: What are the Facebook, Twitter and YouTube usernames of Adam Kinzinger?
SQL: SELECT social-media.facebook FROM CURRENT INNER JOIN `social-media` ON social-media.bioguide = CURRENT.bioguide_id WHERE CURRENT.official_full_name = 'Adam Kinzinger'
Database: legislator
Note: Christopher Henderson Clark is full name; full name refers to first_name, middle_name, last_name;
Question: Which party does Christopher Henderson Clark belong to?
SQL: SELECT historical-terms.party FROM `historical-terms` INNER JOIN historical ON historical.bioguide_id = historical-terms.bioguide WHERE historical.first_name OR historical.middle_name OR historical.last_name = 'ChristopherHendersonClark'
Database: legislator
Note: have a youtube account but no instagram account refers to facebook is not null and (instagram is null or instagram = '');
Question: List the official full names of 10 legislators who have a YouTube account but no Instagram account.
SQL: SELECT CURRENT.official_full_name FROM `social-media` INNER JOIN CURRENT ON social-media.bioguide = CURRENT.bioguide_id WHERE social-media.facebook IS NOT NULL AND (social-media.instagram IS NULL OR social-media.instagram = '') LIMIT 10
Database: legislator
Note: Virginia refers to state = 'VA';
Question: Give the official full names of legislators representing Virginia.
SQL: SELECT CURRENT.official_full_name FROM CURRENT INNER JOIN `current-terms` ON CURRENT.bioguide_id = current-terms.bioguide WHERE current-terms.state = 'VA' GROUP BY CURRENT.official_full_name
Database: legislator
Note: members of the National Greenbacker party refers to party = 'National Greenbacker'; first and last names refers to first_name, last_name;
Question: Which historical legislators are members of the National Greenbacker party? Write their first and last names.
SQL: SELECT historical.first_name, historical.last_name FROM `historical-terms` INNER JOIN historical ON historical.bioguide_id = historical-terms.bioguide WHERE historical-terms.party = 'National Greenbacker'
Database: legislator
Note: youtube channel 'RoskamIL06' refers to youtube = 'RoskamIL06';
Question: Which legislator has the YouTube channel 'RoskamIL06?' Write the official full name.
SQL: SELECT CURRENT.official_full_name FROM CURRENT INNER JOIN `social-media` ON social-media.bioguide = CURRENT.bioguide_id WHERE social-media.youtube = 'RoskamIL06'
Database: legislator
Note: full names refers to official_full_name; only have a facebook account refers to youtube is NULL or youtube = '', instagram is NULL or instagram = '', twitter is NULL or twitter = '', facebook is not NULL and facebook = '';
Question: List the full names of 10 legislators who only have a Facebook account.
SQL: SELECT CURRENT.official_full_name FROM `social-media` INNER JOIN CURRENT ON social-media.bioguide = CURRENT.bioguide_id WHERE (social-media.youtube IS NULL OR social-media.youtube = '') AND (social-media.instagram IS NULL OR social-media.instagram = '') AND (social-media.twitter IS NULL OR social-media.twitter = '') AND social-media.facebook IS NOT NULL AND social-media.facebook != ''
Database: legislator
Note: full name refers to official_full_name; junior refers to state_rank = 'junior'; Republicans refers to party = 'Republican';
Question: Write the full names of junior ranked Republicans.
SQL: SELECT CURRENT.official_full_name FROM CURRENT INNER JOIN `current-terms` ON CURRENT.bioguide_id = current-terms.bioguide WHERE current-terms.party = 'Republican' AND current-terms.state_rank = 'junior' GROUP BY CURRENT.official_full_name
Database: legislator
Note: contact url refers to contact_form; Claire McCaskill is an official_full_name;
Question: What is the contact URL of Claire McCaskill?
SQL: SELECT current-terms.contact_form FROM CURRENT INNER JOIN `current-terms` ON CURRENT.bioguide_id = current-terms.bioguide WHERE CURRENT.official_full_name = 'Claire McCaskill' GROUP BY current-terms.contact_form
Database: legislator
Note: Readjuster Democrats refers to party = 'Readjuster Democrat';
Question: Give the Wikipedia IDs of historical legislators who are Readjuster Democrats.
SQL: SELECT historical.wikipedia_id FROM `historical-terms` INNER JOIN historical ON historical.bioguide_id = historical-terms.bioguide WHERE historical-terms.party = 'Readjuster Democrat'
Database: legislator
Note: full names refers to official_full_name; Republican refers to party = 'Republican'; nickname refers to nickname_name;
Question: List the full names of Republican legislators who have a nickname.
SQL: SELECT CURRENT.official_full_name FROM CURRENT INNER JOIN `current-terms` ON CURRENT.bioguide_id = current-terms.bioguide WHERE current-terms.party = 'Republican' AND CURRENT.nickname_name IS NOT NULL GROUP BY CURRENT.official_full_name
Database: legislator
Note: Veronica Grace Boland is a full name; full name refers to first_name, middle_name, last_name; party affiliated refers to party;
Question: Which state did Veronica Grace Boland represent and which party is she affiliated?
SQL: SELECT historical-terms.state, historical-terms.party FROM historical INNER JOIN `historical-terms` ON historical.bioguide_id = historical-terms.bioguide WHERE historical.first_name OR historical.middle_name OR historical.last_name = 'VeronicaGraceBoland'
Database: legislator
Note: born in 1973 refers to birthday_bio = 1973;
Question: How many historical legislators were born in 1973?
SQL: SELECT count(*) FROM historical WHERE cast(birthday_bio AS date) = 1973
Database: legislator
Note: male refers to gender_bio = 'M'; female refers to gender_bio = 'F'; calculation = DIVIDE(COUNT(gender_bio = 'M' THEN bioguide_id), COUNT(gender_bio = 'F' THEN bioguide_id));
Question: What is the ratio of males and females among historical legislators?
SQL: SELECT cast(sum(CASE WHEN gender_bio = 'M' THEN 1 ELSE 0 END) AS REAL) / sum(CASE WHEN gender_bio = 'F' THEN 1 ELSE 0 END) FROM historical
Database: legislator
Note: the legislators who will end in 2009 refers to end 2009; from the Republican party refers to party = 'Republican';
Question: Among the legislators who will end in 2009, how many are from the Republican party?
SQL: SELECT `end`, party FROM `current-terms` WHERE strftime('%Y', `end`) = '2009' AND party = 'Republican'
Database: legislator
Note: genders refers to gender_bio; Collins is a last_name;
Question: List the official full names and genders of legislators who have Collins as their last name.
SQL: SELECT official_full_name, gender_bio FROM CURRENT WHERE last_name = 'Collins'
Database: legislator
Note: senator refers to type = 'sen'; class 1 refers to class = 1; calculation = MULTIPLY(DIVIDE(COUNT(class = 1 then bioguide), COUNT(bioguide)), 1.0);
Question: How many percent of senators were from class 1?
SQL: SELECT cast(sum(CASE WHEN CLASS = 1 THEN 1 ELSE 0 END) AS REAL) * 100 / count(*) FROM `historical-terms` WHERE TYPE = 'sen'
Database: legislator
Note: Independent party refers to party = 'Independent';
Question: Provide the current legislators' official full names who are from the Independent party.
SQL: SELECT CURRENT.official_full_name FROM CURRENT INNER JOIN `current-terms` ON CURRENT.bioguide_id = current-terms.bioguide WHERE current-terms.party = 'Independent' GROUP BY CURRENT.official_full_name
Database: legislator
Note: Jr. John Conyers is an official_full_name; years served refers to SUM(SUBTRACT(end, start));
Question: How many years had Jr. John Conyers served in total?
SQL: SELECT sum(cast(current-terms.end - current-terms.start AS DATE)) AS SUM FROM CURRENT INNER JOIN `current-terms` ON CURRENT.bioguide_id = current-terms.bioguide WHERE CURRENT.official_full_name = 'John Conyers, Jr.'
Database: legislator
Note: Jr. F. James Sensenbrenner is an official_full_name; How old refers to SUBTRACT(MIN(start), birthday_bio);
Question: How old was Jr. F. James Sensenbrenner when he first started as a legislator?
SQL: SELECT cast(min(current-terms.start) - CURRENT.birthday_bio AS DATE) AS age FROM CURRENT INNER JOIN `current-terms` ON CURRENT.bioguide_id = current-terms.bioguide WHERE CURRENT.official_full_name = 'F. James Sensenbrenner, Jr.'
Database: legislator
Note: full names refers to official_full_name; religion refers to religion_bio; Maine refers to state = "ME";
Question: List the full names, religions, and parties of legislators who have served in Maine.
SQL: SELECT CURRENT.official_full_name, current-terms.relation, current-terms.party FROM CURRENT INNER JOIN `current-terms` ON CURRENT.bioguide_id = current-terms.bioguide WHERE current-terms.state = 'ME' GROUP BY CURRENT.official_full_name, current-terms.relation, current-terms.party
Database: legislator
Note: have an instagram account refers to instagram is not null; full names refers to official_full_name; nicknames refers to nickname_name; thomas ID of less than 1000 refers to thomas_id < 1000;
Question: Among legislators who have an Instagram account, list down their full names and nicknames who have a Thomas ID of less than 1000.
SQL: SELECT CURRENT.official_full_name, CURRENT.nickname_name FROM CURRENT INNER JOIN `social-media` ON social-media.bioguide = CURRENT.bioguide_id WHERE social-media.instagram IS NOT NULL AND CURRENT.thomas_id < 1000
Database: legislator
Note: Matt Salmon is an official_full_name;
Question: When was the last serving date of Matt Salmon?
SQL: SELECT historical-terms.end FROM `historical-terms` INNER JOIN historical ON historical.bioguide_id = historical-terms.bioguide WHERE historical.official_full_name = 'Matt Salmon'
Database: legislator
Note: have served in the U.S. House refers to house_history_id IS NOT NULL; born in 1738 refers to birthday_bio = 1738;
Question: Among the legislators who have served in the U.S. House, provide the party and the state of the legislators who were born in 1738.
SQL: SELECT historical-terms.party, historical-terms.state FROM `historical-terms` INNER JOIN historical ON historical.bioguide_id = historical-terms.bioguide WHERE historical.house_history_id IS NOT NULL AND historical.birthday_bio LIKE '%1738%'
Database: legislator
Note: full_name refers to first_name, last_name; from the Liberal Republican party refers to party = 'Liberal Republican';
Question: List the IDs and full names of legislators from the Liberal Republican party.
SQL: SELECT historical.bioguide_id, historical.first_name, historical.last_name FROM `historical-terms` INNER JOIN historical ON historical.bioguide_id = historical-terms.bioguide WHERE historical-terms.party = 'Liberal Republican'
Database: legislator
Note: started a term on 2nd December 1793 refers to start = '1793-12-02'; male refers to gender_bio = 'M';
Question: Among the legislators who started a term on 2nd December 1793, how many of them were males?
SQL: SELECT count(historical.bioguide_id) FROM historical INNER JOIN `historical-terms` ON historical.bioguide_id = historical-terms.bioguide WHERE historical.gender_bio = 'M' AND historical-terms.start = '1793-12-02'
Database: legislator
Note: started the term in 1875 refers to start LIKE '1875%'; started the term in 2005 refers to start LIKE '2005%';
Question: Compare the number of legislators who started the term in 1875 and 2005.
SQL: SELECT sum(CASE WHEN `current-terms`.start LIKE '2005%' THEN 1 ELSE 0 END) - ( SELECT sum(CASE WHEN START LIKE '1875%' THEN 1 ELSE 0 END) FROM `historical-terms` ) FROM `current-terms`
Database: legislator
Note: full names refers to official_full_name; Richard as their first name refers to first_name = 'Richard';
Question: List the full names, Twitter IDs, and YouTube IDs of legislators who have Richard as their first name.
SQL: SELECT CURRENT.official_full_name, social-media.twitter_id, social-media.youtube_id FROM `social-media` INNER JOIN CURRENT ON social-media.bioguide = CURRENT.bioguide_id WHERE CURRENT.first_name = 'Richard'
Database: legislator
Note: start date refers to start; end date refers to end date; Pearl Peden Oldfield refers to official_full_name; official_full_name refers to first_name, middle_name, last_name;
Question: Provide the start date, end date, and party of Pearl Peden Oldfield.
SQL: SELECT historical-terms.start, historical-terms.`end`, historical-terms.party FROM historical INNER JOIN `historical-terms` ON historical.bioguide_id = historical-terms.bioguide WHERE historical.first_name = 'Pearl' AND historical.middle_name = 'Peden' AND historical.last_name = 'Oldfield'
Database: legislator
Note: birthday refers to birthday_bio; Amy Klobuchar refers to full name; full name refers to first_name, last_name;
Question: What is the birthday of Amy Klobuchar?
SQL: SELECT birthday_bio FROM CURRENT WHERE first_name = 'Amy' AND last_name = 'Klobuchar'
Database: legislator
Note: have not been registered in Federal Election Commission data refers to fec_id is null OR fec_id = '';
Question: How many legislators have not been registered in Federal Election Commission data?
SQL: SELECT count(*) FROM CURRENT WHERE fec_id IS NULL OR fec_id = ''
Database: legislator
Note: female refers to gender_bio = 'F';
Question: State the number of female legislators in the list.
SQL: SELECT count(*) FROM CURRENT WHERE gender_bio = 'F'