set
dict |
---|
{
"query": "Among the biwords pairs with \"àbac\" as its first word, how many of them have an occurrence of over 10?",
"pos": [
"àbac refers to word = 'àbac'; as first word refers to w1st; occurrence of over 10 refers to occurrences > 10"
],
"neg": [
"the page titled \"Abril\" refers to title = 'Abril';",
"word id \"88\" refers to wid = 88",
"most occurrences refers to max(occurrences)",
"how many times occur refers to occurrences; page titled \"Àbac\" refers to title = 'Àbac' ;",
"lid = 1 means it's Catalan language; Arqueologia refers to title = 'Arqueologia'; revision ID refers to revision",
"least number of different words refers to min(words); word id refers to wid; appeared the most refers to max(occurrences)",
"page titled \"Anys 90\" refers to title = 'Anys 90';",
"between 1000 to 2000 number of different words refers to words BETWEEN 1000 AND 2000",
"grec refers to word = 'grec'; Art refers to title = 'Art'; percentage is DIVIDE(occurrences(grec), occurences(Art))*100",
"the word \"grec\" refers to word = 'grec'; occurred for 52 times refers to occurrences = 52"
]
} |
{
"query": "What role does the tallest person play?",
"pos": [
"the tallest refers to max(height_meters)"
],
"neg": [
"the most votes refers to max(votes)",
"who refers to name; narrator refers to role = 'Narrator'; the \"Flight\" episode refers to title = 'Flight'",
"nominated refers to result = 'Nominee'",
"have not been credited refers to credited = ''",
"did not enjoy refers to stars = 1; the finale episode refers to episode = 24",
"titled \"Cherished\" refers to title = 'Cherished'",
"who refers to name; the youngest person refers to max(birthdate); a \"clerk\" role refers to role = 'Clerk'",
"the episode titled Juvenile refers to title = 'Juvenile'",
"weighted stars = divide(sum(stars, percent), 100)",
"who refers to name; portraying \"Alex Brown\" refers to role = 'Alex Brown'; has been credited refers to credited = 'true'"
]
} |
{
"query": "What are the names of the two people who won an award for their role as directors?",
"pos": [
"won an award refers to result = 'Winner'; role as director refers to role = 'director'"
],
"neg": [
"at least two awards refers to count(role) >1",
"the episode titled Juvenile refers to title = 'Juvenile'",
"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 enjoyed refers max(rating); 10-star refers to stars = 10",
"full place of birth refers to birth_place, birth_region; Rene Chenevert Balcer refers to birth_name = 'Rene Chenevert Balcer'",
"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",
"worst rated refers to min(rating)",
"credited refers to credited = 'true'",
"received award refers to result = 'Winner'; the highest percentage refers to max(percent); average star = divide(sum(stars), count(episode_id))",
"episode refers to title; the highest total number of viewer votes refers to max(sum(votes))"
]
} |
{
"query": "In what year did the episodes titled DWB get an award?",
"pos": [
"titled DWB refers to title = 'DWB'; get an award refers to result = 'Winner'"
],
"neg": [
"Law and Order refers to series = 'Law and Order'",
"weighted stars = divide(sum(stars, percent), 100)",
"description of what happened refers to summary; award no.296 refers to award_id = '296'",
"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",
"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'",
"titled \"Cherished\" refers to title = 'Cherished'",
"no less than 30 votes refers to votes > = 30; 10-star rating refers to stars = 10",
"did not enjoy refers to stars = 1; the finale episode refers to episode = 24",
"the most refers to max(votes); 1 star refers to stars = '1'"
]
} |
{
"query": "Write down the title, summary, and air date of the episode that garnered 72 10-star votes.",
"pos": [
"72 10-star votes refers to stars = 10 and votes = 72"
],
"neg": [
"at least two awards refers to count(role) >1",
"full place of birth refers to birth_place, birth_region; Rene Chenevert Balcer refers to birth_name = 'Rene Chenevert Balcer'",
"the most refers to max(votes); 10-star refers to stars = 10",
"credit displayed refers to credited = 'true'; from episode 1 until 10 refers to episode > = 1 AND episode < = 10",
"not credited refers to credited = ''; the \"Admissions\" episode refers to title = 'Admissions'",
"won refers to result = 'Winner'; at least 3 awards refers to count(result) > 3",
"least enjoyed refers to stars = 1",
"episode refers to title; \"Outstanding Costume Design for a Series\" refers to award = 'Outstanding Costume Design for a Series'",
"description of what happened refers to summary; award no.296 refers to award_id = '296'",
"nominated for an award but not win refers to result = 'Nominee'"
]
} |
{
"query": "What is the average ranking episodes that are nominated for an award?",
"pos": [
"average ranking = divide(sum(rating), sum(episode_id))"
],
"neg": [
"have not been credited refers to credited = ''",
"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",
"at least two awards refers to count(role) >1",
"episode refers to title; \"Outstanding Costume Design for a Series\" refers to award = 'Outstanding Costume Design for a Series'",
"titled DWB refers to title = 'DWB'; get an award refers to result = 'Winner'",
"the role of a teleplay refers to role = 'teleplay'; won refers to result = 'Winner'; \"Best Television Episode\" refers to award = 'Best Television Episode'",
"the most refers to max(votes); 10-star refers to stars = 10",
"the \"Agony\" refers to title = 'Agony'; win refers to result = 'Winner'",
"produced refers to role = 'producer'"
]
} |
{
"query": "How many people from Canada are nominated for an award?",
"pos": [
"from Canada refers to birth_country = Canada; nominated refers to award is NOT NULL"
],
"neg": [
"titled DWB refers to title = 'DWB'; get an award refers to result = 'Winner'",
"weighted stars = divide(sum(stars, percent), 100)",
"72 10-star votes refers to stars = 10 and votes = 72",
"6-star vote refers to stars = 6",
"no less than 30 votes refers to votes > = 30; 10-star rating refers to stars = 10",
"did not enjoy refers to stars = 1; the finale episode refers to episode = 24",
"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%",
"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'"
]
} |
{
"query": "Please list any three episodes that were most enjoyed by the viewers.",
"pos": [
"episode refers to title; most enjoyed by the viewers refers to stars = 10"
],
"neg": [
"the most refers to max(votes); 10-star refers to stars = 10",
"6-star vote refers to stars = 6",
"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",
"credit name refers to name",
"nominated for an award but not win refers to result = 'Nominee'",
"titled DWB refers to title = 'DWB'; get an award refers to result = 'Winner'",
"win refers to result = 'Winner'; the most awards refers to max(count(award_id))",
"the most refers to max(votes); 1 star refers to stars = '1'",
"average ranking = divide(sum(rating), sum(episode_id))",
"the most votes refers to max(votes)"
]
} |
{
"query": "Which role have won at least two awards for the entire season and list out the name?",
"pos": [
"at least two awards refers to count(role) >1"
],
"neg": [
"average rating = divide(sum(rating), count(episode_id))",
"win refers to result = 'Winner'; the most awards refers to max(count(award_id))",
"nominated refers to result = 'Nominee'",
"no less than 30 votes refers to votes > = 30; 10-star rating refers to stars = 10",
"won refers to result = 'Winner'; at least 3 awards refers to count(result) > 3",
"the highest number of crews refers to max(count(person_id)); in the Art Department refers to category = 'Art Department'",
"the \"Agony\" refers to title = 'Agony'; win refers to result = 'Winner'",
"Law and Order refers to series = 'Law and Order'",
"the tallest refers to max(height_meters)",
"American refers to birth_country = 'USA'; cast refers to category = 'Cast'; uncredited refers to credited = ''"
]
} |
{
"query": "Who was the actor who was portraying \"Alex Brown\" and has been credited?",
"pos": [
"who refers to name; portraying \"Alex Brown\" refers to role = 'Alex Brown'; has been credited refers to credited = 'true'"
],
"neg": [
"have not won any award refers to Result = 'Nominee'",
"the most refers to max(votes); 10-star refers to stars = 10",
"director refers to role = 'director'; received an award refers to result = 'Winner'; episode number refers to episode",
"born in the USA refers to birth_country = 'USA'",
"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 most awards refers to max(count(award_id))",
"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'",
"the most refers to max(votes); 1 star refers to stars = '1'",
"the most enjoyed refers max(rating); 10-star refers to stars = 10"
]
} |
{
"query": "How many credits have been displayed from episode 1 until 10?",
"pos": [
"credit displayed refers to credited = 'true'; from episode 1 until 10 refers to episode > = 1 AND episode < = 10"
],
"neg": [
"won an award refers to result = 'Winner'; role as director refers to role = 'director'",
"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'",
"the most enjoyed refers max(rating); 10-star refers to stars = 10",
"have not been credited refers to credited = ''",
"weighted stars = divide(sum(stars, percent), 100)",
"which episode refers to title; not credited refers to credited = ''",
"the most votes refers to max(votes)",
"the \"Agony\" refers to title = 'Agony'; win refers to result = 'Winner'",
"titled \"Cherished\" refers to title = 'Cherished'"
]
} |
{
"query": "What is the full place of birth of Rene Chenevert Balcer?",
"pos": [
"full place of birth refers to birth_place, birth_region; Rene Chenevert Balcer refers to birth_name = 'Rene Chenevert Balcer'"
],
"neg": [
"the highest number of crews refers to max(count(person_id)); in the Art Department refers to category = 'Art Department'",
"which episode refers to title; not credited refers to credited = ''",
"episode refers to title; the highest total number of viewer votes refers to max(sum(votes))",
"who refers to name; portraying \"Alex Brown\" refers to role = 'Alex Brown'; has been credited refers to credited = 'true'",
"mafia keyword refers to Keyword = 'mafia'",
"won an award refers to result = 'Winner'; role as director refers to role = 'director'",
"the tallest refers to max(height_meters)",
"the most enjoyed refers max(rating); 10-star refers to stars = 10",
"average ranking = divide(sum(rating), sum(episode_id))",
"titled DWB refers to title = 'DWB'; get an award refers to result = 'Winner'"
]
} |
{
"query": "What is the average rating for each episode in season 9?",
"pos": [
"average rating = divide(sum(rating), count(episode_id))"
],
"neg": [
"average ranking = divide(sum(rating), sum(episode_id))",
"episode refers to title; \"Outstanding Costume Design for a Series\" refers to award = 'Outstanding Costume Design for a Series'",
"6-star vote refers to stars = 6",
"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 highest number of crews refers to max(count(person_id)); in the Art Department refers to category = 'Art Department'",
"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 displayed refers to credited = 'true'; from episode 1 until 10 refers to episode > = 1 AND episode < = 10",
"have not won any award refers to Result = 'Nominee'",
"produced refers to role = 'producer'",
"the 2nd-highest number of votes refers to second max(votes)"
]
} |
{
"query": "Which episode was nominated for the award for \"Outstanding Costume Design for a Series\"?",
"pos": [
"episode refers to title; \"Outstanding Costume Design for a Series\" refers to award = 'Outstanding Costume Design for a Series'"
],
"neg": [
"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",
"average rating = divide(sum(rating), count(episode_id))",
"the most votes refers to max(votes)",
"not credited refers to credited = ''; the \"Admissions\" episode refers to title = 'Admissions'",
"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",
"description of what happened refers to summary; award no.296 refers to award_id = '296'",
"worst rated refers to min(rating)",
"American refers to birth_country = 'USA'; cast refers to category = 'Cast'; uncredited refers to credited = ''",
"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"
]
} |
{
"query": "What is the title of the episode that has the highest number of crews in the Art Department?",
"pos": [
"the highest number of crews refers to max(count(person_id)); in the Art Department refers to category = 'Art Department'"
],
"neg": [
"episode refers to title; the two keywords \"nun\" and \"priest\" refers to keyword = 'nun' or keyword = 'priest';",
"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'",
"who refers to name; narrator refers to role = 'Narrator'; the \"Flight\" episode refers to title = 'Flight'",
"not credited refers to credited = ''; the \"Admissions\" episode refers to title = 'Admissions'",
"credit displayed refers to credited = 'true'; from episode 1 until 10 refers to episode > = 1 AND episode < = 10",
"72 10-star votes refers to stars = 10 and votes = 72",
"weighted stars = divide(sum(stars, percent), 100)",
"did not enjoy refers to stars = 1; the finale episode refers to episode = 24",
"credit name refers to name"
]
} |
{
"query": "What is the average star with highest percentage for episodes that have received award?",
"pos": [
"received award refers to result = 'Winner'; the highest percentage refers to max(percent); average star = divide(sum(stars), count(episode_id))"
],
"neg": [
"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 = ''"
]
} |
{
"query": "What is the name of the actors born in the USA?",
"pos": [
"born in the USA refers to birth_country = 'USA'"
],
"neg": [
"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'"
]
} |
{
"query": "How many people have won at least 3 awards?",
"pos": [
"won refers to result = 'Winner'; at least 3 awards refers to count(result) > 3"
],
"neg": [
"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'"
]
} |
{
"query": "Among the American casts, how many were uncredited on episode ID tt0629228?",
"pos": [
"American refers to birth_country = 'USA'; cast refers to category = 'Cast'; uncredited refers to credited = ''"
],
"neg": [
"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"
]
} |
{
"query": "Who is the youngest person to ever play a \"clerk\" role in the series?",
"pos": [
"who refers to name; the youngest person refers to max(birthdate); a \"clerk\" role refers to role = 'Clerk'"
],
"neg": [
"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"
]
} |
{
"query": "Who is the narrator of the \"Flight\" episode?",
"pos": [
"who refers to name; narrator refers to role = 'Narrator'; the \"Flight\" episode refers to title = 'Flight'"
],
"neg": [
"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 = ''"
]
} |
{
"query": "What are the titles of the top 3 episodes that received no less than 30 votes in its 10-star rating?",
"pos": [
"no less than 30 votes refers to votes > = 30; 10-star rating refers to stars = 10"
],
"neg": [
"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'"
]
} |
{
"query": "How many people did not enjoy the finale episode?",
"pos": [
"did not enjoy refers to stars = 1; the finale episode refers to episode = 24"
],
"neg": [
"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"
]
} |
{
"query": "Who played the role of a teleplay in the episode that won \"Best Television Episode\"?",
"pos": [
"the role of a teleplay refers to role = 'teleplay'; won refers to result = 'Winner'; \"Best Television Episode\" refers to award = 'Best Television Episode'"
],
"neg": [
"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'"
]
} |
{
"query": "What is the percentage of people who gave the \"True North\" episode a 1-star rating?",
"pos": [
"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'"
],
"neg": [
"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)"
]
} |
{
"query": "What role was Julia Roberts nominated for?",
"pos": [
"nominated refers to result = 'Nominee'"
],
"neg": [
"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'"
]
} |
{
"query": "How many 6-star votes did episode 12 get? Please include the air date and rating.",
"pos": [
"6-star vote refers to stars = 6"
],
"neg": [
"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))"
]
} |
{
"query": "Calculate the average number of cast members that appeared in the credit from the 185th to the 193rd episode.",
"pos": [
"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)"
],
"neg": [
"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"
]
} |
{
"query": "For how many times was Park Dietz credited?",
"pos": [
"credited refers to credited = 'true'"
],
"neg": [
"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))"
]
} |
{
"query": "For the episode with the most votes, give its air date.",
"pos": [
"the most votes refers to max(votes)"
],
"neg": [
"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))"
]
} |
{
"query": "Who is the winner of the Best Television Episode award for the Edgar category in 2000? Include his or her name and role.",
"pos": [
"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"
],
"neg": [
"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)"
]
} |
{
"query": "List out all the credit names for episode 9.",
"pos": [
"credit name refers to name"
],
"neg": [
"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 = ''"
]
} |
{
"query": "How many votes did the episode titled \"Cherished\" get in total?",
"pos": [
"titled \"Cherished\" refers to title = 'Cherished'"
],
"neg": [
"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)"
]
} |
{
"query": "How many nominations did Law and Order season 9, episode 20 get?",
"pos": [
"Law and Order refers to series = 'Law and Order'"
],
"neg": [
"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 = ''"
]
} |
{
"query": "Which episode number has the second highest positive viewer comments and has been awarded \"Best Television Episode\"?",
"pos": [
"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"
],
"neg": [
"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"
]
} |
{
"query": "In which organization did Constantine Makris win the most awards?",
"pos": [
"win refers to result = 'Winner'; the most awards refers to max(count(award_id))"
],
"neg": [
"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))"
]
} |
{
"query": "How many people gave the most enjoyed episode a 10-star rating?",
"pos": [
"the most enjoyed refers max(rating); 10-star refers to stars = 10"
],
"neg": [
"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"
]
} |
{
"query": "What is the title of the episode that got the most 10-star votes?",
"pos": [
"the most refers to max(votes); 10-star refers to stars = 10"
],
"neg": [
"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"
]
} |
{
"query": "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.",
"pos": [
"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'"
],
"neg": [
"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 = ''"
]
} |
{
"query": "List the titles and air dates of episodes that were produced by Billy Fox.",
"pos": [
"produced refers to role = 'producer'"
],
"neg": [
"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)"
]
} |
{
"query": "What is the difference of 10 stars votes between the first episode and the last episode?",
"pos": [
"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"
],
"neg": [
"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'"
]
} |
{
"query": "Which episode got the most 1 star votes? Give its title.",
"pos": [
"the most refers to max(votes); 1 star refers to stars = '1'"
],
"neg": [
"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%"
]
} |
{
"query": "What roles have not been credited at the end of the episodes?",
"pos": [
"have not been credited refers to credited = ''"
],
"neg": [
"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"
]
} |
{
"query": "Who played the role of the \"president of NBC West Coast\" in the first episode?",
"pos": [
"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"
],
"neg": [
"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))"
]
} |
{
"query": "How many votes did the episode titled Juvenile get?",
"pos": [
"the episode titled Juvenile refers to title = 'Juvenile'"
],
"neg": [
"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)"
]
} |
{
"query": "In which episodes was Anthony Azzara not credited?",
"pos": [
"which episode refers to title; not credited refers to credited = ''"
],
"neg": [
"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"
]
} |
{
"query": "How many episodes have not won any Law & Order series awards?",
"pos": [
"have not won any award refers to Result = 'Nominee'"
],
"neg": [
"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"
]
} |
{
"query": "Which episode has the two keywords \"nun\" and \"priest\"?",
"pos": [
"episode refers to title; the two keywords \"nun\" and \"priest\" refers to keyword = 'nun' or keyword = 'priest';"
],
"neg": [
"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"
]
} |
{
"query": "What are the keywords of the episode which received the 2nd-highest number of votes?",
"pos": [
"the 2nd-highest number of votes refers to second max(votes)"
],
"neg": [
"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 = ''"
]
} |
{
"query": "List out director names that received an award along with the episode number.",
"pos": [
"director refers to role = 'director'; received an award refers to result = 'Winner'; episode number refers to episode"
],
"neg": [
"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))"
]
} |
{
"query": "Describe what happened in the episode of award no.296.",
"pos": [
"description of what happened refers to summary; award no.296 refers to award_id = '296'"
],
"neg": [
"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'"
]
} |
{
"query": "Who is the person who appeared the most in the series? Calculate in percentage how many times he or she appeared.",
"pos": [
"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%"
],
"neg": [
"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'"
]
} |
{
"query": "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.",
"pos": [
"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))"
],
"neg": [
"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'"
]
} |
{
"query": "Which episode has the highest total number of viewer votes?",
"pos": [
"episode refers to title; the highest total number of viewer votes refers to max(sum(votes))"
],
"neg": [
"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"
]
} |
{
"query": "What is the title of the episodes that were least enjoyed?",
"pos": [
"least enjoyed refers to stars = 1"
],
"neg": [
"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'"
]
} |
{
"query": "What is the episode rating with the most award won?",
"pos": [
"the most award won refers to max(episode_id where result = 'Winner')"
],
"neg": [
"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)"
]
} |
{
"query": "How many awards did the \"Agony\" win?",
"pos": [
"the \"Agony\" refers to title = 'Agony'; win refers to result = 'Winner'"
],
"neg": [
"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)"
]
} |
{
"query": "Which episodes are nominated for an awards but not win?",
"pos": [
"nominated for an award but not win refers to result = 'Nominee'"
],
"neg": [
"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'"
]
} |
{
"query": "What is the episode that has mafia keyword?",
"pos": [
"mafia keyword refers to Keyword = 'mafia'"
],
"neg": [
"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'"
]
} |
{
"query": "List down the titles of the top 3 episodes, from highest to lowest, in terms of their weighted stars.",
"pos": [
"weighted stars = divide(sum(stars, percent), 100)"
],
"neg": [
"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))"
]
} |
{
"query": "What is the title of the 3 worst rated episodes?",
"pos": [
"worst rated refers to min(rating)"
],
"neg": [
"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'"
]
} |
{
"query": "How many people were not credited at the end of the \"Admissions\" episode?",
"pos": [
"not credited refers to credited = ''; the \"Admissions\" episode refers to title = 'Admissions'"
],
"neg": [
"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'"
]
} |
{
"query": "What are the names of the person that were not credited at the end of episode tt0629391?",
"pos": [
"not credited refers to credited = ''; episode tt0629391 refers to episode_id = 'tt0629391'"
],
"neg": [
"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)"
]
} |
{
"query": "List the full name of legislators whose born in 1960.",
"pos": [
"full name refers to official_full_name; born in 1960 refers to birthday_bio like '1960%';"
],
"neg": [
"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'"
]
} |
{
"query": "For how many terms have the oldest current legislator served?",
"pos": [
"oldest legislator refers to MIN(birthday_bio);"
],
"neg": [
"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"
]
} |
{
"query": "List all the junior senators in 1997.",
"pos": [
"junior senators refers to state_rank = 'junior'; in 1997 refers to start like '1997%';"
],
"neg": [
"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%';"
]
} |
{
"query": "State the opensecrets_id of the legislator whose YouTube name is Bluetkemeyer.",
"pos": [
"Bluetkemeyer refers to youtube"
],
"neg": [
"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'"
]
} |
{
"query": "Among legislators who have an Instagram account, list down their full names and nicknames who have a Thomas ID of less than 1000.",
"pos": [
"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;"
],
"neg": [
"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'"
]
} |
{
"query": "How many females were members of the past legislators?",
"pos": [
"female refers to gender_bio = 'F'"
],
"neg": [
"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';"
]
} |
{
"query": "Provide the start date, end date, and party of Pearl Peden Oldfield.",
"pos": [
"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"
],
"neg": [
"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"
]
} |
{
"query": "What is the google entity ID of current legislator Sherrod Brown?",
"pos": [
"Sherrod Brown is an official_full_name"
],
"neg": [
"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;"
]
} |
{
"query": "Among the current legislators who have served for more than 6 terms, how many of them were born after 1960?",
"pos": [
"served for more than 6 terms refers to COUNT(bioguide > 6); born after 1960 refers to birthday_bio > = '1960-01-01'"
],
"neg": [
"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';"
]
} |
{
"query": "Please list the full official names of all the current legislators who served the term that started on 2013/1/3.",
"pos": [
"term that started on 2013/1/3 refers to start = '2013-01-03';"
],
"neg": [
"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 = ''"
]
} |
{
"query": "What is the party of the legislator named Susan M. Collins?",
"pos": [
"legislator's name refers to offical_full_name;"
],
"neg": [
"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;"
]
} |
{
"query": "What is the name of the legislator with the ID of W000059?",
"pos": [
"name of the legislator = first_name, last_name; ID of W000059 refers to bioguide_id = 'W000059';"
],
"neg": [
"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';"
]
} |
{
"query": "List the full name of all current female senators.",
"pos": [
"full name refers to official_full_name; female refers to gender_bio = 'F'; senators refers to type = 'sen'"
],
"neg": [
"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)"
]
} |
{
"query": "What was current legislator Sherrod Brown's Washington, D.C. office phone number during his term starting on 2013/1/3?",
"pos": [
"Washington, DC office phone number refers to phone; terms starting on 2013/1/3 refers to start = '2013-01-03';"
],
"neg": [
"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)"
]
} |
{
"query": "List the official full names of all the legislators that served 13 district for 26 consecutive years.",
"pos": [
"served only one district for 26 consecutive years refers to SUBTRACT(SUM(cast(strftime('%Y', end)), CAST(strftime('%Y', start)))) = 26"
],
"neg": [
"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';"
]
} |
{
"query": "Which state did Veronica Grace Boland represent and which party is she affiliated?",
"pos": [
"Veronica Grace Boland is a full name; full name refers to first_name, middle_name, last_name; party affiliated refers to party"
],
"neg": [
"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';"
]
} |
{
"query": "Among all the current legislators whose religion is Roman Catholic, what is the percentage of the ones without an instagram account?",
"pos": [
"religion is Roman Catholic refers to religion_bio = 'Roman Catholic'; calculation = MULTIPLY(DIVIDE(COUNT(instagram is null), COUNT(bioguide_id)), 1.0)"
],
"neg": [
"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';"
]
} |
{
"query": "Which legislators do not have instagram account?",
"pos": [
"do not have instagram account refers to instagram is null;"
],
"neg": [
"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';"
]
} |
{
"query": "How many legislators have an Instagram account?",
"pos": [
"have an Instagram account refers to instagram is NOT null and instagram <>''"
],
"neg": [
"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';"
]
} |
{
"query": "In California, how many representatives ended their term in 1995?",
"pos": [
"California refers to state = 'CA'; representatives refers to type = 'rep'; ended the term in 1995 refers to end like '1995%';"
],
"neg": [
"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)"
]
} |
{
"query": "What is the gender of the legislator whose address at 317 Russell Senate Office Building Washington DC 20510?",
"pos": [
"gender refers to gender_bio"
],
"neg": [
"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 = ''"
]
} |
{
"query": "Does Thomas Carnes have an account on ballotpedia.org?",
"pos": [
"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;"
],
"neg": [
"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';"
]
} |
{
"query": "What is the birthday of Amy Klobuchar?",
"pos": [
"birthday refers to birthday_bio; Amy Klobuchar refers to full name; full name refers to first_name, last_name"
],
"neg": [
"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"
]
} |
{
"query": "What is the numeric ID of Chris Van Hollen on GovTrack.us?",
"pos": [
"Chris Van Hollen is an official_full_name; numeric ID on GovTrack.us refers to govtrack"
],
"neg": [
"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'"
]
} |
{
"query": "Among the legislators who will end in 2009, how many are from the Republican party?",
"pos": [
"the legislators who will end in 2009 refers to END 2009; from the Republican party refers to party = 'Republican'"
],
"neg": [
"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"
]
} |
{
"query": "Among all the female current legislators, how many of them have served for more than 4 terms?",
"pos": [
"female refers to gender_bio = 'F'; served for more than 4 terms refers to COUNT(bioguide > 4)"
],
"neg": [
"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'"
]
} |
{
"query": "How old was Jr. F. James Sensenbrenner when he first started as a legislator?",
"pos": [
"Jr. F. James Sensenbrenner is an official_full_name; How old refers to SUBTRACT(MIN(start), birthday_bio)"
],
"neg": [
"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"
]
} |
{
"query": "Please list the official full names of all the current legislators who do not have an account on C-SPAN's video website.",
"pos": [
"legislators who do not have an account refers to cspan_id IS NULL OR cspan_id = ''"
],
"neg": [
"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"
]
} |
{
"query": "List the official full names of 10 legislators who have a YouTube account but no Instagram account.",
"pos": [
"have a YouTube account but no Instagram account refers to facebook is not null and (instagram is null or instagram = '')"
],
"neg": [
"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)"
]
} |
{
"query": "How many current legislators do not have an account on ballotpedia.org ?",
"pos": [
"do not have an account on ballotpedia.org refers to ballotpedia_id IS NULL OR ballotpedia_id = ''"
],
"neg": [
"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%';"
]
} |
{
"query": "Give the full name of the legislators with an independent party.",
"pos": [
"full name refers to official_full_name;"
],
"neg": [
"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;"
]
} |
{
"query": "Give the Wikipedia IDs of historical legislators who are Readjuster Democrats.",
"pos": [
"Readjuster Democrats refers to party = 'Readjuster Democrat'"
],
"neg": [
"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"
]
} |
{
"query": "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.",
"pos": [
"have served in the U.S. House refers to house_history_id IS NOT NULL; born in 1738 refers to birthday_bio = 1738"
],
"neg": [
"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))"
]
} |
{
"query": "List down the MapLight ID of the representatives in Maine.",
"pos": [
"representatives refers to type = 'rep'; Maine refers to state = 'ME';"
],
"neg": [
"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'"
]
} |
{
"query": "How many of the legislators are female?",
"pos": [
"female refers to gender_bio = 'F';"
],
"neg": [
"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';"
]
} |
{
"query": "List the official full names of all the legislators who have facebook, instagram, twitter and youtube accounts.",
"pos": [
"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;"
],
"neg": [
"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"
]
} |
{
"query": "How many female representatives are there in Michigan?",
"pos": [
"female refers to gender_bio = 'F'; representatives refers to type = 'rep'; Michigan refers to state = 'MI';"
],
"neg": [
"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)"
]
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.