query
stringlengths 24
325
| positive
stringlengths 1
580
| negative_1
stringlengths 6
580
| negative_2
stringlengths 1
576
| negative_3
stringlengths 1
576
| negative_4
stringlengths 1
580
| negative_5
stringlengths 1
580
| negative_6
stringlengths 1
580
| negative_7
stringlengths 5
576
| negative_8
stringlengths 1
576
| negative_9
stringlengths 1
580
| negative_10
stringlengths 1
580
|
---|---|---|---|---|---|---|---|---|---|---|---|
List the full name of all past legislators that chose Pro-Administration as their political party in year 1791. | 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 | served for the most number of terms refers to MAX(COUNT(bioguide)); | once a senator during term refers to state_rank IS NOT NULL | full names refers to official_full_name; Richard as their first name refers to first_name = 'Richard' | Facebook, Twitter and YouTube usernames refers to facebook, twitter, youtube; Adam Kinzinger is an official_full_name | Chris Van Hollen is an official_full_name; numeric ID on GovTrack.us refers to govtrack | representatives refers to type = 'rep'; in 1789 refers to start like '1789%'; | Independent party refers to party = 'Independent' | do not have accounts on OpenSecrets.org refers to opensecrets_ID is NULL OR opensecrets_id = ''; do not have instagram accounts refers to instagram is null | Sherrod Brown is an full official name; started on 1993/1/5 refers to start = '1993-01-05'; | contact URL refers to contact_form; Claire McCaskill is an official_full_name |
Among all the current legislators who have served for more than 4 terms, what is the percentage of them being female? | have served for more than 4 years refers to count(bioguide) > 4; percentage = MULTIPLY(DIVIDE(SUM(gender_bio = 'F'), count(bioguide)), 100.0); female refers to gender_bio = 'F' | average = DIVIDE(COUNT(bioguide), COUNT(bioguide_id)); legislator that's famous or impact refers to wikipedia_id is not null; | served for more than 6 terms refers to COUNT(bioguide > 6); born after 1960 refers to birthday_bio > = '1960-01-01' | Jr. John Conyers is an official_full_name; years served refers to SUM(SUBTRACT(END, start)) | representatives refers to type = 'rep'; in 1789 refers to start like '1789%'; | female refers to gender_bio = 'F'; | 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; | female refers to gender_bio = 'F'; have attended in Senate roll call votes refers to lis_id is not null; | full names refers to official_full_name; Richard as their first name refers to first_name = 'Richard' | full name = first_name, last_name; oldest legislator refers to MIN(birthday_bio); | Washington, DC office phone number refers to phone; terms starting on 2013/1/3 refers to start = '2013-01-03'; |
What is the ratio between male and female legislators? | ratio = DIVIDE(SUM(gender_bio = 'M'), SUM(gender_bio = 'F')); male refers to gender_bio = 'M'; female refers to gender_bio = 'F' | religion refers to religion_bio; | Sherrod Brown is an official_full_name | average = DIVIDE(COUNT(bioguide), COUNT(bioguide_id)); legislator that's famous or impact refers to wikipedia_id is not null; | have served in the U.S. House refers to house_history_id IS NOT NULL; born in 1738 refers to birthday_bio = 1738 | difference = SUBTRACT(SUM(type = 'sen' WHERE gender_bio = 'F' AND strftime('%Y', birthday_bio) between '1930' and '1970'), SUM(type = 'rep' WHERE gender_bio = 'F' AND strftime('%Y', birthday_bio) between '1930' and '1970')); female refers to gender_bio = 'F'; senators refers to type = 'sen'; representatives refers to type = 'rep'; born between 1930 to 1970 strftime('%Y', birthday_bio) between '1930' and '1970'; | ratio = DIVIDE(COUNT(current.bioguide_id WHERE current.wikipedia_id is not null), COUNT(historical.bioguide_id WHERE historical.wikipedia_id is not null)); famous current legislators refers to current.wikipedia_id is not null; famous historical legislators refers to historical.wikipedia_id is not null; | genders refers to gender_bio; Collins is a last_name | 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 | Roger F. Wicker is an official_full_name; not a representative refers to district IS NULL OR district = '' | Jr. John Conyers is an official_full_name; years served refers to SUM(SUBTRACT(END, start)) |
What is the full name of the oldest legislator? | full name = first_name, last_name; oldest legislator refers to MIN(birthday_bio); | started a term on 2nd December 1793 refers to start = '1793-12-02'; male refers to gender_bio = 'M' | Sherrod Brown is an official_full_name | California refers to state = 'CA'; representatives refers to type = 'rep'; ended the term in 1995 refers to end like '1995%'; | Chris Van Hollen is an official_full_name; numeric ID on GovTrack.us refers to govtrack | MaxineWaters relates to youtube | difference = SUBTRACT(SUM(type = 'sen' WHERE gender_bio = 'F' AND strftime('%Y', birthday_bio) between '1930' and '1970'), SUM(type = 'rep' WHERE gender_bio = 'F' AND strftime('%Y', birthday_bio) between '1930' and '1970')); female refers to gender_bio = 'F'; senators refers to type = 'sen'; representatives refers to type = 'rep'; born between 1930 to 1970 strftime('%Y', birthday_bio) between '1930' and '1970'; | once a senator during term refers to state_rank IS NOT NULL | full names refers to official_full_name; Richard as their first name refers to first_name = 'Richard' | female refers to gender_bio = 'F' | do not have an account on ballotpedia.org refers to ballotpedia_id IS NULL OR ballotpedia_id = '' |
To which current legislator does twitter ID234128524 belong? Please give his or her full official name. | full official name refers to official_full_name | Veronica Grace Boland is a full name; full name refers to first_name, middle_name, last_name; party affiliated refers to party | Independent refers to party = 'Independent'; senators refers to type = 'sen'; started the term in 2011 and onwards refers to strftime('%Y', start) > = '2011'; caucused with the Democrat refers to caucus = 'Democrat'; | Idaho refers to state = 'ID'; | full name = first_name, last_name; oldest legislator refers to MIN(birthday_bio); | do not have instagram account refers to instagram is null; | have a YouTube account but no Instagram account refers to facebook is not null and (instagram is null or instagram = '') | google entity ID refers to google_entity_id_id; senators refers to type = 'sen'; New York refers to state = 'NY'; | have served in the U.S. House refers to house_history_id is not null; | have served in the U.S. House refers to house_history_id IS NOT NULL; born in 1738 refers to birthday_bio = 1738 | Wikipedia page names refers to wikipedia_id; anti-administration refers to party = 'Anti-Administration'; senators refers to type = 'sen'; |
Who is the Pro-Administration senator that runs from March 4, 1789 to December 31, 1791? | Pro-Administration refers to party = 'Pro-Administration'; senator refers to type = 'sen'; runs from March 4, 1789 refers to start = '1789-03-04'; runs to refers to end = '1791-12-31'; | Chris Van Hollen is an official_full_name; numeric ID on GovTrack.us refers to govtrack | genders refers to gender_bio; Collins is a last_name | legislator's name refers to offical_full_name; | full name refers to official_full_name; senior refers to state_rank = 'senior'; senators refers to type = 'sen'; 2013 refers to start LIKE '2013%' | do not have an account on instagram refers to instagram is null | Washington, DC office phone number refers to phone; terms starting on 2013/1/3 refers to start = '2013-01-03'; | official YouTube usernames refers to youtube; female refers to gender_bio = 'F' | do not have instagram account refers to instagram is null; | full name refers to official_full_name; born in 1960 refers to birthday_bio like '1960%'; | Jr. F. James Sensenbrenner is an official_full_name; How old refers to SUBTRACT(MIN(start), birthday_bio) |
Who is the Lutheran representative that served in the state of Ohio for 14 years before becoming a senator? | Lutheran refers to religion_bio = 'Lutheran'; representative refers to type = 'rep'; served for 14 years refers to SUBTRACT(SUM(CAST(strftime('%Y', end)), CAST(strftime('%Y', start)))) = 14; | do not have an account on instagram refers to instagram is null | have served in the U.S. House refers to house_history_id is not null; | Roger F. Wicker is an official_full_name; not a representative refers to district IS NULL OR district = '' | legislators who do not have an account refers to cspan_id IS NULL OR cspan_id = '' | female refers to gender_bio = 'F'; representatives refers to type = 'rep'; Michigan refers to state = 'MI'; | if first_name = 'Thomas' and last_name = 'Carnes' AND ballotpedia_id is null then Thomas Carnes doesn't have an account on ballotpedia.org; if first_name = 'Thomas' and last_name = 'Carnes' AND ballotpedia_id is NOT null then Thomas Carnes have an account on ballotpedia.org; | Veronica Grace Boland is a full name; full name refers to first_name, middle_name, last_name; party affiliated refers to party | served for the most number of terms refers to MAX(COUNT(bioguide)); | Twitter handle refers to twitter; Roger F. Wicker is an official_full_name | once a senator during term refers to state_rank IS NOT NULL |
Find the difference between the number of female senators and representatives born between 1930 to 1970. | difference = SUBTRACT(SUM(type = 'sen' WHERE gender_bio = 'F' AND strftime('%Y', birthday_bio) between '1930' and '1970'), SUM(type = 'rep' WHERE gender_bio = 'F' AND strftime('%Y', birthday_bio) between '1930' and '1970')); female refers to gender_bio = 'F'; senators refers to type = 'sen'; representatives refers to type = 'rep'; born between 1930 to 1970 strftime('%Y', birthday_bio) between '1930' and '1970'; | Lutheran refers to religion_bio = 'Lutheran'; representative refers to type = 'rep'; served for 14 years refers to SUBTRACT(SUM(CAST(strftime('%Y', end)), CAST(strftime('%Y', start)))) = 14; | Wikipedia page names refers to wikipedia_id; anti-administration refers to party = 'Anti-Administration'; senators refers to type = 'sen'; | Pro-Administration refers to party = 'Pro-Administration'; senator refers to type = 'sen'; runs from March 4, 1789 refers to start = '1789-03-04'; runs to refers to end = '1791-12-31'; | full name refers to official_full_name; | Readjuster Democrats refers to party = 'Readjuster Democrat' | term that started on 2013/1/3 refers to start = '2013-01-03'; | religion is Roman Catholic refers to religion_bio = 'Roman Catholic'; calculation = MULTIPLY(DIVIDE(COUNT(instagram is null), COUNT(bioguide_id)), 1.0) | Sherrod Brown is an official_full_name | Jr. F. James Sensenbrenner is an official_full_name; How old refers to SUBTRACT(MIN(start), birthday_bio) | open secrets refers to opensecrets_id; democrat refers to party = democrat; senators refers to type = 'sen'; New Jersey refers to state = 'NJ'; |
Calculate the percentage of legislators who are not Senator and were born before 1975. | 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) | served for more than 6 terms refers to COUNT(bioguide > 6); born after 1960 refers to birthday_bio > = '1960-01-01' | full_name refers to first_name, last_name; from the Liberal Republican party refers to party = 'Liberal Republican' | Bluetkemeyer refers to youtube | do not have an account on ballotpedia.org refers to ballotpedia_id IS NULL OR ballotpedia_id = '' | legislator's name refers to offical_full_name; | contact URL refers to contact_form; Claire McCaskill is an official_full_name | full name refers to official_full_name; born in 1960 refers to birthday_bio like '1960%'; | birthday was on 8/24/1956 refers to birthday_bio = '1956-08-24' | female refers to gender_bio = 'F'; representatives refers to type = 'rep'; Michigan refers to state = 'MI'; | Wikipedia page names refers to wikipedia_id; anti-administration refers to party = 'Anti-Administration'; senators refers to type = 'sen'; |
List the official full names and genders of legislators who have Collins as their last name. | genders refers to gender_bio; Collins is a last_name | birthday was on 8/24/1956 refers to birthday_bio = '1956-08-24' | representatives refers to type = 'rep'; in 1789 refers to start like '1789%'; | Readjuster Democrats refers to party = 'Readjuster Democrat' | do not have accounts on OpenSecrets.org refers to opensecrets_ID is NULL OR opensecrets_id = ''; do not have instagram accounts refers to instagram is null | Veronica Grace Boland is a full name; full name refers to first_name, middle_name, last_name; party affiliated refers to party | district number refers to district; representative of the house refers to type = 'rep'; | legislator's name refers to offical_full_name; | started a term on 2nd December 1793 refers to start = '1793-12-02'; male refers to gender_bio = 'M' | Pro-Administration refers to party = 'Pro-Administration'; senator refers to type = 'sen'; runs from March 4, 1789 refers to start = '1789-03-04'; runs to refers to end = '1791-12-31'; | Jr. F. James Sensenbrenner is an official_full_name; How old refers to SUBTRACT(MIN(start), birthday_bio) |
What is the contact URL of Claire McCaskill? | contact URL refers to contact_form; Claire McCaskill is an official_full_name | start date of the term refers to start; born on November 26, 1727 refers to birthday_bio = '1727-11-26'; | female refers to gender_bio = 'F'; served for more than 4 terms refers to COUNT(bioguide > 4) | not senator refers to class is null; | ratio = DIVIDE(COUNT(current.bioguide_id WHERE current.wikipedia_id is not null), COUNT(historical.bioguide_id WHERE historical.wikipedia_id is not null)); famous current legislators refers to current.wikipedia_id is not null; famous historical legislators refers to historical.wikipedia_id is not null; | Pro-Administration refers to party = 'Pro-Administration'; senator refers to type = 'sen'; runs from March 4, 1789 refers to start = '1789-03-04'; runs to refers to end = '1791-12-31'; | legislator's name refers to offical_full_name; | Todd Young is an official_full_name; username of current official Facebook presences refers to facebook; | have a YouTube account but no Instagram account refers to facebook is not null and (instagram is null or instagram = '') | google entity ID refers to google_entity_id_id; senators refers to type = 'sen'; New York refers to state = 'NY'; | started a term on 2nd December 1793 refers to start = '1793-12-02'; male refers to gender_bio = 'M' |
What is the username of the current official Facebook presence of the oldest current legislator? | username of the official Facebook refers to facebook; the oldest refers to MAX(birthday_bio) | do not have an account on ballotpedia.org refers to ballotpedia_id IS NULL OR ballotpedia_id = '' | Idaho refers to state = 'ID'; | served for more than 6 terms refers to COUNT(bioguide > 6); born after 1960 refers to birthday_bio > = '1960-01-01' | ids refers to bioguide; representatives refers to type = 'rep'; ended the term on 1/3/2019 refers to end = '2019-01-03'; | religion refers to religion_bio; | the legislators who will end in 2009 refers to END 2009; from the Republican party refers to party = 'Republican' | full name refers to official_full_name; born in 1960 refers to birthday_bio like '1960%'; | female refers to gender_bio = 'F'; representatives refers to type = 'rep'; Michigan refers to state = 'MI'; | legislators who do not have an account refers to cspan_id IS NULL OR cspan_id = '' | if first_name = 'Thomas' and last_name = 'Carnes' AND ballotpedia_id is null then Thomas Carnes doesn't have an account on ballotpedia.org; if first_name = 'Thomas' and last_name = 'Carnes' AND ballotpedia_id is NOT null then Thomas Carnes have an account on ballotpedia.org; |
Calculate the percentage of legislators who are Senator and were born in 1964. | 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) | not senator refers to class is null; | full name refers to official_full_name; female refers to gender_bio = 'F'; senators refers to type = 'sen' | the legislators who will end in 2009 refers to END 2009; from the Republican party refers to party = 'Republican' | ids refers to bioguide; representatives refers to type = 'rep'; ended the term on 1/3/2019 refers to end = '2019-01-03'; | religion refers to religion_bio; | representatives refers to type = 'rep'; in 1789 refers to start like '1789%'; | ratio = DIVIDE(COUNT(current.bioguide_id WHERE current.wikipedia_id is not null), COUNT(historical.bioguide_id WHERE historical.wikipedia_id is not null)); famous current legislators refers to current.wikipedia_id is not null; famous historical legislators refers to historical.wikipedia_id is not null; | full name refers to official_full_name; | representatives refers to type = 'rep'; Maine refers to state = 'ME'; | Readjuster Democrats refers to party = 'Readjuster Democrat' |
How many official social media does Mark Warner have? | 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 | birthday on 2/20/1942 refers to birthday_bio = '1942-02-20' | religion refers to religion_bio; | female refers to gender_bio = 'F'; representatives refers to type = 'rep'; Michigan refers to state = 'MI'; | term that started on 2013/1/3 refers to start = '2013-01-03'; | Jr. John Conyers is an official_full_name; years served refers to SUM(SUBTRACT(END, start)) | term starting on 2013/1/3 refers to start = '2013-01-03; female refers to gender_bio = 'F'; | representatives refers to type = 'rep'; Maine refers to state = 'ME'; | difference = SUBTRACT(SUM(type = 'sen' WHERE gender_bio = 'F' AND strftime('%Y', birthday_bio) between '1930' and '1970'), SUM(type = 'rep' WHERE gender_bio = 'F' AND strftime('%Y', birthday_bio) between '1930' and '1970')); female refers to gender_bio = 'F'; senators refers to type = 'sen'; representatives refers to type = 'rep'; born between 1930 to 1970 strftime('%Y', birthday_bio) between '1930' and '1970'; | have a YouTube account but no Instagram account refers to facebook is not null and (instagram is null or instagram = '') | Facebook, Twitter and YouTube usernames refers to facebook, twitter, youtube; Adam Kinzinger is an official_full_name |
List all of the ids of the representatives belonging to the Democrat party in district 13 that ended their term on 1/3/2019? | ids refers to bioguide; representatives refers to type = 'rep'; ended the term on 1/3/2019 refers to end = '2019-01-03'; | full name refers to official_full_name; female refers to gender_bio = 'F'; senators refers to type = 'sen' | served for the most number of terms refers to MAX(COUNT(bioguide)); | have served in the U.S. House refers to house_history_id is not null; | difference = SUBTRACT(SUM(type = 'sen' WHERE gender_bio = 'F' AND strftime('%Y', birthday_bio) between '1930' and '1970'), SUM(type = 'rep' WHERE gender_bio = 'F' AND strftime('%Y', birthday_bio) between '1930' and '1970')); female refers to gender_bio = 'F'; senators refers to type = 'sen'; representatives refers to type = 'rep'; born between 1930 to 1970 strftime('%Y', birthday_bio) between '1930' and '1970'; | religion refers to religion_bio; | term starting on 2013/1/3 refers to start = '2013-01-03; female refers to gender_bio = 'F'; | gender refers to gender_bio | term that started on 2013/1/3 refers to start = '2013-01-03'; | do not have an account on instagram refers to instagram is null | have a YouTube account but no Instagram account refers to facebook is not null and (instagram is null or instagram = '') |
Which current legislator is older, Sherrod Brown or Maria Cantwell? | older refers to MAX(birthday_bio); 'Sherrod Brown' and 'Maria Cantwell' are official_full_name | Washington, DC office phone number refers to phone; terms starting on 2013/1/3 refers to start = '2013-01-03'; | birthday was on 8/24/1956 refers to birthday_bio = '1956-08-24' | do not have an account on instagram refers to instagram is null | full official name refers to official_full_name | once a senator during term refers to state_rank IS NOT NULL | have a YouTube account but no Instagram account refers to facebook is not null and (instagram is null or instagram = '') | not the senator refers to class IS NULL OR class = ''; female refers to gender_bio = 'F'; | MaxineWaters relates to youtube | 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; | the legislators who will end in 2009 refers to END 2009; from the Republican party refers to party = 'Republican' |
Among the legislators who started a term on 2nd December 1793, how many of them were males? | started a term on 2nd December 1793 refers to start = '1793-12-02'; male refers to gender_bio = 'M' | do not have accounts on OpenSecrets.org refers to opensecrets_ID is NULL OR opensecrets_id = ''; do not have instagram accounts refers to instagram is null | Jr. F. James Sensenbrenner is an official_full_name; How old refers to SUBTRACT(MIN(start), birthday_bio) | legislators who do not have an account refers to cspan_id IS NULL OR cspan_id = '' | Idaho refers to state = 'ID'; | religion refers to religion_bio; | full name refers to official_full_name; born in 1960 refers to birthday_bio like '1960%'; | full_name refers to first_name, last_name; from the Liberal Republican party refers to party = 'Liberal Republican' | Pro-Administration refers to party = 'Pro-Administration'; senator refers to type = 'sen'; runs from March 4, 1789 refers to start = '1789-03-04'; runs to refers to end = '1791-12-31'; | birthday refers to birthday_bio; Amy Klobuchar refers to full name; full name refers to first_name, last_name | Roger F. Wicker is an official_full_name; not a representative refers to district IS NULL OR district = '' |
Among the current legislators who served the term starting on 2013/1/3, how many of them are female? | term starting on 2013/1/3 refers to start = '2013-01-03; female refers to gender_bio = 'F'; | 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 | birthday on 2/20/1942 refers to birthday_bio = '1942-02-20' | Twitter handle refers to twitter; Roger F. Wicker is an official_full_name | have a YouTube account but no Instagram account refers to facebook is not null and (instagram is null or instagram = '') | full official name refers to official_full_name | religion refers to religion_bio; | Bluetkemeyer refers to youtube | percentage = MULTIPLY(DIVIDE(SUM(strftime('%Y', start) between '2000' and '2017'), COUNT(bioguide_id)), 100.0); 1st-Century refers to strftime('%Y', T2.start) between '2000' and '2017'; | full names refers to official_full_name; Richard as their first name refers to first_name = 'Richard' | Wikipedia page names refers to wikipedia_id; anti-administration refers to party = 'Anti-Administration'; senators refers to type = 'sen'; |
What is the full official name of the current legislator that has served for the most number of terms? | served for the most number of terms refers to MAX(COUNT(bioguide)); | term that started on 2013/1/3 refers to start = '2013-01-03'; | do not have instagram account refers to instagram is null; | oldest legislator refers to MIN(birthday_bio); | Independent refers to party = 'Independent'; senators refers to type = 'sen'; started the term in 2011 and onwards refers to strftime('%Y', start) > = '2011'; caucused with the Democrat refers to caucus = 'Democrat'; | have served in the U.S. House refers to house_history_id is not null; | served only one district for 26 consecutive years refers to SUBTRACT(SUM(cast(strftime('%Y', end)), CAST(strftime('%Y', start)))) = 26 | birthday refers to birthday_bio; Amy Klobuchar refers to full name; full name refers to first_name, last_name | born in 1736 refers to birthday_bio like '1736%'; | Twitter handle refers to twitter; Roger F. Wicker is an official_full_name | full_name refers to first_name, last_name; from the Liberal Republican party refers to party = 'Liberal Republican' |
How many legislators were born in 1736? | born in 1736 refers to birthday_bio like '1736%'; | Twitter handle refers to twitter; Roger F. Wicker is an official_full_name | district no. 13 refers to district = 13; | full name refers to official_full_name; | junior senators refers to state_rank = 'junior'; in 1997 refers to start like '1997%'; | have served in the U.S. House refers to house_history_id is not null; | full names = first_name, last_name; non-google entity refers to google_entity_id_id is null; female refers to gender_bio = 'F'; have not been registered in Federal Election Commission data refers to fec_id is null; | Idaho refers to state = 'ID'; | representatives refers to type = 'rep'; in 1789 refers to start like '1789%'; | female refers to gender_bio = 'F'; served for more than 4 terms refers to COUNT(bioguide > 4) | Jr. F. James Sensenbrenner is an official_full_name; How old refers to SUBTRACT(MIN(start), birthday_bio) |
Among all the current female legislators, how many of them have attended in Senate roll call votes? | female refers to gender_bio = 'F'; have attended in Senate roll call votes refers to lis_id is not null; | full name refers to official_full_name; | google entity ID refers to google_entity_id_id; senators refers to type = 'sen'; New York refers to state = 'NY'; | full name = first_name, last_name; oldest legislator refers to MIN(birthday_bio); | gender refers to gender_bio | 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 | percentage = MULTIPLY(DIVIDE(SUM(strftime('%Y', start) between '2000' and '2017'), COUNT(bioguide_id)), 100.0); 1st-Century refers to strftime('%Y', T2.start) between '2000' and '2017'; | average = DIVIDE(COUNT(bioguide), COUNT(bioguide_id)); legislator that's famous or impact refers to wikipedia_id is not null; | female refers to gender_bio = 'F'; | Virginia refers to state = 'VA' | contact URL refers to contact_form; Claire McCaskill is an official_full_name |
What is the middle name of the legislator whose birthday was on 8/24/1956? | birthday was on 8/24/1956 refers to birthday_bio = '1956-08-24' | not the senator refers to class IS NULL OR class = ''; female refers to gender_bio = 'F'; | legislators who do not have an account refers to cspan_id IS NULL OR cspan_id = '' | do not have instagram account refers to instagram is null; | genders refers to gender_bio; Collins is a last_name | Jr. John Conyers is an official_full_name; years served refers to SUM(SUBTRACT(END, start)) | contact URL refers to contact_form; Claire McCaskill is an official_full_name | name of the legislator = first_name, last_name; ID of W000059 refers to bioguide_id = 'W000059'; | female refers to gender_bio = 'F'; have attended in Senate roll call votes refers to lis_id is not null; | term that started on 2013/1/3 refers to start = '2013-01-03'; | Sherrod Brown is an official_full_name |
How many years had Jr. John Conyers served in total? | Jr. John Conyers is an official_full_name; years served refers to SUM(SUBTRACT(END, start)) | served only one district for 26 consecutive years refers to SUBTRACT(SUM(cast(strftime('%Y', end)), CAST(strftime('%Y', start)))) = 26 | Twitter handle refers to twitter; Roger F. Wicker is an official_full_name | Facebook, Twitter and YouTube usernames refers to facebook, twitter, youtube; Adam Kinzinger is an official_full_name | Idaho refers to state = 'ID'; | legislators who do not have an account refers to cspan_id IS NULL OR cspan_id = '' | representatives refers to type = 'rep'; Maine refers to state = 'ME'; | female refers to gender_bio = 'F'; | google entity ID refers to google_entity_id_id; senators refers to type = 'sen'; New York refers to state = 'NY'; | ids refers to bioguide; representatives refers to type = 'rep'; ended the term on 1/3/2019 refers to end = '2019-01-03'; | full name refers to official_full_name; born in 1960 refers to birthday_bio like '1960%'; |
Current legislator Roger F. Wicker has not been a representative for how many terms? | Roger F. Wicker is an official_full_name; not a representative refers to district IS NULL OR district = '' | start date of the term refers to start; born on November 26, 1727 refers to birthday_bio = '1727-11-26'; | Independent refers to party = 'Independent'; senators refers to type = 'sen'; started the term in 2011 and onwards refers to strftime('%Y', start) > = '2011'; caucused with the Democrat refers to caucus = 'Democrat'; | full name = first_name, last_name; oldest legislator refers to MIN(birthday_bio); | not the senator refers to class IS NULL OR class = ''; female refers to gender_bio = 'F'; | gender refers to gender_bio | genders refers to gender_bio; Collins is a last_name | ratio = DIVIDE(SUM(gender_bio = 'M'), SUM(gender_bio = 'F')); male refers to gender_bio = 'M'; female refers to gender_bio = 'F' | the legislators who will end in 2009 refers to END 2009; from the Republican party refers to party = 'Republican' | official YouTube usernames refers to youtube; female refers to gender_bio = 'F' | 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 |
List the IDs and full names of legislators from the Liberal Republican party. | full_name refers to first_name, last_name; from the Liberal Republican party refers to party = 'Liberal Republican' | district number refers to district; representative of the house refers to type = 'rep'; | birthday was on 8/24/1956 refers to birthday_bio = '1956-08-24' | have served for more than 4 years refers to count(bioguide) > 4; percentage = MULTIPLY(DIVIDE(SUM(gender_bio = 'F'), count(bioguide)), 100.0); female refers to gender_bio = 'F' | legislators who do not have an account refers to cspan_id IS NULL OR cspan_id = '' | have an Instagram account refers to instagram is NOT null and instagram <>'' | do not have accounts on OpenSecrets.org refers to opensecrets_ID is NULL OR opensecrets_id = ''; do not have instagram accounts refers to instagram is null | 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 | term that started on 2013/1/3 refers to start = '2013-01-03'; | term starting on 2013/1/3 refers to start = '2013-01-03; female refers to gender_bio = 'F'; | ratio = DIVIDE(SUM(gender_bio = 'M'), SUM(gender_bio = 'F')); male refers to gender_bio = 'M'; female refers to gender_bio = 'F' |
What is the ratio of males and females among historical legislators? | 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)) | legislators who do not have an account refers to cspan_id IS NULL OR cspan_id = '' | name of the legislator = first_name, last_name; ID of W000059 refers to bioguide_id = 'W000059'; | average = DIVIDE(COUNT(bioguide), COUNT(bioguide_id)); legislator that's famous or impact refers to wikipedia_id is not null; | full official name refers to official_full_name | female refers to gender_bio = 'F'; have attended in Senate roll call votes refers to lis_id is not null; | district no. 13 refers to district = 13; | have facebook, instagram, twitter and youtube accounts refers to 'facebook' is not null AND 'instagram' is not null AND 'twitter' is not null AND 'youtube' is not null; | full names refers to official_full_name; Richard as their first name refers to first_name = 'Richard' | not senator refers to class is null; | oldest legislator refers to MIN(birthday_bio); |
How many legislators are not senator? | not senator refers to class is null; | female refers to gender_bio = 'F'; served for more than 4 terms refers to COUNT(bioguide > 4) | do not have an account on instagram refers to instagram is null | username of the official Facebook refers to facebook; the oldest refers to MAX(birthday_bio) | legislator's name refers to offical_full_name; | have a YouTube account but no Instagram account refers to facebook is not null and (instagram is null or instagram = '') | Todd Young is an official_full_name; username of current official Facebook presences refers to facebook; | Veronica Grace Boland is a full name; full name refers to first_name, middle_name, last_name; party affiliated refers to party | Wikipedia page names refers to wikipedia_id; anti-administration refers to party = 'Anti-Administration'; senators refers to type = 'sen'; | Lutheran refers to religion_bio = 'Lutheran'; representative refers to type = 'rep'; served for 14 years refers to SUBTRACT(SUM(CAST(strftime('%Y', end)), CAST(strftime('%Y', start)))) = 14; | start date of the term refers to start; born on November 26, 1727 refers to birthday_bio = '1727-11-26'; |
Provide the current legislators' official full names who are from the Independent party. | Independent party refers to party = 'Independent' | Sherrod Brown is an full official name; started on 1993/1/5 refers to start = '1993-01-05'; | average = DIVIDE(COUNT(bioguide), COUNT(bioguide_id)); legislator that's famous or impact refers to wikipedia_id is not null; | Washington, DC office phone number refers to phone; terms starting on 2013/1/3 refers to start = '2013-01-03'; | Facebook, Twitter and YouTube usernames refers to facebook, twitter, youtube; Adam Kinzinger is an official_full_name | legislator's name refers to offical_full_name; | 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 | name of the legislator = first_name, last_name; ID of W000059 refers to bioguide_id = 'W000059'; | google entity ID refers to google_entity_id_id; senators refers to type = 'sen'; New York refers to state = 'NY'; | have served in the U.S. House refers to house_history_id is not null; | Wikipedia page names refers to wikipedia_id; anti-administration refers to party = 'Anti-Administration'; senators refers to type = 'sen'; |
What are the Wikipedia page names of all the anti-administration senators? | Wikipedia page names refers to wikipedia_id; anti-administration refers to party = 'Anti-Administration'; senators refers to type = 'sen'; | ratio = DIVIDE(SUM(gender_bio = 'M'), SUM(gender_bio = 'F')); male refers to gender_bio = 'M'; female refers to gender_bio = 'F' | woman refers to gender_bio = 'F'; | username of the official Facebook refers to facebook; the oldest refers to MAX(birthday_bio) | difference = SUBTRACT(SUM(type = 'sen' WHERE gender_bio = 'F' AND strftime('%Y', birthday_bio) between '1930' and '1970'), SUM(type = 'rep' WHERE gender_bio = 'F' AND strftime('%Y', birthday_bio) between '1930' and '1970')); female refers to gender_bio = 'F'; senators refers to type = 'sen'; representatives refers to type = 'rep'; born between 1930 to 1970 strftime('%Y', birthday_bio) between '1930' and '1970'; | female refers to gender_bio = 'F'; have attended in Senate roll call votes refers to lis_id is not null; | junior senators refers to state_rank = 'junior'; in 1997 refers to start like '1997%'; | not the senator refers to class IS NULL OR class = ''; female refers to gender_bio = 'F'; | have facebook, instagram, twitter and youtube accounts refers to 'facebook' is not null AND 'instagram' is not null AND 'twitter' is not null AND 'youtube' is not null; | MaxineWaters relates to youtube | served only one district for 26 consecutive years refers to SUBTRACT(SUM(cast(strftime('%Y', end)), CAST(strftime('%Y', start)))) = 26 |
Based on the number of current legislators, calculate the percentage of legislators that served in 21st-Century. | percentage = MULTIPLY(DIVIDE(SUM(strftime('%Y', start) between '2000' and '2017'), COUNT(bioguide_id)), 100.0); 1st-Century refers to strftime('%Y', T2.start) between '2000' and '2017'; | Facebook, Twitter and YouTube usernames refers to facebook, twitter, youtube; Adam Kinzinger is an official_full_name | full name = first_name, last_name; oldest legislator refers to MIN(birthday_bio); | do not have an account on instagram refers to instagram is null | Chris Van Hollen is an official_full_name; numeric ID on GovTrack.us refers to govtrack | district no. 13 refers to district = 13; | official YouTube usernames refers to youtube; female refers to gender_bio = 'F' | the legislators who will end in 2009 refers to END 2009; from the Republican party refers to party = 'Republican' | once a senator during term refers to state_rank IS NOT NULL | Todd Young is an official_full_name; username of current official Facebook presences refers to facebook; | not the senator refers to class IS NULL OR class = ''; female refers to gender_bio = 'F'; |
Give the religion of the legislator with RSS url of http://www.corker.senate.gov/public/index.cfm/rss/feed. | religion refers to religion_bio; | Idaho refers to state = 'ID'; | female refers to gender_bio = 'F'; served for more than 4 terms refers to COUNT(bioguide > 4) | 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)) | full name refers to official_full_name; | Lutheran refers to religion_bio = 'Lutheran'; representative refers to type = 'rep'; served for 14 years refers to SUBTRACT(SUM(CAST(strftime('%Y', end)), CAST(strftime('%Y', start)))) = 14; | term that started on 2013/1/3 refers to start = '2013-01-03'; | birthday was on 8/24/1956 refers to birthday_bio = '1956-08-24' | legislators who do not have an account refers to cspan_id IS NULL OR cspan_id = '' | 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; | name of the legislator = first_name, last_name; ID of W000059 refers to bioguide_id = 'W000059'; |
List the full names, Twitter IDs, and YouTube IDs of legislators who have Richard as their first name. | full names refers to official_full_name; Richard as their first name refers to first_name = 'Richard' | female refers to gender_bio = 'F' | born in 1736 refers to birthday_bio like '1736%'; | have served for more than 4 years refers to count(bioguide) > 4; percentage = MULTIPLY(DIVIDE(SUM(gender_bio = 'F'), count(bioguide)), 100.0); female refers to gender_bio = 'F' | religion refers to religion_bio; | google entity ID refers to google_entity_id_id; senators refers to type = 'sen'; New York refers to state = 'NY'; | once a senator during term refers to state_rank IS NOT NULL | do not have an account on instagram refers to instagram is null | full names = first_name, last_name; non-google entity refers to google_entity_id_id is null; female refers to gender_bio = 'F'; have not been registered in Federal Election Commission data refers to fec_id is null; | birthday was on 8/24/1956 refers to birthday_bio = '1956-08-24' | do not have an account on ballotpedia.org refers to ballotpedia_id IS NULL OR ballotpedia_id = '' |
List down the district number of the representative of the house named Jonathan Grout. | district number refers to district; representative of the house refers to type = 'rep'; | difference = SUBTRACT(SUM(type = 'sen' WHERE gender_bio = 'F' AND strftime('%Y', birthday_bio) between '1930' and '1970'), SUM(type = 'rep' WHERE gender_bio = 'F' AND strftime('%Y', birthday_bio) between '1930' and '1970')); female refers to gender_bio = 'F'; senators refers to type = 'sen'; representatives refers to type = 'rep'; born between 1930 to 1970 strftime('%Y', birthday_bio) between '1930' and '1970'; | served for more than 6 terms refers to COUNT(bioguide > 6); born after 1960 refers to birthday_bio > = '1960-01-01' | birthday refers to birthday_bio; Amy Klobuchar refers to full name; full name refers to first_name, last_name | Sherrod Brown is an full official name; started on 1993/1/5 refers to start = '1993-01-05'; | religion refers to religion_bio; | Chris Van Hollen is an official_full_name; numeric ID on GovTrack.us refers to govtrack | do not have accounts on OpenSecrets.org refers to opensecrets_ID is NULL OR opensecrets_id = ''; do not have instagram accounts refers to instagram is null | full name refers to official_full_name; | the legislators who will end in 2009 refers to END 2009; from the Republican party refers to party = 'Republican' | start date of the term refers to start; born on November 26, 1727 refers to birthday_bio = '1727-11-26'; |
How many districts are in Idaho? | Idaho refers to state = 'ID'; | difference = SUBTRACT(SUM(type = 'sen' WHERE gender_bio = 'F' AND strftime('%Y', birthday_bio) between '1930' and '1970'), SUM(type = 'rep' WHERE gender_bio = 'F' AND strftime('%Y', birthday_bio) between '1930' and '1970')); female refers to gender_bio = 'F'; senators refers to type = 'sen'; representatives refers to type = 'rep'; born between 1930 to 1970 strftime('%Y', birthday_bio) between '1930' and '1970'; | 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) | full name refers to official_full_name; | Sherrod Brown is an official_full_name | female refers to gender_bio = 'F' | not the senator refers to class IS NULL OR class = ''; female refers to gender_bio = 'F'; | gender refers to gender_bio | ratio = DIVIDE(SUM(gender_bio = 'M'), SUM(gender_bio = 'F')); male refers to gender_bio = 'M'; female refers to gender_bio = 'F' | 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 | birthday was on 8/24/1956 refers to birthday_bio = '1956-08-24' |
How many current legislators do not have an account on instagram? | do not have an account on instagram refers to instagram is null | representatives refers to type = 'rep'; Maine refers to state = 'ME'; | term starting on 2013/1/3 refers to start = '2013-01-03; female refers to gender_bio = 'F'; | Lutheran refers to religion_bio = 'Lutheran'; representative refers to type = 'rep'; served for 14 years refers to SUBTRACT(SUM(CAST(strftime('%Y', end)), CAST(strftime('%Y', start)))) = 14; | legislators who do not have an account refers to cspan_id IS NULL OR cspan_id = '' | genders refers to gender_bio; Collins is a last_name | California refers to state = 'CA'; representatives refers to type = 'rep'; ended the term in 1995 refers to end like '1995%'; | Pro-Administration refers to party = 'Pro-Administration'; senator refers to type = 'sen'; runs from March 4, 1789 refers to start = '1789-03-04'; runs to refers to end = '1791-12-31'; | 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 | full name refers to official_full_name; senior refers to state_rank = 'senior'; senators refers to type = 'sen'; 2013 refers to start LIKE '2013%' | ratio = DIVIDE(COUNT(current.bioguide_id WHERE current.wikipedia_id is not null), COUNT(historical.bioguide_id WHERE historical.wikipedia_id is not null)); famous current legislators refers to current.wikipedia_id is not null; famous historical legislators refers to historical.wikipedia_id is not null; |
Please list the current official YouTube usernames of all the current female legislators. | official YouTube usernames refers to youtube; female refers to gender_bio = 'F' | 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) | legislator's name refers to offical_full_name; | female refers to gender_bio = 'F'; representatives refers to type = 'rep'; Michigan refers to state = 'MI'; | 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)) | do not have instagram account refers to instagram is null; | google entity ID refers to google_entity_id_id; senators refers to type = 'sen'; New York refers to state = 'NY'; | once a senator during term refers to state_rank IS NOT NULL | Independent party refers to party = 'Independent' | username of the official Facebook refers to facebook; the oldest refers to MAX(birthday_bio) | have a YouTube account but no Instagram account refers to facebook is not null and (instagram is null or instagram = '') |
Give the religion of the legislator whose YouTube name is MaxineWaters. | MaxineWaters relates to youtube | served for the most number of terms refers to MAX(COUNT(bioguide)); | representatives refers to type = 'rep'; in 1789 refers to start like '1789%'; | Independent party refers to party = 'Independent' | Readjuster Democrats refers to party = 'Readjuster Democrat' | have facebook, instagram, twitter and youtube accounts refers to 'facebook' is not null AND 'instagram' is not null AND 'twitter' is not null AND 'youtube' is not null; | do not have an account on ballotpedia.org refers to ballotpedia_id IS NULL OR ballotpedia_id = '' | ids refers to bioguide; representatives refers to type = 'rep'; ended the term on 1/3/2019 refers to end = '2019-01-03'; | Jr. John Conyers is an official_full_name; years served refers to SUM(SUBTRACT(END, start)) | Independent refers to party = 'Independent'; senators refers to type = 'sen'; started the term in 2011 and onwards refers to strftime('%Y', start) > = '2011'; caucused with the Democrat refers to caucus = 'Democrat'; | Virginia refers to state = 'VA' |
Please list the official full names of all the current legislators who have served in the U.S. House. | have served in the U.S. House refers to house_history_id is not null; | do not have an account on ballotpedia.org refers to ballotpedia_id IS NULL OR ballotpedia_id = '' | name of the legislator = first_name, last_name; ID of W000059 refers to bioguide_id = 'W000059'; | full name refers to official_full_name; | username of the official Facebook refers to facebook; the oldest refers to MAX(birthday_bio) | religion refers to religion_bio; | not senator refers to class is null; | full name refers to official_full_name; born in 1960 refers to birthday_bio like '1960%'; | woman refers to gender_bio = 'F'; | district number refers to district; representative of the house refers to type = 'rep'; | official YouTube usernames refers to youtube; female refers to gender_bio = 'F' |
Among the Independent senators that started their term in 2011 and onwards, what are the official full names of the senators that caucused with the Democrat? | Independent refers to party = 'Independent'; senators refers to type = 'sen'; started the term in 2011 and onwards refers to strftime('%Y', start) > = '2011'; caucused with the Democrat refers to caucus = 'Democrat'; | do not have an account on ballotpedia.org refers to ballotpedia_id IS NULL OR ballotpedia_id = '' | Washington, DC office phone number refers to phone; terms starting on 2013/1/3 refers to start = '2013-01-03'; | 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; | average = DIVIDE(COUNT(bioguide), COUNT(bioguide_id)); legislator that's famous or impact refers to wikipedia_id is not null; | junior senators refers to state_rank = 'junior'; in 1997 refers to start like '1997%'; | Veronica Grace Boland is a full name; full name refers to first_name, middle_name, last_name; party affiliated refers to party | served only one district for 26 consecutive years refers to SUBTRACT(SUM(cast(strftime('%Y', end)), CAST(strftime('%Y', start)))) = 26 | ratio = DIVIDE(SUM(gender_bio = 'M'), SUM(gender_bio = 'F')); male refers to gender_bio = 'M'; female refers to gender_bio = 'F' | Roger F. Wicker is an official_full_name; not a representative refers to district IS NULL OR district = '' | do not have an account on instagram refers to instagram is null |
Please list the official full names of all the current legislators who were once a senator during his or her terms. | once a senator during term refers to state_rank IS NOT NULL | religion refers to religion_bio; | have served in the U.S. House refers to house_history_id IS NOT NULL; born in 1738 refers to birthday_bio = 1738 | have facebook, instagram, twitter and youtube accounts refers to 'facebook' is not null AND 'instagram' is not null AND 'twitter' is not null AND 'youtube' is not null; | birthday refers to birthday_bio; Amy Klobuchar refers to full name; full name refers to first_name, last_name | MaxineWaters relates to youtube | older refers to MAX(birthday_bio); 'Sherrod Brown' and 'Maria Cantwell' are official_full_name | served for the most number of terms refers to MAX(COUNT(bioguide)); | full official name refers to official_full_name | have served for more than 4 years refers to count(bioguide) > 4; percentage = MULTIPLY(DIVIDE(SUM(gender_bio = 'F'), count(bioguide)), 100.0); female refers to gender_bio = 'F' | Roger F. Wicker is an official_full_name; not a representative refers to district IS NULL OR district = '' |
Among the current legislators who do not have accounts on OpenSecrets.org., how many of them do not have instagram accounts either? | do not have accounts on OpenSecrets.org refers to opensecrets_ID is NULL OR opensecrets_id = ''; do not have instagram accounts refers to instagram is null | full names = first_name, last_name; non-google entity refers to google_entity_id_id is null; female refers to gender_bio = 'F'; have not been registered in Federal Election Commission data refers to fec_id is null; | full name = first_name, last_name; oldest legislator refers to MIN(birthday_bio); | representatives refers to type = 'rep'; Maine refers to state = 'ME'; | full name refers to official_full_name; born in 1960 refers to birthday_bio like '1960%'; | female refers to gender_bio = 'F'; representatives refers to type = 'rep'; Michigan refers to state = 'MI'; | served only one district for 26 consecutive years refers to SUBTRACT(SUM(cast(strftime('%Y', end)), CAST(strftime('%Y', start)))) = 26 | official YouTube usernames refers to youtube; female refers to gender_bio = 'F' | genders refers to gender_bio; Collins is a last_name | Independent refers to party = 'Independent'; senators refers to type = 'sen'; started the term in 2011 and onwards refers to strftime('%Y', start) > = '2011'; caucused with the Democrat refers to caucus = 'Democrat'; | have served in the U.S. House refers to house_history_id is not null; |
What is the current official Twitter handle of Roger F. Wicker? | Twitter handle refers to twitter; Roger F. Wicker is an official_full_name | have facebook, instagram, twitter and youtube accounts refers to 'facebook' is not null AND 'instagram' is not null AND 'twitter' is not null AND 'youtube' is not null; | have served for more than 4 years refers to count(bioguide) > 4; percentage = MULTIPLY(DIVIDE(SUM(gender_bio = 'F'), count(bioguide)), 100.0); female refers to gender_bio = 'F' | representatives refers to type = 'rep'; in 1789 refers to start like '1789%'; | google entity ID refers to google_entity_id_id; senators refers to type = 'sen'; New York refers to state = 'NY'; | district number refers to district; representative of the house refers to type = 'rep'; | do not have an account on instagram refers to instagram is null | 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) | full names refers to official_full_name; Richard as their first name refers to first_name = 'Richard' | representatives refers to type = 'rep'; Maine refers to state = 'ME'; | do not have instagram account refers to instagram is null; |
State number of legislators who are not the senator among female legislators. | not the senator refers to class IS NULL OR class = ''; female refers to gender_bio = 'F'; | MaxineWaters relates to youtube | started a term on 2nd December 1793 refers to start = '1793-12-02'; male refers to gender_bio = 'M' | served for the most number of terms refers to MAX(COUNT(bioguide)); | full name refers to official_full_name; born in 1960 refers to birthday_bio like '1960%'; | open secrets refers to opensecrets_id; democrat refers to party = democrat; senators refers to type = 'sen'; New Jersey refers to state = 'NJ'; | have facebook, instagram, twitter and youtube accounts refers to 'facebook' is not null AND 'instagram' is not null AND 'twitter' is not null AND 'youtube' is not null; | Pro-Administration refers to party = 'Pro-Administration'; senator refers to type = 'sen'; runs from March 4, 1789 refers to start = '1789-03-04'; runs to refers to end = '1791-12-31'; | older refers to MAX(birthday_bio); 'Sherrod Brown' and 'Maria Cantwell' are official_full_name | once a senator during term refers to state_rank IS NOT NULL | do not have an account on instagram refers to instagram is null |
Provide the google entity ID of the senators in New York. | google entity ID refers to google_entity_id_id; senators refers to type = 'sen'; New York refers to state = 'NY'; | percentage = MULTIPLY(DIVIDE(SUM(strftime('%Y', start) between '2000' and '2017'), COUNT(bioguide_id)), 100.0); 1st-Century refers to strftime('%Y', T2.start) between '2000' and '2017'; | MaxineWaters relates to youtube | term that started on 2013/1/3 refers to start = '2013-01-03'; | full official name refers to official_full_name | gender refers to gender_bio | female refers to gender_bio = 'F'; | Wikipedia page names refers to wikipedia_id; anti-administration refers to party = 'Anti-Administration'; senators refers to type = 'sen'; | Richard Durbin is an official_full_name; official_full_name refers to first_name, last_name; district 20 refers to district = 20 | do not have an account on instagram refers to instagram is null | have served for more than 4 years refers to count(bioguide) > 4; percentage = MULTIPLY(DIVIDE(SUM(gender_bio = 'F'), count(bioguide)), 100.0); female refers to gender_bio = 'F' |
Give the type and start date of the term of the legislator born on November 26, 1727. | start date of the term refers to start; born on November 26, 1727 refers to birthday_bio = '1727-11-26'; | junior senators refers to state_rank = 'junior'; in 1997 refers to start like '1997%'; | Independent refers to party = 'Independent'; senators refers to type = 'sen'; started the term in 2011 and onwards refers to strftime('%Y', start) > = '2011'; caucused with the Democrat refers to caucus = 'Democrat'; | started a term on 2nd December 1793 refers to start = '1793-12-02'; male refers to gender_bio = 'M' | have facebook, instagram, twitter and youtube accounts refers to 'facebook' is not null AND 'instagram' is not null AND 'twitter' is not null AND 'youtube' is not null; | username of the official Facebook refers to facebook; the oldest refers to MAX(birthday_bio) | have served in the U.S. House refers to house_history_id is not null; | full names = first_name, last_name; non-google entity refers to google_entity_id_id is null; female refers to gender_bio = 'F'; have not been registered in Federal Election Commission data refers to fec_id is null; | official YouTube usernames refers to youtube; female refers to gender_bio = 'F' | birthday was on 8/24/1956 refers to birthday_bio = '1956-08-24' | Jr. F. James Sensenbrenner is an official_full_name; How old refers to SUBTRACT(MIN(start), birthday_bio) |
What is the ratio between famous current legislators and famous historical legislators? | ratio = DIVIDE(COUNT(current.bioguide_id WHERE current.wikipedia_id is not null), COUNT(historical.bioguide_id WHERE historical.wikipedia_id is not null)); famous current legislators refers to current.wikipedia_id is not null; famous historical legislators refers to historical.wikipedia_id is not null; | Washington, DC office phone number refers to phone; terms starting on 2013/1/3 refers to start = '2013-01-03'; | genders refers to gender_bio; Collins is a last_name | 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) | official YouTube usernames refers to youtube; female refers to gender_bio = 'F' | gender refers to gender_bio | born in 1736 refers to birthday_bio like '1736%'; | started a term on 2nd December 1793 refers to start = '1793-12-02'; male refers to gender_bio = 'M' | google entity ID refers to google_entity_id_id; senators refers to type = 'sen'; New York refers to state = 'NY'; | Todd Young is an official_full_name; username of current official Facebook presences refers to facebook; | contact URL refers to contact_form; Claire McCaskill is an official_full_name |
How many users answered "Yes" to the question "Have you had a mental health disorder in the past?" in 3 consecutive years starting from 2016? | question refers to questiontext; answered 'Yes' to question refers to AnswerText = 'Yes'; 3 consecutive years starting from 2016 refers to SurveyID = 2016 and SurveyID = 2017 and SurveyID = 2018 | mental health survey for 2014 refers to SurveyID = 2014 | question refers to questiontext; wrote comments refers to AnswerText(QuestionID = 103) ! = -1 | AnswerText = 'Yes' where questiontext = 'Do you have a family history of mental illness?'; AnswerText = 'Female' where questionid = 2; AnswerText = 'Nebraska' where questionid = 4 | 2014 refer to SurveyID; Answered No refer to AnswerText = 'No'; Question refer to questiontext
| From 2016 to 2019 refer to SurveyID 2016 BETWEEN 2019; Question 13 refer to QuestionID | most common answer refers to AnswerText where MAX(COUNT(AnswerText(QuestionID = 3))) | mental health survey for 2018 refers to SurveyID = 2018 | respondents and 'users' are synonyms; average number = avg(count(userID(SurveyID = 2014)), count(userID(SurveyID = 2019))) | question refers to questiontext | mental health survey for 2016 refers to SurveyID = 2016 |
How many users answered "No" to the question "Would you bring up a mental health issue with a potential employer in an interview?" in 2014's survey? | 2014 refer to SurveyID; Answered No refer to AnswerText = 'No'; Question refer to questiontext
| respondents and 'users' are synonyms; percentage = divide(count(SurveyID = 2016& QuestionID = 32 & AnswerText = 'Yes'), count(SurveyID = 2016& QuestionID = 32))*100% | respondents and 'users' are synonyms; average number = avg(count(userID(SurveyID = 2014)), count(userID(SurveyID = 2019))) | mental health survey for 2016 refers to SurveyID = 2016 | How many times more = subtract(count(UserID(SurveyID = 2017)), count(UserID(SurveyID = 2018))) | question refers to questiontext | most common answer refers to AnswerText where MAX(COUNT(AnswerText(QuestionID = 3))) | question refers to questiontext; answered 'Yes' to question refers to AnswerText = 'Yes'; 3 consecutive years starting from 2016 refers to SurveyID = 2016 and SurveyID = 2017 and SurveyID = 2018 | question refers to questiontext; all the common questions in 2014's survey and 2016's survey refers to QuestionID(SurveyID(2014)) = QuestionID(SurveyID(2016))
| AnswerText = 'Yes' where questiontext = 'Do you have a family history of mental illness?'; AnswerText = 'Female' where questionid = 2; AnswerText = 'Nebraska' where questionid = 4 | mental health survey for 2018 refers to SurveyID = 2018 |
How many female users were surveyed in the mental health survey for 2017 in the state of Nebraska? | AnswerText = 'Yes' where questiontext = 'Do you have a family history of mental illness?'; AnswerText = 'Female' where questionid = 2; AnswerText = 'Nebraska' where questionid = 4 | 2019 refer to SurveyID; Users in the United States refers to AnswerText = 'United States' where questionid = 3; have a family history of mental illness refers to AnswerText = 'Yes' where questionid = 6 | respondents and 'users' are synonyms; percentage = divide(count(SurveyID = 2016& QuestionID = 32 & AnswerText = 'Yes'), count(SurveyID = 2016& QuestionID = 32))*100% | From 2016 to 2019 refer to SurveyID 2016 BETWEEN 2019; Question 13 refer to QuestionID | question refers to questiontext; answered 'Yes' to question refers to AnswerText = 'Yes'; 3 consecutive years starting from 2016 refers to SurveyID = 2016 and SurveyID = 2017 and SurveyID = 2018 | Percentage = DIVIDE(SUM(AnswerText = 'Yes' Or AnswerText = 'Maybe'), COUNT(QuestionID = 12))* 100 | mental health survey for 2018 refers to SurveyID = 2018 | question No.20 refers to QuestionID = 20 | Between 2016 to 2019 refer to SurveyID 2016 BETWEEN 2019; People with mental illness refers to AnswerText = 'Yes' where questionid = 34 | Age 27 to 35 refer to AnswerText 27 BETWEEN 35 where questionid = 1; 2018 refer to SurveyID
| most common answer refers to AnswerText where MAX(COUNT(AnswerText(QuestionID = 3))) |
What is the average age of the survey respondents in the United States? | Average age refer to AVG(AnswerText) where questionid = 1; respondents in the United States refers to AnswerText = 'United States' where questionid = 3 | question refers to questiontext; answered 'Yes' to question refers to AnswerText = 'Yes'; 3 consecutive years starting from 2016 refers to SurveyID = 2016 and SurveyID = 2017 and SurveyID = 2018 | 2019 refer to SurveyID; Users in the United States refers to AnswerText = 'United States' where questionid = 3; have a family history of mental illness refers to AnswerText = 'Yes' where questionid = 6 | question refers to questiontext; user No. 2681 refers to UserID = 2681
| question refers to questiontext; wrote comments refers to AnswerText(QuestionID = 103) ! = -1 | question refers to questiontext; all the common questions in 2014's survey and 2016's survey refers to QuestionID(SurveyID(2014)) = QuestionID(SurveyID(2016))
| How many times more = subtract(count(UserID(SurveyID = 2017)), count(UserID(SurveyID = 2018))) | most common answer refers to AnswerText where MAX(COUNT(AnswerText(QuestionID = 3))) | Percentage = DIVIDE(SUM(AnswerText = 'Yes' Or AnswerText = 'Maybe'), COUNT(QuestionID = 12))* 100 | 2014 refer to SurveyID; Answered No refer to AnswerText = 'No'; Question refer to questiontext
| Between 2016 to 2019 refer to SurveyID 2016 BETWEEN 2019; People with mental illness refers to AnswerText = 'Yes' where questionid = 34 |
From 2016 to 2019, how many users each year were asked the question 13? | From 2016 to 2019 refer to SurveyID 2016 BETWEEN 2019; Question 13 refer to QuestionID | 2014 refer to SurveyID; Answered No refer to AnswerText = 'No'; Question refer to questiontext
| 2014 refer to SurveyID; COUNT(QuestionID) where COUNT(AnswerText) > 200 | have asked refers to questiontext; said 'Yes' refers to AnswerText = 'Yes' | respondents' and 'users' are synonyms; younger than 25 years old refers to AnswerText(SurveyID = 2016& QuestionID = 1)< 25 | question refers to questiontext | Age 27 to 35 refer to AnswerText 27 BETWEEN 35 where questionid = 1; 2018 refer to SurveyID
| question refers to questiontext; answered 'Yes' to question refers to AnswerText = 'Yes'; 3 consecutive years starting from 2016 refers to SurveyID = 2016 and SurveyID = 2017 and SurveyID = 2018 | respondents and 'users' are synonyms; percentage = divide(count(SurveyID = 2016& QuestionID = 32 & AnswerText = 'Yes'), count(SurveyID = 2016& QuestionID = 32))*100% | 2019 refer to SurveyID; Users in the United States refers to AnswerText = 'United States' where questionid = 3; have a family history of mental illness refers to AnswerText = 'Yes' where questionid = 6 | How many times more = subtract(count(UserID(SurveyID = 2017)), count(UserID(SurveyID = 2018))) |
How many questions in 2014's survey had more than 200 answers? | 2014 refer to SurveyID; COUNT(QuestionID) where COUNT(AnswerText) > 200 |
survey in 2017 refers to SurveyID = 2017; questionID = 85; MAX(COUNT(AnswerText)) | 2014 refer to SurveyID; Question refer to questiontext; yes refer to AnswerText = 'Yes'
| have asked refers to questiontext; said 'Yes' refers to AnswerText = 'Yes' | How many times more = subtract(count(UserID(SurveyID = 2017)), count(UserID(SurveyID = 2018))) | question refers to questiontext | most common answer refers to AnswerText where MAX(COUNT(AnswerText(QuestionID = 3))) | Between 2016 to 2019 refer to SurveyID 2016 BETWEEN 2019; People with mental illness refers to AnswerText = 'Yes' where questionid = 34 | respondents and 'users' are synonyms; percentage = divide(count(SurveyID = 2016& QuestionID = 32 & AnswerText = 'Yes'), count(SurveyID = 2016& QuestionID = 32))*100% | question refers to questiontext; all the common questions in 2014's survey and 2016's survey refers to QuestionID(SurveyID(2014)) = QuestionID(SurveyID(2016))
| mental health survey for 2014 refers to SurveyID = 2014 |
Please list all the common questions in 2014's survey and 2016's survey. | question refers to questiontext; all the common questions in 2014's survey and 2016's survey refers to QuestionID(SurveyID(2014)) = QuestionID(SurveyID(2016))
| question refers to questiontext | Question 19 refer to QuestionID = 19; No refer to AnswerText = 'No'
| mental health survey for 2018 refers to SurveyID = 2018 | mental health survey for 2014 refers to SurveyID = 2014 | question refers to questiontext; wrote comments refers to AnswerText(QuestionID = 103) ! = -1 | Percentage = DIVIDE(SUM(AnswerText = 'Yes' Or AnswerText = 'Maybe'), COUNT(QuestionID = 12))* 100 | most common answer refers to AnswerText where MAX(COUNT(AnswerText(QuestionID = 3))) | 2019 refer to SurveyID; Users in the United States refers to AnswerText = 'United States' where questionid = 3; have a family history of mental illness refers to AnswerText = 'Yes' where questionid = 6 | How many times more = subtract(count(UserID(SurveyID = 2017)), count(UserID(SurveyID = 2018))) | Age 27 to 35 refer to AnswerText 27 BETWEEN 35 where questionid = 1; 2018 refer to SurveyID
|
In 2019, how many users in the United States have a family history of mental illness? | 2019 refer to SurveyID; Users in the United States refers to AnswerText = 'United States' where questionid = 3; have a family history of mental illness refers to AnswerText = 'Yes' where questionid = 6 | Age 27 to 35 refer to AnswerText 27 BETWEEN 35 where questionid = 1; 2018 refer to SurveyID
| 2014 refer to SurveyID; Question refer to questiontext; yes refer to AnswerText = 'Yes'
| question refers to questiontext; answered 'Yes' to question refers to AnswerText = 'Yes'; 3 consecutive years starting from 2016 refers to SurveyID = 2016 and SurveyID = 2017 and SurveyID = 2018 | mental health survey for 2014 refers to SurveyID = 2014 | respondents and 'users' are synonyms; average number = avg(count(userID(SurveyID = 2014)), count(userID(SurveyID = 2019))) | have asked refers to questiontext; said 'Yes' refers to AnswerText = 'Yes' | question No.20 refers to QuestionID = 20 | mental health survey for 2018 refers to SurveyID = 2018 | mental health survey for 2016 refers to SurveyID = 2016 | question refers to questiontext; user No. 2681 refers to UserID = 2681
|
Please list the IDs of the users who answered "Yes" to the question "Do you think that discussing a physical health issue with your employer would have negative consequences?" in 2014's survey. | 2014 refer to SurveyID; Question refer to questiontext; yes refer to AnswerText = 'Yes'
| question refers to questiontext; answered 'Yes' to question refers to AnswerText = 'Yes'; 3 consecutive years starting from 2016 refers to SurveyID = 2016 and SurveyID = 2017 and SurveyID = 2018 | mental health survey for 2016 refers to SurveyID = 2016 | Age 27 to 35 refer to AnswerText 27 BETWEEN 35 where questionid = 1; 2018 refer to SurveyID
| respondents' and 'users' are synonyms; younger than 25 years old refers to AnswerText(SurveyID = 2016& QuestionID = 1)< 25 | 2014 refer to SurveyID; Answered No refer to AnswerText = 'No'; Question refer to questiontext
| From 2016 to 2019 refer to SurveyID 2016 BETWEEN 2019; Question 13 refer to QuestionID | mental health survey for 2018 refers to SurveyID = 2018 | question refers to questiontext; all the common questions in 2014's survey and 2016's survey refers to QuestionID(SurveyID(2014)) = QuestionID(SurveyID(2016))
| question No.20 refers to QuestionID = 20 | most common answer refers to AnswerText where MAX(COUNT(AnswerText(QuestionID = 3))) |
What was the most common answer for the question "What country do you work in?"? | most common answer refers to AnswerText where MAX(COUNT(AnswerText(QuestionID = 3))) | question refers to questiontext; wrote comments refers to AnswerText(QuestionID = 103) ! = -1 | have asked refers to questiontext; said 'Yes' refers to AnswerText = 'Yes' |
survey in 2017 refers to SurveyID = 2017; questionID = 85; MAX(COUNT(AnswerText)) | mental health survey for 2016 refers to SurveyID = 2016 | question refers to questiontext; all the common questions in 2014's survey and 2016's survey refers to QuestionID(SurveyID(2014)) = QuestionID(SurveyID(2016))
| 2014 refer to SurveyID; Question refer to questiontext; yes refer to AnswerText = 'Yes'
| AnswerText = 'Yes' where questiontext = 'Do you have a family history of mental illness?'; AnswerText = 'Female' where questionid = 2; AnswerText = 'Nebraska' where questionid = 4 | respondents and 'users' are synonyms; average number = avg(count(userID(SurveyID = 2014)), count(userID(SurveyID = 2019))) | respondents' and 'users' are synonyms; younger than 25 years old refers to AnswerText(SurveyID = 2016& QuestionID = 1)< 25 | question refers to questiontext |
How many users answered the question "Overall, how much importance does your employer place on physical health?"? | question refers to questiontext | question refers to questiontext | respondents and 'users' are synonyms; average number = avg(count(userID(SurveyID = 2014)), count(userID(SurveyID = 2019))) | 2014 refer to SurveyID; Answered No refer to AnswerText = 'No'; Question refer to questiontext
| Between 2016 to 2019 refer to SurveyID 2016 BETWEEN 2019; People with mental illness refers to AnswerText = 'Yes' where questionid = 34 | question refers to questiontext; answered 'Yes' to question refers to AnswerText = 'Yes'; 3 consecutive years starting from 2016 refers to SurveyID = 2016 and SurveyID = 2017 and SurveyID = 2018 | question refers to questiontext; wrote comments refers to AnswerText(QuestionID = 103) ! = -1 | have asked refers to questiontext; said 'Yes' refers to AnswerText = 'Yes' | question refers to questiontext; all the common questions in 2014's survey and 2016's survey refers to QuestionID(SurveyID(2014)) = QuestionID(SurveyID(2016))
| How many times more = subtract(count(UserID(SurveyID = 2017)), count(UserID(SurveyID = 2018))) | respondents and 'users' are synonyms; percentage = divide(count(SurveyID = 2016& QuestionID = 32 & AnswerText = 'Yes'), count(SurveyID = 2016& QuestionID = 32))*100% |
How many users participated in the mental health survey for 2014? | mental health survey for 2014 refers to SurveyID = 2014 | question refers to questiontext; wrote comments refers to AnswerText(QuestionID = 103) ! = -1 | question refers to questiontext; answered 'Yes' to question refers to AnswerText = 'Yes'; 3 consecutive years starting from 2016 refers to SurveyID = 2016 and SurveyID = 2017 and SurveyID = 2018 | respondents and 'users' are synonyms; average number = avg(count(userID(SurveyID = 2014)), count(userID(SurveyID = 2019))) |
survey in 2017 refers to SurveyID = 2017; questionID = 85; MAX(COUNT(AnswerText)) | Between 2016 to 2019 refer to SurveyID 2016 BETWEEN 2019; People with mental illness refers to AnswerText = 'Yes' where questionid = 34 | question refers to questiontext; user No. 2681 refers to UserID = 2681
| respondents' and 'users' are synonyms; younger than 25 years old refers to AnswerText(SurveyID = 2016& QuestionID = 1)< 25 | mental health survey for 2016 refers to SurveyID = 2016 | Average age refer to AVG(AnswerText) where questionid = 1; respondents in the United States refers to AnswerText = 'United States' where questionid = 3 | Age 27 to 35 refer to AnswerText 27 BETWEEN 35 where questionid = 1; 2018 refer to SurveyID
|
How many users answered "No" to question 19? | Question 19 refer to QuestionID = 19; No refer to AnswerText = 'No'
| 2019 refer to SurveyID; Users in the United States refers to AnswerText = 'United States' where questionid = 3; have a family history of mental illness refers to AnswerText = 'Yes' where questionid = 6 | 2014 refer to SurveyID; COUNT(QuestionID) where COUNT(AnswerText) > 200 | have asked refers to questiontext; said 'Yes' refers to AnswerText = 'Yes' | question refers to questiontext; all the common questions in 2014's survey and 2016's survey refers to QuestionID(SurveyID(2014)) = QuestionID(SurveyID(2016))
| AnswerText = 'Yes' where questiontext = 'Do you have a family history of mental illness?'; AnswerText = 'Female' where questionid = 2; AnswerText = 'Nebraska' where questionid = 4 | mental health survey for 2018 refers to SurveyID = 2018 | 2014 refer to SurveyID; Question refer to questiontext; yes refer to AnswerText = 'Yes'
|
survey in 2017 refers to SurveyID = 2017; questionID = 85; MAX(COUNT(AnswerText)) | question refers to questiontext; user No. 2681 refers to UserID = 2681
| question refers to questiontext |
How many respondents younger than 25 years old did participate in the survey in 2016? | respondents' and 'users' are synonyms; younger than 25 years old refers to AnswerText(SurveyID = 2016& QuestionID = 1)< 25 | Average age refer to AVG(AnswerText) where questionid = 1; respondents in the United States refers to AnswerText = 'United States' where questionid = 3 | question refers to questiontext; all the common questions in 2014's survey and 2016's survey refers to QuestionID(SurveyID(2014)) = QuestionID(SurveyID(2016))
| From 2016 to 2019 refer to SurveyID 2016 BETWEEN 2019; Question 13 refer to QuestionID | 2014 refer to SurveyID; Question refer to questiontext; yes refer to AnswerText = 'Yes'
| mental health survey for 2018 refers to SurveyID = 2018 | 2014 refer to SurveyID; Answered No refer to AnswerText = 'No'; Question refer to questiontext
| most common answer refers to AnswerText where MAX(COUNT(AnswerText(QuestionID = 3))) |
survey in 2017 refers to SurveyID = 2017; questionID = 85; MAX(COUNT(AnswerText)) | mental health survey for 2016 refers to SurveyID = 2016 | 2019 refer to SurveyID; Users in the United States refers to AnswerText = 'United States' where questionid = 3; have a family history of mental illness refers to AnswerText = 'Yes' where questionid = 6 |
How many times more for the number of users who took the "mental health survey for 2017" than "mental health survey for 2018"? | How many times more = subtract(count(UserID(SurveyID = 2017)), count(UserID(SurveyID = 2018))) | mental health survey for 2016 refers to SurveyID = 2016 | Question 19 refer to QuestionID = 19; No refer to AnswerText = 'No'
| Average age refer to AVG(AnswerText) where questionid = 1; respondents in the United States refers to AnswerText = 'United States' where questionid = 3 | Percentage = DIVIDE(SUM(AnswerText = 'Yes' Or AnswerText = 'Maybe'), COUNT(QuestionID = 12))* 100 | question refers to questiontext; user No. 2681 refers to UserID = 2681
| question refers to questiontext; all the common questions in 2014's survey and 2016's survey refers to QuestionID(SurveyID(2014)) = QuestionID(SurveyID(2016))
| mental health survey for 2018 refers to SurveyID = 2018 |
survey in 2017 refers to SurveyID = 2017; questionID = 85; MAX(COUNT(AnswerText)) | respondents and 'users' are synonyms; percentage = divide(count(SurveyID = 2016& QuestionID = 32 & AnswerText = 'Yes'), count(SurveyID = 2016& QuestionID = 32))*100% | mental health survey for 2014 refers to SurveyID = 2014 |
Provide the number of users who took part in the "mental health survey for 2016". | mental health survey for 2016 refers to SurveyID = 2016 | question No.20 refers to QuestionID = 20 | question refers to questiontext | How many times more = subtract(count(UserID(SurveyID = 2017)), count(UserID(SurveyID = 2018))) | Between 2016 to 2019 refer to SurveyID 2016 BETWEEN 2019; People with mental illness refers to AnswerText = 'Yes' where questionid = 34 | question refers to questiontext; wrote comments refers to AnswerText(QuestionID = 103) ! = -1 | respondents and 'users' are synonyms; average number = avg(count(userID(SurveyID = 2014)), count(userID(SurveyID = 2019))) | have asked refers to questiontext; said 'Yes' refers to AnswerText = 'Yes' | question refers to questiontext; answered 'Yes' to question refers to AnswerText = 'Yes'; 3 consecutive years starting from 2016 refers to SurveyID = 2016 and SurveyID = 2017 and SurveyID = 2018 | 2014 refer to SurveyID; COUNT(QuestionID) where COUNT(AnswerText) > 200 | most common answer refers to AnswerText where MAX(COUNT(AnswerText(QuestionID = 3))) |
How many users answered the question No.20? | question No.20 refers to QuestionID = 20 | mental health survey for 2016 refers to SurveyID = 2016 |
survey in 2017 refers to SurveyID = 2017; questionID = 85; MAX(COUNT(AnswerText)) | 2014 refer to SurveyID; Answered No refer to AnswerText = 'No'; Question refer to questiontext
| most common answer refers to AnswerText where MAX(COUNT(AnswerText(QuestionID = 3))) | Average age refer to AVG(AnswerText) where questionid = 1; respondents in the United States refers to AnswerText = 'United States' where questionid = 3 | mental health survey for 2018 refers to SurveyID = 2018 | question refers to questiontext; wrote comments refers to AnswerText(QuestionID = 103) ! = -1 | Percentage = DIVIDE(SUM(AnswerText = 'Yes' Or AnswerText = 'Maybe'), COUNT(QuestionID = 12))* 100 | Age 27 to 35 refer to AnswerText 27 BETWEEN 35 where questionid = 1; 2018 refer to SurveyID
| 2014 refer to SurveyID; Question refer to questiontext; yes refer to AnswerText = 'Yes'
|
What is the percentage of the the users who would bring up a mental health issue with a potential employer in an interview? | Percentage = DIVIDE(SUM(AnswerText = 'Yes' Or AnswerText = 'Maybe'), COUNT(QuestionID = 12))* 100 | most common answer refers to AnswerText where MAX(COUNT(AnswerText(QuestionID = 3))) | have asked refers to questiontext; said 'Yes' refers to AnswerText = 'Yes' | AnswerText = 'Yes' where questiontext = 'Do you have a family history of mental illness?'; AnswerText = 'Female' where questionid = 2; AnswerText = 'Nebraska' where questionid = 4 | respondents and 'users' are synonyms; percentage = divide(count(SurveyID = 2016& QuestionID = 32 & AnswerText = 'Yes'), count(SurveyID = 2016& QuestionID = 32))*100% | Question 19 refer to QuestionID = 19; No refer to AnswerText = 'No'
| 2014 refer to SurveyID; COUNT(QuestionID) where COUNT(AnswerText) > 200 | mental health survey for 2016 refers to SurveyID = 2016 | respondents' and 'users' are synonyms; younger than 25 years old refers to AnswerText(SurveyID = 2016& QuestionID = 1)< 25 | mental health survey for 2014 refers to SurveyID = 2014 | Between 2016 to 2019 refer to SurveyID 2016 BETWEEN 2019; People with mental illness refers to AnswerText = 'Yes' where questionid = 34 |
Betweeen 2016 to 2019, which year recorded the highest number of people with mental illness? | Between 2016 to 2019 refer to SurveyID 2016 BETWEEN 2019; People with mental illness refers to AnswerText = 'Yes' where questionid = 34 | 2014 refer to SurveyID; Answered No refer to AnswerText = 'No'; Question refer to questiontext
| question refers to questiontext; all the common questions in 2014's survey and 2016's survey refers to QuestionID(SurveyID(2014)) = QuestionID(SurveyID(2016))
| question refers to questiontext | Question 19 refer to QuestionID = 19; No refer to AnswerText = 'No'
| From 2016 to 2019 refer to SurveyID 2016 BETWEEN 2019; Question 13 refer to QuestionID | How many times more = subtract(count(UserID(SurveyID = 2017)), count(UserID(SurveyID = 2018))) | mental health survey for 2018 refers to SurveyID = 2018 | mental health survey for 2014 refers to SurveyID = 2014 | respondents and 'users' are synonyms; percentage = divide(count(SurveyID = 2016& QuestionID = 32 & AnswerText = 'Yes'), count(SurveyID = 2016& QuestionID = 32))*100% |
survey in 2017 refers to SurveyID = 2017; questionID = 85; MAX(COUNT(AnswerText)) |
List the top three popular responses to the question of the survey in 2017 with the question ID no.85. |
survey in 2017 refers to SurveyID = 2017; questionID = 85; MAX(COUNT(AnswerText)) | question refers to questiontext; answered 'Yes' to question refers to AnswerText = 'Yes'; 3 consecutive years starting from 2016 refers to SurveyID = 2016 and SurveyID = 2017 and SurveyID = 2018 | Question 19 refer to QuestionID = 19; No refer to AnswerText = 'No'
| question refers to questiontext | AnswerText = 'Yes' where questiontext = 'Do you have a family history of mental illness?'; AnswerText = 'Female' where questionid = 2; AnswerText = 'Nebraska' where questionid = 4 | mental health survey for 2016 refers to SurveyID = 2016 | question refers to questiontext; wrote comments refers to AnswerText(QuestionID = 103) ! = -1 | question refers to questiontext; user No. 2681 refers to UserID = 2681
| Percentage = DIVIDE(SUM(AnswerText = 'Yes' Or AnswerText = 'Maybe'), COUNT(QuestionID = 12))* 100 | From 2016 to 2019 refer to SurveyID 2016 BETWEEN 2019; Question 13 refer to QuestionID | How many times more = subtract(count(UserID(SurveyID = 2017)), count(UserID(SurveyID = 2018))) |
What answer did user No. 2681 give to the question "Do you currently have a mental health disorder?"? | question refers to questiontext; user No. 2681 refers to UserID = 2681
|
survey in 2017 refers to SurveyID = 2017; questionID = 85; MAX(COUNT(AnswerText)) | Percentage = DIVIDE(SUM(AnswerText = 'Yes' Or AnswerText = 'Maybe'), COUNT(QuestionID = 12))* 100 | mental health survey for 2014 refers to SurveyID = 2014 | 2014 refer to SurveyID; COUNT(QuestionID) where COUNT(AnswerText) > 200 | have asked refers to questiontext; said 'Yes' refers to AnswerText = 'Yes' | 2014 refer to SurveyID; Answered No refer to AnswerText = 'No'; Question refer to questiontext
| 2019 refer to SurveyID; Users in the United States refers to AnswerText = 'United States' where questionid = 3; have a family history of mental illness refers to AnswerText = 'Yes' where questionid = 6 | Age 27 to 35 refer to AnswerText 27 BETWEEN 35 where questionid = 1; 2018 refer to SurveyID
| AnswerText = 'Yes' where questiontext = 'Do you have a family history of mental illness?'; AnswerText = 'Female' where questionid = 2; AnswerText = 'Nebraska' where questionid = 4 | 2014 refer to SurveyID; Question refer to questiontext; yes refer to AnswerText = 'Yes'
|
Tell the number of surveys that contained the question “What country do you work in?”. | question refers to questiontext | mental health survey for 2016 refers to SurveyID = 2016 | 2014 refer to SurveyID; COUNT(QuestionID) where COUNT(AnswerText) > 200 | 2014 refer to SurveyID; Answered No refer to AnswerText = 'No'; Question refer to questiontext
| Age 27 to 35 refer to AnswerText 27 BETWEEN 35 where questionid = 1; 2018 refer to SurveyID
| question refers to questiontext | respondents' and 'users' are synonyms; younger than 25 years old refers to AnswerText(SurveyID = 2016& QuestionID = 1)< 25 | question refers to questiontext; all the common questions in 2014's survey and 2016's survey refers to QuestionID(SurveyID(2014)) = QuestionID(SurveyID(2016))
| AnswerText = 'Yes' where questiontext = 'Do you have a family history of mental illness?'; AnswerText = 'Female' where questionid = 2; AnswerText = 'Nebraska' where questionid = 4 | Average age refer to AVG(AnswerText) where questionid = 1; respondents in the United States refers to AnswerText = 'United States' where questionid = 3 | most common answer refers to AnswerText where MAX(COUNT(AnswerText(QuestionID = 3))) |
How many people wrote comments for the question "Any additional notes or comments."? | question refers to questiontext; wrote comments refers to AnswerText(QuestionID = 103) ! = -1 | 2014 refer to SurveyID; Answered No refer to AnswerText = 'No'; Question refer to questiontext
| question refers to questiontext; answered 'Yes' to question refers to AnswerText = 'Yes'; 3 consecutive years starting from 2016 refers to SurveyID = 2016 and SurveyID = 2017 and SurveyID = 2018 | question refers to questiontext | respondents' and 'users' are synonyms; younger than 25 years old refers to AnswerText(SurveyID = 2016& QuestionID = 1)< 25 | Percentage = DIVIDE(SUM(AnswerText = 'Yes' Or AnswerText = 'Maybe'), COUNT(QuestionID = 12))* 100 | Question 19 refer to QuestionID = 19; No refer to AnswerText = 'No'
| have asked refers to questiontext; said 'Yes' refers to AnswerText = 'Yes' | 2014 refer to SurveyID; Question refer to questiontext; yes refer to AnswerText = 'Yes'
| mental health survey for 2016 refers to SurveyID = 2016 | 2014 refer to SurveyID; COUNT(QuestionID) where COUNT(AnswerText) > 200 |
How many users, between the age 27 to 35, were surveyed in 2018? | Age 27 to 35 refer to AnswerText 27 BETWEEN 35 where questionid = 1; 2018 refer to SurveyID
| question refers to questiontext; all the common questions in 2014's survey and 2016's survey refers to QuestionID(SurveyID(2014)) = QuestionID(SurveyID(2016))
| Between 2016 to 2019 refer to SurveyID 2016 BETWEEN 2019; People with mental illness refers to AnswerText = 'Yes' where questionid = 34 | mental health survey for 2016 refers to SurveyID = 2016 | mental health survey for 2018 refers to SurveyID = 2018 | Question 19 refer to QuestionID = 19; No refer to AnswerText = 'No'
| respondents' and 'users' are synonyms; younger than 25 years old refers to AnswerText(SurveyID = 2016& QuestionID = 1)< 25 | question refers to questiontext | question No.20 refers to QuestionID = 20 | most common answer refers to AnswerText where MAX(COUNT(AnswerText(QuestionID = 3))) | mental health survey for 2014 refers to SurveyID = 2014 |
What is the average number of respondents per survey between 2014 and 2019? | respondents and 'users' are synonyms; average number = avg(count(userID(SurveyID = 2014)), count(userID(SurveyID = 2019))) | respondents' and 'users' are synonyms; younger than 25 years old refers to AnswerText(SurveyID = 2016& QuestionID = 1)< 25 | 2014 refer to SurveyID; COUNT(QuestionID) where COUNT(AnswerText) > 200 | mental health survey for 2014 refers to SurveyID = 2014 | most common answer refers to AnswerText where MAX(COUNT(AnswerText(QuestionID = 3))) | 2014 refer to SurveyID; Answered No refer to AnswerText = 'No'; Question refer to questiontext
| have asked refers to questiontext; said 'Yes' refers to AnswerText = 'Yes' | Age 27 to 35 refer to AnswerText 27 BETWEEN 35 where questionid = 1; 2018 refer to SurveyID
| How many times more = subtract(count(UserID(SurveyID = 2017)), count(UserID(SurveyID = 2018))) | question refers to questiontext | respondents and 'users' are synonyms; percentage = divide(count(SurveyID = 2016& QuestionID = 32 & AnswerText = 'Yes'), count(SurveyID = 2016& QuestionID = 32))*100% |
For all the users who have been asked "Have you ever been diagnosed with a mental health disorder?", how many of them said "Yes"? | have asked refers to questiontext; said 'Yes' refers to AnswerText = 'Yes' | Average age refer to AVG(AnswerText) where questionid = 1; respondents in the United States refers to AnswerText = 'United States' where questionid = 3 |
survey in 2017 refers to SurveyID = 2017; questionID = 85; MAX(COUNT(AnswerText)) | How many times more = subtract(count(UserID(SurveyID = 2017)), count(UserID(SurveyID = 2018))) | Between 2016 to 2019 refer to SurveyID 2016 BETWEEN 2019; People with mental illness refers to AnswerText = 'Yes' where questionid = 34 | question refers to questiontext | respondents and 'users' are synonyms; percentage = divide(count(SurveyID = 2016& QuestionID = 32 & AnswerText = 'Yes'), count(SurveyID = 2016& QuestionID = 32))*100% | question refers to questiontext; wrote comments refers to AnswerText(QuestionID = 103) ! = -1 | question refers to questiontext | question refers to questiontext; all the common questions in 2014's survey and 2016's survey refers to QuestionID(SurveyID(2014)) = QuestionID(SurveyID(2016))
| AnswerText = 'Yes' where questiontext = 'Do you have a family history of mental illness?'; AnswerText = 'Female' where questionid = 2; AnswerText = 'Nebraska' where questionid = 4 |
State the number of questions that were asked in the "mental health survey for 2018". | mental health survey for 2018 refers to SurveyID = 2018 | Between 2016 to 2019 refer to SurveyID 2016 BETWEEN 2019; People with mental illness refers to AnswerText = 'Yes' where questionid = 34 | mental health survey for 2014 refers to SurveyID = 2014 | respondents' and 'users' are synonyms; younger than 25 years old refers to AnswerText(SurveyID = 2016& QuestionID = 1)< 25 | question refers to questiontext | most common answer refers to AnswerText where MAX(COUNT(AnswerText(QuestionID = 3))) | mental health survey for 2016 refers to SurveyID = 2016 | Question 19 refer to QuestionID = 19; No refer to AnswerText = 'No'
| 2014 refer to SurveyID; COUNT(QuestionID) where COUNT(AnswerText) > 200 | 2014 refer to SurveyID; Question refer to questiontext; yes refer to AnswerText = 'Yes'
| question refers to questiontext; wrote comments refers to AnswerText(QuestionID = 103) ! = -1 |
Among respondents who participated in the survey in 2016, what percentage had a mental health disorder in the past? | respondents and 'users' are synonyms; percentage = divide(count(SurveyID = 2016& QuestionID = 32 & AnswerText = 'Yes'), count(SurveyID = 2016& QuestionID = 32))*100% | From 2016 to 2019 refer to SurveyID 2016 BETWEEN 2019; Question 13 refer to QuestionID | mental health survey for 2018 refers to SurveyID = 2018 | Between 2016 to 2019 refer to SurveyID 2016 BETWEEN 2019; People with mental illness refers to AnswerText = 'Yes' where questionid = 34 | Age 27 to 35 refer to AnswerText 27 BETWEEN 35 where questionid = 1; 2018 refer to SurveyID
| Percentage = DIVIDE(SUM(AnswerText = 'Yes' Or AnswerText = 'Maybe'), COUNT(QuestionID = 12))* 100 | mental health survey for 2016 refers to SurveyID = 2016 | respondents' and 'users' are synonyms; younger than 25 years old refers to AnswerText(SurveyID = 2016& QuestionID = 1)< 25 | question No.20 refers to QuestionID = 20 | 2014 refer to SurveyID; Answered No refer to AnswerText = 'No'; Question refer to questiontext
| 2014 refer to SurveyID; Question refer to questiontext; yes refer to AnswerText = 'Yes'
|
Which dish has the highest price on the menu "Zentral Theater Terrace"? Please give its name. | highest price refers to MAX(Price); Zentral Theater Terrace is a name of menu; | percent = MULTIPLY(DIVIDE(SUM(xpos BETWEEN 0.25 AND 0.75 and ypos BETWEEN 0.25 AND 0.75), COUNT(id)), 1.0); Bluefish is a sub name of dish; located at the center of the menu page refers to xpos BETWEEN 0.25 AND 0.75 and ypos BETWEEN 0.25 AND 0.75; | first appeared in 1861 refers to first_appeared = 1861; | located at Manhattan Hotel refers to location = 'Manhattan Hotel'; | do not have correct data refers to first_appeared < 1851 or first_appeared > 2012; | created on 17th November 1898 refers to date = '1898-11-17'; | cost 180,000 refers to price = 180000; | FALSE; | FALSE; | free refers to lowest_price = 0; | average number of dishes per menu = DIVIDE(COUNT(dish_id), COUNT(page_count)); |
How much does the dish on page 2 of menu ID 12474 cost? | page 2 refers to page_number = 2; | positioned on the left upper corner refers to xpos < 0.25 AND ypos < 0.25; | page 1 refers to page_number = 1; Zentral Theater Terrace is a name of menu; | highest price refers to MAX(Price); Clear green turtle is a name of dish; | average page number = AVG(page_number); Clear green turtle is a name of dish; | first appeared in 1861 refers to first_appeared = 1861; | width refers to full_width; El Fuerte Del Palmar is a name of menu; | Clear green turtle is a name of dish; | appeared at the left upper corner refers to xpos < 0.25 and ypos < 0.25; CHAS.BRADLEY'S OYSTER & DINING ROOM refers to sponsor = 'CHAS.BRADLEY''S OYSTER & DINING ROOM'; | appeared on the menu in less than 5 years = SUBTRACT(last_appeared, first_appeared) < 5; | shown in the lower right corner refers to xpos > 0.75 AND ypos > 0.75; |
How many menus were created for lunch? | created for lunch refers to event = 'LUNCH'; | Paysanne Soup is a name of dish; stable price refers to highest_price is null; | Ritz Carlton is a name of menu; width of over 2490 refers to full_width > 1000; | appeared on the upper left corner on menu refers to xpos < 0.25 AND ypos < 0.25; menu page no. refers to menu_page_id; menu_page_id = 1389; | page 2 refers to page_number = 2; | page 1 refers to page_number = 1; Zentral Theater Terrace is a name of menu; | Clear green turtle is a name of dish; | appeared on a menu more than once refers to times_appeared > menus_appeared; | appear in the right upper corner of the menu page refers to xpos > 0.75 and ypos < 0.25; | dishes with a stable price refers to highest_price is null; created in April of 2011 refers to SUBSTR(created_at,1,4) = '2011' and SUBSTR(created_at, 7, 1) = '4'; | appeared at the left upper corner refers to xpos < 0.25 and ypos < 0.25; CHAS.BRADLEY'S OYSTER & DINING ROOM refers to sponsor = 'CHAS.BRADLEY''S OYSTER & DINING ROOM'; |
What is the menu id of the menu sponsored by Occidental and Oriental Steamship Company with the highest number of pages? | sponsored by Occidental and Oriental Steamship Company refers to sponsor = 'OCCIDENTAL & ORIENTAL STEAMSHIP COMPANY'; highest number of pages refers to MAX(COUNT(page_number)); | place refers to location; | 4 pages refers to page_count = 4; | do not have correct data refers to first_appeared < 1851 or first_appeared > 2012; | appear in the right upper corner of the menu page refers to xpos > 0.75 and ypos < 0.25; | menus with over 10 pages refers to page_count > 10; over 20 dishes refers to dish_count > 20; | Ritz Carlton is a name of menu; biggest height refers to MAX(full_height); | highest price refers to MAX(Price); Clear green turtle is a name of dish; | created for lunch refers to event = 'LUNCH'; | width refers to full_width; El Fuerte Del Palmar is a name of menu; | menus that are DIYs of the restaurant refers to sponsor is null; |
Provide the numbers of the menu item which includes Fresh lobsters in every style and location where that dish was used on a menu. | Fresh lobsters in every style' is a name of dish; location where the dish was used on a menu = (xpos, ypos); | free refers to lowest_price = 0; | Zentral Theater Terrace is a name of menu; | mashed potatoes is a name of dish; | cost 180,000 refers to price = 180000; | if 'c02c9a3b-6881-7080-e040-e00a180631aa' can be found in uuid, it means the 'c02c9a3b-6881-7080-e040-e00a180631aa' is the uuid for the menu called The Biltmore; if 'c02c9a3b-6881-7080-e040-e00a180631aa' can not be found in uuid, it means the 'c02c9a3b-6881-7080-e040-e00a180631aa' is not the uuid for the menu called The Biltmore; The Biltmore is a name of menu; | located at Manhattan Hotel refers to location = 'Manhattan Hotel'; | average page number = AVG(page_number); Clear green turtle is a name of dish; | created between 2011-03-31 at 20:24:46 UTC and 2011-04-15 at 23:09:51 UTC refers to created_at between '2011-03-31 20:24:46 UTC' AND '2011-04-15 23:09:51 UTC'; | Paysanne Soup is a name of dish; stable price refers to highest_price is null; | longest full height refers to MAX(full_height); |
Please list the IDs of all the menus that are DIYs of the restaurant. | menus that are DIYs of the restaurant refers to sponsor is null; | shown in the lower right corner refers to xpos > 0.75 AND ypos > 0.75; | do not have correct data refers to first_appeared < 1851 or first_appeared > 2012; | page 1 refers to page_number = 1; | Clear green turtle is a name of dish; stable price refers to highest_price is null; | first appeared in 1861 refers to first_appeared = 1861; | menus with over 10 pages refers to page_count > 10; over 20 dishes refers to dish_count > 20; | appeared on the menu for more than 100 years = SUBTRACT(last_appeared, first_appeared) > 100; | appear in the right upper corner of the menu page refers to xpos > 0.75 and ypos < 0.25; | page 1 refers to page_number = 1; Zentral Theater Terrace is a name of menu; | first appearance in 1855 refers to first_appeared = 1855; last appearance in 1900 refers to last_appeared = 1900; |
List the names and menu page IDs of the dishes that first appeared in 1861. | first appeared in 1861 refers to first_appeared = 1861; | Dutcher House refers to location = 'Dutcher House'; | Clear green turtle is a name of dish; not support taking out or booking in advance refers to call_number is null; | appeared on the menu for more than 100 years = SUBTRACT(last_appeared, first_appeared) > 100; | page 2 refers to page_number = 2; | Ritz Carlton is a name of menu; biggest height refers to MAX(full_height); | if SUM(full_width where page_number = 1 AND menu.name = 'Zentral Theater Terrace') > SUM(full_width where page_number = 1 AND menu.name = 'Young''s Hotel'), it means Zentral Theater Terrace menu page is bigger than Young's Hotel; if SUM(full_width WHERE page_number = 1 AND menu.name = 'Young''s Hotel') < SUM(full_width WHERE page_number = 1 AND menu.name = 'Zentral Theater Terrace'), it means Young's Hotel menu page is bigger than Zentral Theater Terrace; | Clear Green Turtle is a name of dish; how long a dish appeared on the menu = SUBTRACT(last_appeared, first_appeared); latest update refers to latest updated_at; | page ID of 130 refers MenuPage.id = 130; | highest price refers to MAX(Price); Clear green turtle is a name of dish; | cost 180,000 refers to price = 180000; |
Calculate the total dish count for menu with uuid of "510d47e4-2958-a3d9-e040-e00a18064a99" & "510d47e4-295a-a3d9-e040-e00a18064a99". | total dish count for uuid of '510d47e4-2958-a3d9-e040-e00a18064a99' = SUM(dish_count WHERE uuid = '510d47e4-2958-a3d9-e040-e00a18064a99'); total dish count for uuid of '510d47e4-295a-a3d9-e040-e00a18064a99 = SUM(dish_count WHERE uuid = '510d47e4-295a-a3d9-e040-e00a18064a99'); | place refers to location; | longest full height refers to MAX(full_height); | Clear green turtle is a name of dish; | located at Manhattan Hotel refers to location = 'Manhattan Hotel'; | highest price refers to MAX(highest_price); | highest price refers to MAX(Price); Zentral Theater Terrace is a name of menu; | Ritz Carlton is a name of menu; width of over 2490 refers to full_width > 1000; | 4 pages refers to page_count = 4; | total price = SUM(price); | appeared on the upper left corner on menu refers to xpos < 0.25 AND ypos < 0.25; menu page no. refers to menu_page_id; menu_page_id = 1389; |
What is the average number of dishes per menu in the Souper de Luxe menus? Identify what is the name of the dish that appeared the most in all of its menus. | average number of dishes per menu = DIVIDE(COUNT(dish_id), COUNT(menu_page_id)); Souper de Luxe is a name of menu; dish that appeared the most in all of its menus refers to MAX(COUNT(dish_id)); | highest price refers to MAX(Price); Zentral Theater Terrace is a name of menu; | created on 17th November 1898 refers to date = '1898-11-17'; | highest price refers to MAX(highest_price); | 4 pages refers to page_count = 4; | page ID of 130 refers MenuPage.id = 130; | total price = SUM(price); | Clear green turtle is a name of dish; stable price refers to highest_price is null; | Zentral Theater Terrace is a name of menu; | appear in the right upper corner of the menu page refers to xpos > 0.75 and ypos < 0.25; | FALSE; |
List the dishes that appeared at the left upper corner of the CHAS.BRADLEY'S OYSTER & DINING ROOM"s sponsored menu. | appeared at the left upper corner refers to xpos < 0.25 and ypos < 0.25; CHAS.BRADLEY'S OYSTER & DINING ROOM refers to sponsor = 'CHAS.BRADLEY''S OYSTER & DINING ROOM'; | FALSE; | created between 2011-03-31 at 20:24:46 UTC and 2011-04-15 at 23:09:51 UTC refers to created_at between '2011-03-31 20:24:46 UTC' AND '2011-04-15 23:09:51 UTC'; | 4 pages refers to page_count = 4; | average number of dishes per menu = DIVIDE(COUNT(dish_id), COUNT(menu_page_id)); Souper de Luxe is a name of menu; dish that appeared the most in all of its menus refers to MAX(COUNT(dish_id)); | sponsored by Occidental and Oriental Steamship Company refers to sponsor = 'OCCIDENTAL & ORIENTAL STEAMSHIP COMPANY'; highest number of pages refers to MAX(COUNT(page_number)); | total price = SUM(price); | Ritz Carlton is a name of menu; biggest height refers to MAX(full_height); | Clear green turtle is a name of dish; | appeared on the menu for more than 100 years = SUBTRACT(last_appeared, first_appeared) > 100; | steamship refers to venue = 'STEAMSHIP'; |
Among the menu pages on which the dish "Paysanne Soup" had appeared, how many of them had a stable price for the dish? | Paysanne Soup is a name of dish; stable price refers to highest_price is null; | total price = SUM(price); | 4 pages refers to page_count = 4; | created for lunch refers to event = 'LUNCH'; | Clear green turtle is a name of dish; not support taking out or booking in advance refers to call_number is null; | appeared at the left upper corner refers to xpos < 0.25 and ypos < 0.25; CHAS.BRADLEY'S OYSTER & DINING ROOM refers to sponsor = 'CHAS.BRADLEY''S OYSTER & DINING ROOM'; | appeared on a menu more than once refers to times_appeared > menus_appeared; | appear in the right upper corner of the menu page refers to xpos > 0.75 and ypos < 0.25; | highest dish count refers to MAX(dish_count); | total dish count for uuid of '510d47e4-2958-a3d9-e040-e00a18064a99' = SUM(dish_count WHERE uuid = '510d47e4-2958-a3d9-e040-e00a18064a99'); total dish count for uuid of '510d47e4-295a-a3d9-e040-e00a18064a99 = SUM(dish_count WHERE uuid = '510d47e4-295a-a3d9-e040-e00a18064a99'); | mashed potatoes is a name of dish; |
Among the menus in which the dish "Clear green turtle" had appeared, how many of them did not support taking out or booking in advance? | Clear green turtle is a name of dish; not support taking out or booking in advance refers to call_number is null; | highest price refers to MAX(Price); Clear green turtle is a name of dish; | Ritz Carlton is a name of menu; biggest height refers to MAX(full_height); | FALSE; | first appeared in 1861 refers to first_appeared = 1861; | longest full height refers to MAX(full_height); | FALSE; | average number of dishes per menu = DIVIDE(COUNT(dish_id), COUNT(menu_page_id)); Souper de Luxe is a name of menu; dish that appeared the most in all of its menus refers to MAX(COUNT(dish_id)); | Clear green turtle is a name of dish; stable price refers to highest_price is null; | dishes with a stable price refers to highest_price is null; created in April of 2011 refers to SUBSTR(created_at,1,4) = '2011' and SUBSTR(created_at, 7, 1) = '4'; | average number of dishes per menu = DIVIDE(COUNT(dish_id), COUNT(page_count)); |
For how many times had the dish "Chicken gumbo" appeared on a menu page? | Chicken gumbo is a name of dish; | menus that are DIYs of the restaurant refers to sponsor is null; | free refers to lowest_price = 0; | created for lunch refers to event = 'LUNCH'; | place refers to location; | FALSE; | mashed potatoes is a name of dish; | appeared on a menu more than once refers to times_appeared > menus_appeared; | shown in the lower right corner refers to xpos > 0.75 AND ypos > 0.75; | steamship refers to venue = 'STEAMSHIP'; | total price = SUM(price); |
Please list the IDs of all the menus in which the dish "Clear green turtle" had appeared. | Clear green turtle is a name of dish; | appeared on the menu for more than 100 years = SUBTRACT(last_appeared, first_appeared) > 100; | cost 180,000 refers to price = 180000; | page ID of 130 refers MenuPage.id = 130; | Clear green turtle is a name of dish; not support taking out or booking in advance refers to call_number is null; | average page number = AVG(page_number); Clear green turtle is a name of dish; | Ritz Carlton is a name of menu; biggest height refers to MAX(full_height); | Ritz Carlton is a name of menu; width of over 2490 refers to full_width > 1000; | sponsored by Occidental and Oriental Steamship Company refers to sponsor = 'OCCIDENTAL & ORIENTAL STEAMSHIP COMPANY'; highest number of pages refers to MAX(COUNT(page_number)); | positioned on the left upper corner refers to xpos < 0.25 AND ypos < 0.25; | appeared on the upper left corner on menu refers to xpos < 0.25 AND ypos < 0.25; menu page no. refers to menu_page_id; menu_page_id = 1389; |
Among all the menu pages with the appearance of the dish "Clear green turtle", how many of them have the dish at a stable price? | Clear green turtle is a name of dish; stable price refers to highest_price is null; | Paysanne Soup is a name of dish; stable price refers to highest_price is null; | cost 180,000 refers to price = 180000; | average number of dishes per menu = DIVIDE(COUNT(dish_id), COUNT(menu_page_id)); Souper de Luxe is a name of menu; dish that appeared the most in all of its menus refers to MAX(COUNT(dish_id)); | do not have correct data refers to first_appeared < 1851 or first_appeared > 2012; | free refers to lowest_price = 0; | steamship refers to venue = 'STEAMSHIP'; | appear in the right upper corner of the menu page refers to xpos > 0.75 and ypos < 0.25; | average page number = AVG(page_number); Clear green turtle is a name of dish; | mashed potatoes is a name of dish; | highest price refers to MAX(Price); Zentral Theater Terrace is a name of menu; |
What is the average number of dishes per menu page of menu ID12882? | average number of dishes per menu = DIVIDE(COUNT(dish_id), COUNT(page_count)); | appeared on the menu in less than 5 years = SUBTRACT(last_appeared, first_appeared) < 5; | Fresh lobsters in every style' is a name of dish; location where the dish was used on a menu = (xpos, ypos); | highest number of pages refers to MAX(COUNT(page_number)); | free refers to lowest_price = 0; | page 1 refers to page_number = 1; Zentral Theater Terrace is a name of menu; | place refers to location; | menus with over 10 pages refers to page_count > 10; over 20 dishes refers to dish_count > 20; | page 1 refers to page_number = 1; | Clear green turtle is a name of dish; not support taking out or booking in advance refers to call_number is null; | highest dish count refers to MAX(dish_count); |
What is the average page number of the menus that have the dish "Clear green turtle"? | average page number = AVG(page_number); Clear green turtle is a name of dish; | page 2 refers to page_number = 2; | Ritz Carlton is a name of menu; biggest height refers to MAX(full_height); | appeared on the upper left corner on menu refers to xpos < 0.25 AND ypos < 0.25; menu page no. refers to menu_page_id; menu_page_id = 1389; | highest price refers to MAX(Price); Zentral Theater Terrace is a name of menu; | longest full height refers to MAX(full_height); | highest price refers to MAX(highest_price); | total price = SUM(price); | Clear green turtle is a name of dish; not support taking out or booking in advance refers to call_number is null; | created between 2011-03-31 at 20:24:46 UTC and 2011-04-15 at 23:09:51 UTC refers to created_at between '2011-03-31 20:24:46 UTC' AND '2011-04-15 23:09:51 UTC'; | cost 180,000 refers to price = 180000; |
Please list the names of all the dishes that appeared on the menu "Zentral Theater Terrace". | Zentral Theater Terrace is a name of menu; | appeared on the menu in less than 5 years = SUBTRACT(last_appeared, first_appeared) < 5; | highest price refers to MAX(Price); Zentral Theater Terrace is a name of menu; | page 1 refers to page_number = 1; Zentral Theater Terrace is a name of menu; | total dish count for uuid of '510d47e4-2958-a3d9-e040-e00a18064a99' = SUM(dish_count WHERE uuid = '510d47e4-2958-a3d9-e040-e00a18064a99'); total dish count for uuid of '510d47e4-295a-a3d9-e040-e00a18064a99 = SUM(dish_count WHERE uuid = '510d47e4-295a-a3d9-e040-e00a18064a99'); | appeared at the left upper corner refers to xpos < 0.25 and ypos < 0.25; CHAS.BRADLEY'S OYSTER & DINING ROOM refers to sponsor = 'CHAS.BRADLEY''S OYSTER & DINING ROOM'; | Ritz Carlton is a name of menu; biggest height refers to MAX(full_height); | Clear green turtle is a name of dish; | appeared on the upper left corner on menu refers to xpos < 0.25 AND ypos < 0.25; menu page no. refers to menu_page_id; menu_page_id = 1389; | menus that are DIYs of the restaurant refers to sponsor is null; | appeared on a menu more than once refers to times_appeared > menus_appeared; |
Tally the dishes that have appeared on the menu for more than 100 years. | appeared on the menu for more than 100 years = SUBTRACT(last_appeared, first_appeared) > 100; | page 2 refers to page_number = 2; | highest price refers to MAX(Price); Clear green turtle is a name of dish; | Fresh lobsters in every style' is a name of dish; location where the dish was used on a menu = (xpos, ypos); | FALSE; | page ID of 130 refers MenuPage.id = 130; | if SUM(full_width where page_number = 1 AND menu.name = 'Zentral Theater Terrace') > SUM(full_width where page_number = 1 AND menu.name = 'Young''s Hotel'), it means Zentral Theater Terrace menu page is bigger than Young's Hotel; if SUM(full_width WHERE page_number = 1 AND menu.name = 'Young''s Hotel') < SUM(full_width WHERE page_number = 1 AND menu.name = 'Zentral Theater Terrace'), it means Young's Hotel menu page is bigger than Zentral Theater Terrace; | average number of dishes per menu = DIVIDE(COUNT(dish_id), COUNT(page_count)); | highest price refers to MAX(highest_price); | Clear green turtle is a name of dish; stable price refers to highest_price is null; | Clear green turtle is a name of dish; |
What are the names of the dishes with a stable price that were created in April of 2011? | dishes with a stable price refers to highest_price is null; created in April of 2011 refers to SUBSTR(created_at,1,4) = '2011' and SUBSTR(created_at, 7, 1) = '4'; | highest price refers to MAX(Price); Clear green turtle is a name of dish; | average number of dishes per menu = DIVIDE(COUNT(dish_id), COUNT(page_count)); | sponsored by Occidental and Oriental Steamship Company refers to sponsor = 'OCCIDENTAL & ORIENTAL STEAMSHIP COMPANY'; highest number of pages refers to MAX(COUNT(page_number)); | Dutcher House refers to location = 'Dutcher House'; | FALSE; | created for lunch refers to event = 'LUNCH'; | menus with over 10 pages refers to page_count > 10; over 20 dishes refers to dish_count > 20; | do not have correct data refers to first_appeared < 1851 or first_appeared > 2012; | Clear green turtle is a name of dish; | FALSE; |
How many dishes are included in the menu page ID 144? | FALSE; | if SUM(full_width where page_number = 1 AND menu.name = 'Zentral Theater Terrace') > SUM(full_width where page_number = 1 AND menu.name = 'Young''s Hotel'), it means Zentral Theater Terrace menu page is bigger than Young's Hotel; if SUM(full_width WHERE page_number = 1 AND menu.name = 'Young''s Hotel') < SUM(full_width WHERE page_number = 1 AND menu.name = 'Zentral Theater Terrace'), it means Young's Hotel menu page is bigger than Zentral Theater Terrace; | Ritz Carlton is a name of menu; width of over 2490 refers to full_width > 1000; | place refers to location; | on the right upper corner refers to xpos > 0.75 AND ypos < 0.25; | sponsored by Occidental and Oriental Steamship Company refers to sponsor = 'OCCIDENTAL & ORIENTAL STEAMSHIP COMPANY'; highest number of pages refers to MAX(COUNT(page_number)); | created between 2011-03-31 at 20:24:46 UTC and 2011-04-15 at 23:09:51 UTC refers to created_at between '2011-03-31 20:24:46 UTC' AND '2011-04-15 23:09:51 UTC'; | appear in the right upper corner of the menu page refers to xpos > 0.75 and ypos < 0.25; | most number of dishes refers to MAX(COUNT(dish_count)); | Dutcher House refers to location = 'Dutcher House'; | percent = MULTIPLY(DIVIDE(SUM(xpos BETWEEN 0.25 AND 0.75 and ypos BETWEEN 0.25 AND 0.75), COUNT(id)), 1.0); Bluefish is a sub name of dish; located at the center of the menu page refers to xpos BETWEEN 0.25 AND 0.75 and ypos BETWEEN 0.25 AND 0.75; |
Which menu page has a bigger width, page 1 of "Zentral Theater Terrace" or page 1 of "Young's Hotel"? | if SUM(full_width where page_number = 1 AND menu.name = 'Zentral Theater Terrace') > SUM(full_width where page_number = 1 AND menu.name = 'Young''s Hotel'), it means Zentral Theater Terrace menu page is bigger than Young's Hotel; if SUM(full_width WHERE page_number = 1 AND menu.name = 'Young''s Hotel') < SUM(full_width WHERE page_number = 1 AND menu.name = 'Zentral Theater Terrace'), it means Young's Hotel menu page is bigger than Zentral Theater Terrace; | steamship refers to venue = 'STEAMSHIP'; | Paysanne Soup is a name of dish; stable price refers to highest_price is null; | appeared on a menu more than once refers to times_appeared > menus_appeared; | page ID of 130 refers MenuPage.id = 130; | appear in the right upper corner of the menu page refers to xpos > 0.75 and ypos < 0.25; | FALSE; | located at Manhattan Hotel refers to location = 'Manhattan Hotel'; | image area = MULTIPLY(full_height, full_width); | positioned on the left upper corner refers to xpos < 0.25 AND ypos < 0.25; | first appeared in 1861 refers to first_appeared = 1861; |
State the name of menu with the longest full height. | longest full height refers to MAX(full_height); | if SUM(full_width where page_number = 1 AND menu.name = 'Zentral Theater Terrace') > SUM(full_width where page_number = 1 AND menu.name = 'Young''s Hotel'), it means Zentral Theater Terrace menu page is bigger than Young's Hotel; if SUM(full_width WHERE page_number = 1 AND menu.name = 'Young''s Hotel') < SUM(full_width WHERE page_number = 1 AND menu.name = 'Zentral Theater Terrace'), it means Young's Hotel menu page is bigger than Zentral Theater Terrace; | appeared on a menu more than once refers to times_appeared > menus_appeared; | total dish count for uuid of '510d47e4-2958-a3d9-e040-e00a18064a99' = SUM(dish_count WHERE uuid = '510d47e4-2958-a3d9-e040-e00a18064a99'); total dish count for uuid of '510d47e4-295a-a3d9-e040-e00a18064a99 = SUM(dish_count WHERE uuid = '510d47e4-295a-a3d9-e040-e00a18064a99'); | on the right upper corner refers to xpos > 0.75 AND ypos < 0.25; | Zentral Theater Terrace is a name of menu; | average number of dishes per menu = DIVIDE(COUNT(dish_id), COUNT(page_count)); | FALSE; | highest price refers to MAX(Price); Clear green turtle is a name of dish; | most number of dishes refers to MAX(COUNT(dish_count)); | located at Manhattan Hotel refers to location = 'Manhattan Hotel'; |
Please list the prices of the dish "Clear green turtle" on every menu page it appeared on. | Clear green turtle is a name of dish; | menus with over 10 pages refers to page_count > 10; over 20 dishes refers to dish_count > 20; | first appeared in 1861 refers to first_appeared = 1861; | width refers to full_width; El Fuerte Del Palmar is a name of menu; | created for lunch refers to event = 'LUNCH'; | menus that are DIYs of the restaurant refers to sponsor is null; | Ritz Carlton is a name of menu; width of over 2490 refers to full_width > 1000; | positioned on the left upper corner refers to xpos < 0.25 AND ypos < 0.25; | Clear green turtle is a name of dish; not support taking out or booking in advance refers to call_number is null; | Paysanne Soup is a name of dish; stable price refers to highest_price is null; | if SUM(full_width where page_number = 1 AND menu.name = 'Zentral Theater Terrace') > SUM(full_width where page_number = 1 AND menu.name = 'Young''s Hotel'), it means Zentral Theater Terrace menu page is bigger than Young's Hotel; if SUM(full_width WHERE page_number = 1 AND menu.name = 'Young''s Hotel') < SUM(full_width WHERE page_number = 1 AND menu.name = 'Zentral Theater Terrace'), it means Young's Hotel menu page is bigger than Zentral Theater Terrace; |
How many dishes have appeared on the menu in less than 5 years? | appeared on the menu in less than 5 years = SUBTRACT(last_appeared, first_appeared) < 5; | most number of dishes refers to MAX(COUNT(dish_count)); | Ritz Carlton is a name of menu; width of over 2490 refers to full_width > 1000; | highest number of pages refers to MAX(COUNT(page_number)); | first appeared in 1861 refers to first_appeared = 1861; | menus with over 10 pages refers to page_count > 10; over 20 dishes refers to dish_count > 20; | FALSE; | first appearance in 1855 refers to first_appeared = 1855; last appearance in 1900 refers to last_appeared = 1900; | created between 2011-03-31 at 20:24:46 UTC and 2011-04-15 at 23:09:51 UTC refers to created_at between '2011-03-31 20:24:46 UTC' AND '2011-04-15 23:09:51 UTC'; | do not have correct data refers to first_appeared < 1851 or first_appeared > 2012; | appeared at the left upper corner refers to xpos < 0.25 and ypos < 0.25; CHAS.BRADLEY'S OYSTER & DINING ROOM refers to sponsor = 'CHAS.BRADLEY''S OYSTER & DINING ROOM'; |
Among the dishes, how many of them are for free? | free refers to lowest_price = 0; | Clear green turtle is a name of dish; stable price refers to highest_price is null; | Clear green turtle is a name of dish; | appeared at the left upper corner refers to xpos < 0.25 and ypos < 0.25; CHAS.BRADLEY'S OYSTER & DINING ROOM refers to sponsor = 'CHAS.BRADLEY''S OYSTER & DINING ROOM'; | appeared on the upper left corner on menu refers to xpos < 0.25 AND ypos < 0.25; menu page no. refers to menu_page_id; menu_page_id = 1389; | Clear green turtle is a name of dish; not support taking out or booking in advance refers to call_number is null; | highest price refers to MAX(Price); Clear green turtle is a name of dish; | most number of dishes refers to MAX(COUNT(dish_count)); | place refers to location; | menus that are DIYs of the restaurant refers to sponsor is null; | do not have correct data refers to first_appeared < 1851 or first_appeared > 2012; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.