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: How many legislators hold the title "Majority Leader"?
SQL: SELECT COUNT(bioguide) FROM `current-terms` WHERE title = 'Majority Leader'
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 title of legislator whose birthday on 2/20/1942?
Evidence: birthday on 2/20/1942 refers to birthday_bio = '1942-02-20'
SQL: SELECT T2.title FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.birthday_bio = '1942-02-20' GROUP BY T2.title
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 gender of the legislator whose address at 317 Russell Senate Office Building Washington DC 20510?
Evidence: gender refers to gender_bio
SQL: SELECT T1.gender_bio FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T2.address = '317 Russell Senate Office Building Washington DC 20510'
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 out the first name of legislators who are senior Senator.
Evidence: senior refers to state_rank = 'senior'; only senator has this value 'senior'
SQL: SELECT T1.first_name FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T2.state_rank = 'senior' GROUP BY T1.first_name
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 male legislators, state number of the legislators who are not the senator.
Evidence: male refers to gender_bio = M; not the senator refers to class IS NULL OR class = ''
SQL: SELECT COUNT(T3.state) FROM ( SELECT T2.state FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.gender_bio = 'M' AND (T2.class IS NULL OR T2.class = '') GROUP BY T2.state ) T3
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: Calculate the percentage of legislators who are Senator and were born in 1964.
Evidence: are senator refers to class IS NOT NULL; born in 1964 refers to birthday_bio = 1964; calculation = MULTIPLY(DIVIDE(COUNT(class IS NOT NULL THEN bioguide_id), COUNT(bioguide_id)), 1.0)
SQL: SELECT CAST(SUM(CASE WHEN T2.class IS NOT NULL THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.birthday_bio LIKE '%1964%'
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: Calculate the percentage of legislators who are not Senator and were born before 1975.
Evidence: not Senator refers to class is NULL; born before 1975 refers to birthday_bio < = 1975; calculation = MULTIPLY(DIVIDE(COUNT(class IS NULL THEN bioguide_id), COUNT(bioguide_id)), 1.0)
SQL: SELECT CAST(COUNT(CASE WHEN T2.class IS NULL THEN T1.bioguide_id ELSE NULL END) AS REAL) * 100 / COUNT(T1.bioguide_id) FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE CAST(T1.birthday_bio AS DATE) <= 1975
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 twitter name of the legislator whose birthday was on 5/27/1946?
Evidence: birthday on 5/27/1946 refers to birthday_bio = '1946-05-27'
SQL: SELECT T2.twitter FROM current AS T1 INNER JOIN `social-media` AS T2 ON T2.bioguide = T1.bioguide_id WHERE T1.birthday_bio = '1946-05-27'
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 opensecrets_id of the legislator whose YouTube name is Bluetkemeyer.
Evidence: Bluetkemeyer refers to youtube
SQL: SELECT T1.opensecrets_id FROM current AS T1 INNER JOIN `social-media` AS T2 ON T2.bioguide = T1.bioguide_id WHERE T2.youtube = 'BLuetkemeyer'
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: Mention the username of Facebook of Ralph Abraham.
Evidence: username of Facebook refers to facebook; Ralph Abraham is an official_full_name; official_full_name refers to first_name, last_name
SQL: SELECT T2.facebook FROM current AS T1 INNER JOIN `social-media` AS T2 ON T2.bioguide = T1.bioguide_id WHERE T1.first_name = 'Ralph' AND T1.last_name = 'Abraham'
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 first name of the legislator whose address at 1005 Longworth HOB; Washington DC 20515-1408?
SQL: SELECT T1.first_name FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T2.address = '1005 Longworth HOB Washington DC 20515-1408' GROUP BY T1.first_name
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 Instagram name of the legislator whose birthday was on 8/24/1952?
Evidence: Instagram name refers to instagram; birthday on 8/24/1952 refers to birthday_bio = '1952-08-24'
SQL: SELECT T1.instagram FROM `social-media` AS T1 INNER JOIN current AS T2 ON T1.bioguide = T2.bioguide_id WHERE T2.birthday_bio = '1952-08-24'