Chinastark/bird_dataset huggingface dataset:
Database: hockey
Note: good in both right hand and left hand refers shootcatch Is NUll; winning refers to w; every season he played refers to gp; percentage of winning for every season he played refers to dividE(w,gp)*100;
Question: For all the goalies born in year 1987, who are good in both right hand and left hand? Calculate his percentage of winning for every season he played.
SQL: SELECT master.firstname, master.lastname, goalies.year, cast(goalies.w AS REAL) / goalies.gp FROM master INNER JOIN goalies ON master.playerid = goalies.playerid WHERE master.birthyear = 1987 AND master.shootcatch IS NULL
Database: hockey
Note: played as goaltender refers to pos = 'g'; time in minutes refers to min; all his games played refers to gp; average time in minutes refers to dividE(sUM(min)/sUM(gp));
Question: What is given name for player 'aebisda01'. Calculate the average time in minutes for the all his games played as goaltender.
SQL: SELECT master.namegiven, cast(sum(goalies.min) AS REAL) / sum(goalies.gp) FROM master INNER JOIN goalies ON master.playerid = goalies.playerid WHERE master.playerid = 'aebisda01' GROUP BY master.namegiven
Database: hockey
Note: wins refers to w; all games played refers to gp;greater than 50% wins among all games played refers to dividE(sUM(w),gp)*100>50;
Question: List all living goalies who have greater than 50% wins among all games played. State their last name and first name.
SQL: SELECT master.firstname, master.lastname FROM master INNER JOIN goalies ON master.playerid = goalies.playerid WHERE master.deathyear IS NOT NULL GROUP BY master.playerid HAVING cast(sum(goalies.min) AS REAL) / sum(goalies.gp) > 0.5
Database: hockey
Note: awarded after death refers to note = 'posthumous';
Question: How many players and coaches are awarded after death?
SQL: SELECT count(note) FROM awardsmisc WHERE note IS NOT NULL
Database: hockey
Note: position of goalie refers to pos = 'g';
Question: Among the players who won an award in the year 1983, how many of them play the position of goalie?
SQL: SELECT count(playerid) FROM awardsplayers WHERE pos = 'G' AND YEAR = 1983
Database: hockey
Note: worked a temporary term refers to notes = 'interim';
Question: How many coaches worked a temporary term in the year 2007?
SQL: SELECT count(coachid) FROM coaches WHERE YEAR = 2007 AND notes = 'interim'
Database: hockey
Note: regular season refers to `r/p` = 'R';
Question: How many shoutouts are there in the regular season of 1977?
SQL: SELECT count(YEAR) FROM combinedshutouts WHERE YEAR = 1977 AND `r/p` = 'R'
Database: hockey
Note: teams scored against their opponent who had pulled their goalie refers to eng is not null;
Question: How many teams scored against their opponent who had pulled their goalie in the year 2005?
SQL: SELECT count(tmid) FROM goalies WHERE YEAR = 2005 AND eng IS NULL
Database: hockey
Note: shots recorded while the goalie was on the ice refers to sa Is NOt NUll; Nhl league refers to lgid = 'Nhl';
Question: Please list the years in which the NHL League had shots recorded while the goalie was on the ice.
SQL: SELECT DISTINCT YEAR FROM goalies WHERE lgid = 'NHL' AND sa IS NOT NULL
Database: hockey
Note: same total number of postseason wins and postseason loses refers to postw = postl;
Question: How many teams have the same total number of postseason wins and postseason loses?
SQL: SELECT DISTINCT count(tmid) FROM goalies WHERE postw = postl
Database: hockey
Question: Please list the name of the person who was in the Hall of Fame in the year 1978.
SQL: SELECT name FROM hof WHERE YEAR = 1978
Database: hockey
Question: How many people were in the Hall of Fame's Builder category?
SQL: SELECT count(hofid) FROM hof WHERE category = 'Builder'
Database: hockey
Note: after the year 1980 refers to year>1980;
Question: Among the people who got into the Hall of Fame after the year 1980, how many of them belong to the category of "Player"?
SQL: SELECT count(hofid) FROM hof WHERE YEAR > 1980 AND category = 'Player'
Database: hockey
Note: nicknames refers to namenick;
Question: Please list the Nicknames of the players who got in the Hall of Fame in 2007.
SQL: SELECT DISTINCT master.namenick FROM master INNER JOIN hof ON master.hofid = hof.hofid WHERE hof.year = 2007
Database: hockey
Note: tallest player refers to max(height);
Question: Did the tallest player got in the Hall of Fame? If yes, please list the year when he got in the Hall of Fame.
SQL: SELECT CASE WHEN master.hofid IS NULL THEN 'NO' ELSE hof.year END FROM master LEFT JOIN hof ON master.hofid = hof.hofid WHERE master.height = ( SELECT max(height) FROM master )
Database: hockey
Note: born in Canada refers to birthcountry = 'Canada';
Question: Please list the awards the coaches who are born in Canada have won.
SQL: SELECT DISTINCT awardscoaches.award FROM master INNER JOIN awardscoaches ON master.coachid = awardscoaches.coachid WHERE master.birthcountry = 'Canada'
Database: hockey
Note: over 30 wins refers to w>30; born in the Usa refers to birthcountry = 'Usa';
Question: Among the coaches whose team has over 30 wins in a year, how many of them are born in the USA?
SQL: SELECT count(coaches.coachid) FROM master INNER JOIN coaches ON master.coachid = coaches.coachid WHERE coaches.w > 30 AND master.birthcountry = 'USA'
Database: hockey
Note: from Canada refers to birthcountry = 'Canada'; Nhl league refers to lgid = 'Nhl';
Question: Among the coaches who have taught teams from the NHL League, how many of them are from Canada?
SQL: SELECT count(coaches.coachid) FROM master INNER JOIN coaches ON master.coachid = coaches.coachid WHERE coaches.lgid = 'NHL' AND master.birthcountry = 'Canada'
Database: hockey
Note: born in 1977 refers to birthyear = '1977';
Question: Please list the awards won by coaches who were born in 1952.
SQL: SELECT awardscoaches.award FROM master INNER JOIN awardscoaches ON master.coachid = awardscoaches.coachid WHERE master.birthyear = 1952
Database: hockey
Note: born in toronto refers to birthcountry = 'toronto';
Question: Among the coaches who have received an award in 1940, how many of them are born in Toronto?
SQL: SELECT count(master.coachid) FROM master INNER JOIN awardscoaches ON master.coachid = awardscoaches.coachid WHERE awardscoaches.year = 1940 AND master.birthcity = 'Toronto'
Database: hockey
Note: after the year 1940 refers to year>1940; have already died refers to deathyear Is NOt NUll;
Question: Among the coaches who have received an award after the year 1940, how many of them have already died?
SQL: SELECT count(master.coachid) FROM master INNER JOIN awardscoaches ON master.coachid = awardscoaches.coachid WHERE master.deathyear IS NOT NULL AND awardscoaches.year > 1940
Database: hockey
Note: have already died refers to deathyear Is NOt NUll; Nhl league refers to lgid = 'Nhl';
Question: Please list the awards won by coaches who taught the NHL League and have already died.
SQL: SELECT DISTINCT awardscoaches.award FROM master INNER JOIN awardscoaches ON master.coachid = awardscoaches.coachid WHERE master.deathyear IS NOT NULL AND awardscoaches.lgid = 'NHL'
Database: hockey
Note: weight of over 195 refers to weight>195;
Question: Among the coaches who have gotten in the Hall of Fame, how many of them have a weight of over 195?
SQL: SELECT count(DISTINCT master.coachid) FROM master INNER JOIN hof ON master.hofid = hof.hofid WHERE master.weight > 195
Database: hockey
Note: good at both left hands and right hands for goalie refers to shootcatch Is NUll;
Question: 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.
SQL: SELECT DISTINCT master.firstname, master.lastname FROM master INNER JOIN hof ON master.hofid = hof.hofid WHERE master.shootcatch IS NULL
Database: hockey
Note: players who became coaches refers to playerid Is NOt NUll aND coachid Is NOt NUll;
Question: Among the players who became coaches, how many of them have gotten in the Hall of Fame?
SQL: SELECT count(master.playerid) FROM master INNER JOIN hof ON master.hofid = hof.hofid WHERE master.playerid IS NOT NULL AND master.coachid IS NOT NULL
Database: hockey
Question: Please list the birth cities of the players who have won an award in the year 1970.
SQL: SELECT DISTINCT master.birthcity FROM master INNER JOIN awardsplayers ON master.playerid = awardsplayers.playerid WHERE awardsplayers.year = 1970
Database: hockey
Note: born in toronto refers to birthcity = 'toronto';
Question: How many players born in Toronto have won the All-Rookie award?
SQL: SELECT count(master.playerid) FROM master INNER JOIN awardsplayers ON master.playerid = awardsplayers.playerid WHERE awardsplayers.award = 'All-Rookie' AND master.birthcity = 'Toronto'
Database: hockey
Note: have died refers to deathyear Is NOt NUll;
Question: Among the players who have won the All-Rookie award, how many of them have died?
SQL: SELECT count(master.playerid) FROM master INNER JOIN awardsplayers ON master.playerid = awardsplayers.playerid WHERE awardsplayers.award = 'All-Rookie' AND master.deathyear IS NOT NULL
Database: hockey
Note: died in Massachussets refers to deathstate = 'Massachussets';
Question: Among the players who died in Massachussets, how many of them have won an award?
SQL: SELECT count(DISTINCT master.playerid) FROM master INNER JOIN awardsplayers ON master.playerid = awardsplayers.playerid WHERE master.deathstate = 'MA'
Database: hockey
Note: died in arlington refers to deathcity = 'arlington';
Question: Please list the awards the players who died in Arlington have won.
SQL: SELECT awardsplayers.award FROM master INNER JOIN awardsplayers ON master.playerid = awardsplayers.playerid WHERE master.deathcity = 'Kemptville'
Database: hockey
Note: born in March refers to birthmon = '3'; nicknames refers to namenick;
Question: Please list the nicknames of the players who have won the All-Rookie award and are born in March.
SQL: SELECT DISTINCT master.namenick FROM master INNER JOIN awardsplayers ON master.playerid = awardsplayers.playerid WHERE awardsplayers.award = 'All-Rookie' AND master.birthmon = 3
Database: hockey
Note: born in July and august refers to birthmon IN('7','8');
Question: Among the players who were born in July and August, how many of them got in the Hall of Fame?
SQL: SELECT count(master.playerid) FROM master INNER JOIN hof ON master.hofid = hof.hofid WHERE master.birthmon IN (7, 8)
Database: hockey
Note: who has won the most awards refers to max(count(award)); the month player was born refers to birthmon;
Question: In which month was the player who has won the most awards born?
SQL: SELECT master.birthmon FROM master INNER JOIN awardsplayers ON master.playerid = awardsplayers.playerid GROUP BY awardsplayers.playerid ORDER BY count(awardsplayers.award) DESC LIMIT 1
Database: hockey
Note: received the most awards in total refers to max(count(award));
Question: Players born in which year have received the most awards in total?
SQL: SELECT master.birthyear FROM master INNER JOIN awardsplayers ON master.playerid = awardsplayers.playerid GROUP BY master.birthyear ORDER BY count(awardsplayers.award) DESC LIMIT 1
Database: hockey
Note: most award-winning refers to max(count(award)); country player is from refers to birthcountry;
Question: Which country is the most award-winning player from?
SQL: SELECT master.birthcountry FROM master INNER JOIN awardsplayers ON master.playerid = awardsplayers.playerid GROUP BY master.birthcountry ORDER BY count(awardsplayers.award) DESC LIMIT 1
Database: hockey
Note: country refers to birthcountry;
Question: Which country has the most players in the Hall of Fame?
SQL: SELECT master.birthcountry FROM master INNER JOIN hof ON master.hofid = hof.hofid GROUP BY master.birthcountry ORDER BY count(master.playerid) DESC LIMIT 1
Database: hockey
Note: 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;
Question: Please list the positions of the players who were born in Canada and have won the All-Rookie award.
SQL: SELECT DISTINCT master.pos FROM master INNER JOIN awardsplayers ON master.playerid = awardsplayers.playerid WHERE master.birthcountry = 'Canada' AND awardsplayers.award = 'All-Rookie'
Database: hockey
Note: average BMI = divide(sum(divide(weight, multiply(height, height))), count(coachid));
Question: What is the average BMI of all the coaches who have gotten in the Hall of Fame?
SQL: SELECT sum(master.weight / (master.height * master.height)) / count(master.coachid) FROM master INNER JOIN hof ON master.hofid = hof.hofid
Database: hockey
Note: percentage of american players = divide(count(hofid where birthcountry = 'Usa'), count(hofid))*100%;
Question: What is the percentage of American players among all the players who have gotten in the Hall of Fame?
SQL: SELECT cast(count(CASE WHEN master.birthcountry = 'USA' THEN master.playerid ELSE NULL END) AS REAL) * 100 / count(master.playerid) FROM master INNER JOIN hof ON master.hofid = hof.hofid
Database: hockey
Note: years of playing = MaX(year)-min(year);
Question: How many years did player Id "healygl01" play?
SQL: SELECT count(YEAR) FROM goalies WHERE playerid = 'healygl01'
Database: hockey
Note: team id refers to tmid;
Question: Which team did player Id "roypa01" play in 1992? Give the team id.
SQL: SELECT tmid FROM goalies WHERE playerid = 'roypa01' AND YEAR = 1992
Database: hockey
Note: total number of the games refers to gp;
Question: What was the total number of the games that player Id "rutlewa01" played in 1967?
SQL: SELECT gp FROM goalies WHERE playerid = 'rutlewa01' AND YEAR = 1967
Database: hockey
Note: show me how many minutes refers to min;
Question: Show me how many minutes player Id "valiqst01" played in the game in 2007 season.
SQL: SELECT MIN FROM goalies WHERE playerid = 'valiqst01' AND YEAR = 2007
Database: hockey
Note: the number of wins refers to w;
Question: How many games did player Id "vanbijo01" win in the 1990 season?
SQL: SELECT w FROM goalies WHERE playerid = 'vanbijo01' AND YEAR = 1990
Database: hockey
Note: end up with a tie or an overtime loss refers to t/ol;
Question: In how many games did player Id "vernomi01" end up with a tie or an overtime loss in the 1998 season?
SQL: SELECT `t/ol` FROM goalies WHERE playerid = 'vernomi01' AND YEAR = 1998
Database: hockey
Note: the number of wins refers to count(w);
Question: For the coach who won Second Team All-Star in 1933, how many wins did he have that year?
SQL: SELECT sum(coaches.w) FROM coaches INNER JOIN awardscoaches ON coaches.coachid = awardscoaches.coachid WHERE awardscoaches.year = 1933 AND awardscoaches.award = 'Second Team All-Star'
Database: hockey
Note: note = 'posthumous'refers to "didn't personally attend";
Question: Did legendsID "P194502" personally attend his Hall of Fame dedication?
SQL: SELECT iif(awardsmisc.note = 'posthumous', 'YES', 'NO') FROM awardsmisc RIGHT JOIN master ON awardsmisc.id = master.playerid WHERE master.legendsid = 'P194502'
Database: hockey
Note: 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;
Question: Which position did Mike Antonovich play?
SQL: SELECT master.pos FROM master INNER JOIN awardsplayers ON master.playerid = awardsplayers.playerid WHERE master.firstname = 'Mike' AND master.lastname = 'Antonovich'
Database: hockey
Note: co-coached refers to notes = 'co-coach'; birth place refers to 'birthcountry-birthstate-birthcity';
Question: For the coach who co-coached with Dave Lewis in 1998, where was his birth place?
SQL: SELECT master.birthcountry FROM master INNER JOIN coaches ON master.coachid = coaches.coachid WHERE coaches.year = 1998 AND coaches.notes = 'co-coach with Dave Lewis'
Database: hockey
Note: the third goalie refers to stint = 3; the biggest weight refers to max(weight);
Question: Which player who showed as the third goalie in a game has the biggest weight? Give the full name of the player.
SQL: SELECT master.firstname, master.lastname FROM master INNER JOIN goalies ON master.playerid = goalies.playerid WHERE goalies.stint = 3 ORDER BY master.weight DESC LIMIT 1
Database: hockey
Note: 10 empty net goals refers to eng = 10; the tallest refers to max(height);
Question: Among the players who had 10 empty net goals in their career, who is the tallest? Show his full name.
SQL: SELECT master.firstname, master.lastname FROM master INNER JOIN goalies ON master.playerid = goalies.playerid GROUP BY goalies.playerid, master.height HAVING sum(goalies.eng) > 10 ORDER BY master.height DESC LIMIT 1
Database: hockey
Note: the most shutouts refers to max(sho); shootcatch = 'l' refers to lefthand; shootcatch = 'R' refers to righthand; shootcatch = 'null' or 'empty' means this player is good at both left and right hand;
Question: For the goalie who had the most shutouts in 2010, what's his catching hand?
SQL: SELECT master.shootcatch FROM master INNER JOIN goalies ON master.playerid = goalies.playerid WHERE goalies.year = 2010 GROUP BY goalies.playerid ORDER BY sum(goalies.sho) DESC LIMIT 1
Database: hockey
Note: youngest goalie refers to max(birthyear/birthmon/birthday); more than 150 goal againsts refers to ga>150;
Question: Who is the youngest goalie among those who had more than 150 goal againsts in 2002 season?
SQL: SELECT master.firstname, master.lastname FROM master INNER JOIN goalies ON master.playerid = goalies.playerid WHERE goalies.year = 2002 AND goalies.ga > 150 GROUP BY goalies.playerid, master.birthyear, master.birthmon, master.birthmon HAVING sum(goalies.ga) ORDER BY master.birthyear DESC, master.birthmon DESC, sum(master.birthday) DESC LIMIT 1
Database: hockey
Note: saved the most goal attempts refers to max(subtract(sa, ga)); team id refers to tmid;
Question: In the history of team id NJD, which goalie saved the most goal attempts? Give his full name.
SQL: SELECT master.firstname, master.lastname FROM master INNER JOIN goalies ON master.playerid = goalies.playerid WHERE goalies.tmid = 'NJD' GROUP BY goalies.playerid ORDER BY sum(goalies.sa - goalies.ga) DESC LIMIT 1
Database: hockey
Note: most postseason empty net goals refers to max(posteng);
Question: Which teams had the most postseason empty net goals in 2010 season? List their team names.
SQL: SELECT teams.name FROM goalies INNER JOIN teams ON goalies.tmid = teams.tmid WHERE goalies.year = 2010 GROUP BY teams.name ORDER BY sum(posteng) DESC LIMIT 1
Database: hockey
Note: points refer to pts; the most postseason shutouts refers to max(postsho);
Question: For the team which had the most postseason shutouts in 1995, how many points did they have that year?
SQL: SELECT sum(goalies.sho) FROM scoring INNER JOIN goalies ON scoring.playerid = goalies.playerid WHERE goalies.year = 1995 GROUP BY goalies.tmid ORDER BY sum(goalies.postsho) DESC LIMIT 1
Database: hockey
Note: the highest winning rate refer to divide(w, sum(w, l));
Question: Which coach had the highest winning rates in the 2009 season? What's coach's nickname.
SQL: SELECT coaches.coachid, master.namenick FROM master INNER JOIN coaches ON master.coachid = coaches.coachid WHERE coaches.year = 2009 ORDER BY cast(coaches.w AS REAL) / (coaches.w + coaches.l) DESC LIMIT 1
Database: hockey
Note: the biggest power play percentage = max(divide(ppg, ppc));
Question: For the team had the biggest power play percentage in 2011, who was their coach that season? Give the full name.
SQL: SELECT coaches.coachid FROM coaches INNER JOIN teams ON coaches.tmid = teams.tmid WHERE teams.year = 2011 ORDER BY cast(teams.ppg AS REAL) / teams.ppc DESC LIMIT 1
Database: hockey
Note: the number of games refers to gp;
Question: In the Stanley Cup finals history, how many games did player id "broadpu01" play in 1922?
SQL: SELECT gp FROM scoringsc WHERE playerid = 'broadpu01' AND YEAR = 1922
Database: hockey
Note: the number of years refers to count(year);
Question: How many years did player Id "cleghsp01" make to the Stanley Cup finals?
SQL: SELECT count(YEAR) FROM scoringsc WHERE playerid = 'cleghsp01'
Database: hockey
Note: the number of goals refers to g;
Question: What was the number of goals did player Id "dyeba01" make in the 1921 Stanley Cup finals?
SQL: SELECT g FROM scoringsc WHERE playerid = 'dyeba01' AND YEAR = 1921
Database: hockey
Note: the most assists refers to max(a);
Question: Who made the most assists in a single game in the Stanley Cup finals ?
SQL: SELECT playerid FROM scoringsc ORDER BY a DESC LIMIT 1
Database: hockey
Note: which league refers to lgid;
Question: Which league did player id"adamsja01" play in 1920?
SQL: SELECT lgid FROM scoringsc WHERE playerid = 'adamsja01' AND YEAR = 1920
Database: hockey
Note: position refers to pos;
Question: What position did player id "hartgi01" play in his Stanley Cup finals performance?
SQL: SELECT DISTINCT pos FROM scoringsc WHERE playerid = 'hartgi01'
Database: hockey
Note: three different goalies refer to count(playerid) = 3; game won refers to w;
Question: For the team which had three different goalies in the 2011 postseason games, how many games did they win in the regular season?
SQL: SELECT sum(teams.w) FROM goalies INNER JOIN teams ON goalies.tmid = teams.tmid WHERE teams.year = 2011 GROUP BY goalies.tmid HAVING count(DISTINCT goalies.playerid) = 3
Database: hockey
Note: the most postseason shots against refers to max(postsa); year born refers to birthyear;
Question: Which year was the goalie who had the most postseaon shots Against in 2008 born?
SQL: SELECT master.birthyear FROM master INNER JOIN goalies ON master.playerid = goalies.playerid WHERE goalies.year = 2008 ORDER BY goalies.postsa DESC LIMIT 1
Database: hockey
Note: after retired and became a coach refers to max(subtract(year, lastnhl));
Question: How many years were there after Don Waddell retired and became a coach in NHL?
SQL: SELECT max(coaches.year) - min(coaches.year) FROM master INNER JOIN coaches ON master.coachid = coaches.coachid WHERE master.firstname = 'Don' AND master.lastname = 'Waddell'
Database: hockey
Note: the most shutouts refers to max(sho); catching hand for the goaltender refers to shootcatch; shootcatch = 'l' refers to lefthand; shootcatch = 'R' refers to righthand; shootcatch = 'null' or 'empty' means this player is good at both left and right hand;
Question: Which is the catching hand for the goaltender who had the most shutouts in 1996?
SQL: SELECT master.shootcatch FROM master INNER JOIN goalies ON master.playerid = goalies.playerid WHERE goalies.year = 1996 ORDER BY goalies.sho DESC LIMIT 1
Database: hockey
Note: birthday refers to CONCat(birthyear / birthmon / birthdate);most goal against refers to MaX(ga);1965 season refers to year = '1965';
Question: When was the birthday for the goalie who had most goal againsts in 1965 season?
SQL: SELECT master.birthyear, master.birthmon, birthday FROM master INNER JOIN goalies ON master.playerid = goalies.playerid WHERE goalies.year = 1965 ORDER BY goalies.ga DESC LIMIT 1
Database: hockey
Note: highest Plus/minus refers to MaX(+/-); full name refers to firstname, lastname; 1981 season refers to year = '1981';
Question: For he who had the highest plus / minus on the court in the 1981 season, what's his full name?
SQL: SELECT master.firstname, master.lastname FROM master INNER JOIN scoring ON master.playerid = scoring.playerid WHERE scoring.year = 1981 GROUP BY scoring.playerid ORDER BY sum(scoring.`+/-`) DESC LIMIT 1
Database: hockey
Note: 21st century refers to year >2000; Power play goals refers to ppg;
Question: What's the weight of the player who had the most Power Play Goals in the 21st century?
SQL: SELECT master.weight FROM master INNER JOIN scoring ON master.playerid = scoring.playerid WHERE scoring.year > 2000 GROUP BY master.playerid, master.weight ORDER BY sum(scoring.ppg) DESC LIMIT 1
Database: hockey
Note: 1989 refers to the year of scoring; "dominant hand" and "shooting hand" are synonyms which refers to shootcatch;
Question: For the player who scored 7 shorthanded goals in 1989, what's his dominant hand?
SQL: SELECT master.shootcatch FROM master INNER JOIN scoring ON master.playerid = scoring.playerid WHERE scoring.year = 1989 GROUP BY scoring.playerid HAVING sum(scoring.shg) = 7