1sf/bird-sql-train-with-schema huggingface dataset:
Database: legislator
Tables: current, current-terms, historical, historical-terms, social-media
Columns (table index, column name): -1, *, 0, ballotpedia_id, 0, bioguide_id, 0, birthday_bio, 0, cspan_id, 0, fec_id, 0, first_name, 0, gender_bio, 0, google_entity_id_id, 0, govtrack_id, 0, house_history_id, 0, icpsr_id, 0, last_name, 0, lis_id, 0, maplight_id, 0, middle_name, 0, nickname_name, 0, official_full_name, 0, opensecrets_id, 0, religion_bio, 0, suffix_name, 0, thomas_id, 0, votesmart_id, 0, wikidata_id, 0, wikipedia_id, 1, address, 1, bioguide, 1, caucus, 1, chamber, 1, class, 1, contact_form, 1, district, 1, end, 1, fax, 1, last, 1, name, 1, office, 1, party, 1, party_affiliations, 1, phone, 1, relation, 1, rss_url, 1, start, 1, state, 1, state_rank, 1, title, 1, type, 1, url, 2, ballotpedia_id, 2, bioguide_id, 2, bioguide_previous_id, 2, birthday_bio, 2, cspan_id, 2, fec_id, 2, first_name, 2, gender_bio, 2, google_entity_id_id, 2, govtrack_id, 2, house_history_alternate_id, 2, house_history_id, 2, icpsr_id, 2, last_name, 2, lis_id, 2, maplight_id, 2, middle_name, 2, nickname_name, 2, official_full_name, 2, opensecrets_id, 2, religion_bio, 2, suffix_name, 2, thomas_id, 2, votesmart_id, 2, wikidata_id, 2, wikipedia_id, 3, address, 3, bioguide, 3, chamber, 3, class, 3, contact_form, 3, district, 3, end, 3, fax, 3, last, 3, middle, 3, name, 3, office, 3, party, 3, party_affiliations, 3, phone, 3, relation, 3, rss_url, 3, start, 3, state, 3, state_rank, 3, title, 3, type, 3, url, 4, bioguide, 4, facebook, 4, facebook_id, 4, govtrack, 4, instagram, 4, instagram_id, 4, thomas, 4, twitter, 4, twitter_id, 4, youtube, 4, youtube_id
Question: Current legislator Roger F. Wicker has not been a representative for how many terms?
Evidence: Roger F. Wicker is an official_full_name; not a representative refers to district IS NULL OR district = ''
SQL: SELECT SUM(CASE WHEN T1.official_full_name = 'Roger F. Wicker' THEN 1 ELSE 0 END) AS count FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T2.district IS NULL OR T2.district = ''
Database: legislator
Tables: current, current-terms, historical, historical-terms, social-media
Columns (table index, column name): -1, *, 0, ballotpedia_id, 0, bioguide_id, 0, birthday_bio, 0, cspan_id, 0, fec_id, 0, first_name, 0, gender_bio, 0, google_entity_id_id, 0, govtrack_id, 0, house_history_id, 0, icpsr_id, 0, last_name, 0, lis_id, 0, maplight_id, 0, middle_name, 0, nickname_name, 0, official_full_name, 0, opensecrets_id, 0, religion_bio, 0, suffix_name, 0, thomas_id, 0, votesmart_id, 0, wikidata_id, 0, wikipedia_id, 1, address, 1, bioguide, 1, caucus, 1, chamber, 1, class, 1, contact_form, 1, district, 1, end, 1, fax, 1, last, 1, name, 1, office, 1, party, 1, party_affiliations, 1, phone, 1, relation, 1, rss_url, 1, start, 1, state, 1, state_rank, 1, title, 1, type, 1, url, 2, ballotpedia_id, 2, bioguide_id, 2, bioguide_previous_id, 2, birthday_bio, 2, cspan_id, 2, fec_id, 2, first_name, 2, gender_bio, 2, google_entity_id_id, 2, govtrack_id, 2, house_history_alternate_id, 2, house_history_id, 2, icpsr_id, 2, last_name, 2, lis_id, 2, maplight_id, 2, middle_name, 2, nickname_name, 2, official_full_name, 2, opensecrets_id, 2, religion_bio, 2, suffix_name, 2, thomas_id, 2, votesmart_id, 2, wikidata_id, 2, wikipedia_id, 3, address, 3, bioguide, 3, chamber, 3, class, 3, contact_form, 3, district, 3, end, 3, fax, 3, last, 3, middle, 3, name, 3, office, 3, party, 3, party_affiliations, 3, phone, 3, relation, 3, rss_url, 3, start, 3, state, 3, state_rank, 3, title, 3, type, 3, url, 4, bioguide, 4, facebook, 4, facebook_id, 4, govtrack, 4, instagram, 4, instagram_id, 4, thomas, 4, twitter, 4, twitter_id, 4, youtube, 4, youtube_id
Question: For how many terms has current legislator Sherrod Brown served?
Evidence: Sherrod Brown is an official_full_name
SQL: SELECT COUNT(*) FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.official_full_name = 'Sherrod Brown'
Database: legislator
Tables: current, current-terms, historical, historical-terms, social-media
Columns (table index, column name): -1, *, 0, ballotpedia_id, 0, bioguide_id, 0, birthday_bio, 0, cspan_id, 0, fec_id, 0, first_name, 0, gender_bio, 0, google_entity_id_id, 0, govtrack_id, 0, house_history_id, 0, icpsr_id, 0, last_name, 0, lis_id, 0, maplight_id, 0, middle_name, 0, nickname_name, 0, official_full_name, 0, opensecrets_id, 0, religion_bio, 0, suffix_name, 0, thomas_id, 0, votesmart_id, 0, wikidata_id, 0, wikipedia_id, 1, address, 1, bioguide, 1, caucus, 1, chamber, 1, class, 1, contact_form, 1, district, 1, end, 1, fax, 1, last, 1, name, 1, office, 1, party, 1, party_affiliations, 1, phone, 1, relation, 1, rss_url, 1, start, 1, state, 1, state_rank, 1, title, 1, type, 1, url, 2, ballotpedia_id, 2, bioguide_id, 2, bioguide_previous_id, 2, birthday_bio, 2, cspan_id, 2, fec_id, 2, first_name, 2, gender_bio, 2, google_entity_id_id, 2, govtrack_id, 2, house_history_alternate_id, 2, house_history_id, 2, icpsr_id, 2, last_name, 2, lis_id, 2, maplight_id, 2, middle_name, 2, nickname_name, 2, official_full_name, 2, opensecrets_id, 2, religion_bio, 2, suffix_name, 2, thomas_id, 2, votesmart_id, 2, wikidata_id, 2, wikipedia_id, 3, address, 3, bioguide, 3, chamber, 3, class, 3, contact_form, 3, district, 3, end, 3, fax, 3, last, 3, middle, 3, name, 3, office, 3, party, 3, party_affiliations, 3, phone, 3, relation, 3, rss_url, 3, start, 3, state, 3, state_rank, 3, title, 3, type, 3, url, 4, bioguide, 4, facebook, 4, facebook_id, 4, govtrack, 4, instagram, 4, instagram_id, 4, thomas, 4, twitter, 4, twitter_id, 4, youtube, 4, youtube_id
Question: List the IDs and full names of legislators from the Liberal Republican party.
Evidence: full_name refers to first_name, last_name; from the Liberal Republican party refers to party = 'Liberal Republican'
SQL: SELECT T2.bioguide_id, T2.first_name, T2.last_name FROM `historical-terms` AS T1 INNER JOIN historical AS T2 ON T2.bioguide_id = T1.bioguide WHERE T1.party = 'Liberal Republican'
Database: legislator
Tables: current, current-terms, historical, historical-terms, social-media
Columns (table index, column name): -1, *, 0, ballotpedia_id, 0, bioguide_id, 0, birthday_bio, 0, cspan_id, 0, fec_id, 0, first_name, 0, gender_bio, 0, google_entity_id_id, 0, govtrack_id, 0, house_history_id, 0, icpsr_id, 0, last_name, 0, lis_id, 0, maplight_id, 0, middle_name, 0, nickname_name, 0, official_full_name, 0, opensecrets_id, 0, religion_bio, 0, suffix_name, 0, thomas_id, 0, votesmart_id, 0, wikidata_id, 0, wikipedia_id, 1, address, 1, bioguide, 1, caucus, 1, chamber, 1, class, 1, contact_form, 1, district, 1, end, 1, fax, 1, last, 1, name, 1, office, 1, party, 1, party_affiliations, 1, phone, 1, relation, 1, rss_url, 1, start, 1, state, 1, state_rank, 1, title, 1, type, 1, url, 2, ballotpedia_id, 2, bioguide_id, 2, bioguide_previous_id, 2, birthday_bio, 2, cspan_id, 2, fec_id, 2, first_name, 2, gender_bio, 2, google_entity_id_id, 2, govtrack_id, 2, house_history_alternate_id, 2, house_history_id, 2, icpsr_id, 2, last_name, 2, lis_id, 2, maplight_id, 2, middle_name, 2, nickname_name, 2, official_full_name, 2, opensecrets_id, 2, religion_bio, 2, suffix_name, 2, thomas_id, 2, votesmart_id, 2, wikidata_id, 2, wikipedia_id, 3, address, 3, bioguide, 3, chamber, 3, class, 3, contact_form, 3, district, 3, end, 3, fax, 3, last, 3, middle, 3, name, 3, office, 3, party, 3, party_affiliations, 3, phone, 3, relation, 3, rss_url, 3, start, 3, state, 3, state_rank, 3, title, 3, type, 3, url, 4, bioguide, 4, facebook, 4, facebook_id, 4, govtrack, 4, instagram, 4, instagram_id, 4, thomas, 4, twitter, 4, twitter_id, 4, youtube, 4, youtube_id
Question: Among the legislators who started a term on 2nd December 1793, how many of them were males?
Evidence: started a term on 2nd December 1793 refers to start = '1793-12-02'; male refers to gender_bio = 'M'
SQL: SELECT COUNT(T1.bioguide_id) FROM historical AS T1 INNER JOIN `historical-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.gender_bio = 'M' AND T2.start = '1793-12-02'
Database: legislator
Tables: current, current-terms, historical, historical-terms, social-media
Columns (table index, column name): -1, *, 0, ballotpedia_id, 0, bioguide_id, 0, birthday_bio, 0, cspan_id, 0, fec_id, 0, first_name, 0, gender_bio, 0, google_entity_id_id, 0, govtrack_id, 0, house_history_id, 0, icpsr_id, 0, last_name, 0, lis_id, 0, maplight_id, 0, middle_name, 0, nickname_name, 0, official_full_name, 0, opensecrets_id, 0, religion_bio, 0, suffix_name, 0, thomas_id, 0, votesmart_id, 0, wikidata_id, 0, wikipedia_id, 1, address, 1, bioguide, 1, caucus, 1, chamber, 1, class, 1, contact_form, 1, district, 1, end, 1, fax, 1, last, 1, name, 1, office, 1, party, 1, party_affiliations, 1, phone, 1, relation, 1, rss_url, 1, start, 1, state, 1, state_rank, 1, title, 1, type, 1, url, 2, ballotpedia_id, 2, bioguide_id, 2, bioguide_previous_id, 2, birthday_bio, 2, cspan_id, 2, fec_id, 2, first_name, 2, gender_bio, 2, google_entity_id_id, 2, govtrack_id, 2, house_history_alternate_id, 2, house_history_id, 2, icpsr_id, 2, last_name, 2, lis_id, 2, maplight_id, 2, middle_name, 2, nickname_name, 2, official_full_name, 2, opensecrets_id, 2, religion_bio, 2, suffix_name, 2, thomas_id, 2, votesmart_id, 2, wikidata_id, 2, wikipedia_id, 3, address, 3, bioguide, 3, chamber, 3, class, 3, contact_form, 3, district, 3, end, 3, fax, 3, last, 3, middle, 3, name, 3, office, 3, party, 3, party_affiliations, 3, phone, 3, relation, 3, rss_url, 3, start, 3, state, 3, state_rank, 3, title, 3, type, 3, url, 4, bioguide, 4, facebook, 4, facebook_id, 4, govtrack, 4, instagram, 4, instagram_id, 4, thomas, 4, twitter, 4, twitter_id, 4, youtube, 4, youtube_id
Question: Compare the number of legislators who started the term in 1875 and 2005.
Evidence: started the term in 1875 refers to start LIKE '1875%'; started the term in 2005 refers to start LIKE '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
Tables: current, current-terms, historical, historical-terms, social-media
Columns (table index, column name): -1, *, 0, ballotpedia_id, 0, bioguide_id, 0, birthday_bio, 0, cspan_id, 0, fec_id, 0, first_name, 0, gender_bio, 0, google_entity_id_id, 0, govtrack_id, 0, house_history_id, 0, icpsr_id, 0, last_name, 0, lis_id, 0, maplight_id, 0, middle_name, 0, nickname_name, 0, official_full_name, 0, opensecrets_id, 0, religion_bio, 0, suffix_name, 0, thomas_id, 0, votesmart_id, 0, wikidata_id, 0, wikipedia_id, 1, address, 1, bioguide, 1, caucus, 1, chamber, 1, class, 1, contact_form, 1, district, 1, end, 1, fax, 1, last, 1, name, 1, office, 1, party, 1, party_affiliations, 1, phone, 1, relation, 1, rss_url, 1, start, 1, state, 1, state_rank, 1, title, 1, type, 1, url, 2, ballotpedia_id, 2, bioguide_id, 2, bioguide_previous_id, 2, birthday_bio, 2, cspan_id, 2, fec_id, 2, first_name, 2, gender_bio, 2, google_entity_id_id, 2, govtrack_id, 2, house_history_alternate_id, 2, house_history_id, 2, icpsr_id, 2, last_name, 2, lis_id, 2, maplight_id, 2, middle_name, 2, nickname_name, 2, official_full_name, 2, opensecrets_id, 2, religion_bio, 2, suffix_name, 2, thomas_id, 2, votesmart_id, 2, wikidata_id, 2, wikipedia_id, 3, address, 3, bioguide, 3, chamber, 3, class, 3, contact_form, 3, district, 3, end, 3, fax, 3, last, 3, middle, 3, name, 3, office, 3, party, 3, party_affiliations, 3, phone, 3, relation, 3, rss_url, 3, start, 3, state, 3, state_rank, 3, title, 3, type, 3, url, 4, bioguide, 4, facebook, 4, facebook_id, 4, govtrack, 4, instagram, 4, instagram_id, 4, thomas, 4, twitter, 4, twitter_id, 4, youtube, 4, youtube_id
Question: List the full names, Twitter IDs, and YouTube IDs of legislators who have Richard as their first name.
Evidence: full names refers to official_full_name; Richard as their first name refers to first_name = 'Richard'
SQL: SELECT T2.official_full_name, T1.twitter_id, T1.youtube_id FROM `social-media` AS T1 INNER JOIN current AS T2 ON T1.bioguide = T2.bioguide_id WHERE T2.first_name = 'Richard'
Database: legislator
Tables: current, current-terms, historical, historical-terms, social-media
Columns (table index, column name): -1, *, 0, ballotpedia_id, 0, bioguide_id, 0, birthday_bio, 0, cspan_id, 0, fec_id, 0, first_name, 0, gender_bio, 0, google_entity_id_id, 0, govtrack_id, 0, house_history_id, 0, icpsr_id, 0, last_name, 0, lis_id, 0, maplight_id, 0, middle_name, 0, nickname_name, 0, official_full_name, 0, opensecrets_id, 0, religion_bio, 0, suffix_name, 0, thomas_id, 0, votesmart_id, 0, wikidata_id, 0, wikipedia_id, 1, address, 1, bioguide, 1, caucus, 1, chamber, 1, class, 1, contact_form, 1, district, 1, end, 1, fax, 1, last, 1, name, 1, office, 1, party, 1, party_affiliations, 1, phone, 1, relation, 1, rss_url, 1, start, 1, state, 1, state_rank, 1, title, 1, type, 1, url, 2, ballotpedia_id, 2, bioguide_id, 2, bioguide_previous_id, 2, birthday_bio, 2, cspan_id, 2, fec_id, 2, first_name, 2, gender_bio, 2, google_entity_id_id, 2, govtrack_id, 2, house_history_alternate_id, 2, house_history_id, 2, icpsr_id, 2, last_name, 2, lis_id, 2, maplight_id, 2, middle_name, 2, nickname_name, 2, official_full_name, 2, opensecrets_id, 2, religion_bio, 2, suffix_name, 2, thomas_id, 2, votesmart_id, 2, wikidata_id, 2, wikipedia_id, 3, address, 3, bioguide, 3, chamber, 3, class, 3, contact_form, 3, district, 3, end, 3, fax, 3, last, 3, middle, 3, name, 3, office, 3, party, 3, party_affiliations, 3, phone, 3, relation, 3, rss_url, 3, start, 3, state, 3, state_rank, 3, title, 3, type, 3, url, 4, bioguide, 4, facebook, 4, facebook_id, 4, govtrack, 4, instagram, 4, instagram_id, 4, thomas, 4, twitter, 4, twitter_id, 4, youtube, 4, youtube_id
Question: Provide the start date, end date, and party of Pearl Peden Oldfield.
Evidence: 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
SQL: SELECT T2.start, T2.`end`, T2.party FROM historical AS T1 INNER JOIN `historical-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.first_name = 'Pearl' AND T1.middle_name = 'Peden' AND T1.last_name = 'Oldfield'
Database: legislator
Tables: current, current-terms, historical, historical-terms, social-media
Columns (table index, column name): -1, *, 0, ballotpedia_id, 0, bioguide_id, 0, birthday_bio, 0, cspan_id, 0, fec_id, 0, first_name, 0, gender_bio, 0, google_entity_id_id, 0, govtrack_id, 0, house_history_id, 0, icpsr_id, 0, last_name, 0, lis_id, 0, maplight_id, 0, middle_name, 0, nickname_name, 0, official_full_name, 0, opensecrets_id, 0, religion_bio, 0, suffix_name, 0, thomas_id, 0, votesmart_id, 0, wikidata_id, 0, wikipedia_id, 1, address, 1, bioguide, 1, caucus, 1, chamber, 1, class, 1, contact_form, 1, district, 1, end, 1, fax, 1, last, 1, name, 1, office, 1, party, 1, party_affiliations, 1, phone, 1, relation, 1, rss_url, 1, start, 1, state, 1, state_rank, 1, title, 1, type, 1, url, 2, ballotpedia_id, 2, bioguide_id, 2, bioguide_previous_id, 2, birthday_bio, 2, cspan_id, 2, fec_id, 2, first_name, 2, gender_bio, 2, google_entity_id_id, 2, govtrack_id, 2, house_history_alternate_id, 2, house_history_id, 2, icpsr_id, 2, last_name, 2, lis_id, 2, maplight_id, 2, middle_name, 2, nickname_name, 2, official_full_name, 2, opensecrets_id, 2, religion_bio, 2, suffix_name, 2, thomas_id, 2, votesmart_id, 2, wikidata_id, 2, wikipedia_id, 3, address, 3, bioguide, 3, chamber, 3, class, 3, contact_form, 3, district, 3, end, 3, fax, 3, last, 3, middle, 3, name, 3, office, 3, party, 3, party_affiliations, 3, phone, 3, relation, 3, rss_url, 3, start, 3, state, 3, state_rank, 3, title, 3, type, 3, url, 4, bioguide, 4, facebook, 4, facebook_id, 4, govtrack, 4, instagram, 4, instagram_id, 4, thomas, 4, twitter, 4, twitter_id, 4, youtube, 4, youtube_id
Question: What is the birthday of Amy Klobuchar?
Evidence: birthday refers to birthday_bio; Amy Klobuchar refers to full name; full name refers to first_name, last_name
SQL: SELECT birthday_bio FROM current WHERE first_name = 'Amy' AND last_name = 'Klobuchar'
Database: legislator
Tables: current, current-terms, historical, historical-terms, social-media
Columns (table index, column name): -1, *, 0, ballotpedia_id, 0, bioguide_id, 0, birthday_bio, 0, cspan_id, 0, fec_id, 0, first_name, 0, gender_bio, 0, google_entity_id_id, 0, govtrack_id, 0, house_history_id, 0, icpsr_id, 0, last_name, 0, lis_id, 0, maplight_id, 0, middle_name, 0, nickname_name, 0, official_full_name, 0, opensecrets_id, 0, religion_bio, 0, suffix_name, 0, thomas_id, 0, votesmart_id, 0, wikidata_id, 0, wikipedia_id, 1, address, 1, bioguide, 1, caucus, 1, chamber, 1, class, 1, contact_form, 1, district, 1, end, 1, fax, 1, last, 1, name, 1, office, 1, party, 1, party_affiliations, 1, phone, 1, relation, 1, rss_url, 1, start, 1, state, 1, state_rank, 1, title, 1, type, 1, url, 2, ballotpedia_id, 2, bioguide_id, 2, bioguide_previous_id, 2, birthday_bio, 2, cspan_id, 2, fec_id, 2, first_name, 2, gender_bio, 2, google_entity_id_id, 2, govtrack_id, 2, house_history_alternate_id, 2, house_history_id, 2, icpsr_id, 2, last_name, 2, lis_id, 2, maplight_id, 2, middle_name, 2, nickname_name, 2, official_full_name, 2, opensecrets_id, 2, religion_bio, 2, suffix_name, 2, thomas_id, 2, votesmart_id, 2, wikidata_id, 2, wikipedia_id, 3, address, 3, bioguide, 3, chamber, 3, class, 3, contact_form, 3, district, 3, end, 3, fax, 3, last, 3, middle, 3, name, 3, office, 3, party, 3, party_affiliations, 3, phone, 3, relation, 3, rss_url, 3, start, 3, state, 3, state_rank, 3, title, 3, type, 3, url, 4, bioguide, 4, facebook, 4, facebook_id, 4, govtrack, 4, instagram, 4, instagram_id, 4, thomas, 4, twitter, 4, twitter_id, 4, youtube, 4, youtube_id
Question: How many legislators have not been registered in Federal Election Commission data?
Evidence: have not been registered in Federal Election Commission data refers to fec_id is null OR fec_id = ''
SQL: SELECT COUNT(*) FROM current WHERE fec_id IS NULL OR fec_id = ''
Database: legislator
Tables: current, current-terms, historical, historical-terms, social-media
Columns (table index, column name): -1, *, 0, ballotpedia_id, 0, bioguide_id, 0, birthday_bio, 0, cspan_id, 0, fec_id, 0, first_name, 0, gender_bio, 0, google_entity_id_id, 0, govtrack_id, 0, house_history_id, 0, icpsr_id, 0, last_name, 0, lis_id, 0, maplight_id, 0, middle_name, 0, nickname_name, 0, official_full_name, 0, opensecrets_id, 0, religion_bio, 0, suffix_name, 0, thomas_id, 0, votesmart_id, 0, wikidata_id, 0, wikipedia_id, 1, address, 1, bioguide, 1, caucus, 1, chamber, 1, class, 1, contact_form, 1, district, 1, end, 1, fax, 1, last, 1, name, 1, office, 1, party, 1, party_affiliations, 1, phone, 1, relation, 1, rss_url, 1, start, 1, state, 1, state_rank, 1, title, 1, type, 1, url, 2, ballotpedia_id, 2, bioguide_id, 2, bioguide_previous_id, 2, birthday_bio, 2, cspan_id, 2, fec_id, 2, first_name, 2, gender_bio, 2, google_entity_id_id, 2, govtrack_id, 2, house_history_alternate_id, 2, house_history_id, 2, icpsr_id, 2, last_name, 2, lis_id, 2, maplight_id, 2, middle_name, 2, nickname_name, 2, official_full_name, 2, opensecrets_id, 2, religion_bio, 2, suffix_name, 2, thomas_id, 2, votesmart_id, 2, wikidata_id, 2, wikipedia_id, 3, address, 3, bioguide, 3, chamber, 3, class, 3, contact_form, 3, district, 3, end, 3, fax, 3, last, 3, middle, 3, name, 3, office, 3, party, 3, party_affiliations, 3, phone, 3, relation, 3, rss_url, 3, start, 3, state, 3, state_rank, 3, title, 3, type, 3, url, 4, bioguide, 4, facebook, 4, facebook_id, 4, govtrack, 4, instagram, 4, instagram_id, 4, thomas, 4, twitter, 4, twitter_id, 4, youtube, 4, youtube_id
Question: State the number of female legislators in the list.
Evidence: female refers to gender_bio = 'F'
SQL: SELECT COUNT(*) FROM current WHERE gender_bio = 'F'
Database: legislator
Tables: current, current-terms, historical, historical-terms, social-media
Columns (table index, column name): -1, *, 0, ballotpedia_id, 0, bioguide_id, 0, birthday_bio, 0, cspan_id, 0, fec_id, 0, first_name, 0, gender_bio, 0, google_entity_id_id, 0, govtrack_id, 0, house_history_id, 0, icpsr_id, 0, last_name, 0, lis_id, 0, maplight_id, 0, middle_name, 0, nickname_name, 0, official_full_name, 0, opensecrets_id, 0, religion_bio, 0, suffix_name, 0, thomas_id, 0, votesmart_id, 0, wikidata_id, 0, wikipedia_id, 1, address, 1, bioguide, 1, caucus, 1, chamber, 1, class, 1, contact_form, 1, district, 1, end, 1, fax, 1, last, 1, name, 1, office, 1, party, 1, party_affiliations, 1, phone, 1, relation, 1, rss_url, 1, start, 1, state, 1, state_rank, 1, title, 1, type, 1, url, 2, ballotpedia_id, 2, bioguide_id, 2, bioguide_previous_id, 2, birthday_bio, 2, cspan_id, 2, fec_id, 2, first_name, 2, gender_bio, 2, google_entity_id_id, 2, govtrack_id, 2, house_history_alternate_id, 2, house_history_id, 2, icpsr_id, 2, last_name, 2, lis_id, 2, maplight_id, 2, middle_name, 2, nickname_name, 2, official_full_name, 2, opensecrets_id, 2, religion_bio, 2, suffix_name, 2, thomas_id, 2, votesmart_id, 2, wikidata_id, 2, wikipedia_id, 3, address, 3, bioguide, 3, chamber, 3, class, 3, contact_form, 3, district, 3, end, 3, fax, 3, last, 3, middle, 3, name, 3, office, 3, party, 3, party_affiliations, 3, phone, 3, relation, 3, rss_url, 3, start, 3, state, 3, state_rank, 3, title, 3, type, 3, url, 4, bioguide, 4, facebook, 4, facebook_id, 4, govtrack, 4, instagram, 4, instagram_id, 4, thomas, 4, twitter, 4, twitter_id, 4, youtube, 4, youtube_id
Question: Give the full name of legislators who have accounts on OpenSecrets.org.
Evidence: full name refers to first_name, last_name; have accounts on OpenSecrets.org refers to opensecrets_id IS NOT NULL AND opensecrets_id <> ''
SQL: SELECT COUNT(*) FROM current WHERE opensecrets_id IS NOT NULL AND opensecrets_id <> ''
Database: legislator
Tables: current, current-terms, historical, historical-terms, social-media
Columns (table index, column name): -1, *, 0, ballotpedia_id, 0, bioguide_id, 0, birthday_bio, 0, cspan_id, 0, fec_id, 0, first_name, 0, gender_bio, 0, google_entity_id_id, 0, govtrack_id, 0, house_history_id, 0, icpsr_id, 0, last_name, 0, lis_id, 0, maplight_id, 0, middle_name, 0, nickname_name, 0, official_full_name, 0, opensecrets_id, 0, religion_bio, 0, suffix_name, 0, thomas_id, 0, votesmart_id, 0, wikidata_id, 0, wikipedia_id, 1, address, 1, bioguide, 1, caucus, 1, chamber, 1, class, 1, contact_form, 1, district, 1, end, 1, fax, 1, last, 1, name, 1, office, 1, party, 1, party_affiliations, 1, phone, 1, relation, 1, rss_url, 1, start, 1, state, 1, state_rank, 1, title, 1, type, 1, url, 2, ballotpedia_id, 2, bioguide_id, 2, bioguide_previous_id, 2, birthday_bio, 2, cspan_id, 2, fec_id, 2, first_name, 2, gender_bio, 2, google_entity_id_id, 2, govtrack_id, 2, house_history_alternate_id, 2, house_history_id, 2, icpsr_id, 2, last_name, 2, lis_id, 2, maplight_id, 2, middle_name, 2, nickname_name, 2, official_full_name, 2, opensecrets_id, 2, religion_bio, 2, suffix_name, 2, thomas_id, 2, votesmart_id, 2, wikidata_id, 2, wikipedia_id, 3, address, 3, bioguide, 3, chamber, 3, class, 3, contact_form, 3, district, 3, end, 3, fax, 3, last, 3, middle, 3, name, 3, office, 3, party, 3, party_affiliations, 3, phone, 3, relation, 3, rss_url, 3, start, 3, state, 3, state_rank, 3, title, 3, type, 3, url, 4, bioguide, 4, facebook, 4, facebook_id, 4, govtrack, 4, instagram, 4, instagram_id, 4, thomas, 4, twitter, 4, twitter_id, 4, youtube, 4, youtube_id
Question: What is the middle name of the legislator whose birthday was on 8/24/1956?
Evidence: birthday was on 8/24/1956 refers to birthday_bio = '1956-08-24'
SQL: SELECT middle_name FROM current WHERE birthday_bio = '1956-08-24'