query
stringlengths
24
325
positive
stringlengths
1
580
negative_1
stringlengths
6
580
negative_2
stringlengths
1
576
negative_3
stringlengths
1
576
negative_4
stringlengths
1
580
negative_5
stringlengths
1
580
negative_6
stringlengths
1
580
negative_7
stringlengths
5
576
negative_8
stringlengths
1
576
negative_9
stringlengths
1
580
negative_10
stringlengths
1
580
Who is responsible for most of the inspections? Give the full name.
full name refers to first_name, last_name; most of the inspections refers to max(count(employee_id))
Xando Coffee & Bar / Cosi Sandwich Bar refers to dba_name = 'XANDO COFFEE & BAR / COSI SANDWICH BAR'
name refers to dba_name; tavern refers to facility_type = 'Tavern'; a $100 fine refers to fine = 100
fine for a minor food safety problem refers to fine = 100; percentage = divide(count(inspection_id where fine = 100), sum(inspection_id)) * 100%
serious point level refers to point_level = 'Serious '; have no fine refers to fine = 0
license number refers to license_no; the lowest risk level refers to min(risk_level); failed the inspection refers to results = 'Fail'
"PIZZA RUSTICA, INC." refers to dba_name = 'PIZZA RUSTICA, INC'
salary between $75000 and $85000 refers to 75000 < = salary < = 80000; difference = subtract(count(inspection_id where fine = 100), count(inspection_id where fine = 500)) where 75000 < = salary < = 80000
assumed name refers to dba_name
establishment name refers to dba_name
tavern refers to facility_type = 'Tavern'; failed refers to results = 'Fail'; in July 2010 refers to inspection_date like '2010-07%'
Please list the names of taverns that paid a $100 fine upon inspection.
name refers to dba_name; tavern refers to facility_type = 'Tavern'; a $100 fine refers to fine = 100
failed in inspection refers to results = 'Fail'; the highest risk level refers to max(risk_level); percentage = divide(count(license_no where risk_level = max(risk_level)), count(license_no)) * 100% where results = 'Fail'
short form complaint inspection refers to inspection_type = 'Short Form Complaint'; pass refers to results = 'Pass'
inspected due to license refers to inspection_type = 'License'
serious point level refers to point_level = 'Serious'; no fines refers to fine = 0
risk level 3 refers to risk_level = '3'; tavern refers to facility_type = 'TAVERN'; average number = divide(count(inspection_id), sum(license_no)) where risk_level = '3' and facility_type = 'TAVERN'
sanitarian refers to title = 'Sanitarian'; in Chicago refers to city = 'Chicago'; zip code 60617 refers to zip = 60617
name refers to first_name, last_name; Display of Inspection Report Summary category refers to category = 'Display of Inspection Report Summary'
in Hoffman Estates refers to city = 'Hoffman Estates'; IL refers to state = 'IL'
school refers to facility_type = 'School'; pass refers to results = 'Pass'; in March 2010 refers to inspection_date like '2010-03%'
Xando Coffee & Bar / Cosi Sandwich Bar refers to dba_name = 'XANDO COFFEE & BAR / COSI SANDWICH BAR'
Name the taverns that failed the inspection in January 2010.
tavern refers to facility_type = 'Tavern'; failed the inspection refers to results = 'Fail'; in January 2010 refers to inspection_date like '2010-01%'
supervisor refers to title = 'Supervisor'
serious point level refers to point_level = 'Serious'; no fines refers to fine = 0
under the display of inspection report summary category refers to category = 'Display of Inspection Report Summary'
assumed name refers to dba_name
full name refers to first_name, last_name; most of the inspections refers to max(count(employee_id))
in January 2011 refers to inspection_date like '2011-01%'
tavern refers to facility_type = 'Tavern'; failed refers to results = 'Fail'; in July 2010 refers to inspection_date like '2010-07%'
restaurant refers to facility_type = 'Restaurant'; the lowest risk level refers to min(risk_level); failed refers to results = 'Fail'; the complaint inspection type refers to inspection_type = 'Complaint'
license number refers to license_no; the lowest risk level refers to min(risk_level); failed the inspection refers to results = 'Fail'
inspected due to license refers to inspection_type = 'License'
What are the inspection description and inspector's comments in the inspection ID 164795?
inspection description refers to Description; inspector's comment refers to inspector_comment
serious point level refers to point_level = 'Serious '; have no fine refers to fine = 0
tavern refers to facility_type = 'Tavern'; failed refers to results = 'Fail'; in July 2010 refers to inspection_date like '2010-07%'
All Style Buffet refers to dba_name = 'All Style Buffet'; Restaurant refers to facility_type = 'Restaurant'
the establishment named "J & J FOOD" refers to dba_name = 'J & J FOOD'
sanitarian refers to title = 'Sanitarian'; in Chicago refers to city = 'Chicago'; zip code 60617 refers to zip = 60617
the "Kamayan Express" establishment refers to dba_name = 'KAMAYAN EXPRESS'
Xando Coffee & Bar / Cosi Sandwich Bar refers to dba_name = 'XANDO COFFEE & BAR / COSI SANDWICH BAR'
total number of establishments with the highest risk level = count(max(risk_level))
serious point level refers to point_level = 'Serious'; no fines refers to fine = 0
full name refers to first_name, last_name; most of the inspections refers to max(count(employee_id))
What is the establishment's name and employee involved in the inspection ID 44256 on May 5, 2010?
establishment's name refers to dba_name; employee name refers to first_name, last_name; inspection ID 44256 refers to inspection_id = 44256; on May 5, 2010 refers to inspection_date = '2010-05-05'
establishment name refers to dba_name
license number 1576687 refers to license_no = 1576687
comment "MUST CLEAN AND BETTER ORGANIZE HALLWAY AREA" refers to inspector_comment = 'MUST CLEAN AND BETTER ORGANIZE HALLWAY AREA'; sanitary operating requirement code of 7-38-030, 015, 010 (A), 005 (A) refers to code = '7-38-030, 015, 010 (A), 005 (A)'
school refers to facility_type = 'School'; pass refers to results = 'Pass'; in March 2010 refers to inspection_date like '2010-03%'
name of the establishment refers to dba_name
location coordinates refers to latitude, longitude; on 2010/5/11 refers to inspection_date = '2010-05-11'
restaurant refers to facility_type = 'Restaurant'; name refers to dba_name; "41.9532864854" latitude and "-87.7673790701422" longitude refers to latitude = 41.9532864854 and longitude = -87.7673790701422
short form complaint inspection refers to inspection_type = 'Short Form Complaint'; pass refers to results = 'Pass'
inspection result refers to results
All Style Buffet refers to dba_name = 'All Style Buffet'; Restaurant refers to facility_type = 'Restaurant'
Among the establishments that failed in the inspection, what is the percentage of establishments with the highest risk level?
failed in inspection refers to results = 'Fail'; the highest risk level refers to max(risk_level); percentage = divide(count(license_no where risk_level = max(risk_level)), count(license_no)) * 100% where results = 'Fail'
name of the establishment refers to dba_name
restaurant refers to facility_type = 'Restaurant'; the highest risk level refers to max(risk_level); pass the inspection refers to results = 'Pass'
assumed name refers to dba_name; 2903 W Irving Park Rd refers to address = '2903 W IRVING PARK RD '
the establishment named "J & J FOOD" refers to dba_name = 'J & J FOOD'
type of inspection refers to inspection_type; on July 07, 2010 refers to inspection_date = '2010-07-07'
school refers to facility_type = 'School'; pass refers to results = 'Pass'; in March 2010 refers to inspection_date like '2010-03%'
critical food safety problems refers to fine = 500; point_id = 3
in January 2011 refers to inspection_date like '2011-01%'
full name refers to first_name, last_name; Taqueria La Paz refers to dba_name = 'TAQUERIA LA PAZ'
Pockets refers to dba_name = 'POCKETS'; Restaurant refers to facility_type = 'Restaurant'; pass refers to results = 'Pass'; the inspection pass rate = divide(sum(inspection_id where results = 'Pass'), count(license_no)) where dba_name = 'POCKETS' and facility_type = 'Restaurant'
Which establishments did Joshua Rosa inspect?
establishment name refers to dba_name
in Hoffman Estates refers to city = 'Hoffman Estates'; IL refers to state = 'IL'
from 2010 to 2017 refers to inspection_date > '2010-01-01' AND T2.inspection_id < '2017-12-31'; average inspections per year = divide(count(inspection_id where inspection_date > '2010-01-01' AND T2.inspection_id < '2017-12-31'), 8)
assumed name refers to dba_name; failed an inspection refers to results = 'Fail'; in 2010 refers to inspection_date like '2010%'
under toxic items refers to category = 'Toxic Items'; no-smoking regulations refers to category = 'No Smoking Regulations'
in the year 2010 refers to inspection_date like '2010%'; salary is over 70000 refers to salary > 70000; average number = divide(sum(inspection where inspection_date like '2010%'), sum(employee_id where salary > 70000))
inspected due to license refers to inspection_type = 'License'
Pockets refers to dba_name = 'POCKETS'; Restaurant refers to facility_type = 'Restaurant'; pass refers to results = 'Pass'; the inspection pass rate = divide(sum(inspection_id where results = 'Pass'), count(license_no)) where dba_name = 'POCKETS' and facility_type = 'Restaurant'
Homemade Pizza refers to dba_name = 'HOMEMADE PIZZA'; a risk level of 2 refers to risk_level = 2
restaurant refers to facility_type = 'Restaurant'; name refers to dba_name; "41.9532864854" latitude and "-87.7673790701422" longitude refers to latitude = 41.9532864854 and longitude = -87.7673790701422
no fine refers to fine = 0
List the point IDs and fines of the inspections done on 7th August 2010.
on 7th August 2010 refers to inspection_date = '2010-08-07'
the most inspections refers to max(count(employee_id))
risk level 3 refers to risk_level = '3'; tavern refers to facility_type = 'TAVERN'; average number = divide(count(inspection_id), sum(license_no)) where risk_level = '3' and facility_type = 'TAVERN'
no fine refers to fine = 0
employee's name refers to first_name, last_name; Jean Samocki refers to dba_name = 'JEAN SAMOCKI'
fine for a minor food safety problem refers to fine = 100; percentage = divide(count(inspection_id where fine = 100), sum(inspection_id)) * 100%
the establishment named "Kinetic Playground" refers to dba_name = 'Kinetic Playground'
the "Kamayan Express" establishment refers to dba_name = 'KAMAYAN EXPRESS'
restaurant refers to facility_type = 'Restaurant'; name refers to dba_name; "41.9532864854" latitude and "-87.7673790701422" longitude refers to latitude = 41.9532864854 and longitude = -87.7673790701422
supervisor refers to title = 'Supervisor'
serious point level refers to point_level = 'Serious'; no fines refers to fine = 0
What is the category of the inspection of the establishment named "J & J FOOD"?
the establishment named "J & J FOOD" refers to dba_name = 'J & J FOOD'
tavern refers to facility_type = 'Tavern'; failed refers to results = 'Fail'; in July 2010 refers to inspection_date like '2010-07%'
under toxic items refers to category = 'Toxic Items'; no-smoking regulations refers to category = 'No Smoking Regulations'
on 7th August 2010 refers to inspection_date = '2010-08-07'
name refers to dba_name; tavern refers to facility_type = 'Tavern'; a $100 fine refers to fine = 100
serious point level refers to point_level = 'Serious '; have no fine refers to fine = 0
restaurant refers to facility_type = 'Restaurant'; the lowest risk level refers to min(risk_level); failed refers to results = 'Fail'; the complaint inspection type refers to inspection_type = 'Complaint'
the establishment named "Kinetic Playground" refers to dba_name = 'Kinetic Playground'
in 2010 refers to inspection_date like '2010%'; had serious food safety issue refers to risk_level = 3
inspection description refers to Description; inspector's comment refers to inspector_comment
comment of the inspector refers to inspector_comment; Taqueria La Fiesta refers to dba_name = 'TAQUERIA LA FIESTA'; on 1/25/2010 refers to inspection_date = '2010-01-25'
Calculate the total salary for employees who did inspection from ID 52270 to 52272.
inspection from ID 52270 to 52272 refers to inspection_id between 52270 and 52272
restaurant refers to facility_type = 'Restaurant'; name refers to dba_name; "41.9532864854" latitude and "-87.7673790701422" longitude refers to latitude = 41.9532864854 and longitude = -87.7673790701422
on 7th August 2010 refers to inspection_date = '2010-08-07'
in 2010 refers to inspection_date like '2010%'; had serious food safety issue refers to risk_level = 3
total fine = sum(fine); Ron of Japan Inc refers to dba_name = 'RON OF JAPAN INC'; on February 2014 refers to inspection_date like '2014-02%'
type of inspection refers to inspection_type; on July 07, 2010 refers to inspection_date = '2010-07-07'
critical food safety problems refers to fine = 500; point_id = 3
establishment's name refers to dba_name; employee name refers to first_name, last_name; inspection ID 44256 refers to inspection_id = 44256; on May 5, 2010 refers to inspection_date = '2010-05-05'
failed in inspection refers to results = 'Fail'; the highest risk level refers to max(risk_level); percentage = divide(count(license_no where risk_level = max(risk_level)), count(license_no)) * 100% where results = 'Fail'
failed the inspection refers to results = 'Fail'; in January 2010 refers to inspection_date like '2010-01%'; name of employee refers to first_name, last_name; a salary greater than 70% of the average salary refers to salary > multiply(avg(salary), 0.7)
inspection description refers to Description; inspector's comment refers to inspector_comment
What is the assumed name of the business located at 2903 W Irving Park Rd?
assumed name refers to dba_name; 2903 W Irving Park Rd refers to address = '2903 W IRVING PARK RD '
risk level 3 refers to risk_level = '3'; tavern refers to facility_type = 'TAVERN'; average number = divide(count(inspection_id), sum(license_no)) where risk_level = '3' and facility_type = 'TAVERN'
assumed name refers to dba_name; failed an inspection refers to results = 'Fail'; in 2010 refers to inspection_date like '2010%'
establishment name refers to dba_name
the highest salary refers to max(salary); sanitarian refers to title = 'Sanitarian'; name refers to first_name, last_name; average number = divide(sum(inspection_id), 5)
name refers to first_name, last_name; Display of Inspection Report Summary category refers to category = 'Display of Inspection Report Summary'
name of dba refers to dba_name; with verified quality refers to results = 'Pass' or results = 'Pass w/Conditions'
inspection from ID 52270 to 52272 refers to inspection_id between 52270 and 52272
phone number refers to phone; sanitarian refers to title = 'Sanitarian'; inspection no.634597 refers to inspection_id = '634597'
February 24, 2010 refers to inspection_date = '2010-02-24'
under the food equipment and utensil category refers to category = 'Food Equipment and Utensil'
Provide the facility type and license number of establishments with the lowest risk level but failed the inspection.
license number refers to license_no; the lowest risk level refers to min(risk_level); failed the inspection refers to results = 'Fail'
school refers to facility_type = 'School'; pass refers to results = 'Pass'; in March 2010 refers to inspection_date like '2010-03%'
assumed name refers to dba_name; failed an inspection refers to results = 'Fail'; in 2010 refers to inspection_date like '2010%'
the establishment named "Kinetic Playground" refers to dba_name = 'Kinetic Playground'
name refers to first_name, last_name; Display of Inspection Report Summary category refers to category = 'Display of Inspection Report Summary'
establishment's name refers to dba_name; an inspection category of No Smoking Regulations refers to category = 'No Smoking Regulations'
inspection description refers to Description; inspector's comment refers to inspector_comment
serious point level refers to point_level = 'Serious '; have no fine refers to fine = 0
under the display of inspection report summary category refers to category = 'Display of Inspection Report Summary'
total fine = sum(fine); Ron of Japan Inc refers to dba_name = 'RON OF JAPAN INC'; on February 2014 refers to inspection_date like '2014-02%'
"PIZZA RUSTICA, INC." refers to dba_name = 'PIZZA RUSTICA, INC'
Give the address of the schools that passed the inspection in March 2010.
school refers to facility_type = 'School'; pass refers to results = 'Pass'; in March 2010 refers to inspection_date like '2010-03%'
name of dba refers to dba_name; with verified quality refers to results = 'Pass' or results = 'Pass w/Conditions'
inspection description refers to Description; inspector's comment refers to inspector_comment
location coordinates refers to latitude, longitude; on 2010/5/11 refers to inspection_date = '2010-05-11'
failed the inspection refers to results = 'Fail'; in January 2010 refers to inspection_date like '2010-01%'; name of employee refers to first_name, last_name; a salary greater than 70% of the average salary refers to salary > multiply(avg(salary), 0.7)
supervisor refers to title = 'Supervisor'
in the year 2010 refers to inspection_date like '2010%'; salary is over 70000 refers to salary > 70000; average number = divide(sum(inspection where inspection_date like '2010%'), sum(employee_id where salary > 70000))
in 2010 refers to inspection_date like '2010%'; had serious food safety issue refers to risk_level = 3
in Chicago refers to city = 'CHICAGO'; restaurant refers to facility_type = 'Restaurant'; "Old Timers Rest & Lounge" refers to dba_name = 'OLD TIMERS REST & LOUNGE'; location refers to address
full name refers to first_name, last_name; with license 1334073 refers to license_no = 1334073
inspection no.48224 refers to inspection_id = '48224'; full name refers to first_name, last_name;
How many of the restaurants with the lowest risk level failed the complaint inspection type?
restaurant refers to facility_type = 'Restaurant'; the lowest risk level refers to min(risk_level); failed refers to results = 'Fail'; the complaint inspection type refers to inspection_type = 'Complaint'
inspection result refers to results
assumed name refers to dba_name
serious point level refers to point_level = 'Serious '; have no fine refers to fine = 0
comment of the inspector refers to inspector_comment; Taqueria La Fiesta refers to dba_name = 'TAQUERIA LA FIESTA'; on 1/25/2010 refers to inspection_date = '2010-01-25'
assumed name refers to dba_name; failed an inspection refers to results = 'Fail'; in 2010 refers to inspection_date like '2010%'
the establishment named "Kinetic Playground" refers to dba_name = 'Kinetic Playground'
sanitarian refers to title = 'Sanitarian'; in Chicago refers to city = 'Chicago'; zip code 60617 refers to zip = 60617
critical food safety problems refers to fine = 500; point_id = 3
inspection description refers to Description; inspector's comment refers to inspector_comment
inspection no.48224 refers to inspection_id = '48224'; full name refers to first_name, last_name;
List point level of inspections with no fine.
no fine refers to fine = 0
license number refers to license_no; the lowest risk level refers to min(risk_level); failed the inspection refers to results = 'Fail'
tavern refers to facility_type = 'Tavern'; failed refers to results = 'Fail'; in July 2010 refers to inspection_date like '2010-07%'
establishment's name refers to dba_name; employee name refers to first_name, last_name; inspection ID 44256 refers to inspection_id = 44256; on May 5, 2010 refers to inspection_date = '2010-05-05'
phone number refers to phone; Canvass inspection refers to inspection_type = 'Canvass'
risk level 3 refers to risk_level = '3'; tavern refers to facility_type = 'TAVERN'; average number = divide(count(inspection_id), sum(license_no)) where risk_level = '3' and facility_type = 'TAVERN'
short form complaint inspection refers to inspection_type = 'Short Form Complaint'; pass refers to results = 'Pass'
the establishment named "J & J FOOD" refers to dba_name = 'J & J FOOD'
Xando Coffee & Bar / Cosi Sandwich Bar refers to dba_name = 'XANDO COFFEE & BAR / COSI SANDWICH BAR'
sanitarian refers to title = 'Sanitarian'; in Chicago refers to city = 'Chicago'; zip code 60617 refers to zip = 60617
in Hoffman Estates refers to city = 'Hoffman Estates'; IL refers to state = 'IL'
How many "food maintenance" related violations did inspection no.1454071 have?
"food maintenance" related refers to category = 'Food Maintenance'; inspection no.1454071 refers to inspection_id = '1454071'
in January 2011 refers to inspection_date like '2011-01%'
name refers to dba_name; tavern refers to facility_type = 'Tavern'; a $100 fine refers to fine = 100
total fine = sum(fine); Ron of Japan Inc refers to dba_name = 'RON OF JAPAN INC'; on February 2014 refers to inspection_date like '2014-02%'
fine for a minor food safety problem refers to fine = 100; percentage = divide(count(inspection_id where fine = 100), sum(inspection_id)) * 100%
inspection result refers to results
establishment's name refers to dba_name; employee name refers to first_name, last_name; inspection ID 44256 refers to inspection_id = 44256; on May 5, 2010 refers to inspection_date = '2010-05-05'
tavern refers to facility_type = 'Tavern'; failed refers to results = 'Fail'; in July 2010 refers to inspection_date like '2010-07%'
failed in inspection refers to results = 'Fail'; the highest risk level refers to max(risk_level); percentage = divide(count(license_no where risk_level = max(risk_level)), count(license_no)) * 100% where results = 'Fail'
no fine refers to fine = 0
inspection from ID 52270 to 52272 refers to inspection_id between 52270 and 52272
List all the deceased goalies and the teams he had played whose birth country was in Canada.
goalies refers to pos = 'G'; deceased goalies refers to deathYear IS NOT NULL
still living refers to deathYear IS NULL; youngest refers to MAX(birthYear,birthMon,birthDay)
total goals refer to SUM(G); how old = SUBTRACT(YEAR(CURDATE, birthYear);
21st century refers to year >2000; Power play goals refers to PPG
Power play percentage refers to PPG, most number of loses refers to MAX(L)
weight of over 195 refers to weight>195
Year most hockey players were born refers to MAX(birthYear); birthCountry refers to the country where a player was born
over 30 wins refers to w>30; born in the USA refers to birthCountry = 'USA'
most seasons played refers to MAX(COUNT(playerID)); average time he played for each season refers to DIVIDE(SUM(T2.Min),COUNT(T2.playerID))
born in Canada refers to birthCountry = 'Canada'
nick name refers to nameNick; tallest player refers to MAX(height); had left NHL refers to lastNHL
Which coach was the first one to teach the Montreal Canadiens, please give his first name.
the first one refers to MIN(year);
the highest winning rate refer to divide(W, sum(W, L))
the most play minutes refer to MAX(Min); goalie refers to pos = 'G'; New York Islanders is the nameof team;
the number of wins refers to W
which team played the most games against refers to oppID where MAX(SUM(G); Buffalo Sabres is the name of team;
goals against refers to GA; shots against refers to SA; lowest percentage of goals against among all the shots against refers to MIN(DIVIDE(GA,SA)*100)
played in the league but not coached means playerID is not NULL and coachID is NULL;
PCHA refers to lgID = 'PCHA'; NHL league refers to lgID = 'NHL'
teams that have played against refer to oppID; Buffalo Sabres is the name of team;
still living refers to deathYear IS NULL; youngest refers to MAX(birthYear,birthMon,birthDay)
team refers name; most wins = MAX(W);
Which position did Mike Antonovich play?
pos = 'LW' refers to left winger; pos = 'RW' refers to right winger; pos = 'C' refers to center; pos = 'G' refers to goalie; pos = 'D' refers to defenceman; pos = 'W' refers to winger; pos = 'F' refers to forward
goalies refers to pos = 'G'; deceased goalies refers to deathYear IS NOT NULL
born in Canada refers to birthCountry = 'Canada'
most award-winning refers to max(count(award)); country player is from refers to birthCountry
note = 'posthumous'refers to "didn't personally attend"
date of birth refers to birthDay + birthMon + birthYear
Shortest refers to MIN(height); from 1925 to 1936 refers to year between 1925 and 1936;
NHL refers to lgID = 'NHL'; least number of times being on the ice when a goal is scored for the team versus against the team refers to min(+/-); duration the player's been playing = subtract(year(playerID(min(+/-))), firstNHL(playerID(min(+/-)))); full name = nameGiven + lastName
shutouts refers to SHO; number of goals refers to GA; 5% shutouts among the number of goals refers to DIVIDE(SHO,GA)*100 = 5.00
the highest winning rate refer to divide(W, sum(W, L))
team playing refers to tmID; oppositng team refers to oppID; victories' and 'wins' are synonyms; most victories refers to max(w)
How many teams did the team with the most victories in 1915 play against? Indicate the name of the team who won the most games in 1915, as well as the names of the opposing team.
team playing refers to tmID; oppositng team refers to oppID; victories' and 'wins' are synonyms; most victories refers to max(w)
the most shutouts refer to MAX(SHO); catching hand refers to shootCatch; year = 2010;
Goals Against are the number of goals recorded while the goalie is on the ice; the most Goal Againsts refers to MAX(GA); Minnesota North Stars is name of team;
first-ever Second Team All-Star award refers to min(year(award = 'Second Team All-Star')); How many games before receiving such award = sum(g(coachID(min(year(award = 'Second Team All-Star')))): g(min(year)))
penalty minutes refer to PIM = 49;
exhibition game refers to note = 'EX'; team of losing team refers to tmIDLoser
note = 'posthumous'refers to "didn't personally attend"
1989 refers to the year of scoring; "dominant hand" and "shooting hand" are synonyms which refers to shootCatch
death country is different from his birth country refers to birthCountry! = deathCountry
the first one refers to MIN(year);
weight of over 195 refers to weight>195
Please list the awards the players who died in Arlington have won.
died in Arlington refers to deathCity = 'Arlington'
team ID refers to tmID; 'defeats' and 'loses' are synonyms; most October defeats refers to max(OctL)
date of birth refers to birthDay + birthMon + birthYear
Goals Against are the number of goals recorded while the goalie is on the ice; the most Goal Againsts refers to MAX(GA); Minnesota North Stars is name of team;
born in Toronto refers to birthCountry = 'Toronto'
winning percentage refers to DIVIDE(w,g)*100; team DET refers to tmID = 'DET'
goals against refers to GA; shots against refers to SA; lowest percentage of goals against among all the shots against refers to MIN(DIVIDE(GA,SA)*100)
the third goalie refers to stint = 3; the biggest weight refers to max(weight)
total number of the games refers to GP
players who became coaches refers to playerID IS NOT NULL AND coachID IS NOT NULL
WCHL is the league's abbreviated name which refers to lgID = 'WCHL'; most goals scored referst to MAX(PostGA); GA is abbreviation for Post Against which means number of goals recorded while the goalie is on the ice. Include all goals against during regulation and overtime play.
Please list the first name of the players who are good at both left hands and right hands for goalie and have gotten in the Hall of Fame.
good at both left hands and right hands for goalie refers to shootCatch IS NULL
co-coached refers to notes = 'co-coach'; birth place refers to 'birthCountry-birthState-birthCity'
total goals refer to SUM(G); how old = SUBTRACT(YEAR(CURDATE, birthYear);
average height refers to AVG(height); born in 1990 refers to birthYear = 1990
born in Toronto refers to birthCountry = 'Toronto'
same total number of postseason wins and postseason loses refers to PostW = PostL
team ID refers to tmID; 'defeats' and 'loses' are synonyms; most October defeats refers to max(OctL)
temporary coached refers to notes = 'interim'; number of loss refers to L (to add)
death country is different from his birth country refers to birthCountry! = deathCountry
total number of the games refers to GP
first year they were in NHL refers to firstNHL; first year in WHA refers to firstWHA; play in both refers to firstNHL IS NOT NULL AND firstWHA IS NOT NULL
What is the position of the 9th oldest hockey player?
position refers to pos; date of birth refers to birthDay + birthMon + birthYear
year BETWEEN 1950 and 1980; average = DIVIDE(COUNT(hofID)), 30)
co-coached refers to notes = 'co-coach'; birth place refers to 'birthCountry-birthState-birthCity'
Shortest refers to MIN(height); from 1925 to 1936 refers to year between 1925 and 1936;
temporary coached refers to notes = 'interim'; number of loss refers to L (to add)
born in Canada refers to birthCountry = 'Canada'; pos = 'LW' refers to left winger; pos = 'RW' refers to right winger; pos = 'C' refers to center; pos = 'G' refers to goalie; pos = 'D' refers to defenceman; pos = 'W' refers to winger; pos = 'F' refers to forward
NHL refers to lgID = 'NHL'; most assists refers to max(A); full name = nameGiven + lastName; total amount of assists = sum(A(playerID(max(A))))
goalie is a players; teams refer to tmID;
exhibition game refers to note = 'EX'; team of losing team refers to tmIDLoser
the number of goals refers to G
victories' and 'wins' are synonyms; most number of victories refers to max(w)
What is the total amount of assists of the NHL player with the most assists in history? Please indicate his/her full name.
NHL refers to lgID = 'NHL'; most assists refers to max(A); full name = nameGiven + lastName; total amount of assists = sum(A(playerID(max(A))))
nick name refers to nameNick; team refers to tmID; season refers to year
born in Toronto refers to birthCountry = 'Toronto'
goals against refers to GA; shots against refers to SA; lowest percentage of goals against among all the shots against refers to MIN(DIVIDE(GA,SA)*100)
position refers to pos; date of birth refers to birthDay + birthMon + birthYear
which team played the most games against refers to oppID where MAX(SUM(G); Buffalo Sabres is the name of team;
which league refers to lgID
clutch player' and 'trustworthy player in the critical moment' are synonyms; most clutch player refers to the most trustworthy player which refers to MAX(GWG); 1986 is the year played
born in 1977 refers to birthYear = '1977'
goalies refers to pos = 'G'; deceased goalies refers to deathYear IS NOT NULL
players who became coaches refers to playerID IS NOT NULL AND coachID IS NOT NULL
Which player ID are left winger and weight more than 200?
left winger refers to pos = 'L'; weight>200
played in the league but not coached means playerID is not NULL and coachID is NULL;
year = 1976; BIR refers to tmID; Division 'EW' refers to divID = 'EW'; goals = G;
country refers to birthCountry
NHL refers to lgID = 'NHL'; most assists refers to max(A); full name = nameGiven + lastName; total amount of assists = sum(A(playerID(max(A))))
10 empty net goals refer to ENG = 10; tallest refers to MAX(height);
date of birth refers to birthDay + birthMon + birthYear
the most play minutes refer to MAX(Min); goalie refers to pos = 'G'; New York Islanders is the nameof team;
PCHA refers to lgID = 'PCHA'; NHL league refers to lgID = 'NHL'
average height refers to AVG(height); born in 1990 refers to birthYear = 1990
note = 'posthumous'refers to "didn't personally attend"
Who is the shortest player and state the team ID of that player from 1925 to 1936.
Shortest refers to MIN(height); from 1925 to 1936 refers to year between 1925 and 1936;
NHL refers to lgID = 'NHL'; most assists refers to max(A); full name = nameGiven + lastName; total amount of assists = sum(A(playerID(max(A))))
born in Toronto refers to birthCountry = 'Toronto'
after retirement means playerID Iis not NULL and coachID is not NULL;
end up with a tie or an overtime loss refers to T/OL
clutch player' and 'trustworthy player in the critical moment' are synonyms; most clutch player refers to the most trustworthy player which refers to MAX(GWG); 1986 is the year played
regular season refers to `R/P` = 'R'
Weight of above 190 refers to weight >190; 1978 season refers to the year played
tie refers to T>0; year = 1909;
teams that have played against refer to oppID; Buffalo Sabres is the name of team;
goaltender' and 'goalie' are synonyms; fewest goals while on the ice refers to min(GA); How old = subtract(lastNHL(playerID(min(GA))), birthYear(playerID(min(GA)))))
Who is the heaviest player? State player ID of 5 heaviest players.
5 heaviest players refer to MAX(weight) limit to 5 playerID;
penalty minutes refer to PIM = 24; wins refer to W;
more wins than loses refers to W>L; year = 1917;
Power play percentage refers to PPG, most number of loses refers to MAX(L)
nick name refers to nameNick; team refers to tmID; season refers to year
hall of famers refers to hofID; both played and coached means playerID is not NULL and coachID is not NULL;
born in July and August refers to birthMon IN('7','8')
winning percentage refers to DIVIDE(w,g)*100; team DET refers to tmID = 'DET'
10 empty net goals refer to ENG = 10; tallest refers to MAX(height);
total number of the games refers to GP
exhibition game refers to note = 'EX'; team of losing team refers to tmIDLoser
Which country produced the most number of hockey players? Identify which year was most of the hockey players are born.
Year most hockey players were born refers to MAX(birthYear); birthCountry refers to the country where a player was born
most seasons played refers to MAX(COUNT(playerID)); average time he played for each season refers to DIVIDE(SUM(T2.Min),COUNT(T2.playerID))
NHL refers to lgID = 'NHL'; most assists refers to max(A); full name = nameGiven + lastName; total amount of assists = sum(A(playerID(max(A))))
first season in NHL in before 1950 refers to firstNHL<1950; goalies who are still alive refers to deathYear IS NOT NULL
the most play minutes refer to MAX(Min); goalie refers to pos = 'G'; New York Islanders is the nameof team;
1989 refers to the year of scoring; "dominant hand" and "shooting hand" are synonyms which refers to shootCatch
weight of over 195 refers to weight>195
Montreal Canadiens is the name of team.
note = 'posthumous'refers to "didn't personally attend"
MAX(DIVIDE(COUNT(W), SUM(COUNT(W), (COUNT (L)) where year = 2000;
Philadelphia Flyers is name of team playing; Boston Bruins is name of opposing team where oppID = 'BOS'; year = 1985; wins refer to W;
How many games did player Id "vanbijo01" win in the 1990 season?
the number of wins refers to W
born in March refers to birthMon = '3'; nicknames refers to nameNick
least number of penalty kill chances refers to min(PKC); power play percentage refers to (PP%) = divide(PPG, PPC); team playing refers to tmID; victorious team refers to tmIDWinner; team victorious refers to tmID = tmIDWinner and vice versa
total goals refer to SUM(G); how old = SUBTRACT(YEAR(CURDATE, birthYear);
winning rate refers to DIVIDE (w, SUM(w, l)); Vancouver Canucks is name of team where tmID = 'VAN' Winning rate refers to DIVIDE(wins in year = '2005/2006'(ADD(wins+loses); improvement refers to SUBTRACT(DIVIDE(wins in year = '2005'(ADD(wins+loses), DIVIDE(wins in year = '2006'(ADD(wins+loses))
5 heaviest players refer to MAX(weight) limit to 5 playerID;
nick name refers to nameNick; tallest player refers to MAX(height); had left NHL refers to lastNHL
lost refers to L; won refers to W
team playing refers to tmID; oppositng team refers to oppID; victories' and 'wins' are synonyms; most victories refers to max(w)
the most shutouts refer to MAX(SHO); catching hand refers to shootCatch; year = 2010;
note = 'posthumous'refers to "didn't personally attend"
What is the name of the losing team during an exhibition game in 1912?
exhibition game refers to note = 'EX'; team of losing team refers to tmIDLoser
the biggest power play percentage = max(divide(PPG, PPC))
co-coached refers to notes = 'co-coach'; birth place refers to 'birthCountry-birthState-birthCity'
average height refers to AVG(height); born in 1990 refers to birthYear = 1990
the number of years refers to count(year)
same total number of postseason wins and postseason loses refers to PostW = PostL
the first one refers to MIN(year);
shots recorded while the goalie was on the ice refers to SA IS NOT NULL; NHL League refers to lgID = 'NHL'
winning rate refers to DIVIDE (w, SUM(w, l)); Vancouver Canucks is name of team where tmID = 'VAN' Winning rate refers to DIVIDE(wins in year = '2005/2006'(ADD(wins+loses); improvement refers to SUBTRACT(DIVIDE(wins in year = '2005'(ADD(wins+loses), DIVIDE(wins in year = '2006'(ADD(wins+loses))
goals against refers to GA; shots against refers to SA; lowest percentage of goals against among all the shots against refers to MIN(DIVIDE(GA,SA)*100)
pos = 'LW' refers to left winger; pos = 'RW' refers to right winger; pos = 'C' refers to center; pos = 'G' refers to goalie; pos = 'D' refers to defenceman; pos = 'W' refers to winger; pos = 'F' refers to forward
Please list the names of the teams that had a tie in 1909.
tie refers to T>0; year = 1909;
Coach of the team refers to firstName+lastName; 2003 refers to the year
weight of over 195 refers to weight>195
goaltender' and 'goalie' are synonyms; fewest goals while on the ice refers to min(GA); How old = subtract(lastNHL(playerID(min(GA))), birthYear(playerID(min(GA)))))
Canadian players mean player whose birthCountry = Canada; ages of 18 and 24 refers to SUBTRACT(firstNHL, birthYear) BETWEEN 18 AND 24; cumulative goal total of no more than 5 refers to G < 5; complete name = nameGiven + lastName
year = 1976; BIR refers to tmID; Division 'EW' refers to divID = 'EW'; goals = G;
total goals refer to SUM(G); how old = SUBTRACT(YEAR(CURDATE, birthYear);
penalty minutes refer to PIM = 49;
after year 2000 refers to year>2000;
the number of wins refers to W
saved the most goal attempts refers to max(subtract(SA, GA)); team id refers to tmID
Which coach has the best performance for team DET in history? What was the winning percentage? Name the coach and the year he coached.
winning percentage refers to DIVIDE(w,g)*100; team DET refers to tmID = 'DET'
not in the Hall of Fame refers to hofID IS NULL
hall of famers refers to hofID; both played and coached means playerID is not NULL and coachID is not NULL;
co-coached refers to notes = 'co-coach'; birth place refers to 'birthCountry-birthState-birthCity'
1989 refers to the year of scoring; "dominant hand" and "shooting hand" are synonyms which refers to shootCatch
team refers to name; year = 2006
total number of the games refers to GP
born in Canada refers to birthCountry = 'Canada'; pos = 'LW' refers to left winger; pos = 'RW' refers to right winger; pos = 'C' refers to center; pos = 'G' refers to goalie; pos = 'D' refers to defenceman; pos = 'W' refers to winger; pos = 'F' refers to forward
teams that have played against refer to oppID; Buffalo Sabres is the name of team;
played in the league but not coached means playerID is not NULL and coachID is NULL;
have died means deathYear is not NULL; Buffalo Sabres is the name of team;
Who is the coach who had coached the the most seasons in MTL? State his given name, date of birth and all teams he had coaches before.
date of birth refers to birthDay + birthMon + birthYear
end up with a tie or an overtime loss refers to T/OL
nick name refers to nameNick; team refers to tmID; season refers to year
first-ever Second Team All-Star award refers to min(year(award = 'Second Team All-Star')); How many games before receiving such award = sum(g(coachID(min(year(award = 'Second Team All-Star')))): g(min(year)))
road victories refers to rW; team id refers to tmID; victories and wins are synonyms
total number of the games refers to GP
show me how many minutes refers to Min
from the USA refers to birthCountry = 'USA'; year = 1922;
note = 'posthumous'refers to "didn't personally attend"
after year 2000 refers to year>2000;
position refers to pos; date of birth refers to birthDay + birthMon + birthYear
Who was the most clutch player in 1986? Give his full name.
clutch player' and 'trustworthy player in the critical moment' are synonyms; most clutch player refers to the most trustworthy player which refers to MAX(GWG); 1986 is the year played
the number of goals refers to G
winning percentage refers to DIVIDE(w,g)*100; team DET refers to tmID = 'DET'
least number of penalty kill chances refers to min(PKC); power play percentage refers to (PP%) = divide(PPG, PPC); team playing refers to tmID; victorious team refers to tmIDWinner; team victorious refers to tmID = tmIDWinner and vice versa
goalie is a players; teams refer to tmID;
penalty minutes refer to PIM = 24; wins refer to W;
more wins than loses refers to W>L; year = 1917;
first season in NHL in before 1950 refers to firstNHL<1950; goalies who are still alive refers to deathYear IS NOT NULL
goaltender' and 'goalie' are synonyms; fewest goals while on the ice refers to min(GA); How old = subtract(lastNHL(playerID(min(GA))), birthYear(playerID(min(GA)))))
penalty minutes refer to PIM = 49;
year = 1998; wins per game played = DIVIDE(W, G); CAR refers to tmID; contributed the most goals refers to MAX(G);
Among the teams that played in 1922's Stanley Cup finals, how many of them had over 20 points in that year?
how many teams refer to COUNT(tmID); over 20 points refer to Pts>20; year = 1922;
which team played the most games against refers to oppID where MAX(SUM(G); Buffalo Sabres is the name of team;
Post season of 2011 refers to year = ’2011’ defensive success rate refers to (SUBTRACT(1 (DIVIDE(PostGA/PostSA)), *100%)
not in the Hall of Fame refers to hofID IS NULL
Year most hockey players were born refers to MAX(birthYear); birthCountry refers to the country where a player was born
first year they were in NHL refers to firstNHL; first year in WHA refers to firstWHA; play in both refers to firstNHL IS NOT NULL AND firstWHA IS NOT NULL
Weight of above 190 refers to weight >190; 1978 season refers to the year played
the number of years refers to count(year)
most number of goals refers to max(G); how old refers to age = subtract(year(max(G)), birthYear)
team playing refers to tmID; oppositng team refers to oppID; victories' and 'wins' are synonyms; most victories refers to max(w)
the number of goals refers to G
List all goalies with more lost than won games for two seasons or more. State the name of the player and team he played.
lost refers to L; won refers to W
team playing refers to tmID; oppositng team refers to oppID; victories' and 'wins' are synonyms; most victories refers to max(w)
Canadian players mean player whose birthCountry = Canada; ages of 18 and 24 refers to SUBTRACT(firstNHL, birthYear) BETWEEN 18 AND 24; cumulative goal total of no more than 5 refers to G < 5; complete name = nameGiven + lastName
the highest winning rate refer to divide(W, sum(W, L))
worked a temporary term refers to notes = 'interim'
penalty minutes refers to PIM; year of scoring BETWEEN 2003 AND 2005; most number of games played refers to max(GP)
team refers to name; year = 2006
born in July and August refers to birthMon IN('7','8')
winning rate refers to DIVIDE (w, SUM(w, l)); Vancouver Canucks is name of team where tmID = 'VAN' Winning rate refers to DIVIDE(wins in year = '2005/2006'(ADD(wins+loses); improvement refers to SUBTRACT(DIVIDE(wins in year = '2005'(ADD(wins+loses), DIVIDE(wins in year = '2006'(ADD(wins+loses))
date of birth refers to birthDay + birthMon + birthYear
NHL refers to lgID = 'NHL'; most assists refers to max(A); full name = nameGiven + lastName; total amount of assists = sum(A(playerID(max(A))))
Among the people who got into the Hall of Fame after the year 1980, how many of them belong to the category of "Player"?
after the year 1980 refers to year>1980
co-coached refers to notes = 'co-coach'; birth place refers to 'birthCountry-birthState-birthCity'
the most play minutes refer to MAX(Min); goalie refers to pos = 'G'; New York Islanders is the nameof team;
shots recorded while the goalie was on the ice refers to SA IS NOT NULL; NHL League refers to lgID = 'NHL'
born in Canada refers to birthCountry = 'Canada'
team ID refers to tmID; 'defeats' and 'loses' are synonyms; most October defeats refers to max(OctL)
Coach of the team refers to firstName+lastName; 2003 refers to the year
PCHA refers to lgID = 'PCHA'; NHL league refers to lgID = 'NHL'
penalty refers to BenchMinor; Ties refer to T
born in Canada refers to birthCountry = 'Canada'; pos = 'LW' refers to left winger; pos = 'RW' refers to right winger; pos = 'C' refers to center; pos = 'G' refers to goalie; pos = 'D' refers to defenceman; pos = 'W' refers to winger; pos = 'F' refers to forward
the number of years refers to count(year)
How many shoutouts are there in the regular season of 1977?
regular season refers to `R/P` = 'R'
average height of 75 refers to AVG(height) = 75;
the highest winning rate refer to divide(W, sum(W, L))
goals against refers to GA; shots against refers to SA; lowest percentage of goals against among all the shots against refers to MIN(DIVIDE(GA,SA)*100)
co-coached refers to notes = 'co-coach'; birth place refers to 'birthCountry-birthState-birthCity'
highest Plus/minus refers to MAX(+/-); full name refers to firstName, lastName; 1981 season refers to year = '1981'
death country is different from his birth country refers to birthCountry! = deathCountry
the highest total points = MAX(Pts)
MAX(DIVIDE(COUNT(W), SUM(COUNT(W), (COUNT (L)) where year = 2000;
21st century refers to year >2000; Power play goals refers to PPG
the third goalie refers to stint = 3; the biggest weight refers to max(weight)
Who are the players played both in NHL and WHA. List the given name and first year they were in NHL and first year in WHA.
first year they were in NHL refers to firstNHL; first year in WHA refers to firstWHA; play in both refers to firstNHL IS NOT NULL AND firstWHA IS NOT NULL
country refers to birthCountry
goaltender' and 'goalie' are synonyms; fewest goals while on the ice refers to min(GA); How old = subtract(lastNHL(playerID(min(GA))), birthYear(playerID(min(GA)))))
victories' and 'wins' are synonyms; most number of victories refers to max(w)
Year most hockey players were born refers to MAX(birthYear); birthCountry refers to the country where a player was born
which league refers to lgID
team ID refers to tmID; 'defeats' and 'loses' are synonyms; most October defeats refers to max(OctL)
10 empty net goals refer to ENG = 10; tallest refers to MAX(height);
nick name refers to nameNick; team refers to tmID; season refers to year
born in Canada refers to birthCountry = 'Canada'; pos = 'LW' refers to left winger; pos = 'RW' refers to right winger; pos = 'C' refers to center; pos = 'G' refers to goalie; pos = 'D' refers to defenceman; pos = 'W' refers to winger; pos = 'F' refers to forward
team refers name; most wins = MAX(W);
How many Canadian players, between the ages of 18 and 24 when they initially played their first NHL, had a cumulative goal total of no more than 5? Indicate their complete names, the year, and the team for which they scored the specified amount of goals.
Canadian players mean player whose birthCountry = Canada; ages of 18 and 24 refers to SUBTRACT(firstNHL, birthYear) BETWEEN 18 AND 24; cumulative goal total of no more than 5 refers to G < 5; complete name = nameGiven + lastName
1989 refers to the year of scoring; "dominant hand" and "shooting hand" are synonyms which refers to shootCatch
weight of over 195 refers to weight>195
Coach of the team refers to firstName+lastName; 2003 refers to the year
NHL refers to lgID = 'NHL'; least number of times being on the ice when a goal is scored for the team versus against the team refers to min(+/-); duration the player's been playing = subtract(year(playerID(min(+/-))), firstNHL(playerID(min(+/-)))); full name = nameGiven + lastName
same total number of postseason wins and postseason loses refers to PostW = PostL
hall of famers refers to hofID; both played and coached means playerID is not NULL and coachID is not NULL;
shots recorded while the goalie was on the ice refers to SA IS NOT NULL; NHL League refers to lgID = 'NHL'
played more than total of 5000 minutes refers to SUM(Min)>5000;country he was born refers to birthCountry
how many teams refer to COUNT(tmID); over 20 points refer to Pts>20; year = 1922;
co-coached refers to notes = 'co-coach'; birth place refers to 'birthCountry-birthState-birthCity'
For the goalie who had the highest defensive success rate in the postseason of 2011, what's his legends ID ?
Post season of 2011 refers to year = ’2011’ defensive success rate refers to (SUBTRACT(1 (DIVIDE(PostGA/PostSA)), *100%)
first season in NHL in before 1950 refers to firstNHL<1950; goalies who are still alive refers to deathYear IS NOT NULL
position refers to pos; date of birth refers to birthDay + birthMon + birthYear
the most play minutes refer to MAX(Min); goalie refers to pos = 'G'; New York Islanders is the nameof team;
victories' and 'wins' are synonyms; most number of victories refers to max(w)
from the USA refers to birthCountry = 'USA'; year = 1922;
how many teams refer to COUNT(tmID); over 20 points refer to Pts>20; year = 1922;
PCHA refers to lgID = 'PCHA'; NHL league refers to lgID = 'NHL'
the number of goals refers to G
which league refers to lgID
the highest total points = MAX(Pts)
Please list the names of all the teams that have played against the Buffalo Sabres.
teams that have played against refer to oppID; Buffalo Sabres is the name of team;
date of birth refers to birthDay + birthMon + birthYear
born in July and August refers to birthMon IN('7','8')
most seasons played refers to MAX(COUNT(playerID)); average time he played for each season refers to DIVIDE(SUM(T2.Min),COUNT(T2.playerID))
died in Arlington refers to deathCity = 'Arlington'
the highest total points = MAX(Pts)
Not from USA refers to birthCountry! = 'USA'; born in 1990 refers to birthYear = 1990
victories' and 'wins' are synonyms; most number of victories refers to max(w)
most number of goals refers to max(G); how old refers to age = subtract(year(max(G)), birthYear)
team refers name; most wins = MAX(W);
born in Toronto refers to birthCountry = 'Toronto'
What is the name of the team that got more wins than loses in the Stanley Cup finals in 1917?
more wins than loses refers to W>L; year = 1917;
Goals Against are the number of goals recorded while the goalie is on the ice; the most Goal Againsts refers to MAX(GA); Minnesota North Stars is name of team;
died in Arlington refers to deathCity = 'Arlington'
date of birth refers to birthDay + birthMon + birthYear
the number of goals refers to G
victories' and 'wins' are synonyms; most number of victories refers to max(w)
average height refers to AVG(height); born in 1990 refers to birthYear = 1990
year = 1976; BIR refers to tmID; Division 'EW' refers to divID = 'EW'; goals = G;
passed away means deathYear is not NULL;
born in Canada refers to birthCountry = 'Canada'; pos = 'LW' refers to left winger; pos = 'RW' refers to right winger; pos = 'C' refers to center; pos = 'G' refers to goalie; pos = 'D' refers to defenceman; pos = 'W' refers to winger; pos = 'F' refers to forward
total number of the games refers to GP
For the goalies whose weight are above 190, who had most goal againsts in 1978 season?
Weight of above 190 refers to weight >190; 1978 season refers to the year played
shooting/catching hand is both left and right refers to shootCatch is NULL, debuted their first NHL in 2011 refers to firstNHL = 2011
nick name refers to nameNick; team refers to tmID; season refers to year
WCHL is the league's abbreviated name which refers to lgID = 'WCHL'; most goals scored referst to MAX(PostGA); GA is abbreviation for Post Against which means number of goals recorded while the goalie is on the ice. Include all goals against during regulation and overtime play.
average height of 75 refers to AVG(height) = 75;
winning rate refers to DIVIDE (w, SUM(w, l)); Vancouver Canucks is name of team where tmID = 'VAN' Winning rate refers to DIVIDE(wins in year = '2005/2006'(ADD(wins+loses); improvement refers to SUBTRACT(DIVIDE(wins in year = '2005'(ADD(wins+loses), DIVIDE(wins in year = '2006'(ADD(wins+loses))
Canadian players mean player whose birthCountry = Canada; ages of 18 and 24 refers to SUBTRACT(firstNHL, birthYear) BETWEEN 18 AND 24; cumulative goal total of no more than 5 refers to G < 5; complete name = nameGiven + lastName
hall of famers refers to hofID; both played and coached means playerID is not NULL and coachID is not NULL;
the first 3 teams that got the most penalty minutes refer to name where MAX(PIM) limit to 3; year = 2006;
over 30 wins refers to w>30; born in the USA refers to birthCountry = 'USA'
first season in NHL in before 1950 refers to firstNHL<1950; goalies who are still alive refers to deathYear IS NOT NULL
Name the goalies who are good at left hand and also has become a coach after retirement. Name all teams he had played before.
good at left hand refers to shootCatch = 'L'; goalies refers to pos = 'G'
received the most awards in total refers to max(count(award))
winning percentage refers to DIVIDE(w,g)*100; team DET refers to tmID = 'DET'
died in Arlington refers to deathCity = 'Arlington'
date of birth refers to birthDay + birthMon + birthYear
penalty refers to BenchMinor; Ties refer to T
exhibition game refers to note = 'EX'; team of losing team refers to tmIDLoser
shots recorded while the goalie was on the ice refers to SA IS NOT NULL; NHL League refers to lgID = 'NHL'
born in 1977 refers to birthYear = '1977'
end up with a tie or an overtime loss refers to T/OL
MAX(DIVIDE(COUNT(W), SUM(COUNT(W), (COUNT (L)) where year = 2000;
Among the coaches who taught the teams in 1922's Stanley Cup finals, how many of them are from the USA?
from the USA refers to birthCountry = 'USA'; year = 1922;
born in Canada refers to birthCountry = 'Canada'; pos = 'LW' refers to left winger; pos = 'RW' refers to right winger; pos = 'C' refers to center; pos = 'G' refers to goalie; pos = 'D' refers to defenceman; pos = 'W' refers to winger; pos = 'F' refers to forward
teams that have played against refer to oppID; Buffalo Sabres is the name of team;
date of birth refers to birthDay + birthMon + birthYear
Goals Against are the number of goals recorded while the goalie is on the ice; the most Goal Againsts refers to MAX(GA); Minnesota North Stars is name of team;
Coach of the team refers to firstName+lastName; 2003 refers to the year
most number of goals refers to max(G); how old refers to age = subtract(year(max(G)), birthYear)
note = 'posthumous'refers to "didn't personally attend"
good at both left hands and right hands for goalie refers to shootCatch IS NULL
the highest total points = MAX(Pts)
how many teams refer to COUNT(tmID); over 20 points refer to Pts>20; year = 1922;
State the player ID and coach ID of person who have become coach after retirement.
after retirement means playerID Iis not NULL and coachID is not NULL;
born in July and August refers to birthMon IN('7','8')
average height of 75 refers to AVG(height) = 75;
penalty minutes refers to PIM; year of scoring BETWEEN 2003 AND 2005; most number of games played refers to max(GP)
after year 2000 refers to year>2000;
born in Canada refers to birthCountry = 'Canada'
most seasons played refers to MAX(COUNT(playerID)); average time he played for each season refers to DIVIDE(SUM(T2.Min),COUNT(T2.playerID))
temporary coached refers to notes = 'interim'; number of loss refers to L (to add)
Shortest refers to MIN(height); from 1925 to 1936 refers to year between 1925 and 1936;
the most shutouts refer to MAX(SHO); catching hand refers to shootCatch; year = 2010;
5 heaviest players refer to MAX(weight) limit to 5 playerID;
In how many games did player Id "vernomi01" end up with a tie or an overtime loss in the 1998 season?
end up with a tie or an overtime loss refers to T/OL
which league refers to lgID
Weight of above 190 refers to weight >190; 1978 season refers to the year played
death country is different from his birth country refers to birthCountry! = deathCountry
most number of goals refers to max(G); how old refers to age = subtract(year(max(G)), birthYear)
regular season refers to `R/P` = 'R'
goalies refers to pos = 'G'; deceased goalies refers to deathYear IS NOT NULL
goals against refers to GA; shots against refers to SA; lowest percentage of goals against among all the shots against refers to MIN(DIVIDE(GA,SA)*100)
after retirement means playerID Iis not NULL and coachID is not NULL;
played more than total of 5000 minutes refers to SUM(Min)>5000;country he was born refers to birthCountry
NHL refers to lgID = 'NHL'; least number of times being on the ice when a goal is scored for the team versus against the team refers to min(+/-); duration the player's been playing = subtract(year(playerID(min(+/-))), firstNHL(playerID(min(+/-)))); full name = nameGiven + lastName
How many wins did the Philadelphia Flyers have over the Boston Bruins in 1985?
Philadelphia Flyers is name of team playing; Boston Bruins is name of opposing team where oppID = 'BOS'; year = 1985; wins refer to W;
highest Plus/minus refers to MAX(+/-); full name refers to firstName, lastName; 1981 season refers to year = '1981'
5 heaviest players refer to MAX(weight) limit to 5 playerID;
first season in NHL in before 1950 refers to firstNHL<1950; goalies who are still alive refers to deathYear IS NOT NULL
exhibition game refers to note = 'EX'; team of losing team refers to tmIDLoser
goaltender' and 'goalie' are synonyms; fewest goals while on the ice refers to min(GA); How old = subtract(lastNHL(playerID(min(GA))), birthYear(playerID(min(GA)))))
average height of 75 refers to AVG(height) = 75;
played in the league but not coached means playerID is not NULL and coachID is NULL;
goalie is a players; teams refer to tmID;
regular season refers to `R/P` = 'R'
died in Arlington refers to deathCity = 'Arlington'
Which team got the most bench minor penalties in 2006?
team refers to name; year = 2006
total goals refer to SUM(G); how old = SUBTRACT(YEAR(CURDATE, birthYear);
teams that have played against refer to oppID; Buffalo Sabres is the name of team;
pos = 'LW' refers to left winger; pos = 'RW' refers to right winger; pos = 'C' refers to center; pos = 'G' refers to goalie; pos = 'D' refers to defenceman; pos = 'W' refers to winger; pos = 'F' refers to forward
the number of wins refers to W
clutch player' and 'trustworthy player in the critical moment' are synonyms; most clutch player refers to the most trustworthy player which refers to MAX(GWG); 1986 is the year played
NHL refers to lgID = 'NHL'; most assists refers to max(A); full name = nameGiven + lastName; total amount of assists = sum(A(playerID(max(A))))
show me how many minutes refers to Min
Weight of above 190 refers to weight >190; 1978 season refers to the year played
least number of penalty kill chances refers to min(PKC); power play percentage refers to (PP%) = divide(PPG, PPC); team playing refers to tmID; victorious team refers to tmIDWinner; team victorious refers to tmID = tmIDWinner and vice versa
shutouts refers to SHO; number of goals refers to GA; 5% shutouts among the number of goals refers to DIVIDE(SHO,GA)*100 = 5.00
What is the number of players whose last name is Green that played in the league but not coached?
played in the league but not coached means playerID is not NULL and coachID is NULL;
penalty refers to BenchMinor; Ties refer to T
the most shutouts refer to MAX(SHO); catching hand refers to shootCatch; year = 2010;
played more than total of 5000 minutes refers to SUM(Min)>5000;country he was born refers to birthCountry
Coach of the team refers to firstName+lastName; 2003 refers to the year
passed away means deathYear is not NULL;
from Canada refers to birthCountry = 'Canada'; NHL league refers to lgID = 'NHL'
born in July and August refers to birthMon IN('7','8')
year = 1998; wins per game played = DIVIDE(W, G); CAR refers to tmID; contributed the most goals refers to MAX(G);
how many teams refer to COUNT(tmID); over 20 points refer to Pts>20; year = 1922;
1989 refers to the year of scoring; "dominant hand" and "shooting hand" are synonyms which refers to shootCatch
Which coach had the highest winning rates in the 2009 season? What's coach's nickname.
the highest winning rate refer to divide(W, sum(W, L))
have died means deathYear is not NULL; Buffalo Sabres is the name of team;
country refers to birthCountry
over 30 wins refers to w>30; born in the USA refers to birthCountry = 'USA'
team ID refers to tmID; 'defeats' and 'loses' are synonyms; most October defeats refers to max(OctL)
born in March refers to birthMon = '3'; nicknames refers to nameNick
goalie is a players; teams refer to tmID;
left winger refers to pos = 'L'; weight>200
the most shutouts refer to MAX(SHO); catching hand refers to shootCatch; year = 2010;
clutch player' and 'trustworthy player in the critical moment' are synonyms; most clutch player refers to the most trustworthy player which refers to MAX(GWG); 1986 is the year played
Canadian players mean player whose birthCountry = Canada; ages of 18 and 24 refers to SUBTRACT(firstNHL, birthYear) BETWEEN 18 AND 24; cumulative goal total of no more than 5 refers to G < 5; complete name = nameGiven + lastName
How much is the total goals for player with player ID aaltoan01 and how old is this person?
total goals refer to SUM(G); how old = SUBTRACT(YEAR(CURDATE, birthYear);
Year most hockey players were born refers to MAX(birthYear); birthCountry refers to the country where a player was born
Not from USA refers to birthCountry! = 'USA'; born in 1990 refers to birthYear = 1990
born in 1977 refers to birthYear = '1977'
MAX(DIVIDE(COUNT(W), SUM(COUNT(W), (COUNT (L)) where year = 2000;
10 empty net goals refer to ENG = 10; tallest refers to MAX(height);
teams scored against their opponent who had pulled their goalie refers to ENG is not null
the most shutouts refer to MAX(SHO); catching hand refers to shootCatch; year = 2010;
good at both left hands and right hands for goalie refers to shootCatch IS NULL
left winger refers to pos = 'L'; weight>200
penalty minutes refers to PIM; year of scoring BETWEEN 2003 AND 2005; most number of games played refers to max(GP)
In 1998, How many wins were made by team 'CAR' per game played? Who contributed the most goals? State the player ID.
year = 1998; wins per game played = DIVIDE(W, G); CAR refers to tmID; contributed the most goals refers to MAX(G);
played more than total of 5000 minutes refers to SUM(Min)>5000;country he was born refers to birthCountry
NHL refers to lgID = 'NHL'; most assists refers to max(A); full name = nameGiven + lastName; total amount of assists = sum(A(playerID(max(A))))
after retired and became a coach refers to max(subtract(year, lastNHL))
total number of the games refers to GP
1989 refers to the year of scoring; "dominant hand" and "shooting hand" are synonyms which refers to shootCatch
more wins than loses refers to W>L; year = 1917;
how many teams refer to COUNT(tmID); over 20 points refer to Pts>20; year = 1922;
average height of 75 refers to AVG(height) = 75;
co-coached refers to notes = 'co-coach'; birth place refers to 'birthCountry-birthState-birthCity'
Year most hockey players were born refers to MAX(birthYear); birthCountry refers to the country where a player was born
For the coach who co-coached with Dave Lewis in 1998, where was his birth place?
co-coached refers to notes = 'co-coach'; birth place refers to 'birthCountry-birthState-birthCity'
born in Canada refers to birthCountry = 'Canada'; pos = 'LW' refers to left winger; pos = 'RW' refers to right winger; pos = 'C' refers to center; pos = 'G' refers to goalie; pos = 'D' refers to defenceman; pos = 'W' refers to winger; pos = 'F' refers to forward
penalty minutes refer to PIM = 24; wins refer to W;
received the most awards in total refers to max(count(award))
team playing refers to tmID; oppositng team refers to oppID; victories' and 'wins' are synonyms; most victories refers to max(w)
penalty refers to BenchMinor; Ties refer to T
Post season of 2011 refers to year = ’2011’ defensive success rate refers to (SUBTRACT(1 (DIVIDE(PostGA/PostSA)), *100%)
MAX(DIVIDE(COUNT(W), SUM(COUNT(W), (COUNT (L)) where year = 2000;
the highest winning rate refer to divide(W, sum(W, L))
exhibition game refers to note = 'EX'; team of losing team refers to tmIDLoser
PCHA refers to lgID = 'PCHA'; NHL league refers to lgID = 'NHL'
Among all goalies who are still alive, whose first season in NHL in before 1950. List the team names they were in.
first season in NHL in before 1950 refers to firstNHL<1950; goalies who are still alive refers to deathYear IS NOT NULL
teams scored against their opponent who had pulled their goalie refers to ENG is not null
total goals refer to SUM(G); how old = SUBTRACT(YEAR(CURDATE, birthYear);
good at both left hands and right hands for goalie refers to shootCatch IS NULL
goaltender' and 'goalie' are synonyms; fewest goals while on the ice refers to min(GA); How old = subtract(lastNHL(playerID(min(GA))), birthYear(playerID(min(GA)))))
Shortest refers to MIN(height); from 1925 to 1936 refers to year between 1925 and 1936;
position refers to pos; date of birth refers to birthDay + birthMon + birthYear
year = 1998; wins per game played = DIVIDE(W, G); CAR refers to tmID; contributed the most goals refers to MAX(G);
players who became coaches refers to playerID IS NOT NULL AND coachID IS NOT NULL
from the USA refers to birthCountry = 'USA'; year = 1922;
played in the league but not coached means playerID is not NULL and coachID is NULL;
Which year recorded the most number of goals by a player and how old was the player at the time the most number of goals was achieved by him?
most number of goals refers to max(G); how old refers to age = subtract(year(max(G)), birthYear)
NHL refers to lgID = 'NHL'; least number of times being on the ice when a goal is scored for the team versus against the team refers to min(+/-); duration the player's been playing = subtract(year(playerID(min(+/-))), firstNHL(playerID(min(+/-)))); full name = nameGiven + lastName
average height refers to AVG(height); born in 1990 refers to birthYear = 1990
lost refers to L; won refers to W
penalty refers to BenchMinor; Ties refer to T
more wins than loses refers to W>L; year = 1917;
died in Arlington refers to deathCity = 'Arlington'
the highest winning rate refer to divide(W, sum(W, L))
road victories refers to rW; team id refers to tmID; victories and wins are synonyms
goalie is a players; teams refer to tmID;
first-ever Second Team All-Star award refers to min(year(award = 'Second Team All-Star')); How many games before receiving such award = sum(g(coachID(min(year(award = 'Second Team All-Star')))): g(min(year)))
How many teams scored against their opponent who had pulled their goalie in the year 2005?
teams scored against their opponent who had pulled their goalie refers to ENG is not null
over 30 wins refers to w>30; born in the USA refers to birthCountry = 'USA'
Power play percentage refers to PPG, most number of loses refers to MAX(L)
year = 1998; wins per game played = DIVIDE(W, G); CAR refers to tmID; contributed the most goals refers to MAX(G);
total number of the games refers to GP
Post season of 2011 refers to year = ’2011’ defensive success rate refers to (SUBTRACT(1 (DIVIDE(PostGA/PostSA)), *100%)
average height of 75 refers to AVG(height) = 75;
team refers to name; year = 2006
regular season refers to `R/P` = 'R'
goalies refers to pos = 'G'; deceased goalies refers to deathYear IS NOT NULL
Goals Against are the number of goals recorded while the goalie is on the ice; the most Goal Againsts refers to MAX(GA); Minnesota North Stars is name of team;
Name the goalies with the most seasons played. State the average time he played for each season.
most seasons played refers to MAX(COUNT(playerID)); average time he played for each season refers to DIVIDE(SUM(T2.Min),COUNT(T2.playerID))
least number of penalty kill chances refers to min(PKC); power play percentage refers to (PP%) = divide(PPG, PPC); team playing refers to tmID; victorious team refers to tmIDWinner; team victorious refers to tmID = tmIDWinner and vice versa
which team played the most games against refers to oppID where MAX(SUM(G); Buffalo Sabres is the name of team;
shooting/catching hand is both left and right refers to shootCatch is NULL, debuted their first NHL in 2011 refers to firstNHL = 2011
Shortest refers to MIN(height); from 1925 to 1936 refers to year between 1925 and 1936;
the first one refers to MIN(year);
penalty minutes refer to PIM = 24; wins refer to W;
death country is different from his birth country refers to birthCountry! = deathCountry
the number of years refers to count(year)
tie refers to T>0; year = 1909;
worked a temporary term refers to notes = 'interim'
How many years did player Id "cleghsp01" make to the Stanley Cup finals?
the number of years refers to count(year)
have died means deathYear is not NULL; Buffalo Sabres is the name of team;
team refers to name; year = 2006
highest Plus/minus refers to MAX(+/-); full name refers to firstName, lastName; 1981 season refers to year = '1981'
Weight of above 190 refers to weight >190; 1978 season refers to the year played
Year most hockey players were born refers to MAX(birthYear); birthCountry refers to the country where a player was born
more wins than loses refers to W>L; year = 1917;
NHL refers to lgID = 'NHL'; most assists refers to max(A); full name = nameGiven + lastName; total amount of assists = sum(A(playerID(max(A))))
MAX(DIVIDE(COUNT(W), SUM(COUNT(W), (COUNT (L)) where year = 2000;
Power play percentage refers to PPG, most number of loses refers to MAX(L)
victories' and 'wins' are synonyms; most number of victories refers to max(w)
Please list the first names of the coaches who have taught the Montreal Canadiens.
Montreal Canadiens is the name of team.
born in Canada refers to birthCountry = 'Canada'
Shortest refers to MIN(height); from 1925 to 1936 refers to year between 1925 and 1936;
born in March refers to birthMon = '3'; nicknames refers to nameNick
the number of goals refers to G
most number of goals refers to max(G); how old refers to age = subtract(year(max(G)), birthYear)
after the year 1980 refers to year>1980
10 empty net goals refer to ENG = 10; tallest refers to MAX(height);
position refers to pos; date of birth refers to birthDay + birthMon + birthYear
WCHL is the league's abbreviated name which refers to lgID = 'WCHL'; most goals scored referst to MAX(PostGA); GA is abbreviation for Post Against which means number of goals recorded while the goalie is on the ice. Include all goals against during regulation and overtime play.
Canadian players mean player whose birthCountry = Canada; ages of 18 and 24 refers to SUBTRACT(firstNHL, birthYear) BETWEEN 18 AND 24; cumulative goal total of no more than 5 refers to G < 5; complete name = nameGiven + lastName
Please list the positions of the players who were born in Canada and have won the All-Rookie award.
born in Canada refers to birthCountry = 'Canada'; pos = 'LW' refers to left winger; pos = 'RW' refers to right winger; pos = 'C' refers to center; pos = 'G' refers to goalie; pos = 'D' refers to defenceman; pos = 'W' refers to winger; pos = 'F' refers to forward
co-coached refers to notes = 'co-coach'; birth place refers to 'birthCountry-birthState-birthCity'
left winger refers to pos = 'L'; weight>200
players who became coaches refers to playerID IS NOT NULL AND coachID IS NOT NULL
show me how many minutes refers to Min
Coach of the team refers to firstName+lastName; 2003 refers to the year
after retirement means playerID Iis not NULL and coachID is not NULL;
5 heaviest players refer to MAX(weight) limit to 5 playerID;
have died means deathYear is not NULL; Buffalo Sabres is the name of team;
winning rate refers to DIVIDE (w, SUM(w, l)); Vancouver Canucks is name of team where tmID = 'VAN' Winning rate refers to DIVIDE(wins in year = '2005/2006'(ADD(wins+loses); improvement refers to SUBTRACT(DIVIDE(wins in year = '2005'(ADD(wins+loses), DIVIDE(wins in year = '2006'(ADD(wins+loses))
after the year 1980 refers to year>1980
How many games did the coach who received the first-ever Second Team All-Star award play before receiving such award?
first-ever Second Team All-Star award refers to min(year(award = 'Second Team All-Star')); How many games before receiving such award = sum(g(coachID(min(year(award = 'Second Team All-Star')))): g(min(year)))
Post season of 2011 refers to year = ’2011’ defensive success rate refers to (SUBTRACT(1 (DIVIDE(PostGA/PostSA)), *100%)
end up with a tie or an overtime loss refers to T/OL
1989 refers to the year of scoring; "dominant hand" and "shooting hand" are synonyms which refers to shootCatch
NHL refers to lgID = 'NHL'; most assists refers to max(A); full name = nameGiven + lastName; total amount of assists = sum(A(playerID(max(A))))
the first 3 teams that got the most penalty minutes refer to name where MAX(PIM) limit to 3; year = 2006;
shooting/catching hand is both left and right refers to shootCatch is NULL, debuted their first NHL in 2011 refers to firstNHL = 2011
PCHA refers to lgID = 'PCHA'; NHL league refers to lgID = 'NHL'
penalty minutes refer to PIM = 49;
born in July and August refers to birthMon IN('7','8')
penalty minutes refer to PIM = 24; wins refer to W;
Which Minnesota North Stars' goalkeeper had the most Goal Againsts in his play time?
Goals Against are the number of goals recorded while the goalie is on the ice; the most Goal Againsts refers to MAX(GA); Minnesota North Stars is name of team;
highest percentage of game winning refers to MAX(DIVIDE(w,g)*100)
after the year 1980 refers to year>1980
average height refers to AVG(height); born in 1990 refers to birthYear = 1990
from the USA refers to birthCountry = 'USA'; year = 1922;
Canadian players mean player whose birthCountry = Canada; ages of 18 and 24 refers to SUBTRACT(firstNHL, birthYear) BETWEEN 18 AND 24; cumulative goal total of no more than 5 refers to G < 5; complete name = nameGiven + lastName
born in Canada refers to birthCountry = 'Canada'; pos = 'LW' refers to left winger; pos = 'RW' refers to right winger; pos = 'C' refers to center; pos = 'G' refers to goalie; pos = 'D' refers to defenceman; pos = 'W' refers to winger; pos = 'F' refers to forward
nick name refers to nameNick; team refers to tmID; season refers to year
most number of goals refers to max(G); how old refers to age = subtract(year(max(G)), birthYear)
NHL refers to lgID = 'NHL'; most assists refers to max(A); full name = nameGiven + lastName; total amount of assists = sum(A(playerID(max(A))))
the number of wins refers to W
In the year that the Montreal Canadiens had 24 penalty minutes in the Stanley Cup finals, how many wins did the team had in total?
penalty minutes refer to PIM = 24; wins refer to W;
which league refers to lgID
the highest winning rate refer to divide(W, sum(W, L))
after retirement means playerID Iis not NULL and coachID is not NULL;
tie refers to T>0; year = 1909;
most number of goals refers to max(G); how old refers to age = subtract(year(max(G)), birthYear)
saved the most goal attempts refers to max(subtract(SA, GA)); team id refers to tmID
NHL refers to lgID = 'NHL'; most assists refers to max(A); full name = nameGiven + lastName; total amount of assists = sum(A(playerID(max(A))))
winning rate refers to DIVIDE (w, SUM(w, l)); Vancouver Canucks is name of team where tmID = 'VAN' Winning rate refers to DIVIDE(wins in year = '2005/2006'(ADD(wins+loses); improvement refers to SUBTRACT(DIVIDE(wins in year = '2005'(ADD(wins+loses), DIVIDE(wins in year = '2006'(ADD(wins+loses))
temporary coached refers to notes = 'interim'; number of loss refers to L (to add)
Philadelphia Flyers is name of team playing; Boston Bruins is name of opposing team where oppID = 'BOS'; year = 1985; wins refer to W;
Which team got the most wins in the Stanley Cup finals?
team refers name; most wins = MAX(W);
the number of goals refers to G
lost refers to L; won refers to W
MAX(DIVIDE(COUNT(W), SUM(COUNT(W), (COUNT (L)) where year = 2000;
team playing refers to tmID; oppositng team refers to oppID; victories' and 'wins' are synonyms; most victories refers to max(w)
most award-winning refers to max(count(award)); country player is from refers to birthCountry
penalty refers to BenchMinor; Ties refer to T
average height refers to AVG(height); born in 1990 refers to birthYear = 1990
shutouts refers to SHO; number of goals refers to GA; 5% shutouts among the number of goals refers to DIVIDE(SHO,GA)*100 = 5.00
after retirement means playerID Iis not NULL and coachID is not NULL;
played in the league but not coached means playerID is not NULL and coachID is NULL;
In the history of all the Quebec Bulldogs, which goalie had the most play minutes for the team? Give the full name.
the most play minutes refer to MAX(Min); goalie refers to pos = 'G'; New York Islanders is the nameof team;
same total number of postseason wins and postseason loses refers to PostW = PostL
position refers to pos; date of birth refers to birthDay + birthMon + birthYear
nick name refers to nameNick; team refers to tmID; season refers to year
most award-winning refers to max(count(award)); country player is from refers to birthCountry
over 30 wins refers to w>30; born in the USA refers to birthCountry = 'USA'
which league refers to lgID
Montreal Canadiens is the name of team.
left winger refers to pos = 'L'; weight>200
played in the league but not coached means playerID is not NULL and coachID is NULL;
team playing refers to tmID; oppositng team refers to oppID; victories' and 'wins' are synonyms; most victories refers to max(w)
Among the coaches who was never a player, who has highest percentage of game winning? Provide the given name of the coach and team he coached.
highest percentage of game winning refers to MAX(DIVIDE(w,g)*100)
weight of over 195 refers to weight>195
born in 1977 refers to birthYear = '1977'
clutch player' and 'trustworthy player in the critical moment' are synonyms; most clutch player refers to the most trustworthy player which refers to MAX(GWG); 1986 is the year played
team refers name; most wins = MAX(W);
the number of goals refers to G
the most play minutes refer to MAX(Min); goalie refers to pos = 'G'; New York Islanders is the nameof team;
co-coached refers to notes = 'co-coach'; birth place refers to 'birthCountry-birthState-birthCity'
not in the Hall of Fame refers to hofID IS NULL
have died means deathYear is not NULL; Buffalo Sabres is the name of team;
born in Toronto refers to birthCountry = 'Toronto'
In 1976, how many goals achieved by team 'BIR' in Division 'EW'?
year = 1976; BIR refers to tmID; Division 'EW' refers to divID = 'EW'; goals = G;
year BETWEEN 1950 and 1980; average = DIVIDE(COUNT(hofID)), 30)
worked a temporary term refers to notes = 'interim'
good at both left hands and right hands for goalie refers to shootCatch IS NULL
clutch player' and 'trustworthy player in the critical moment' are synonyms; most clutch player refers to the most trustworthy player which refers to MAX(GWG); 1986 is the year played
Canadian players mean player whose birthCountry = Canada; ages of 18 and 24 refers to SUBTRACT(firstNHL, birthYear) BETWEEN 18 AND 24; cumulative goal total of no more than 5 refers to G < 5; complete name = nameGiven + lastName
21st century refers to year >2000; Power play goals refers to PPG
played more than total of 5000 minutes refers to SUM(Min)>5000;country he was born refers to birthCountry
the most shutouts refer to MAX(SHO); catching hand refers to shootCatch; year = 2010;
MAX(DIVIDE(COUNT(W), SUM(COUNT(W), (COUNT (L)) where year = 2000;
exhibition game refers to note = 'EX'; team of losing team refers to tmIDLoser
How many coaches who have taught the Buffalo Sabres have died?
have died means deathYear is not NULL; Buffalo Sabres is the name of team;
the number of years refers to count(year)
Philadelphia Flyers is name of team playing; Boston Bruins is name of opposing team where oppID = 'BOS'; year = 1985; wins refer to W;
players who became coaches refers to playerID IS NOT NULL AND coachID IS NOT NULL
over 30 wins refers to w>30; born in the USA refers to birthCountry = 'USA'
team ID refers to tmID; 'defeats' and 'loses' are synonyms; most October defeats refers to max(OctL)
regular season refers to `R/P` = 'R'
saved the most goal attempts refers to max(subtract(SA, GA)); team id refers to tmID
road victories refers to rW; team id refers to tmID; victories and wins are synonyms
winning rate refers to DIVIDE (w, SUM(w, l)); Vancouver Canucks is name of team where tmID = 'VAN' Winning rate refers to DIVIDE(wins in year = '2005/2006'(ADD(wins+loses); improvement refers to SUBTRACT(DIVIDE(wins in year = '2005'(ADD(wins+loses), DIVIDE(wins in year = '2006'(ADD(wins+loses))
tie refers to T>0; year = 1909;
In which year did the Montreal Canadiens have 49 penalty minutes in the Stanley Cup finals? Was it 1924, 1923 or 1918?
penalty minutes refer to PIM = 49;
lost refers to L; won refers to W
still living refers to deathYear IS NULL; youngest refers to MAX(birthYear,birthMon,birthDay)
nick name refers to nameNick; tallest player refers to MAX(height); had left NHL refers to lastNHL
tie refers to T>0; year = 1909;
NHL refers to lgID = 'NHL'; least number of times being on the ice when a goal is scored for the team versus against the team refers to min(+/-); duration the player's been playing = subtract(year(playerID(min(+/-))), firstNHL(playerID(min(+/-)))); full name = nameGiven + lastName
weight of over 195 refers to weight>195
Shortest refers to MIN(height); from 1925 to 1936 refers to year between 1925 and 1936;
over 30 wins refers to w>30; born in the USA refers to birthCountry = 'USA'
team refers to name; year = 2006
hall of famers refers to hofID; both played and coached means playerID is not NULL and coachID is not NULL;
In 2006, what is the overall number of october defeats for the team with the most October defeats? Indicate the team ID.
team ID refers to tmID; 'defeats' and 'loses' are synonyms; most October defeats refers to max(OctL)
year = 1998; wins per game played = DIVIDE(W, G); CAR refers to tmID; contributed the most goals refers to MAX(G);
total number of the games refers to GP
good at both left hands and right hands for goalie refers to shootCatch IS NULL
clutch player' and 'trustworthy player in the critical moment' are synonyms; most clutch player refers to the most trustworthy player which refers to MAX(GWG); 1986 is the year played
nick name refers to nameNick; team refers to tmID; season refers to year
penalty refers to BenchMinor; Ties refer to T
highest percentage of game winning refers to MAX(DIVIDE(w,g)*100)
after the year 1980 refers to year>1980
over 30 wins refers to w>30; born in the USA refers to birthCountry = 'USA'
how many teams refer to COUNT(tmID); over 20 points refer to Pts>20; year = 1922;
What is the power play percentage of the team with the least number of penalty kill chances and to which team were they playing against? Indicate whether the team lost or victorious.
least number of penalty kill chances refers to min(PKC); power play percentage refers to (PP%) = divide(PPG, PPC); team playing refers to tmID; victorious team refers to tmIDWinner; team victorious refers to tmID = tmIDWinner and vice versa
the most play minutes refer to MAX(Min); goalie refers to pos = 'G'; New York Islanders is the nameof team;
winning rate refers to DIVIDE (w, SUM(w, l)); Vancouver Canucks is name of team where tmID = 'VAN' Winning rate refers to DIVIDE(wins in year = '2005/2006'(ADD(wins+loses); improvement refers to SUBTRACT(DIVIDE(wins in year = '2005'(ADD(wins+loses), DIVIDE(wins in year = '2006'(ADD(wins+loses))
more wins than loses refers to W>L; year = 1917;
21st century refers to year >2000; Power play goals refers to PPG
Not from USA refers to birthCountry! = 'USA'; born in 1990 refers to birthYear = 1990
year = 1976; BIR refers to tmID; Division 'EW' refers to divID = 'EW'; goals = G;
goaltender' and 'goalie' are synonyms; fewest goals while on the ice refers to min(GA); How old = subtract(lastNHL(playerID(min(GA))), birthYear(playerID(min(GA)))))
MAX(DIVIDE(COUNT(W), SUM(COUNT(W), (COUNT (L)) where year = 2000;
after year 2000 refers to year>2000;
highest Plus/minus refers to MAX(+/-); full name refers to firstName, lastName; 1981 season refers to year = '1981'
In 1997, how many loss did the coach have who temporary coached Tampa Bay Lightning? Indicate his/her coach ID.
temporary coached refers to notes = 'interim'; number of loss refers to L (to add)
Year most hockey players were born refers to MAX(birthYear); birthCountry refers to the country where a player was born
born in Toronto refers to birthCountry = 'Toronto'
average height of 75 refers to AVG(height) = 75;
how many teams refer to COUNT(tmID); over 20 points refer to Pts>20; year = 1922;
after the year 1980 refers to year>1980
Not from USA refers to birthCountry! = 'USA'; born in 1990 refers to birthYear = 1990
nick name refers to nameNick; tallest player refers to MAX(height); had left NHL refers to lastNHL
saved the most goal attempts refers to max(subtract(SA, GA)); team id refers to tmID
the most play minutes refer to MAX(Min); goalie refers to pos = 'G'; New York Islanders is the nameof team;
winning rate refers to DIVIDE (w, SUM(w, l)); Vancouver Canucks is name of team where tmID = 'VAN' Winning rate refers to DIVIDE(wins in year = '2005/2006'(ADD(wins+loses); improvement refers to SUBTRACT(DIVIDE(wins in year = '2005'(ADD(wins+loses), DIVIDE(wins in year = '2006'(ADD(wins+loses))
What was the number of goals did player Id "dyeba01" make in the 1921 Stanley Cup finals?
the number of goals refers to G
Power play percentage refers to PPG, most number of loses refers to MAX(L)
PCHA refers to lgID = 'PCHA'; NHL league refers to lgID = 'NHL'
goaltender' and 'goalie' are synonyms; fewest goals while on the ice refers to min(GA); How old = subtract(lastNHL(playerID(min(GA))), birthYear(playerID(min(GA)))))
most seasons played refers to MAX(COUNT(playerID)); average time he played for each season refers to DIVIDE(SUM(T2.Min),COUNT(T2.playerID))
the third goalie refers to stint = 3; the biggest weight refers to max(weight)
players who became coaches refers to playerID IS NOT NULL AND coachID IS NOT NULL
the most play minutes refer to MAX(Min); goalie refers to pos = 'G'; New York Islanders is the nameof team;
born in July and August refers to birthMon IN('7','8')
temporary coached refers to notes = 'interim'; number of loss refers to L (to add)
Montreal Canadiens is the name of team.
Which country is the most award-winning player from?
most award-winning refers to max(count(award)); country player is from refers to birthCountry
have died means deathYear is not NULL; Buffalo Sabres is the name of team;
the number of goals refers to G
victories' and 'wins' are synonyms; most number of victories refers to max(w)
hall of famers refers to hofID; both played and coached means playerID is not NULL and coachID is not NULL;
10 empty net goals refer to ENG = 10; tallest refers to MAX(height);
team refers name; most wins = MAX(W);
the biggest power play percentage = max(divide(PPG, PPC))
after retirement means playerID Iis not NULL and coachID is not NULL;
goals against refers to GA; shots against refers to SA; lowest percentage of goals against among all the shots against refers to MIN(DIVIDE(GA,SA)*100)
average height of 75 refers to AVG(height) = 75;
Among the coaches who have received an award in 1940, how many of them are born in Toronto?
born in Toronto refers to birthCountry = 'Toronto'
still living refers to deathYear IS NULL; youngest refers to MAX(birthYear,birthMon,birthDay)
saved the most goal attempts refers to max(subtract(SA, GA)); team id refers to tmID
players who became coaches refers to playerID IS NOT NULL AND coachID IS NOT NULL
Canadian players mean player whose birthCountry = Canada; ages of 18 and 24 refers to SUBTRACT(firstNHL, birthYear) BETWEEN 18 AND 24; cumulative goal total of no more than 5 refers to G < 5; complete name = nameGiven + lastName
tie refers to T>0; year = 1909;
died in Arlington refers to deathCity = 'Arlington'
Philadelphia Flyers is name of team playing; Boston Bruins is name of opposing team where oppID = 'BOS'; year = 1985; wins refer to W;
regular season refers to `R/P` = 'R'
same total number of postseason wins and postseason loses refers to PostW = PostL
after year 2000 refers to year>2000;
Name the goaltenders who had played in both PCHA and NHL league.
PCHA refers to lgID = 'PCHA'; NHL league refers to lgID = 'NHL'
the number of wins refers to W
worked a temporary term refers to notes = 'interim'
death country is different from his birth country refers to birthCountry! = deathCountry
team playing refers to tmID; oppositng team refers to oppID; victories' and 'wins' are synonyms; most victories refers to max(w)
left winger refers to pos = 'L'; weight>200
goaltender' and 'goalie' are synonyms; fewest goals while on the ice refers to min(GA); How old = subtract(lastNHL(playerID(min(GA))), birthYear(playerID(min(GA)))))
Not from USA refers to birthCountry! = 'USA'; born in 1990 refers to birthYear = 1990
teams scored against their opponent who had pulled their goalie refers to ENG is not null
have died means deathYear is not NULL; Buffalo Sabres is the name of team;
born in Toronto refers to birthCountry = 'Toronto'
How old was the goaltender who scored the fewest goals while on the ice when he retired from the NHL?
goaltender' and 'goalie' are synonyms; fewest goals while on the ice refers to min(GA); How old = subtract(lastNHL(playerID(min(GA))), birthYear(playerID(min(GA)))))
not in the Hall of Fame refers to hofID IS NULL
worked a temporary term refers to notes = 'interim'
5 heaviest players refer to MAX(weight) limit to 5 playerID;
have died means deathYear is not NULL; Buffalo Sabres is the name of team;
penalty minutes refer to PIM = 24; wins refer to W;
over 30 wins refers to w>30; born in the USA refers to birthCountry = 'USA'
born in 1977 refers to birthYear = '1977'
year = 1998; wins per game played = DIVIDE(W, G); CAR refers to tmID; contributed the most goals refers to MAX(G);
passed away means deathYear is not NULL;
winning rate refers to DIVIDE (w, SUM(w, l)); Vancouver Canucks is name of team where tmID = 'VAN' Winning rate refers to DIVIDE(wins in year = '2005/2006'(ADD(wins+loses); improvement refers to SUBTRACT(DIVIDE(wins in year = '2005'(ADD(wins+loses), DIVIDE(wins in year = '2006'(ADD(wins+loses))
List down player ID of players who have passed away.
passed away means deathYear is not NULL;
which league refers to lgID
the third goalie refers to stint = 3; the biggest weight refers to max(weight)
Goals Against are the number of goals recorded while the goalie is on the ice; the most Goal Againsts refers to MAX(GA); Minnesota North Stars is name of team;
highest percentage of game winning refers to MAX(DIVIDE(w,g)*100)
the number of wins refers to W
after retirement means playerID Iis not NULL and coachID is not NULL;
team playing refers to tmID; oppositng team refers to oppID; victories' and 'wins' are synonyms; most victories refers to max(w)
most award-winning refers to max(count(award)); country player is from refers to birthCountry
born in Canada refers to birthCountry = 'Canada'
not in the Hall of Fame refers to hofID IS NULL
How long has the NHL player been playing during the year when he recorded the least number of times being on the ice when a goal is scored for the team versus against the team? Indicate his full name.
NHL refers to lgID = 'NHL'; least number of times being on the ice when a goal is scored for the team versus against the team refers to min(+/-); duration the player's been playing = subtract(year(playerID(min(+/-))), firstNHL(playerID(min(+/-)))); full name = nameGiven + lastName
still living refers to deathYear IS NULL; youngest refers to MAX(birthYear,birthMon,birthDay)
highest percentage of game winning refers to MAX(DIVIDE(w,g)*100)
team ID refers to tmID; 'defeats' and 'loses' are synonyms; most October defeats refers to max(OctL)
worked a temporary term refers to notes = 'interim'
the first 3 teams that got the most penalty minutes refer to name where MAX(PIM) limit to 3; year = 2006;
which team played the most games against refers to oppID where MAX(SUM(G); Buffalo Sabres is the name of team;
clutch player' and 'trustworthy player in the critical moment' are synonyms; most clutch player refers to the most trustworthy player which refers to MAX(GWG); 1986 is the year played
penalty minutes refers to PIM; year of scoring BETWEEN 2003 AND 2005; most number of games played refers to max(GP)
goals against refers to GA; shots against refers to SA; lowest percentage of goals against among all the shots against refers to MIN(DIVIDE(GA,SA)*100)
penalty refers to BenchMinor; Ties refer to T
Please list the nicknames of the players who have won the All-Rookie award and are born in March.
born in March refers to birthMon = '3'; nicknames refers to nameNick
good at both left hands and right hands for goalie refers to shootCatch IS NULL
from Canada refers to birthCountry = 'Canada'; NHL league refers to lgID = 'NHL'
most seasons played refers to MAX(COUNT(playerID)); average time he played for each season refers to DIVIDE(SUM(T2.Min),COUNT(T2.playerID))
year = 1976; BIR refers to tmID; Division 'EW' refers to divID = 'EW'; goals = G;
year BETWEEN 1950 and 1980; average = DIVIDE(COUNT(hofID)), 30)
first year they were in NHL refers to firstNHL; first year in WHA refers to firstWHA; play in both refers to firstNHL IS NOT NULL AND firstWHA IS NOT NULL
shots recorded while the goalie was on the ice refers to SA IS NOT NULL; NHL League refers to lgID = 'NHL'
highest Plus/minus refers to MAX(+/-); full name refers to firstName, lastName; 1981 season refers to year = '1981'
the third goalie refers to stint = 3; the biggest weight refers to max(weight)
not in the Hall of Fame refers to hofID IS NULL
For the goalie who had the most shutouts in 2010, what's his catching hand?
the most shutouts refer to MAX(SHO); catching hand refers to shootCatch; year = 2010;
penalty minutes refers to PIM; year of scoring BETWEEN 2003 AND 2005; most number of games played refers to max(GP)
team refers name; most wins = MAX(W);
PCHA refers to lgID = 'PCHA'; NHL league refers to lgID = 'NHL'
penalty minutes refer to PIM = 49;
played in the league but not coached means playerID is not NULL and coachID is NULL;
teams that have played against refer to oppID; Buffalo Sabres is the name of team;
Shortest refers to MIN(height); from 1925 to 1936 refers to year between 1925 and 1936;
WCHL is the league's abbreviated name which refers to lgID = 'WCHL'; most goals scored referst to MAX(PostGA); GA is abbreviation for Post Against which means number of goals recorded while the goalie is on the ice. Include all goals against during regulation and overtime play.
death country is different from his birth country refers to birthCountry! = deathCountry
received the most awards in total refers to max(count(award))
Which team has the highest winning rate in year 2000? State the team ID and list down the birth country of it's players.
MAX(DIVIDE(COUNT(W), SUM(COUNT(W), (COUNT (L)) where year = 2000;
nick name refers to nameNick; team refers to tmID; season refers to year
players who became coaches refers to playerID IS NOT NULL AND coachID IS NOT NULL
same total number of postseason wins and postseason loses refers to PostW = PostL
nick name refers to nameNick; tallest player refers to MAX(height); had left NHL refers to lastNHL
victories' and 'wins' are synonyms; most number of victories refers to max(w)
the number of wins refers to W
penalty minutes refer to PIM = 49;
first year they were in NHL refers to firstNHL; first year in WHA refers to firstWHA; play in both refers to firstNHL IS NOT NULL AND firstWHA IS NOT NULL
worked a temporary term refers to notes = 'interim'
team ID refers to tmID; 'defeats' and 'loses' are synonyms; most October defeats refers to max(OctL)
Between 2003 to 2005, what are the given names of the players with the most number of games played whose Penalty minutes is between 200 to 250?
penalty minutes refers to PIM; year of scoring BETWEEN 2003 AND 2005; most number of games played refers to max(GP)
note = 'posthumous'refers to "didn't personally attend"
country refers to birthCountry
from Canada refers to birthCountry = 'Canada'; NHL league refers to lgID = 'NHL'
Weight of above 190 refers to weight >190; 1978 season refers to the year played
NHL refers to lgID = 'NHL'; most assists refers to max(A); full name = nameGiven + lastName; total amount of assists = sum(A(playerID(max(A))))
tie refers to T>0; year = 1909;
most seasons played refers to MAX(COUNT(playerID)); average time he played for each season refers to DIVIDE(SUM(T2.Min),COUNT(T2.playerID))
total goals refer to SUM(G); how old = SUBTRACT(YEAR(CURDATE, birthYear);
same total number of postseason wins and postseason loses refers to PostW = PostL
which team played the most games against refers to oppID where MAX(SUM(G); Buffalo Sabres is the name of team;
Please list the awards the coaches who are born in Canada have won.
born in Canada refers to birthCountry = 'Canada'
team ID refers to tmID; 'defeats' and 'loses' are synonyms; most October defeats refers to max(OctL)
total number of the games refers to GP
Not from USA refers to birthCountry! = 'USA'; born in 1990 refers to birthYear = 1990
highest percentage of game winning refers to MAX(DIVIDE(w,g)*100)
co-coached refers to notes = 'co-coach'; birth place refers to 'birthCountry-birthState-birthCity'
show me how many minutes refers to Min
the first one refers to MIN(year);
played in the league but not coached means playerID is not NULL and coachID is NULL;
penalty refers to BenchMinor; Ties refer to T
after retired and became a coach refers to max(subtract(year, lastNHL))
For the goalie whose last name is "Young", how many teams did he play in?
goalie is a players; teams refer to tmID;
country refers to birthCountry
good at both left hands and right hands for goalie refers to shootCatch IS NULL
Not from USA refers to birthCountry! = 'USA'; born in 1990 refers to birthYear = 1990
team refers name; most wins = MAX(W);
most seasons played refers to MAX(COUNT(playerID)); average time he played for each season refers to DIVIDE(SUM(T2.Min),COUNT(T2.playerID))
5 heaviest players refer to MAX(weight) limit to 5 playerID;
left winger refers to pos = 'L'; weight>200
team refers to name; year = 2006
worked a temporary term refers to notes = 'interim'
the most shutouts refer to MAX(SHO); catching hand refers to shootCatch; year = 2010;
Which league did player id"adamsja01" play in 1920?
which league refers to lgID
note = 'posthumous'refers to "didn't personally attend"
teams scored against their opponent who had pulled their goalie refers to ENG is not null
played in the league but not coached means playerID is not NULL and coachID is NULL;
shooting/catching hand is both left and right refers to shootCatch is NULL, debuted their first NHL in 2011 refers to firstNHL = 2011
road victories refers to rW; team id refers to tmID; victories and wins are synonyms
how many teams refer to COUNT(tmID); over 20 points refer to Pts>20; year = 1922;
year = 1998; wins per game played = DIVIDE(W, G); CAR refers to tmID; contributed the most goals refers to MAX(G);
the most shutouts refer to MAX(SHO); catching hand refers to shootCatch; year = 2010;
after the year 1980 refers to year>1980
highest Plus/minus refers to MAX(+/-); full name refers to firstName, lastName; 1981 season refers to year = '1981'
List down the first name of coaches who still coach after year 2000.
after year 2000 refers to year>2000;
total number of the games refers to GP
shooting/catching hand is both left and right refers to shootCatch is NULL, debuted their first NHL in 2011 refers to firstNHL = 2011
Weight of above 190 refers to weight >190; 1978 season refers to the year played
which league refers to lgID
teams that have played against refer to oppID; Buffalo Sabres is the name of team;
which team played the most games against refers to oppID where MAX(SUM(G); Buffalo Sabres is the name of team;
good at left hand refers to shootCatch = 'L'; goalies refers to pos = 'G'
left winger refers to pos = 'L'; weight>200
winning percentage refers to DIVIDE(w,g)*100; team DET refers to tmID = 'DET'
the first one refers to MIN(year);
In the year 2000, which team has played the most games against the Buffalo Sabres?
which team played the most games against refers to oppID where MAX(SUM(G); Buffalo Sabres is the name of team;
nick name refers to nameNick; team refers to tmID; season refers to year
least number of penalty kill chances refers to min(PKC); power play percentage refers to (PP%) = divide(PPG, PPC); team playing refers to tmID; victorious team refers to tmIDWinner; team victorious refers to tmID = tmIDWinner and vice versa
co-coached refers to notes = 'co-coach'; birth place refers to 'birthCountry-birthState-birthCity'
pos = 'LW' refers to left winger; pos = 'RW' refers to right winger; pos = 'C' refers to center; pos = 'G' refers to goalie; pos = 'D' refers to defenceman; pos = 'W' refers to winger; pos = 'F' refers to forward
born in 1977 refers to birthYear = '1977'
the third goalie refers to stint = 3; the biggest weight refers to max(weight)
penalty minutes refers to PIM; year of scoring BETWEEN 2003 AND 2005; most number of games played refers to max(GP)
the first one refers to MIN(year);
Philadelphia Flyers is name of team playing; Boston Bruins is name of opposing team where oppID = 'BOS'; year = 1985; wins refer to W;
played more than total of 5000 minutes refers to SUM(Min)>5000;country he was born refers to birthCountry
How many players, whose shooting/catching hand is both left and right, debuted their first NHL in 2011?
shooting/catching hand is both left and right refers to shootCatch is NULL, debuted their first NHL in 2011 refers to firstNHL = 2011
the highest total points = MAX(Pts)
played more than total of 5000 minutes refers to SUM(Min)>5000;country he was born refers to birthCountry
death country is different from his birth country refers to birthCountry! = deathCountry
players who became coaches refers to playerID IS NOT NULL AND coachID IS NOT NULL
first season in NHL in before 1950 refers to firstNHL<1950; goalies who are still alive refers to deathYear IS NOT NULL
good at left hand refers to shootCatch = 'L'; goalies refers to pos = 'G'
after retired and became a coach refers to max(subtract(year, lastNHL))
first year they were in NHL refers to firstNHL; first year in WHA refers to firstWHA; play in both refers to firstNHL IS NOT NULL AND firstWHA IS NOT NULL
received the most awards in total refers to max(count(award))
team refers name; most wins = MAX(W);
State the nick name of player ID 'aubinje01'. List all the teams and season he played for.
nick name refers to nameNick; team refers to tmID; season refers to year
21st century refers to year >2000; Power play goals refers to PPG
the most play minutes refer to MAX(Min); goalie refers to pos = 'G'; New York Islanders is the nameof team;
the biggest power play percentage = max(divide(PPG, PPC))
Post season of 2011 refers to year = ’2011’ defensive success rate refers to (SUBTRACT(1 (DIVIDE(PostGA/PostSA)), *100%)
born in Toronto refers to birthCountry = 'Toronto'
Montreal Canadiens is the name of team.
most seasons played refers to MAX(COUNT(playerID)); average time he played for each season refers to DIVIDE(SUM(T2.Min),COUNT(T2.playerID))
most number of goals refers to max(G); how old refers to age = subtract(year(max(G)), birthYear)
pos = 'LW' refers to left winger; pos = 'RW' refers to right winger; pos = 'C' refers to center; pos = 'G' refers to goalie; pos = 'D' refers to defenceman; pos = 'W' refers to winger; pos = 'F' refers to forward
over 30 wins refers to w>30; born in the USA refers to birthCountry = 'USA'
Among the coaches whose team has over 30 wins in a year, how many of them are born in the USA?
over 30 wins refers to w>30; born in the USA refers to birthCountry = 'USA'
regular season refers to `R/P` = 'R'
goals against refers to GA; shots against refers to SA; lowest percentage of goals against among all the shots against refers to MIN(DIVIDE(GA,SA)*100)
the most play minutes refer to MAX(Min); goalie refers to pos = 'G'; New York Islanders is the nameof team;
NHL refers to lgID = 'NHL'; least number of times being on the ice when a goal is scored for the team versus against the team refers to min(+/-); duration the player's been playing = subtract(year(playerID(min(+/-))), firstNHL(playerID(min(+/-)))); full name = nameGiven + lastName
passed away means deathYear is not NULL;
winning rate refers to DIVIDE (w, SUM(w, l)); Vancouver Canucks is name of team where tmID = 'VAN' Winning rate refers to DIVIDE(wins in year = '2005/2006'(ADD(wins+loses); improvement refers to SUBTRACT(DIVIDE(wins in year = '2005'(ADD(wins+loses), DIVIDE(wins in year = '2006'(ADD(wins+loses))
played more than total of 5000 minutes refers to SUM(Min)>5000;country he was born refers to birthCountry
exhibition game refers to note = 'EX'; team of losing team refers to tmIDLoser
have died means deathYear is not NULL; Buffalo Sabres is the name of team;
year BETWEEN 1950 and 1980; average = DIVIDE(COUNT(hofID)), 30)
Players born in which year have received the most awards in total?
received the most awards in total refers to max(count(award))
Not from USA refers to birthCountry! = 'USA'; born in 1990 refers to birthYear = 1990
Year most hockey players were born refers to MAX(birthYear); birthCountry refers to the country where a player was born
born in Canada refers to birthCountry = 'Canada'
lost refers to L; won refers to W
most award-winning refers to max(count(award)); country player is from refers to birthCountry
nick name refers to nameNick; team refers to tmID; season refers to year
saved the most goal attempts refers to max(subtract(SA, GA)); team id refers to tmID
played in the league but not coached means playerID is not NULL and coachID is NULL;
players who became coaches refers to playerID IS NOT NULL AND coachID IS NOT NULL
first season in NHL in before 1950 refers to firstNHL<1950; goalies who are still alive refers to deathYear IS NOT NULL
Among the players who had 10 empty net goals in their career, who is the tallest? Show his full name.
10 empty net goals refer to ENG = 10; tallest refers to MAX(height);
Power play percentage refers to PPG, most number of loses refers to MAX(L)
penalty minutes refer to PIM = 49;
from Canada refers to birthCountry = 'Canada'; NHL league refers to lgID = 'NHL'
the first 3 teams that got the most penalty minutes refer to name where MAX(PIM) limit to 3; year = 2006;
Coach of the team refers to firstName+lastName; 2003 refers to the year
born in Toronto refers to birthCountry = 'Toronto'
highest percentage of game winning refers to MAX(DIVIDE(w,g)*100)
after the year 1980 refers to year>1980
penalty minutes refers to PIM; year of scoring BETWEEN 2003 AND 2005; most number of games played refers to max(GP)
hall of famers refers to hofID; both played and coached means playerID is not NULL and coachID is not NULL;
How many goals were scored while the goalkeeper was on the ice in the 1924 WCHL by the goalie with the most goals scored?
WCHL is the league's abbreviated name which refers to lgID = 'WCHL'; most goals scored referst to MAX(PostGA); GA is abbreviation for Post Against which means number of goals recorded while the goalie is on the ice. Include all goals against during regulation and overtime play.
have died means deathYear is not NULL; Buffalo Sabres is the name of team;
after retired and became a coach refers to max(subtract(year, lastNHL))
still living refers to deathYear IS NULL; youngest refers to MAX(birthYear,birthMon,birthDay)
first-ever Second Team All-Star award refers to min(year(award = 'Second Team All-Star')); How many games before receiving such award = sum(g(coachID(min(year(award = 'Second Team All-Star')))): g(min(year)))
players who became coaches refers to playerID IS NOT NULL AND coachID IS NOT NULL
show me how many minutes refers to Min
which league refers to lgID
saved the most goal attempts refers to max(subtract(SA, GA)); team id refers to tmID
date of birth refers to birthDay + birthMon + birthYear
least number of penalty kill chances refers to min(PKC); power play percentage refers to (PP%) = divide(PPG, PPC); team playing refers to tmID; victorious team refers to tmIDWinner; team victorious refers to tmID = tmIDWinner and vice versa
Among the players who were born in July and August, how many of them got in the Hall of Fame?
born in July and August refers to birthMon IN('7','8')
country refers to birthCountry
good at both left hands and right hands for goalie refers to shootCatch IS NULL
goalie is a players; teams refer to tmID;
Not from USA refers to birthCountry! = 'USA'; born in 1990 refers to birthYear = 1990
highest Plus/minus refers to MAX(+/-); full name refers to firstName, lastName; 1981 season refers to year = '1981'
over 30 wins refers to w>30; born in the USA refers to birthCountry = 'USA'
left winger refers to pos = 'L'; weight>200
highest percentage of game winning refers to MAX(DIVIDE(w,g)*100)
clutch player' and 'trustworthy player in the critical moment' are synonyms; most clutch player refers to the most trustworthy player which refers to MAX(GWG); 1986 is the year played
played more than total of 5000 minutes refers to SUM(Min)>5000;country he was born refers to birthCountry
State the goalie who has the lowest percentage of goals against among all the shots against recorded. Name the players and season where he played.
goals against refers to GA; shots against refers to SA; lowest percentage of goals against among all the shots against refers to MIN(DIVIDE(GA,SA)*100)
saved the most goal attempts refers to max(subtract(SA, GA)); team id refers to tmID
21st century refers to year >2000; Power play goals refers to PPG
PCHA refers to lgID = 'PCHA'; NHL league refers to lgID = 'NHL'
Power play percentage refers to PPG, most number of loses refers to MAX(L)
died in Arlington refers to deathCity = 'Arlington'
weight of over 195 refers to weight>195
first-ever Second Team All-Star award refers to min(year(award = 'Second Team All-Star')); How many games before receiving such award = sum(g(coachID(min(year(award = 'Second Team All-Star')))): g(min(year)))
born in July and August refers to birthMon IN('7','8')
the biggest power play percentage = max(divide(PPG, PPC))
pos = 'LW' refers to left winger; pos = 'RW' refers to right winger; pos = 'C' refers to center; pos = 'G' refers to goalie; pos = 'D' refers to defenceman; pos = 'W' refers to winger; pos = 'F' refers to forward
Name the goalies who have played more than total of 5000 minutes in the all the season played. State given name of the player and from which country was he born.
played more than total of 5000 minutes refers to SUM(Min)>5000;country he was born refers to birthCountry
Not from USA refers to birthCountry! = 'USA'; born in 1990 refers to birthYear = 1990
shutouts refers to SHO; number of goals refers to GA; 5% shutouts among the number of goals refers to DIVIDE(SHO,GA)*100 = 5.00
Coach of the team refers to firstName+lastName; 2003 refers to the year
5 heaviest players refer to MAX(weight) limit to 5 playerID;
total goals refer to SUM(G); how old = SUBTRACT(YEAR(CURDATE, birthYear);
year = 1998; wins per game played = DIVIDE(W, G); CAR refers to tmID; contributed the most goals refers to MAX(G);
which league refers to lgID
lost refers to L; won refers to W
highest Plus/minus refers to MAX(+/-); full name refers to firstName, lastName; 1981 season refers to year = '1981'
year BETWEEN 1950 and 1980; average = DIVIDE(COUNT(hofID)), 30)
What is the average height of player who were born in 1990 and after? Compare the average height with players who were born before 1990.
average height refers to AVG(height); born in 1990 refers to birthYear = 1990
over 30 wins refers to w>30; born in the USA refers to birthCountry = 'USA'
winning percentage refers to DIVIDE(w,g)*100; team DET refers to tmID = 'DET'
the highest total points = MAX(Pts)
more wins than loses refers to W>L; year = 1917;
Weight of above 190 refers to weight >190; 1978 season refers to the year played
NHL refers to lgID = 'NHL'; least number of times being on the ice when a goal is scored for the team versus against the team refers to min(+/-); duration the player's been playing = subtract(year(playerID(min(+/-))), firstNHL(playerID(min(+/-)))); full name = nameGiven + lastName
Coach of the team refers to firstName+lastName; 2003 refers to the year
goalie is a players; teams refer to tmID;
after retirement means playerID Iis not NULL and coachID is not NULL;
pos = 'LW' refers to left winger; pos = 'RW' refers to right winger; pos = 'C' refers to center; pos = 'G' refers to goalie; pos = 'D' refers to defenceman; pos = 'W' refers to winger; pos = 'F' refers to forward