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
What is the average star with highest percentage for episodes that have received award?
received award refers to result = 'Winner'; the highest percentage refers to max(percent); average star = divide(sum(stars), count(episode_id))
who refers to name; narrator refers to role = 'Narrator'; the "Flight" episode refers to title = 'Flight'
who refers to name; appear the most refers to max(count(person_id)); percentage = divide(count(person_id where max(count(person_id))), count(person_id)) * 100%
the highest number of crews refers to max(count(person_id)); in the Art Department refers to category = 'Art Department'
who refers to name; the role of the "president of NBC West Coast" refers to role = 'president of NBC West Coast'; the first episode refers to episode = 1
weighted stars = divide(sum(stars, percent), 100)
born in the USA refers to birth_country = 'USA'
credited refers to credited = 'true'
average ranking = divide(sum(rating), sum(episode_id))
72 10-star votes refers to stars = 10 and votes = 72
which episode refers to title; not credited refers to credited = ''
What is the name of the actors born in the USA?
born in the USA refers to birth_country = 'USA'
win refers to result = 'Winner'; the most awards refers to max(count(award_id))
who refers to name; narrator refers to role = 'Narrator'; the "Flight" episode refers to title = 'Flight'
the episode titled Juvenile refers to title = 'Juvenile'
weighted stars = divide(sum(stars, percent), 100)
received award refers to result = 'Winner'; the highest percentage refers to max(percent); average star = divide(sum(stars), count(episode_id))
titled "Cherished" refers to title = 'Cherished'
director refers to role = 'director'; received an award refers to result = 'Winner'; episode number refers to episode
credit name refers to name
nominated refers to result = 'Nominee'
the "Agony" refers to title = 'Agony'; win refers to result = 'Winner'
How many people have won at least 3 awards?
won refers to result = 'Winner'; at least 3 awards refers to count(result) > 3
have not been credited refers to credited = ''
have not won any award refers to Result = 'Nominee'
received award refers to result = 'Winner'; the highest percentage refers to max(percent); average star = divide(sum(stars), count(episode_id))
American refers to birth_country = 'USA'; cast refers to category = 'Cast'; uncredited refers to credited = ''
nominated for an award but not win refers to result = 'Nominee'
the 9th season refers to season = 9; Law and Order refers to series = 'Law and Order'; cast refers to category = 'Cast'; average number of casts per season = divide(count(person_id), count(episode_id))
the most votes refers to max(votes)
average ranking = divide(sum(rating), sum(episode_id))
which episode refers to title; not credited refers to credited = ''
won an award refers to result = 'Winner'; role as director refers to role = 'director'
Among the American casts, how many were uncredited on episode ID tt0629228?
American refers to birth_country = 'USA'; cast refers to category = 'Cast'; uncredited refers to credited = ''
72 10-star votes refers to stars = 10 and votes = 72
the first episode refers to episode = 1; the last episode refers to episode = 24; 10 stars vote refers to stars = 10; the difference = subtract(votes where episode = 1, votes where episode = 24) where stars = 10
not credited refers to credited = ''; the "Admissions" episode refers to title = 'Admissions'
not credited refers to credited = ''; episode tt0629391 refers to episode_id = 'tt0629391'
Law and Order refers to series = 'Law and Order'
episode refers to title; most enjoyed by the viewers refers to stars = 10
win refers to result = 'Winner'; the "Outstanding Guest Actress in a Drama Series" award refers to award = 'Outstanding Guest Actress in a Drama Series'; the 1999 refers to year = 1999; Primetime Emmy Awards refers to organization = 'Primetime Emmy Awards'
received award refers to result = 'Winner'; the highest percentage refers to max(percent); average star = divide(sum(stars), count(episode_id))
full place of birth refers to birth_place, birth_region; Rene Chenevert Balcer refers to birth_name = 'Rene Chenevert Balcer'
the most enjoyed refers max(rating); 10-star refers to stars = 10
Who is the youngest person to ever play a "clerk" role in the series?
who refers to name; the youngest person refers to max(birthdate); a "clerk" role refers to role = 'Clerk'
the 2nd-highest number of votes refers to second max(votes)
mafia keyword refers to Keyword = 'mafia'
appeared in the credit refers to credited = 'TRUE'; from the 185th to the 193rd episode refers to number_in_series between 185 and 193; cast refers to category = 'Cast'; average number = divide(count(episode_id), 9)
the episode titled Juvenile refers to title = 'Juvenile'
who refers to name; the role of the "president of NBC West Coast" refers to role = 'president of NBC West Coast'; the first episode refers to episode = 1
the most award won refers to max(episode_id where result = 'Winner')
did not enjoy refers to stars = 1; the finale episode refers to episode = 24
the Best Television Episode award refers to award = 'Best Television Episode'; the Edgar category refers to award_category = 'Edgar'; in 2000 refers to year = 2000
episode refers to title; the highest total number of viewer votes refers to max(sum(votes))
episode refers to title; most enjoyed by the viewers refers to stars = 10
Who is the narrator of the "Flight" episode?
who refers to name; narrator refers to role = 'Narrator'; the "Flight" episode refers to title = 'Flight'
the most refers to max(votes); 1 star refers to stars = '1'
won refers to result = 'Winner'; at least 3 awards refers to count(result) > 3
not credited refers to credited = ''; the "Admissions" episode refers to title = 'Admissions'
from Canada refers to birth_country = Canada; nominated refers to award is NOT NULL
the "Agony" refers to title = 'Agony'; win refers to result = 'Winner'
titled DWB refers to title = 'DWB'; get an award refers to result = 'Winner'
6-star vote refers to stars = 6
not credited refers to credited = ''; episode tt0629391 refers to episode_id = 'tt0629391'
nominated refers to result = 'Nominee'
have not been credited refers to credited = ''
What are the titles of the top 3 episodes that received no less than 30 votes in its 10-star rating?
no less than 30 votes refers to votes > = 30; 10-star rating refers to stars = 10
episode number refers to episode_id; awarded "Best Television Episode" refers to award = 'Best Television Episode' and result = 'Winner'; the second highest positive viewer comments refers to rating = 8.5
appeared in the credit refers to credited = 'TRUE'; from the 185th to the 193rd episode refers to number_in_series between 185 and 193; cast refers to category = 'Cast'; average number = divide(count(episode_id), 9)
episode refers to title; most enjoyed by the viewers refers to stars = 10
full place of birth refers to birth_place, birth_region; Rene Chenevert Balcer refers to birth_name = 'Rene Chenevert Balcer'
least enjoyed refers to stars = 1
not credited refers to credited = ''; the "Admissions" episode refers to title = 'Admissions'
did not enjoy refers to stars = 1; the finale episode refers to episode = 24
the episode titled Juvenile refers to title = 'Juvenile'
average rating = divide(sum(rating), count(episode_id))
nominated for an award but not win refers to result = 'Nominee'
How many people did not enjoy the finale episode?
did not enjoy refers to stars = 1; the finale episode refers to episode = 24
won refers to result = 'Winner'; at least 3 awards refers to count(result) > 3
win refers to result = 'Winner'; the most awards refers to max(count(award_id))
no less than 30 votes refers to votes > = 30; 10-star rating refers to stars = 10
not credited refers to credited = ''; episode tt0629391 refers to episode_id = 'tt0629391'
won an award refers to result = 'Winner'; role as director refers to role = 'director'
appeared in the credit refers to credited = 'TRUE'; from the 185th to the 193rd episode refers to number_in_series between 185 and 193; cast refers to category = 'Cast'; average number = divide(count(episode_id), 9)
the most award won refers to max(episode_id where result = 'Winner')
who refers to name; the role of the "president of NBC West Coast" refers to role = 'president of NBC West Coast'; the first episode refers to episode = 1
produced refers to role = 'producer'
credit displayed refers to credited = 'true'; from episode 1 until 10 refers to episode > = 1 AND episode < = 10
Who played the role of a teleplay in the episode that won "Best Television Episode"?
the role of a teleplay refers to role = 'teleplay'; won refers to result = 'Winner'; "Best Television Episode" refers to award = 'Best Television Episode'
who refers to name; appear the most refers to max(count(person_id)); percentage = divide(count(person_id where max(count(person_id))), count(person_id)) * 100%
6-star vote refers to stars = 6
who refers to name; narrator refers to role = 'Narrator'; the "Flight" episode refers to title = 'Flight'
titled DWB refers to title = 'DWB'; get an award refers to result = 'Winner'
won refers to result = 'Winner'; at least 3 awards refers to count(result) > 3
Law and Order refers to series = 'Law and Order'
episode refers to title; the highest total number of viewer votes refers to max(sum(votes))
the highest number of crews refers to max(count(person_id)); in the Art Department refers to category = 'Art Department'
average ranking = divide(sum(rating), sum(episode_id))
description of what happened refers to summary; award no.296 refers to award_id = '296'
What is the percentage of people who gave the "True North" episode a 1-star rating?
the "True North" episode refers to title = 'True North'; 1-star refers to stars = 1; percentage = divide(count(episode_id where stars = 1), count(episode_id)) * 100% where title = 'True North'
received award refers to result = 'Winner'; the highest percentage refers to max(percent); average star = divide(sum(stars), count(episode_id))
the highest number of crews refers to max(count(person_id)); in the Art Department refers to category = 'Art Department'
the most award won refers to max(episode_id where result = 'Winner')
titled DWB refers to title = 'DWB'; get an award refers to result = 'Winner'
episode refers to title; the highest total number of viewer votes refers to max(sum(votes))
episode refers to title; the two keywords "nun" and "priest" refers to keyword = 'nun' or keyword = 'priest';
episode number refers to episode_id; awarded "Best Television Episode" refers to award = 'Best Television Episode' and result = 'Winner'; the second highest positive viewer comments refers to rating = 8.5
the most refers to max(votes); 10-star refers to stars = 10
the "Agony" refers to title = 'Agony'; win refers to result = 'Winner'
the 2nd-highest number of votes refers to second max(votes)
What role was Julia Roberts nominated for?
nominated refers to result = 'Nominee'
have not been credited refers to credited = ''
episode refers to title; the highest total number of viewer votes refers to max(sum(votes))
least enjoyed refers to stars = 1
the tallest refers to max(height_meters)
credit displayed refers to credited = 'true'; from episode 1 until 10 refers to episode > = 1 AND episode < = 10
average ranking = divide(sum(rating), sum(episode_id))
the first episode refers to episode = 1; the last episode refers to episode = 24; 10 stars vote refers to stars = 10; the difference = subtract(votes where episode = 1, votes where episode = 24) where stars = 10
director refers to role = 'director'; received an award refers to result = 'Winner'; episode number refers to episode
nominated for an award but not win refers to result = 'Nominee'
the "Agony" refers to title = 'Agony'; win refers to result = 'Winner'
How many 6-star votes did episode 12 get? Please include the air date and rating.
6-star vote refers to stars = 6
no less than 30 votes refers to votes > = 30; 10-star rating refers to stars = 10
received award refers to result = 'Winner'; the highest percentage refers to max(percent); average star = divide(sum(stars), count(episode_id))
the most refers to max(votes); 1 star refers to stars = '1'
episode refers to title; the two keywords "nun" and "priest" refers to keyword = 'nun' or keyword = 'priest';
at least two awards refers to count(role) >1
the episode titled Juvenile refers to title = 'Juvenile'
worst rated refers to min(rating)
born in the USA refers to birth_country = 'USA'
appeared in the credit refers to credited = 'TRUE'; from the 185th to the 193rd episode refers to number_in_series between 185 and 193; cast refers to category = 'Cast'; average number = divide(count(episode_id), 9)
average rating = divide(sum(rating), count(episode_id))
Calculate the average number of cast members that appeared in the credit from the 185th to the 193rd episode.
appeared in the credit refers to credited = 'TRUE'; from the 185th to the 193rd episode refers to number_in_series between 185 and 193; cast refers to category = 'Cast'; average number = divide(count(episode_id), 9)
the most award won refers to max(episode_id where result = 'Winner')
have not been credited refers to credited = ''
the first episode refers to episode = 1; the last episode refers to episode = 24; 10 stars vote refers to stars = 10; the difference = subtract(votes where episode = 1, votes where episode = 24) where stars = 10
the Best Television Episode award refers to award = 'Best Television Episode'; the Edgar category refers to award_category = 'Edgar'; in 2000 refers to year = 2000
American refers to birth_country = 'USA'; cast refers to category = 'Cast'; uncredited refers to credited = ''
win refers to result = 'Winner'; the most awards refers to max(count(award_id))
description of what happened refers to summary; award no.296 refers to award_id = '296'
72 10-star votes refers to stars = 10 and votes = 72
who refers to name; appear the most refers to max(count(person_id)); percentage = divide(count(person_id where max(count(person_id))), count(person_id)) * 100%
from Canada refers to birth_country = Canada; nominated refers to award is NOT NULL
For how many times was Park Dietz credited?
credited refers to credited = 'true'
credit displayed refers to credited = 'true'; from episode 1 until 10 refers to episode > = 1 AND episode < = 10
description of what happened refers to summary; award no.296 refers to award_id = '296'
the "True North" episode refers to title = 'True North'; 1-star refers to stars = 1; percentage = divide(count(episode_id where stars = 1), count(episode_id)) * 100% where title = 'True North'
episode refers to title; the two keywords "nun" and "priest" refers to keyword = 'nun' or keyword = 'priest';
the most refers to max(votes); 1 star refers to stars = '1'
the role of a teleplay refers to role = 'teleplay'; won refers to result = 'Winner'; "Best Television Episode" refers to award = 'Best Television Episode'
worst rated refers to min(rating)
average ranking = divide(sum(rating), sum(episode_id))
6-star vote refers to stars = 6
received award refers to result = 'Winner'; the highest percentage refers to max(percent); average star = divide(sum(stars), count(episode_id))
For the episode with the most votes, give its air date.
the most votes refers to max(votes)
the most refers to max(votes); 1 star refers to stars = '1'
episode refers to title; "Outstanding Costume Design for a Series" refers to award = 'Outstanding Costume Design for a Series'
American refers to birth_country = 'USA'; cast refers to category = 'Cast'; uncredited refers to credited = ''
worst rated refers to min(rating)
the highest number of crews refers to max(count(person_id)); in the Art Department refers to category = 'Art Department'
average rating = divide(sum(rating), count(episode_id))
produced refers to role = 'producer'
the "True North" episode refers to title = 'True North'; 1-star refers to stars = 1; percentage = divide(count(episode_id where stars = 1), count(episode_id)) * 100% where title = 'True North'
mafia keyword refers to Keyword = 'mafia'
episode refers to title; the highest total number of viewer votes refers to max(sum(votes))
Who is the winner of the Best Television Episode award for the Edgar category in 2000? Include his or her name and role.
the Best Television Episode award refers to award = 'Best Television Episode'; the Edgar category refers to award_category = 'Edgar'; in 2000 refers to year = 2000
nominated refers to result = 'Nominee'
least enjoyed refers to stars = 1
appeared in the credit refers to credited = 'TRUE'; from the 185th to the 193rd episode refers to number_in_series between 185 and 193; cast refers to category = 'Cast'; average number = divide(count(episode_id), 9)
credit name refers to name
American refers to birth_country = 'USA'; cast refers to category = 'Cast'; uncredited refers to credited = ''
titled "Cherished" refers to title = 'Cherished'
have not been credited refers to credited = ''
72 10-star votes refers to stars = 10 and votes = 72
full place of birth refers to birth_place, birth_region; Rene Chenevert Balcer refers to birth_name = 'Rene Chenevert Balcer'
weighted stars = divide(sum(stars, percent), 100)
List out all the credit names for episode 9.
credit name refers to name
worst rated refers to min(rating)
the 9th season refers to season = 9; Law and Order refers to series = 'Law and Order'; cast refers to category = 'Cast'; average number of casts per season = divide(count(person_id), count(episode_id))
did not enjoy refers to stars = 1; the finale episode refers to episode = 24
who refers to name; the role of the "president of NBC West Coast" refers to role = 'president of NBC West Coast'; the first episode refers to episode = 1
titled DWB refers to title = 'DWB'; get an award refers to result = 'Winner'
have not been credited refers to credited = ''
credited refers to credited = 'true'
the most award won refers to max(episode_id where result = 'Winner')
not credited refers to credited = ''; the "Admissions" episode refers to title = 'Admissions'
American refers to birth_country = 'USA'; cast refers to category = 'Cast'; uncredited refers to credited = ''
How many votes did the episode titled "Cherished" get in total?
titled "Cherished" refers to title = 'Cherished'
born in the USA refers to birth_country = 'USA'
the "Agony" refers to title = 'Agony'; win refers to result = 'Winner'
nominated for an award but not win refers to result = 'Nominee'
the highest number of crews refers to max(count(person_id)); in the Art Department refers to category = 'Art Department'
did not enjoy refers to stars = 1; the finale episode refers to episode = 24
who refers to name; the role of the "president of NBC West Coast" refers to role = 'president of NBC West Coast'; the first episode refers to episode = 1
credit name refers to name
mafia keyword refers to Keyword = 'mafia'
no less than 30 votes refers to votes > = 30; 10-star rating refers to stars = 10
weighted stars = divide(sum(stars, percent), 100)
How many nominations did Law and Order season 9, episode 20 get?
Law and Order refers to series = 'Law and Order'
director refers to role = 'director'; received an award refers to result = 'Winner'; episode number refers to episode
episode refers to title; the two keywords "nun" and "priest" refers to keyword = 'nun' or keyword = 'priest';
credit displayed refers to credited = 'true'; from episode 1 until 10 refers to episode > = 1 AND episode < = 10
titled "Cherished" refers to title = 'Cherished'
who refers to name; the role of the "president of NBC West Coast" refers to role = 'president of NBC West Coast'; the first episode refers to episode = 1
least enjoyed refers to stars = 1
which episode refers to title; not credited refers to credited = ''
not credited refers to credited = ''; the "Admissions" episode refers to title = 'Admissions'
won an award refers to result = 'Winner'; role as director refers to role = 'director'
have not been credited refers to credited = ''
Which episode number has the second highest positive viewer comments and has been awarded "Best Television Episode"?
episode number refers to episode_id; awarded "Best Television Episode" refers to award = 'Best Television Episode' and result = 'Winner'; the second highest positive viewer comments refers to rating = 8.5
titled DWB refers to title = 'DWB'; get an award refers to result = 'Winner'
episode refers to title; most enjoyed by the viewers refers to stars = 10
credit displayed refers to credited = 'true'; from episode 1 until 10 refers to episode > = 1 AND episode < = 10
win refers to result = 'Winner'; the "Outstanding Guest Actress in a Drama Series" award refers to award = 'Outstanding Guest Actress in a Drama Series'; the 1999 refers to year = 1999; Primetime Emmy Awards refers to organization = 'Primetime Emmy Awards'
Law and Order refers to series = 'Law and Order'
the most votes refers to max(votes)
the role of a teleplay refers to role = 'teleplay'; won refers to result = 'Winner'; "Best Television Episode" refers to award = 'Best Television Episode'
who refers to name; portraying "Alex Brown" refers to role = 'Alex Brown'; has been credited refers to credited = 'true'
full place of birth refers to birth_place, birth_region; Rene Chenevert Balcer refers to birth_name = 'Rene Chenevert Balcer'
least enjoyed refers to stars = 1
In which organization did Constantine Makris win the most awards?
win refers to result = 'Winner'; the most awards refers to max(count(award_id))
who refers to name; appear the most refers to max(count(person_id)); percentage = divide(count(person_id where max(count(person_id))), count(person_id)) * 100%
6-star vote refers to stars = 6
have not won any award refers to Result = 'Nominee'
the first episode refers to episode = 1; the last episode refers to episode = 24; 10 stars vote refers to stars = 10; the difference = subtract(votes where episode = 1, votes where episode = 24) where stars = 10
description of what happened refers to summary; award no.296 refers to award_id = '296'
won refers to result = 'Winner'; at least 3 awards refers to count(result) > 3
the role of a teleplay refers to role = 'teleplay'; won refers to result = 'Winner'; "Best Television Episode" refers to award = 'Best Television Episode'
worst rated refers to min(rating)
72 10-star votes refers to stars = 10 and votes = 72
the 9th season refers to season = 9; Law and Order refers to series = 'Law and Order'; cast refers to category = 'Cast'; average number of casts per season = divide(count(person_id), count(episode_id))
How many people gave the most enjoyed episode a 10-star rating?
the most enjoyed refers max(rating); 10-star refers to stars = 10
have not been credited refers to credited = ''
episode number refers to episode_id; awarded "Best Television Episode" refers to award = 'Best Television Episode' and result = 'Winner'; the second highest positive viewer comments refers to rating = 8.5
Law and Order refers to series = 'Law and Order'
episode refers to title; the two keywords "nun" and "priest" refers to keyword = 'nun' or keyword = 'priest';
the "Agony" refers to title = 'Agony'; win refers to result = 'Winner'
description of what happened refers to summary; award no.296 refers to award_id = '296'
titled "Cherished" refers to title = 'Cherished'
have not won any award refers to Result = 'Nominee'
the most refers to max(votes); 10-star refers to stars = 10
who refers to name; the role of the "president of NBC West Coast" refers to role = 'president of NBC West Coast'; the first episode refers to episode = 1
What is the title of the episode that got the most 10-star votes?
the most refers to max(votes); 10-star refers to stars = 10
the most votes refers to max(votes)
the tallest refers to max(height_meters)
nominated refers to result = 'Nominee'
who refers to name; narrator refers to role = 'Narrator'; the "Flight" episode refers to title = 'Flight'
who refers to name; appear the most refers to max(count(person_id)); percentage = divide(count(person_id where max(count(person_id))), count(person_id)) * 100%
American refers to birth_country = 'USA'; cast refers to category = 'Cast'; uncredited refers to credited = ''
have not been credited refers to credited = ''
not credited refers to credited = ''; episode tt0629391 refers to episode_id = 'tt0629391'
the Best Television Episode award refers to award = 'Best Television Episode'; the Edgar category refers to award_category = 'Edgar'; in 2000 refers to year = 2000
credit name refers to name
On what episode did Julia Roberts win the "Outstanding Guest Actress in a Drama Series" award during the 1999 Primetime Emmy Awards? Tell me her role.
win refers to result = 'Winner'; the "Outstanding Guest Actress in a Drama Series" award refers to award = 'Outstanding Guest Actress in a Drama Series'; the 1999 refers to year = 1999; Primetime Emmy Awards refers to organization = 'Primetime Emmy Awards'
the episode titled Juvenile refers to title = 'Juvenile'
episode refers to title; the highest total number of viewer votes refers to max(sum(votes))
director refers to role = 'director'; received an award refers to result = 'Winner'; episode number refers to episode
full place of birth refers to birth_place, birth_region; Rene Chenevert Balcer refers to birth_name = 'Rene Chenevert Balcer'
episode number refers to episode_id; awarded "Best Television Episode" refers to award = 'Best Television Episode' and result = 'Winner'; the second highest positive viewer comments refers to rating = 8.5
the "Agony" refers to title = 'Agony'; win refers to result = 'Winner'
received award refers to result = 'Winner'; the highest percentage refers to max(percent); average star = divide(sum(stars), count(episode_id))
titled "Cherished" refers to title = 'Cherished'
who refers to name; appear the most refers to max(count(person_id)); percentage = divide(count(person_id where max(count(person_id))), count(person_id)) * 100%
have not been credited refers to credited = ''
List the titles and air dates of episodes that were produced by Billy Fox.
produced refers to role = 'producer'
episode refers to title; "Outstanding Costume Design for a Series" refers to award = 'Outstanding Costume Design for a Series'
which episode refers to title; not credited refers to credited = ''
who refers to name; the role of the "president of NBC West Coast" refers to role = 'president of NBC West Coast'; the first episode refers to episode = 1
the tallest refers to max(height_meters)
the most refers to max(votes); 10-star refers to stars = 10
least enjoyed refers to stars = 1
Law and Order refers to series = 'Law and Order'
episode refers to title; the highest total number of viewer votes refers to max(sum(votes))
credit displayed refers to credited = 'true'; from episode 1 until 10 refers to episode > = 1 AND episode < = 10
worst rated refers to min(rating)
What is the difference of 10 stars votes between the first episode and the last episode?
the first episode refers to episode = 1; the last episode refers to episode = 24; 10 stars vote refers to stars = 10; the difference = subtract(votes where episode = 1, votes where episode = 24) where stars = 10
the 9th season refers to season = 9; Law and Order refers to series = 'Law and Order'; cast refers to category = 'Cast'; average number of casts per season = divide(count(person_id), count(episode_id))
full place of birth refers to birth_place, birth_region; Rene Chenevert Balcer refers to birth_name = 'Rene Chenevert Balcer'
credited refers to credited = 'true'
titled "Cherished" refers to title = 'Cherished'
the most refers to max(votes); 1 star refers to stars = '1'
nominated for an award but not win refers to result = 'Nominee'
weighted stars = divide(sum(stars, percent), 100)
win refers to result = 'Winner'; the most awards refers to max(count(award_id))
who refers to name; portraying "Alex Brown" refers to role = 'Alex Brown'; has been credited refers to credited = 'true'
the episode titled Juvenile refers to title = 'Juvenile'
Which episode got the most 1 star votes? Give its title.
the most refers to max(votes); 1 star refers to stars = '1'
who refers to name; portraying "Alex Brown" refers to role = 'Alex Brown'; has been credited refers to credited = 'true'
nominated for an award but not win refers to result = 'Nominee'
win refers to result = 'Winner'; the "Outstanding Guest Actress in a Drama Series" award refers to award = 'Outstanding Guest Actress in a Drama Series'; the 1999 refers to year = 1999; Primetime Emmy Awards refers to organization = 'Primetime Emmy Awards'
credit name refers to name
nominated refers to result = 'Nominee'
description of what happened refers to summary; award no.296 refers to award_id = '296'
titled DWB refers to title = 'DWB'; get an award refers to result = 'Winner'
credited refers to credited = 'true'
born in the USA refers to birth_country = 'USA'
who refers to name; appear the most refers to max(count(person_id)); percentage = divide(count(person_id where max(count(person_id))), count(person_id)) * 100%
What roles have not been credited at the end of the episodes?
have not been credited refers to credited = ''
credit name refers to name
episode refers to title; the two keywords "nun" and "priest" refers to keyword = 'nun' or keyword = 'priest';
the 9th season refers to season = 9; Law and Order refers to series = 'Law and Order'; cast refers to category = 'Cast'; average number of casts per season = divide(count(person_id), count(episode_id))
the most award won refers to max(episode_id where result = 'Winner')
the most refers to max(votes); 10-star refers to stars = 10
who refers to name; portraying "Alex Brown" refers to role = 'Alex Brown'; has been credited refers to credited = 'true'
from Canada refers to birth_country = Canada; nominated refers to award is NOT NULL
American refers to birth_country = 'USA'; cast refers to category = 'Cast'; uncredited refers to credited = ''
average ranking = divide(sum(rating), sum(episode_id))
no less than 30 votes refers to votes > = 30; 10-star rating refers to stars = 10
Who played the role of the "president of NBC West Coast" in the first episode?
who refers to name; the role of the "president of NBC West Coast" refers to role = 'president of NBC West Coast'; the first episode refers to episode = 1
least enjoyed refers to stars = 1
from Canada refers to birth_country = Canada; nominated refers to award is NOT NULL
have not been credited refers to credited = ''
the episode titled Juvenile refers to title = 'Juvenile'
at least two awards refers to count(role) >1
mafia keyword refers to Keyword = 'mafia'
72 10-star votes refers to stars = 10 and votes = 72
episode number refers to episode_id; awarded "Best Television Episode" refers to award = 'Best Television Episode' and result = 'Winner'; the second highest positive viewer comments refers to rating = 8.5
the highest number of crews refers to max(count(person_id)); in the Art Department refers to category = 'Art Department'
average rating = divide(sum(rating), count(episode_id))
How many votes did the episode titled Juvenile get?
the episode titled Juvenile refers to title = 'Juvenile'
director refers to role = 'director'; received an award refers to result = 'Winner'; episode number refers to episode
the most refers to max(votes); 1 star refers to stars = '1'
episode refers to title; the highest total number of viewer votes refers to max(sum(votes))
produced refers to role = 'producer'
the 9th season refers to season = 9; Law and Order refers to series = 'Law and Order'; cast refers to category = 'Cast'; average number of casts per season = divide(count(person_id), count(episode_id))
no less than 30 votes refers to votes > = 30; 10-star rating refers to stars = 10
titled DWB refers to title = 'DWB'; get an award refers to result = 'Winner'
the "True North" episode refers to title = 'True North'; 1-star refers to stars = 1; percentage = divide(count(episode_id where stars = 1), count(episode_id)) * 100% where title = 'True North'
not credited refers to credited = ''; the "Admissions" episode refers to title = 'Admissions'
the tallest refers to max(height_meters)
In which episodes was Anthony Azzara not credited?
which episode refers to title; not credited refers to credited = ''
episode refers to title; most enjoyed by the viewers refers to stars = 10
appeared in the credit refers to credited = 'TRUE'; from the 185th to the 193rd episode refers to number_in_series between 185 and 193; cast refers to category = 'Cast'; average number = divide(count(episode_id), 9)
produced refers to role = 'producer'
description of what happened refers to summary; award no.296 refers to award_id = '296'
the "Agony" refers to title = 'Agony'; win refers to result = 'Winner'
credit displayed refers to credited = 'true'; from episode 1 until 10 refers to episode > = 1 AND episode < = 10
won refers to result = 'Winner'; at least 3 awards refers to count(result) > 3
episode number refers to episode_id; awarded "Best Television Episode" refers to award = 'Best Television Episode' and result = 'Winner'; the second highest positive viewer comments refers to rating = 8.5
the most refers to max(votes); 10-star refers to stars = 10
the most enjoyed refers max(rating); 10-star refers to stars = 10
How many episodes have not won any Law & Order series awards?
have not won any award refers to Result = 'Nominee'
who refers to name; portraying "Alex Brown" refers to role = 'Alex Brown'; has been credited refers to credited = 'true'
the most votes refers to max(votes)
nominated refers to result = 'Nominee'
the role of a teleplay refers to role = 'teleplay'; won refers to result = 'Winner'; "Best Television Episode" refers to award = 'Best Television Episode'
the Best Television Episode award refers to award = 'Best Television Episode'; the Edgar category refers to award_category = 'Edgar'; in 2000 refers to year = 2000
average rating = divide(sum(rating), count(episode_id))
no less than 30 votes refers to votes > = 30; 10-star rating refers to stars = 10
credit displayed refers to credited = 'true'; from episode 1 until 10 refers to episode > = 1 AND episode < = 10
full place of birth refers to birth_place, birth_region; Rene Chenevert Balcer refers to birth_name = 'Rene Chenevert Balcer'
least enjoyed refers to stars = 1
Which episode has the two keywords "nun" and "priest"?
episode refers to title; the two keywords "nun" and "priest" refers to keyword = 'nun' or keyword = 'priest';
who refers to name; the youngest person refers to max(birthdate); a "clerk" role refers to role = 'Clerk'
worst rated refers to min(rating)
from Canada refers to birth_country = Canada; nominated refers to award is NOT NULL
the "True North" episode refers to title = 'True North'; 1-star refers to stars = 1; percentage = divide(count(episode_id where stars = 1), count(episode_id)) * 100% where title = 'True North'
produced refers to role = 'producer'
director refers to role = 'director'; received an award refers to result = 'Winner'; episode number refers to episode
full place of birth refers to birth_place, birth_region; Rene Chenevert Balcer refers to birth_name = 'Rene Chenevert Balcer'
have not won any award refers to Result = 'Nominee'
the 9th season refers to season = 9; Law and Order refers to series = 'Law and Order'; cast refers to category = 'Cast'; average number of casts per season = divide(count(person_id), count(episode_id))
at least two awards refers to count(role) >1
What are the keywords of the episode which received the 2nd-highest number of votes?
the 2nd-highest number of votes refers to second max(votes)
at least two awards refers to count(role) >1
average ranking = divide(sum(rating), sum(episode_id))
not credited refers to credited = ''; the "Admissions" episode refers to title = 'Admissions'
produced refers to role = 'producer'
Law and Order refers to series = 'Law and Order'
the highest number of crews refers to max(count(person_id)); in the Art Department refers to category = 'Art Department'
average rating = divide(sum(rating), count(episode_id))
least enjoyed refers to stars = 1
won refers to result = 'Winner'; at least 3 awards refers to count(result) > 3
have not been credited refers to credited = ''
List out director names that received an award along with the episode number.
director refers to role = 'director'; received an award refers to result = 'Winner'; episode number refers to episode
episode refers to title; "Outstanding Costume Design for a Series" refers to award = 'Outstanding Costume Design for a Series'
72 10-star votes refers to stars = 10 and votes = 72
nominated refers to result = 'Nominee'
won refers to result = 'Winner'; at least 3 awards refers to count(result) > 3
who refers to name; portraying "Alex Brown" refers to role = 'Alex Brown'; has been credited refers to credited = 'true'
full place of birth refers to birth_place, birth_region; Rene Chenevert Balcer refers to birth_name = 'Rene Chenevert Balcer'
which episode refers to title; not credited refers to credited = ''
the most votes refers to max(votes)
appeared in the credit refers to credited = 'TRUE'; from the 185th to the 193rd episode refers to number_in_series between 185 and 193; cast refers to category = 'Cast'; average number = divide(count(episode_id), 9)
average rating = divide(sum(rating), count(episode_id))
Describe what happened in the episode of award no.296.
description of what happened refers to summary; award no.296 refers to award_id = '296'
episode refers to title; the highest total number of viewer votes refers to max(sum(votes))
from Canada refers to birth_country = Canada; nominated refers to award is NOT NULL
who refers to name; portraying "Alex Brown" refers to role = 'Alex Brown'; has been credited refers to credited = 'true'
have not been credited refers to credited = ''
have not won any award refers to Result = 'Nominee'
won refers to result = 'Winner'; at least 3 awards refers to count(result) > 3
who refers to name; narrator refers to role = 'Narrator'; the "Flight" episode refers to title = 'Flight'
which episode refers to title; not credited refers to credited = ''
no less than 30 votes refers to votes > = 30; 10-star rating refers to stars = 10
Law and Order refers to series = 'Law and Order'
Who is the person who appeared the most in the series? Calculate in percentage how many times he or she appeared.
who refers to name; appear the most refers to max(count(person_id)); percentage = divide(count(person_id where max(count(person_id))), count(person_id)) * 100%
the 2nd-highest number of votes refers to second max(votes)
the most enjoyed refers max(rating); 10-star refers to stars = 10
who refers to name; the role of the "president of NBC West Coast" refers to role = 'president of NBC West Coast'; the first episode refers to episode = 1
the first episode refers to episode = 1; the last episode refers to episode = 24; 10 stars vote refers to stars = 10; the difference = subtract(votes where episode = 1, votes where episode = 24) where stars = 10
weighted stars = divide(sum(stars, percent), 100)
the "True North" episode refers to title = 'True North'; 1-star refers to stars = 1; percentage = divide(count(episode_id where stars = 1), count(episode_id)) * 100% where title = 'True North'
episode number refers to episode_id; awarded "Best Television Episode" refers to award = 'Best Television Episode' and result = 'Winner'; the second highest positive viewer comments refers to rating = 8.5
average rating = divide(sum(rating), count(episode_id))
credited refers to credited = 'true'
who refers to name; portraying "Alex Brown" refers to role = 'Alex Brown'; has been credited refers to credited = 'true'
How many episodes are there in the 9th season of Law and Order? Calculate the average number of casts per season of the said series.
the 9th season refers to season = 9; Law and Order refers to series = 'Law and Order'; cast refers to category = 'Cast'; average number of casts per season = divide(count(person_id), count(episode_id))
the episode titled Juvenile refers to title = 'Juvenile'
nominated for an award but not win refers to result = 'Nominee'
the 2nd-highest number of votes refers to second max(votes)
the most award won refers to max(episode_id where result = 'Winner')
no less than 30 votes refers to votes > = 30; 10-star rating refers to stars = 10
which episode refers to title; not credited refers to credited = ''
average ranking = divide(sum(rating), sum(episode_id))
not credited refers to credited = ''; episode tt0629391 refers to episode_id = 'tt0629391'
the role of a teleplay refers to role = 'teleplay'; won refers to result = 'Winner'; "Best Television Episode" refers to award = 'Best Television Episode'
who refers to name; the youngest person refers to max(birthdate); a "clerk" role refers to role = 'Clerk'
Which episode has the highest total number of viewer votes?
episode refers to title; the highest total number of viewer votes refers to max(sum(votes))
72 10-star votes refers to stars = 10 and votes = 72
no less than 30 votes refers to votes > = 30; 10-star rating refers to stars = 10
received award refers to result = 'Winner'; the highest percentage refers to max(percent); average star = divide(sum(stars), count(episode_id))
who refers to name; the youngest person refers to max(birthdate); a "clerk" role refers to role = 'Clerk'
the most refers to max(votes); 10-star refers to stars = 10
weighted stars = divide(sum(stars, percent), 100)
episode number refers to episode_id; awarded "Best Television Episode" refers to award = 'Best Television Episode' and result = 'Winner'; the second highest positive viewer comments refers to rating = 8.5
win refers to result = 'Winner'; the "Outstanding Guest Actress in a Drama Series" award refers to award = 'Outstanding Guest Actress in a Drama Series'; the 1999 refers to year = 1999; Primetime Emmy Awards refers to organization = 'Primetime Emmy Awards'
who refers to name; narrator refers to role = 'Narrator'; the "Flight" episode refers to title = 'Flight'
at least two awards refers to count(role) >1
What is the title of the episodes that were least enjoyed?
least enjoyed refers to stars = 1
mafia keyword refers to Keyword = 'mafia'
the "True North" episode refers to title = 'True North'; 1-star refers to stars = 1; percentage = divide(count(episode_id where stars = 1), count(episode_id)) * 100% where title = 'True North'
episode refers to title; the two keywords "nun" and "priest" refers to keyword = 'nun' or keyword = 'priest';
credit name refers to name
weighted stars = divide(sum(stars, percent), 100)
titled "Cherished" refers to title = 'Cherished'
average ranking = divide(sum(rating), sum(episode_id))
which episode refers to title; not credited refers to credited = ''
the most votes refers to max(votes)
description of what happened refers to summary; award no.296 refers to award_id = '296'
What is the episode rating with the most award won?
the most award won refers to max(episode_id where result = 'Winner')
the Best Television Episode award refers to award = 'Best Television Episode'; the Edgar category refers to award_category = 'Edgar'; in 2000 refers to year = 2000
the most enjoyed refers max(rating); 10-star refers to stars = 10
worst rated refers to min(rating)
appeared in the credit refers to credited = 'TRUE'; from the 185th to the 193rd episode refers to number_in_series between 185 and 193; cast refers to category = 'Cast'; average number = divide(count(episode_id), 9)
produced refers to role = 'producer'
American refers to birth_country = 'USA'; cast refers to category = 'Cast'; uncredited refers to credited = ''
the "Agony" refers to title = 'Agony'; win refers to result = 'Winner'
who refers to name; narrator refers to role = 'Narrator'; the "Flight" episode refers to title = 'Flight'
who refers to name; appear the most refers to max(count(person_id)); percentage = divide(count(person_id where max(count(person_id))), count(person_id)) * 100%
weighted stars = divide(sum(stars, percent), 100)
How many awards did the "Agony" win?
the "Agony" refers to title = 'Agony'; win refers to result = 'Winner'
win refers to result = 'Winner'; the "Outstanding Guest Actress in a Drama Series" award refers to award = 'Outstanding Guest Actress in a Drama Series'; the 1999 refers to year = 1999; Primetime Emmy Awards refers to organization = 'Primetime Emmy Awards'
not credited refers to credited = ''; episode tt0629391 refers to episode_id = 'tt0629391'
born in the USA refers to birth_country = 'USA'
nominated refers to result = 'Nominee'
at least two awards refers to count(role) >1
the highest number of crews refers to max(count(person_id)); in the Art Department refers to category = 'Art Department'
the 2nd-highest number of votes refers to second max(votes)
72 10-star votes refers to stars = 10 and votes = 72
who refers to name; the youngest person refers to max(birthdate); a "clerk" role refers to role = 'Clerk'
the tallest refers to max(height_meters)
Which episodes are nominated for an awards but not win?
nominated for an award but not win refers to result = 'Nominee'
from Canada refers to birth_country = Canada; nominated refers to award is NOT NULL
win refers to result = 'Winner'; the most awards refers to max(count(award_id))
not credited refers to credited = ''; the "Admissions" episode refers to title = 'Admissions'
the "True North" episode refers to title = 'True North'; 1-star refers to stars = 1; percentage = divide(count(episode_id where stars = 1), count(episode_id)) * 100% where title = 'True North'
episode refers to title; most enjoyed by the viewers refers to stars = 10
episode refers to title; the highest total number of viewer votes refers to max(sum(votes))
director refers to role = 'director'; received an award refers to result = 'Winner'; episode number refers to episode
have not won any award refers to Result = 'Nominee'
the most refers to max(votes); 10-star refers to stars = 10
who refers to name; narrator refers to role = 'Narrator'; the "Flight" episode refers to title = 'Flight'
What is the episode that has mafia keyword?
mafia keyword refers to Keyword = 'mafia'
the tallest refers to max(height_meters)
average ranking = divide(sum(rating), sum(episode_id))
did not enjoy refers to stars = 1; the finale episode refers to episode = 24
who refers to name; portraying "Alex Brown" refers to role = 'Alex Brown'; has been credited refers to credited = 'true'
full place of birth refers to birth_place, birth_region; Rene Chenevert Balcer refers to birth_name = 'Rene Chenevert Balcer'
the most enjoyed refers max(rating); 10-star refers to stars = 10
episode number refers to episode_id; awarded "Best Television Episode" refers to award = 'Best Television Episode' and result = 'Winner'; the second highest positive viewer comments refers to rating = 8.5
appeared in the credit refers to credited = 'TRUE'; from the 185th to the 193rd episode refers to number_in_series between 185 and 193; cast refers to category = 'Cast'; average number = divide(count(episode_id), 9)
the most refers to max(votes); 1 star refers to stars = '1'
the "True North" episode refers to title = 'True North'; 1-star refers to stars = 1; percentage = divide(count(episode_id where stars = 1), count(episode_id)) * 100% where title = 'True North'
List down the titles of the top 3 episodes, from highest to lowest, in terms of their weighted stars.
weighted stars = divide(sum(stars, percent), 100)
the most award won refers to max(episode_id where result = 'Winner')
the most enjoyed refers max(rating); 10-star refers to stars = 10
born in the USA refers to birth_country = 'USA'
full place of birth refers to birth_place, birth_region; Rene Chenevert Balcer refers to birth_name = 'Rene Chenevert Balcer'
have not won any award refers to Result = 'Nominee'
have not been credited refers to credited = ''
episode refers to title; "Outstanding Costume Design for a Series" refers to award = 'Outstanding Costume Design for a Series'
the 2nd-highest number of votes refers to second max(votes)
who refers to name; the role of the "president of NBC West Coast" refers to role = 'president of NBC West Coast'; the first episode refers to episode = 1
average ranking = divide(sum(rating), sum(episode_id))
What is the title of the 3 worst rated episodes?
worst rated refers to min(rating)
average ranking = divide(sum(rating), sum(episode_id))
no less than 30 votes refers to votes > = 30; 10-star rating refers to stars = 10
won an award refers to result = 'Winner'; role as director refers to role = 'director'
least enjoyed refers to stars = 1
did not enjoy refers to stars = 1; the finale episode refers to episode = 24
who refers to name; narrator refers to role = 'Narrator'; the "Flight" episode refers to title = 'Flight'
win refers to result = 'Winner'; the "Outstanding Guest Actress in a Drama Series" award refers to award = 'Outstanding Guest Actress in a Drama Series'; the 1999 refers to year = 1999; Primetime Emmy Awards refers to organization = 'Primetime Emmy Awards'
episode refers to title; the two keywords "nun" and "priest" refers to keyword = 'nun' or keyword = 'priest';
produced refers to role = 'producer'
not credited refers to credited = ''; the "Admissions" episode refers to title = 'Admissions'
How many people were not credited at the end of the "Admissions" episode?
not credited refers to credited = ''; the "Admissions" episode refers to title = 'Admissions'
who refers to name; portraying "Alex Brown" refers to role = 'Alex Brown'; has been credited refers to credited = 'true'
titled DWB refers to title = 'DWB'; get an award refers to result = 'Winner'
episode refers to title; the highest total number of viewer votes refers to max(sum(votes))
episode refers to title; most enjoyed by the viewers refers to stars = 10
appeared in the credit refers to credited = 'TRUE'; from the 185th to the 193rd episode refers to number_in_series between 185 and 193; cast refers to category = 'Cast'; average number = divide(count(episode_id), 9)
who refers to name; the youngest person refers to max(birthdate); a "clerk" role refers to role = 'Clerk'
win refers to result = 'Winner'; the "Outstanding Guest Actress in a Drama Series" award refers to award = 'Outstanding Guest Actress in a Drama Series'; the 1999 refers to year = 1999; Primetime Emmy Awards refers to organization = 'Primetime Emmy Awards'
American refers to birth_country = 'USA'; cast refers to category = 'Cast'; uncredited refers to credited = ''
titled "Cherished" refers to title = 'Cherished'
born in the USA refers to birth_country = 'USA'
What are the names of the person that were not credited at the end of episode tt0629391?
not credited refers to credited = ''; episode tt0629391 refers to episode_id = 'tt0629391'
Law and Order refers to series = 'Law and Order'
episode refers to title; "Outstanding Costume Design for a Series" refers to award = 'Outstanding Costume Design for a Series'
win refers to result = 'Winner'; the "Outstanding Guest Actress in a Drama Series" award refers to award = 'Outstanding Guest Actress in a Drama Series'; the 1999 refers to year = 1999; Primetime Emmy Awards refers to organization = 'Primetime Emmy Awards'
the Best Television Episode award refers to award = 'Best Television Episode'; the Edgar category refers to award_category = 'Edgar'; in 2000 refers to year = 2000
the most enjoyed refers max(rating); 10-star refers to stars = 10
the most award won refers to max(episode_id where result = 'Winner')
no less than 30 votes refers to votes > = 30; 10-star rating refers to stars = 10
weighted stars = divide(sum(stars, percent), 100)
the "Agony" refers to title = 'Agony'; win refers to result = 'Winner'
worst rated refers to min(rating)
List the full name of legislators whose born in 1960.
full name refers to official_full_name; born in 1960 refers to birthday_bio like '1960%';
have an Instagram account refers to instagram is NOT null and instagram <>''
religion refers to religion_bio;
ratio = DIVIDE(SUM(gender_bio = 'M'),  SUM(gender_bio = 'F')); male refers to gender_bio = 'M'; female refers to gender_bio = 'F'
started a term on 2nd December 1793 refers to start = '1793-12-02'; male refers to gender_bio = 'M'
female refers to gender_bio = 'F'; have attended in Senate roll call votes refers to lis_id is not null;
official YouTube usernames refers to youtube; female refers to gender_bio = 'F'
Readjuster Democrats refers to party = 'Readjuster Democrat'
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;
older refers to MAX(birthday_bio); 'Sherrod Brown' and 'Maria Cantwell' are official_full_name
female refers to gender_bio = 'F'
For how many terms have the oldest current legislator served?
oldest legislator refers to MIN(birthday_bio);
have a YouTube account but no Instagram account refers to facebook is not null and (instagram is null or instagram = '')
have an Instagram account refers to instagram is NOT null and instagram <>''
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';
Readjuster Democrats refers to party = 'Readjuster Democrat'
started a term on 2nd December 1793 refers to start = '1793-12-02'; male refers to gender_bio = 'M'
Sherrod Brown is an full official name; started on 1993/1/5 refers to start = '1993-01-05';
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
female refers to gender_bio = 'F';
Twitter handle refers to twitter; Roger F. Wicker is an official_full_name
List all the junior senators in 1997.
junior senators refers to state_rank = 'junior'; in 1997 refers to start like '1997%';
started a term on 2nd December 1793 refers to start = '1793-12-02'; male refers to gender_bio = 'M'
Virginia refers to state = 'VA'
full_name refers to first_name, last_name; from the Liberal Republican party refers to party = 'Liberal Republican'
Roger F. Wicker is an official_full_name; not a representative refers to district IS NULL OR district = ''
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;
username of the official Facebook refers to facebook; the oldest refers to MAX(birthday_bio)
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'
have served in the U.S. House refers to house_history_id IS NOT NULL; born in 1738 refers to birthday_bio = 1738
California refers to state = 'CA'; representatives refers to type = 'rep'; ended the term in 1995 refers to end like '1995%';
State the opensecrets_id of the legislator whose YouTube name is Bluetkemeyer.
Bluetkemeyer refers to youtube
started a term on 2nd December 1793 refers to start = '1793-12-02'; male refers to gender_bio = 'M'
Sherrod Brown is an full official name; started on 1993/1/5 refers to start = '1993-01-05';
served for the most number of terms refers to MAX(COUNT(bioguide));
female refers to gender_bio = 'F';
Twitter handle refers to twitter; Roger F. Wicker is an official_full_name
MaxineWaters relates to youtube
Readjuster Democrats refers to party = 'Readjuster Democrat'
official Twitter handle refers to twitter;
birthday was on 8/24/1956 refers to birthday_bio = '1956-08-24'
ratio = DIVIDE(SUM(gender_bio = 'M'),  SUM(gender_bio = 'F')); male refers to gender_bio = 'M'; female refers to gender_bio = 'F'
Among legislators who have an Instagram account, list down their full names and nicknames who have a Thomas ID of less than 1000.
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;
ratio = DIVIDE(SUM(gender_bio = 'M'),  SUM(gender_bio = 'F')); male refers to gender_bio = 'M'; female refers to gender_bio = 'F'
term that started on 2013/1/3 refers to start = '2013-01-03';
the legislators who will end in 2009 refers to END 2009; from the Republican party refers to party = 'Republican'
representatives refers to type = 'rep'; Maine refers to state = 'ME';
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
female refers to gender_bio = 'F'; representatives refers to type = 'rep'; Michigan refers to state = 'MI';
birthday refers to birthday_bio; Amy Klobuchar refers to full name; full name refers to first_name, last_name
district no. 13 refers to district = 13;
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; female refers to gender_bio = 'F'; senators refers to type = 'sen'
How many females were members of the past legislators?
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
Wikipedia page names refers to wikipedia_id; anti-administration refers to party = 'Anti-Administration'; senators refers to type = 'sen';
full name refers to official_full_name; born in 1960 refers to birthday_bio like '1960%';
served for the most number of terms refers to MAX(COUNT(bioguide));
open secrets refers to opensecrets_id; democrat refers to party = democrat; senators refers to type = 'sen'; New Jersey refers to state = 'NJ';
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
Washington, DC office phone number refers to phone; terms starting on 2013/1/3 refers to start = '2013-01-03';
ids refers to bioguide; representatives refers to type = 'rep'; ended the term on 1/3/2019 refers to end = '2019-01-03';
have served in the U.S. House refers to house_history_id IS NOT NULL; born in 1738 refers to birthday_bio = 1738
term that started on 2013/1/3 refers to start = '2013-01-03';
Provide the start date, end date, and party of Pearl Peden Oldfield.
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 starting on 2013/1/3 refers to start = '2013-01-03; female refers to gender_bio = 'F';
Jr. John Conyers is an official_full_name; years served refers to SUM(SUBTRACT(END, start))
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'
representatives refers to type = 'rep'; in 1789 refers to start like '1789%';
Sherrod Brown is an full official name; started on 1993/1/5 refers to start = '1993-01-05';
birthday was on 8/24/1956 refers to birthday_bio = '1956-08-24'
official Twitter handle refers to twitter;
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
have served in the U.S. House refers to house_history_id IS NOT NULL; born in 1738 refers to birthday_bio = 1738
What is the google entity ID of current legislator Sherrod Brown?
Sherrod Brown is an official_full_name
birthday refers to birthday_bio; Amy Klobuchar refers to full name; full name refers to first_name, last_name
birthday on 2/20/1942 refers to birthday_bio = '1942-02-20'
representatives refers to type = 'rep'; in 1789 refers to start like '1789%';
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';
contact URL refers to contact_form; Claire McCaskill is an official_full_name
female refers to gender_bio = 'F'; served for more than 4 terms refers to COUNT(bioguide > 4)
junior senators refers to state_rank = 'junior'; in 1997 refers to start like '1997%';
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;
Among the current legislators who have served for more than 6 terms, how many of them were born after 1960?
served for more than 6 terms refers to COUNT(bioguide > 6); born after 1960 refers to birthday_bio > = '1960-01-01'
junior senators refers to state_rank = 'junior'; in 1997 refers to start like '1997%';
district number refers to district; representative of the house refers to type = 'rep';
full name refers to official_full_name; female refers to gender_bio = 'F'; senators refers to type = 'sen'
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
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'
full names refers to official_full_name; Richard as their first name refers to first_name = 'Richard'
female refers to gender_bio = 'F'; representatives refers to type = 'rep'; Michigan refers to state = 'MI';
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 accounts on OpenSecrets.org refers to opensecrets_ID is NULL OR opensecrets_id = ''; do not have instagram accounts refers to instagram is null
representatives refers to type = 'rep'; Maine refers to state = 'ME';
Please list the full official names of all the current legislators who served the term that started on 2013/1/3.
term that started on 2013/1/3 refers to start = '2013-01-03';
Jr. F. James Sensenbrenner is an official_full_name; How old refers to SUBTRACT(MIN(start), birthday_bio)
Veronica Grace Boland is a full name; full name refers to first_name, middle_name, last_name; party affiliated refers to party
Jr. John Conyers is an official_full_name; years served refers to SUM(SUBTRACT(END, start))
do not have instagram account refers to instagram is null;
not senator refers to class is null;
google entity ID refers to google_entity_id_id; senators refers to type = 'sen'; New York refers to state = 'NY';
full name refers to official_full_name; female refers to gender_bio = 'F'; senators refers to type = 'sen'
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';
representatives refers to type = 'rep'; in 1789 refers to start like '1789%';
Roger F. Wicker is an official_full_name; not a representative refers to district IS NULL OR district = ''
What is the party of the legislator named Susan M. Collins?
legislator's name refers to offical_full_name;
full_name refers to first_name, last_name; from the Liberal Republican party refers to party = 'Liberal Republican'
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));
served only one district for 26 consecutive years refers to SUBTRACT(SUM(cast(strftime('%Y', end)), CAST(strftime('%Y', start)))) = 26
female refers to gender_bio = 'F'; served for more than 4 terms refers to COUNT(bioguide > 4)
have a YouTube account but no Instagram account refers to facebook is not null and (instagram is null or instagram = '')
start date of the term refers to start; born on November 26, 1727 refers to birthday_bio = '1727-11-26';
representatives refers to type = 'rep'; Maine refers to state = 'ME';
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
district no. 13 refers to district = 13;
What is the name of the legislator with the ID of W000059?
name of the legislator = first_name, last_name; ID of W000059 refers to bioguide_id = 'W000059';
served for the most number of terms refers to MAX(COUNT(bioguide));
not senator refers to class is null;
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;
Readjuster Democrats refers to party = 'Readjuster Democrat'
religion refers to religion_bio;
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 name refers to official_full_name; senior refers to state_rank = 'senior'; senators refers to type = 'sen'; 2013 refers to start LIKE '2013%'
ids refers to bioguide; representatives refers to type = 'rep'; ended the term on 1/3/2019 refers to end = '2019-01-03';
female refers to gender_bio = 'F'; served for more than 4 terms refers to COUNT(bioguide > 4)
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';
List the full name of all current female senators.
full name refers to official_full_name; female refers to gender_bio = 'F'; senators refers to type = 'sen'
MaxineWaters relates to youtube
religion is Roman Catholic refers to religion_bio = 'Roman Catholic'; calculation = MULTIPLY(DIVIDE(COUNT(instagram is null), COUNT(bioguide_id)), 1.0)
google entity ID refers to google_entity_id_id; senators refers to type = 'sen'; New York refers to state = 'NY';
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;
ratio = DIVIDE(SUM(gender_bio = 'M'),  SUM(gender_bio = 'F')); male refers to gender_bio = 'M'; 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;
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
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;
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)
What was current legislator Sherrod Brown's Washington, D.C. office phone number during his term starting on 2013/1/3?
Washington, DC office phone number refers to phone; terms starting on 2013/1/3 refers to start = '2013-01-03';
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
Chris Van Hollen is an official_full_name; numeric ID on GovTrack.us refers to govtrack
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;
Jr. John Conyers is an official_full_name; years served refers to SUM(SUBTRACT(END, start))
have served in the U.S. House refers to house_history_id is not null;
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 accounts on OpenSecrets.org refers to opensecrets_ID is NULL OR opensecrets_id = ''; do not have instagram accounts refers to instagram is null
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';
representatives refers to type = 'rep'; Maine refers to state = 'ME';
Jr. F. James Sensenbrenner is an official_full_name; How old refers to SUBTRACT(MIN(start), birthday_bio)
List the official full names of all the legislators that served 13 district for 26 consecutive years.
served only one district for 26 consecutive years refers to SUBTRACT(SUM(cast(strftime('%Y', end)), CAST(strftime('%Y', start)))) = 26
term starting on 2013/1/3 refers to start = '2013-01-03; female refers to gender_bio = 'F';
do not have an account on ballotpedia.org refers to ballotpedia_id IS NULL OR ballotpedia_id = ''
full name = first_name, last_name; oldest legislator refers to MIN(birthday_bio);
the legislators who will end in 2009 refers to END 2009; from the Republican party refers to party = 'Republican'
Sherrod Brown is an full official name; started on 1993/1/5 refers to start = '1993-01-05';
religion refers to religion_bio;
average = DIVIDE(COUNT(bioguide), COUNT(bioguide_id)); legislator that's famous or impact refers to wikipedia_id is not null;
representatives refers to type = 'rep'; Maine refers to state = 'ME';
district number refers to district; representative of the house refers to type = 'rep';
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';
Which state did Veronica Grace Boland represent and which party is she affiliated?
Veronica Grace Boland is a full name; full name refers to first_name, middle_name, last_name; party affiliated refers to party
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
ratio = DIVIDE(SUM(gender_bio = 'M'),  SUM(gender_bio = 'F')); male refers to gender_bio = 'M'; female refers to gender_bio = 'F'
Chris Van Hollen is an official_full_name; numeric ID on GovTrack.us refers to govtrack
birthday on 2/20/1942 refers to birthday_bio = '1942-02-20'
California refers to state = 'CA'; representatives refers to type = 'rep'; ended the term in 1995 refers to end like '1995%';
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)
birthday was on 8/24/1956 refers to birthday_bio = '1956-08-24'
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;
gender refers to gender_bio
female refers to gender_bio = 'F'; representatives refers to type = 'rep'; Michigan refers to state = 'MI';
Among all the current legislators whose religion is Roman Catholic, what is the percentage of the ones without an instagram account?
religion is Roman Catholic refers to religion_bio = 'Roman Catholic'; calculation = MULTIPLY(DIVIDE(COUNT(instagram is null), COUNT(bioguide_id)), 1.0)
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;
open secrets refers to opensecrets_id; democrat refers to party = democrat; senators refers to type = 'sen'; New Jersey refers to state = 'NJ';
do not have an account on instagram refers to instagram is null
once a senator during term refers to state_rank IS NOT NULL
the legislators who will end in 2009 refers to END 2009; from the Republican party refers to party = 'Republican'
full official name refers to official_full_name
Chris Van Hollen is an official_full_name; numeric ID on GovTrack.us refers to govtrack
Sherrod Brown is an full official name; started on 1993/1/5 refers to start = '1993-01-05';
legislators who do not have an account refers to cspan_id IS NULL OR cspan_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';
Which legislators do not have instagram account?
do not have instagram account refers to instagram is null;
full names refers to official_full_name; Richard as their first name refers to first_name = 'Richard'
district no. 13 refers to district = 13;
legislator's name refers to offical_full_name;
have an Instagram account refers to instagram is NOT null and instagram <>''
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 starting on 2013/1/3 refers to start = '2013-01-03; female refers to gender_bio = 'F';
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'
official Twitter handle refers to twitter;
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';
How many legislators have an Instagram account?
have an Instagram account refers to instagram is NOT null and instagram <>''
served only one district for 26 consecutive years refers to SUBTRACT(SUM(cast(strftime('%Y', end)), CAST(strftime('%Y', start)))) = 26
full name = first_name, last_name; oldest legislator refers to MIN(birthday_bio);
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
do not have an account on ballotpedia.org refers to ballotpedia_id IS NULL OR ballotpedia_id = ''
started a term on 2nd December 1793 refers to start = '1793-12-02'; male refers to gender_bio = 'M'
full name refers to official_full_name; female refers to gender_bio = 'F'; senators refers to type = 'sen'
district number refers to district; representative of the house refers to type = 'rep';
ratio = DIVIDE(SUM(gender_bio = 'M'),  SUM(gender_bio = 'F')); male refers to gender_bio = 'M'; female refers to gender_bio = 'F'
birthday was on 8/24/1956 refers to birthday_bio = '1956-08-24'
Sherrod Brown is an full official name; started on 1993/1/5 refers to start = '1993-01-05';
In California, how many representatives ended their term in 1995?
California refers to state = 'CA'; representatives refers to type = 'rep'; ended the term in 1995 refers to end like '1995%';
female refers to gender_bio = 'F'
Veronica Grace Boland is a full name; full name refers to first_name, middle_name, last_name; party affiliated refers to party
Virginia refers to state = 'VA'
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';
older refers to MAX(birthday_bio); 'Sherrod Brown' and 'Maria Cantwell' are official_full_name
not senator refers to class is null;
Roger F. Wicker is an official_full_name; not a representative refers to district IS NULL OR district = ''
Facebook, Twitter and YouTube usernames refers to facebook, twitter, youtube; Adam Kinzinger is an official_full_name
ids refers to bioguide; representatives refers to type = 'rep'; ended the term on 1/3/2019 refers to end = '2019-01-03';
username of the official Facebook refers to facebook; the oldest refers to MAX(birthday_bio)
What is the gender of the legislator whose address at 317 Russell Senate Office Building Washington DC 20510?
gender refers to gender_bio
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 of the term refers to start; born on November 26, 1727 refers to birthday_bio = '1727-11-26';
not senator refers to class is null;
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
Wikipedia page names refers to wikipedia_id; anti-administration refers to party = 'Anti-Administration'; senators refers to type = 'sen';
birthday was on 8/24/1956 refers to birthday_bio = '1956-08-24'
name of the legislator = first_name, last_name; ID of W000059 refers to bioguide_id = 'W000059';
Chris Van Hollen is an official_full_name; numeric ID on GovTrack.us refers to govtrack
legislators who do not have an account refers to cspan_id IS NULL OR cspan_id = ''
Does Thomas Carnes have an account on ballotpedia.org?
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;
do not have an account on instagram refers to instagram is null
Readjuster Democrats refers to party = 'Readjuster Democrat'
Facebook, Twitter and YouTube usernames refers to facebook, twitter, youtube; Adam Kinzinger is an official_full_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';
full names refers to official_full_name; Richard as their first name refers to first_name = 'Richard'
Bluetkemeyer refers to youtube
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
have an Instagram account refers to instagram is NOT null and instagram <>''
woman refers to gender_bio = 'F';
What is the birthday of Amy Klobuchar?
birthday refers to birthday_bio; Amy Klobuchar refers to full name; full name refers to first_name, last_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;
Readjuster Democrats refers to party = 'Readjuster Democrat'
do not have instagram account refers to instagram is null;
woman refers to gender_bio = 'F';
Bluetkemeyer refers to youtube
contact URL refers to contact_form; Claire McCaskill is an official_full_name
female refers to gender_bio = 'F'; representatives refers to type = 'rep'; Michigan refers to state = 'MI';
oldest legislator refers to MIN(birthday_bio);
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
What is the numeric ID of Chris Van Hollen on GovTrack.us?
Chris Van Hollen is an official_full_name; numeric ID on GovTrack.us refers to govtrack
Facebook, Twitter and YouTube usernames refers to facebook, twitter, youtube; Adam Kinzinger is an official_full_name
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
Sherrod Brown is an full official name; started on 1993/1/5 refers to start = '1993-01-05';
Roger F. Wicker is an official_full_name; not a representative refers to district IS NULL OR district = ''
Jr. F. James Sensenbrenner is an official_full_name; How old refers to SUBTRACT(MIN(start), birthday_bio)
full name refers to official_full_name;
Sherrod Brown is an official_full_name
woman refers to gender_bio = 'F';
full_name refers to first_name, last_name; from the Liberal Republican party refers to party = 'Liberal Republican'
Among the legislators who will end in 2009, how many are from the Republican party?
the legislators who will end in 2009 refers to END 2009; from the Republican party refers to party = 'Republican'
birthday was on 8/24/1956 refers to birthday_bio = '1956-08-24'
Bluetkemeyer refers to youtube
district no. 13 refers to district = 13;
district number refers to district; representative of the house refers to type = 'rep';
contact URL refers to contact_form; Claire McCaskill is an official_full_name
religion refers to religion_bio;
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
Idaho refers to state = 'ID';
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
Among all the female current legislators, how many of them have served for more than 4 terms?
female refers to gender_bio = 'F'; served for more than 4 terms refers to COUNT(bioguide > 4)
female refers to gender_bio = 'F'
Sherrod Brown is an full official name; started on 1993/1/5 refers to start = '1993-01-05';
full official name refers to official_full_name
district no. 13 refers to district = 13;
have an Instagram account refers to instagram is NOT null and instagram <>''
contact URL refers to contact_form; Claire McCaskill is an official_full_name
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'
served only one district for 26 consecutive years refers to SUBTRACT(SUM(cast(strftime('%Y', end)), CAST(strftime('%Y', start)))) = 26
served for more than 6 terms refers to COUNT(bioguide > 6); born after 1960 refers to birthday_bio > = '1960-01-01'
How old was Jr. F. James Sensenbrenner when he first started as a legislator?
Jr. F. James Sensenbrenner is an official_full_name; How old refers to SUBTRACT(MIN(start), birthday_bio)
junior senators refers to state_rank = 'junior'; in 1997 refers to start like '1997%';
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)
Twitter handle refers to twitter; Roger F. Wicker is an official_full_name
started a term on 2nd December 1793 refers to start = '1793-12-02'; male refers to gender_bio = 'M'
Washington, DC office phone number refers to phone; terms starting on 2013/1/3 refers to start = '2013-01-03';
female refers to gender_bio = 'F';
full_name refers to first_name, last_name; from the Liberal Republican party refers to party = 'Liberal Republican'
Chris Van Hollen is an official_full_name; numeric ID on GovTrack.us refers to govtrack
start date of the term refers to start; born on November 26, 1727 refers to birthday_bio = '1727-11-26';
have served in the U.S. House refers to house_history_id IS NOT NULL; born in 1738 refers to birthday_bio = 1738
Please list the official full names of all the current legislators who do not have an account on C-SPAN's video website.
legislators who do not have an account refers to cspan_id IS NULL OR cspan_id = ''
once a senator during term refers to state_rank IS NOT NULL
full_name refers to first_name, last_name; from the Liberal Republican party refers to party = 'Liberal Republican'
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;
religion is Roman Catholic refers to religion_bio = 'Roman Catholic'; calculation = MULTIPLY(DIVIDE(COUNT(instagram is null), COUNT(bioguide_id)), 1.0)
legislator's name refers to offical_full_name;
average = DIVIDE(COUNT(bioguide), COUNT(bioguide_id)); legislator that's famous or impact refers to wikipedia_id is not null;
oldest legislator refers to MIN(birthday_bio);
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;
term that started on 2013/1/3 refers to start = '2013-01-03';
served only one district for 26 consecutive years refers to SUBTRACT(SUM(cast(strftime('%Y', end)), CAST(strftime('%Y', start)))) = 26
List the official full names of 10 legislators who have a YouTube account but no Instagram account.
have a YouTube account but no Instagram account refers to facebook is not null and (instagram is null or instagram = '')
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;
religion is Roman Catholic refers to religion_bio = 'Roman Catholic'; calculation = MULTIPLY(DIVIDE(COUNT(instagram is null), COUNT(bioguide_id)), 1.0)
district number refers to district; representative of the house refers to type = 'rep';
Jr. John Conyers is an official_full_name; years served refers to SUM(SUBTRACT(END, start))
open secrets refers to opensecrets_id; democrat refers to party = democrat; senators refers to type = 'sen'; New Jersey refers to state = 'NJ';
female refers to gender_bio = 'F'; served for more than 4 terms refers to COUNT(bioguide > 4)
full name refers to official_full_name; born in 1960 refers to birthday_bio like '1960%';
Sherrod Brown is an official_full_name
the legislators who will end in 2009 refers to END 2009; from the Republican party refers to party = 'Republican'
username of the official Facebook refers to facebook; the oldest refers to MAX(birthday_bio)
How many current legislators do not have an account on ballotpedia.org ?
do not have an account on ballotpedia.org refers to ballotpedia_id IS NULL OR ballotpedia_id = ''
have served in the U.S. House refers to house_history_id IS NOT NULL; born in 1738 refers to birthday_bio = 1738
Facebook, Twitter and YouTube usernames refers to facebook, twitter, youtube; Adam Kinzinger is an official_full_name
Washington, DC office phone number refers to phone; terms starting on 2013/1/3 refers to start = '2013-01-03';
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
female refers to gender_bio = 'F';
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
female refers to gender_bio = 'F'; have attended in Senate roll call votes refers to lis_id is not null;
legislator's name refers to offical_full_name;
Veronica Grace Boland is a full name; full name refers to first_name, middle_name, last_name; party affiliated refers to party
junior senators refers to state_rank = 'junior'; in 1997 refers to start like '1997%';
Give the full name of the legislators with an independent party.
full name refers to official_full_name;
older refers to MAX(birthday_bio); 'Sherrod Brown' and 'Maria Cantwell' are official_full_name
Bluetkemeyer refers to youtube
have a YouTube account but no Instagram account refers to facebook is not null and (instagram is null or instagram = '')
once a senator during term refers to state_rank IS NOT NULL
have served in the U.S. House refers to house_history_id is not null;
Jr. F. James Sensenbrenner is an official_full_name; How old refers to SUBTRACT(MIN(start), birthday_bio)
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 names refers to official_full_name; Richard as their first name refers to first_name = 'Richard'
started a term on 2nd December 1793 refers to start = '1793-12-02'; male refers to gender_bio = 'M'
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;
Give the Wikipedia IDs of historical legislators who are Readjuster Democrats.
Readjuster Democrats refers to party = 'Readjuster Democrat'
birthday was on 8/24/1956 refers to birthday_bio = '1956-08-24'
average = DIVIDE(COUNT(bioguide), COUNT(bioguide_id)); legislator that's famous or impact refers to wikipedia_id is not null;
not the senator refers to class IS NULL OR class = ''; female refers to gender_bio = 'F';
Independent party refers to party = 'Independent'
served for more than 6 terms refers to COUNT(bioguide > 6); born after 1960 refers to birthday_bio > = '1960-01-01'
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
Chris Van Hollen is an official_full_name; numeric ID on GovTrack.us refers to govtrack
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';
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
Among the legislators who have served in the U.S. House, provide the party and the state of the legislators who were born in 1738.
have served in the U.S. House refers to house_history_id IS NOT NULL; born in 1738 refers to birthday_bio = 1738
full name refers to official_full_name; senior refers to state_rank = 'senior'; senators refers to type = 'sen'; 2013 refers to start LIKE '2013%'
Twitter handle refers to twitter; Roger F. Wicker is an official_full_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)
Idaho refers to state = 'ID';
once a senator during term refers to state_rank IS NOT NULL
ids refers to bioguide; representatives refers to type = 'rep'; ended the term on 1/3/2019 refers to end = '2019-01-03';
Facebook, Twitter and YouTube usernames refers to facebook, twitter, youtube; Adam Kinzinger is an official_full_name
religion refers to religion_bio;
religion refers to religion_bio;
Jr. John Conyers is an official_full_name; years served refers to SUM(SUBTRACT(END, start))
List down the MapLight ID of the representatives in Maine.
representatives refers to type = 'rep'; Maine refers to state = 'ME';
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
gender refers to gender_bio
full official name refers to official_full_name
full name refers to official_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
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;
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;
not senator refers to class is null;
ratio = DIVIDE(SUM(gender_bio = 'M'),  SUM(gender_bio = 'F')); male refers to gender_bio = 'M'; female refers to gender_bio = 'F'
How many of the legislators are female?
female refers to gender_bio = 'F';
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';
Bluetkemeyer refers to youtube
female refers to gender_bio = 'F'
Jr. John Conyers is an official_full_name; years served refers to SUM(SUBTRACT(END, start))
representatives refers to type = 'rep'; Maine refers to state = 'ME';
full names refers to official_full_name; Richard as their first name refers to first_name = 'Richard'
open secrets refers to opensecrets_id; democrat refers to party = democrat; senators refers to type = 'sen'; New Jersey refers to state = 'NJ';
Readjuster Democrats refers to party = 'Readjuster Democrat'
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;
ids refers to bioguide; representatives refers to type = 'rep'; ended the term on 1/3/2019 refers to end = '2019-01-03';
List the official full names of all the legislators who have facebook, instagram, twitter and youtube accounts.
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;
religion is Roman Catholic refers to religion_bio = 'Roman Catholic'; calculation = MULTIPLY(DIVIDE(COUNT(instagram is null), COUNT(bioguide_id)), 1.0)
Jr. John Conyers is an official_full_name; years served refers to SUM(SUBTRACT(END, start))
ids refers to bioguide; representatives refers to type = 'rep'; ended the term on 1/3/2019 refers to end = '2019-01-03';
female refers to gender_bio = 'F';
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
not the senator refers to class IS NULL OR class = ''; female refers to gender_bio = 'F';
district number refers to district; representative of the house refers to type = 'rep';
term that started on 2013/1/3 refers to start = '2013-01-03';
legislators who do not have an account refers to cspan_id IS NULL OR cspan_id = ''
do not have an account on instagram refers to instagram is null
How many female representatives are there in Michigan?
female refers to gender_bio = 'F'; representatives refers to type = 'rep'; Michigan refers to state = 'MI';
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
MaxineWaters relates to youtube
Washington, DC office phone number refers to phone; terms starting on 2013/1/3 refers to start = '2013-01-03';
Jr. F. James Sensenbrenner is an official_full_name; How old refers to SUBTRACT(MIN(start), birthday_bio)
representatives refers to type = 'rep'; Maine refers to state = 'ME';
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;
the legislators who will end in 2009 refers to END 2009; from the Republican party refers to party = 'Republican'
Readjuster Democrats refers to party = 'Readjuster Democrat'
do not have an account on ballotpedia.org refers to ballotpedia_id IS NULL OR ballotpedia_id = ''
username of the official Facebook refers to facebook; the oldest refers to MAX(birthday_bio)
For which state did current legislator Sherrod Brown serve during his term that started on 1993/1/5?
Sherrod Brown is an full official name; started on 1993/1/5 refers to start = '1993-01-05';
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)
genders refers to gender_bio; Collins is a last_name
term that started on 2013/1/3 refers to start = '2013-01-03';
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';
Washington, DC office phone number refers to phone; terms starting on 2013/1/3 refers to start = '2013-01-03';
full_name refers to first_name, last_name; from the Liberal Republican party refers to party = 'Liberal Republican'
have an Instagram account refers to instagram is NOT null and instagram <>''
start date of the term refers to start; born on November 26, 1727 refers to birthday_bio = '1727-11-26';
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
What is the title of legislator whose birthday on 2/20/1942?
birthday on 2/20/1942 refers to birthday_bio = '1942-02-20'
older refers to MAX(birthday_bio); 'Sherrod Brown' and 'Maria Cantwell' are official_full_name
Jr. F. James Sensenbrenner is an official_full_name; How old refers to SUBTRACT(MIN(start), birthday_bio)
district number refers to district; representative of the house refers to type = 'rep';
representatives refers to type = 'rep'; Maine refers to state = 'ME';
not the senator refers to class IS NULL OR class = ''; 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;
gender refers to gender_bio
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';
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;
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))
List all the representatives in 1789 along with the districts and state.
representatives refers to type = 'rep'; in 1789 refers to start like '1789%';
official YouTube usernames refers to youtube; female refers to gender_bio = 'F'
religion refers to religion_bio;
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';
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
religion is Roman Catholic refers to religion_bio = 'Roman Catholic'; calculation = MULTIPLY(DIVIDE(COUNT(instagram is null), COUNT(bioguide_id)), 1.0)
full official name refers to official_full_name
older refers to MAX(birthday_bio); 'Sherrod Brown' and 'Maria Cantwell' are official_full_name
not the senator refers to class IS NULL OR class = ''; female refers to gender_bio = 'F';
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))
What are the Facebook, Twitter and YouTube usernames of Adam Kinzinger?
Facebook, Twitter and YouTube usernames refers to facebook, twitter, youtube; Adam Kinzinger is an official_full_name
genders refers to gender_bio; Collins is a last_name
Twitter handle refers to twitter; Roger F. Wicker is an official_full_name
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';
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;
have served in the U.S. House refers to house_history_id is not null;
served for the most number of terms refers to MAX(COUNT(bioguide));
term starting on 2013/1/3 refers to start = '2013-01-03; female refers to gender_bio = 'F';
born in 1736 refers to birthday_bio like '1736%';
average = DIVIDE(COUNT(bioguide), COUNT(bioguide_id)); legislator that's famous or impact refers to wikipedia_id is not null;
List the full name of all the senior senators in year 2013.
full name refers to official_full_name; senior refers to state_rank = 'senior'; senators refers to type = 'sen'; 2013 refers to start LIKE '2013%'
legislators who do not have an account refers to cspan_id IS NULL OR cspan_id = ''
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';
Facebook, Twitter and YouTube usernames refers to facebook, twitter, youtube; Adam Kinzinger is an official_full_name
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;
Sherrod Brown is an official_full_name
have served in the U.S. House refers to house_history_id is not null;
full official name refers to official_full_name
have an Instagram account refers to instagram is NOT null and instagram <>''
have a YouTube account but no Instagram account refers to facebook is not null and (instagram is null or instagram = '')
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;
What is the official Twitter handle of Jason Lewis?
official Twitter handle refers to twitter;
legislator's name refers to offical_full_name;
female refers to gender_bio = 'F'
official YouTube usernames refers to youtube; female refers to gender_bio = 'F'
Richard Durbin is an official_full_name;  official_full_name refers to first_name, last_name; district 20 refers to district = 20
birthday on 2/20/1942 refers to birthday_bio = '1942-02-20'
woman refers to gender_bio = 'F';
Roger F. Wicker is an official_full_name; not a representative refers to district IS NULL OR district = ''
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';
the legislators who will end in 2009 refers to END 2009; from the Republican party refers to party = 'Republican'
What are the full names of the non-google female entity legislators that have not been registered in Federal Election Commission data?
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;
served only one district for 26 consecutive years refers to SUBTRACT(SUM(cast(strftime('%Y', end)), CAST(strftime('%Y', start)))) = 26
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;
MaxineWaters relates to youtube
open secrets refers to opensecrets_id; democrat refers to party = democrat; senators refers to type = 'sen'; New Jersey refers to state = 'NJ';
official Twitter handle refers to twitter;
female refers to gender_bio = 'F'; have attended in Senate roll call votes refers to lis_id is not null;
religion is Roman Catholic refers to religion_bio = 'Roman Catholic'; calculation = MULTIPLY(DIVIDE(COUNT(instagram is null), COUNT(bioguide_id)), 1.0)
served for the most number of terms refers to MAX(COUNT(bioguide));
Richard Durbin is an official_full_name;  official_full_name refers to first_name, last_name; district 20 refers to district = 20
full name = first_name, last_name; oldest legislator refers to MIN(birthday_bio);
Which legislators are woman?
woman refers to gender_bio = 'F';
Bluetkemeyer refers to youtube
born in 1736 refers to birthday_bio like '1736%';
do not have an account on instagram refers to instagram is null
Facebook, Twitter and YouTube usernames refers to facebook, twitter, youtube; Adam Kinzinger is an official_full_name
ids refers to bioguide; representatives refers to type = 'rep'; ended the term on 1/3/2019 refers to end = '2019-01-03';
gender refers to gender_bio
once a senator during term refers to state_rank IS NOT NULL
Sherrod Brown is an official_full_name
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;
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)
Give the official full names of legislators representing Virginia.
Virginia refers to state = 'VA'
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 refers to official_full_name;
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 instagram account refers to instagram is null;
served for more than 6 terms refers to COUNT(bioguide > 6); born after 1960 refers to birthday_bio > = '1960-01-01'
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)
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)
Jr. John Conyers is an official_full_name; years served refers to SUM(SUBTRACT(END, start))
woman refers to gender_bio = 'F';
What is the username of the current official Facebook presence of current legislator Todd Young?
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 = '')
woman refers to gender_bio = 'F';
Independent party refers to party = 'Independent'
birthday was on 8/24/1956 refers to birthday_bio = '1956-08-24'
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)
do not have an account on instagram refers to instagram is null
full name refers to official_full_name;
Readjuster Democrats refers to party = 'Readjuster Democrat'
Sherrod Brown is an full official name; started on 1993/1/5 refers to start = '1993-01-05';
do not have an account on ballotpedia.org refers to ballotpedia_id IS NULL OR ballotpedia_id = ''
List down the open secrets and thomas ID of the democrat senators of New Jersey.
open secrets refers to opensecrets_id; democrat refers to party = democrat; senators refers to type = 'sen'; New Jersey refers to state = 'NJ';
birthday refers to birthday_bio; Amy Klobuchar refers to full name; full name refers to first_name, last_name
start date of the term refers to start; born on November 26, 1727 refers to birthday_bio = '1727-11-26';
legislator's name refers to offical_full_name;
gender refers to gender_bio
district no. 13 refers to district = 13;
term starting on 2013/1/3 refers to start = '2013-01-03; female refers to gender_bio = 'F';
Readjuster Democrats refers to party = 'Readjuster Democrat'
do not have an account on instagram refers to instagram is null
Jr. F. James Sensenbrenner is an official_full_name; How old refers to SUBTRACT(MIN(start), birthday_bio)
Virginia refers to state = 'VA'
What is the religion of current legislator Sherrod Brown?
religion refers to religion_bio;
do not have an account on ballotpedia.org refers to ballotpedia_id IS NULL OR ballotpedia_id = ''
full_name refers to first_name, last_name; from the Liberal Republican party refers to party = 'Liberal Republican'
have served in the U.S. House refers to house_history_id is not null;
Jr. F. James Sensenbrenner is an official_full_name; How old refers to SUBTRACT(MIN(start), birthday_bio)
full name = first_name, last_name; oldest legislator refers to MIN(birthday_bio);
Bluetkemeyer refers to youtube
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;
junior senators refers to state_rank = 'junior'; in 1997 refers to start like '1997%';
Roger F. Wicker is an official_full_name; not a representative refers to district IS NULL OR district = ''
Readjuster Democrats refers to party = 'Readjuster Democrat'
How many times did Richard Durbin become a legislator in district 20?
Richard Durbin is an official_full_name;  official_full_name refers to first_name, last_name; district 20 refers to district = 20
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;
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'
have an Instagram account refers to instagram is NOT null and instagram <>''
birthday refers to birthday_bio; Amy Klobuchar refers to full name; full name refers to first_name, last_name
full official name refers to official_full_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';
full name refers to official_full_name;
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)
What is the average number of terms served for a current legislator that's famous or impact?
average = DIVIDE(COUNT(bioguide), COUNT(bioguide_id)); legislator that's famous or impact refers to wikipedia_id is not null;
born in 1736 refers to birthday_bio like '1736%';
Chris Van Hollen is an official_full_name; numeric ID on GovTrack.us refers to govtrack
not the senator refers to class IS NULL OR class = ''; female refers to gender_bio = 'F';
once a senator during term refers to state_rank IS NOT NULL
California refers to state = 'CA'; representatives refers to type = 'rep'; ended the term in 1995 refers to end like '1995%';
gender refers to gender_bio
Richard Durbin is an official_full_name;  official_full_name refers to first_name, last_name; district 20 refers to district = 20
official Twitter handle refers to twitter;
full name refers to official_full_name;
ids refers to bioguide; representatives refers to type = 'rep'; ended the term on 1/3/2019 refers to end = '2019-01-03';
For how many terms has current legislator Sherrod Brown served as a representative for district no.13?
district no. 13 refers to district = 13;
birthday was on 8/24/1956 refers to birthday_bio = '1956-08-24'
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
born in 1736 refers to birthday_bio like '1736%';
do not have an account on ballotpedia.org refers to ballotpedia_id IS NULL OR ballotpedia_id = ''
Idaho refers to state = 'ID';
full_name refers to first_name, last_name; from the Liberal Republican party refers to party = 'Liberal Republican'
served only one district for 26 consecutive years refers to SUBTRACT(SUM(cast(strftime('%Y', end)), CAST(strftime('%Y', start)))) = 26
junior senators refers to state_rank = 'junior'; in 1997 refers to start like '1997%';
MaxineWaters relates to youtube