Chinastark/bird_dataset huggingface dataset:
Database: hockey
Note: 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;
Question: Who was the most clutch player in 1986? Give his full name.
SQL: SELECT master.firstname, master.lastname FROM master INNER JOIN scoring ON master.playerid = scoring.playerid WHERE scoring.year = 1986 GROUP BY scoring.playerid ORDER BY sum(scoring.gwg) DESC LIMIT 1
Database: hockey
Note: 1990 refers to the year played; shot on goal refers to sog;
Question: How many shots on goal did Cam Neely had in the year of 1990?
SQL: SELECT scoring.sog FROM master INNER JOIN scoring ON master.playerid = scoring.playerid WHERE master.firstname = 'Cam' AND master.lastname = 'Neely' AND scoring.year = '1990'
Database: hockey
Note: Coach of the team refers to firstname+lastname; 2003 refers to the year;
Question: Who was the coach for the team which had the most bench minors penalty in 2003？
SQL: SELECT DISTINCT master.firstname, master.lastname FROM teams INNER JOIN coaches ON teams.tmid = coaches.tmid AND teams.year = coaches.year INNER JOIN master ON coaches.coachid = master.coachid WHERE teams.year = '2003' GROUP BY master.firstname, master.lastname ORDER BY sum(teams.benchminor) DESC LIMIT 1
Database: hockey
Note: weight of above 190 refers to weight >190; 1978 season refers to the year played;
Question: For the goalies whose weight are above 190, who had most goal againsts in 1978 season?
SQL: SELECT goalies.playerid FROM goalies INNER JOIN master ON goalies.playerid = master.playerid WHERE goalies.year = '1978' AND master.weight > 190 ORDER BY goalies.ga DESC LIMIT 1
Database: hockey
Note: 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));
Question: What is the percentage of winning rate of improvement since Alain Vigneault became the coach of Vancouver Canucks in 2006 season?
SQL: SELECT sum(CASE WHEN teams.year = 2006 THEN cast(teams.w AS REAL) * 100 / (teams.w + teams.l) ELSE 0 END) - ( SELECT cast(w AS REAL) * 100 / (w + l) FROM teams WHERE YEAR = '2005' AND name = 'Vancouver Canucks' ) FROM teams INNER JOIN coaches ON teams.tmid = coaches.tmid AND teams.year = coaches.year INNER JOIN master ON coaches.coachid = master.coachid WHERE teams.name = 'Vancouver Canucks' AND master.firstname = 'Alain' AND master.lastname = 'Vigneault'
Database: hockey
Note: post season of 2011 refers to year = ’2011’ defensive success rate refers to (sUBtRaCt(1 (dividE(postga/postsa)), *100%);
Question: For the goalie who had the highest defensive success rate in the postseason of 2011, what's his legends ID ?
SQL: SELECT master.legendsid FROM goalies INNER JOIN master ON goalies.playerid = master.playerid WHERE goalies.year = 2011 ORDER BY 1 - cast(goalies.postga AS REAL) / goalies.postsa DESC LIMIT 1
Database: hockey
Question: How many former athletes go on to become coaches after retiring?
SQL: SELECT count(playerid) FROM master WHERE playerid IS NOT NULL AND coachid IS NOT NULL
Database: hockey
Note: penalty refers to benchminor; ties refer to t;
Question: Among the teams with the most number of ties, how many penalty was committed by a player or coach that is not on the ice? Indicate the name of the team.
SQL: SELECT benchminor, name FROM teams ORDER BY t DESC LIMIT 1
Database: hockey
Question: Which NHL award was most frequently won by the coach with the most wins?
SQL: SELECT award FROM teams INNER JOIN awardscoaches ON teams.lgid = awardscoaches.lgid WHERE teams.lgid = 'NHL' GROUP BY awardscoaches.coachid, awardscoaches.award ORDER BY count(awardscoaches.award) DESC LIMIT 1
Database: hockey
Note: Power play percentage refers to ppg, most number of loses refers to MaX(l);
Question: What is the power play percentage of the team with the most number of loses?
SQL: SELECT cast(sum(ppg) AS REAL) * 100 / sum(ppc) FROM teams GROUP BY tmid ORDER BY sum(l) DESC LIMIT 1
Database: hockey
Note: year BEtwEEN 1950 and 1980; average = dividE(COUNt(hofid)), 30);
Question: How many players were included in the Hall of Fame on average between 1950 and 1980?
SQL: SELECT cast(count(name) AS REAL) / 30 FROM hof WHERE YEAR BETWEEN 1950 AND 1980 AND category = 'Player'
Database: hockey
Note: year most hockey players were born refers to MaX(birthyear); birthcountry refers to the country where a player was born;
Question: Which country produced the most number of hockey players? Identify which year was most of the hockey players are born.
SQL: SELECT DISTINCT birthcountry, birthyear FROM master GROUP BY birthcountry, birthyear ORDER BY count(birthcountry) DESC LIMIT 1
Database: hockey
Note: Number of wins refers to w; shutout refers to sho; a shutout is credited to a goaltender who successfully stops the other team from scoring during the entire game.;
Question: How many wins does the team have whose goaltender have the most number of successfully stopping the other team from scoring during the entire game?
SQL: SELECT sum(w) FROM goalies GROUP BY tmid ORDER BY sum(sho) DESC LIMIT 1
Database: hockey
Note: road victories refers to rw; team id refers to tmid; victories and wins are synonyms;
Question: Which team recorded the most number of road victories in 2005? Indicate the team ID.
SQL: SELECT tmid FROM teamsplits WHERE YEAR = '2005' ORDER BY rw DESC LIMIT 1
Database: hockey
Note: position refers to pos; date of birth refers to birthday + birthmon + birthyear;
Question: What is the position of the 9th oldest hockey player?
SQL: SELECT pos FROM master WHERE birthyear IS NOT NULL ORDER BY birthyear, birthmon, birthday LIMIT 8
Database: hockey
Note: 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.;
Question: How many goals were scored while the goalkeeper was on the ice in the 1924 WCHL by the goalie with the most goals scored?
SQL: SELECT sum(postga) FROM goalies WHERE lgid = 'WCHL' AND YEAR = '1924' GROUP BY playerid ORDER BY sum(postga) DESC LIMIT 1
Database: hockey
Note: team id refers to tmid; 'defeats' and 'loses' are synonyms; most October defeats refers to max(octl);
Question: In 2006, what is the overall number of october defeats for the team with the most October defeats? Indicate the team ID.
SQL: SELECT octl, tmid FROM teamsplits WHERE YEAR = '2006' ORDER BY octl DESC LIMIT 1
Database: hockey
Note: shooting/catching hand is both left and right refers to shootcatch is NUll, debuted their first Nhl in 2011 refers to firstnhl = 2011;
Question: How many players, whose shooting/catching hand is both left and right, debuted their first NHL in 2011?
SQL: SELECT count(playerid) FROM master WHERE shootcatch IS NULL AND firstnhl = '2011'
Database: hockey
Note: most number of goals refers to max(g); how old refers to age = subtract(year(max(g)), birthyear);
Question: 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?
SQL: SELECT scoring.year, scoring.year - master.birthyear FROM scoring INNER JOIN master ON scoring.playerid = master.playerid GROUP BY scoring.year, scoring.year - master.birthyear ORDER BY sum(scoring.g) DESC LIMIT 1
Database: hockey
Note: goalies refers to pos = 'g'; born in the 70s refers to birthyear between '1970' and '1979'; left shooting/catching dominant refers to shootcatch = 'l'; tallest refers to max(height); average height = avg(height(pos = 'g' & birthyear between '1970' and '1979' & shootcatch = 'l')); most recently refers to max(teams.year);
Question: What is the average height of all the goalies born in the 70s who's a left shooting/catching dominant and to which team do the tallest player/s play for most recently?
SQL: SELECT cast(sum(master.height) AS REAL) / count(*) FROM awardsplayers INNER JOIN master ON awardsplayers.playerid = master.playerid WHERE master.height IS NOT NULL AND (master.pos = 'LW' OR master.pos = 'L/C')
Database: hockey
Note: Nhl refers to lgid = 'Nhl'; most assists refers to max(a); full name = namegiven + lastname; total amount of assists = sum(a(playerid(max(a))));
Question: What is the total amount of assists of the NHL player with the most assists in history? Please indicate his/her full name.
SQL: SELECT sum(scoring.a), master.firstname, master.lastname FROM scoring INNER JOIN master ON scoring.playerid = master.playerid WHERE scoring.lgid = 'NHL' GROUP BY master.firstname, master.lastname ORDER BY sum(scoring.a) DESC LIMIT 1
Database: hockey
Note: 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;
Question: 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.
SQL: SELECT sum(scoring.a), master.firstname, master.lastname FROM scoring INNER JOIN master ON scoring.playerid = master.playerid WHERE scoring.lgid = 'NHL' GROUP BY master.firstname, master.lastname ORDER BY sum(scoring.a) DESC LIMIT 1
Database: hockey
Note: victories' and 'wins' are synonyms; most number of victories refers to max(w);
Question: What are the awards won by the coach who coached the team with the most number of victories of all time? Indicate the choach ID.
SQL: SELECT DISTINCT coaches.coachid, awardscoaches.award FROM awardscoaches INNER JOIN coaches ON awardscoaches.coachid = coaches.coachid GROUP BY coaches.coachid, awardscoaches.award ORDER BY sum(coaches.w) DESC LIMIT 1
Database: hockey
Note: exhibition game refers to note = 'EX'; team of losing team refers to tmidloser;
Question: What is the name of the losing team during an exhibition game in 1912?
SQL: SELECT teams.name FROM seriespost INNER JOIN teams ON seriespost.year = teams.year AND tmidloser = tmid WHERE seriespost.note = 'EX' AND teams.year = '1912'
Database: hockey
Note: 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;
Question: 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.
SQL: SELECT DISTINCT master.firstnhl - scoring.year, master.namegiven , master.firstname, master.lastname FROM scoring INNER JOIN teams ON teams.tmid = scoring.tmid INNER JOIN master ON scoring.playerid = master.playerid GROUP BY master.firstname, master.lastname, master.namegiven, master.firstnhl - scoring.year, master.firstname, master.lastname ORDER BY sum(scoring.`+/-`) ASC LIMIT 1
Database: hockey
Note: penalty minutes refers to pim; year of scoring BEtwEEN 2003 aND 2005; most number of games played refers to max(gp);
Question: 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?
SQL: SELECT master.namegiven FROM scoring INNER JOIN master ON scoring.playerid = master.playerid AND scoring.pim BETWEEN 200 AND 250 AND scoring.year BETWEEN 2003 AND 2005 ORDER BY scoring.gp DESC LIMIT 1
Database: hockey
Note: 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)))));
Question: How old was the goaltender who scored the fewest goals while on the ice when he retired from the NHL?
SQL: SELECT master.lastnhl - master.birthyear FROM goaliessc INNER JOIN master ON goaliessc.playerid = master.playerid WHERE master.lastnhl IS NOT NULL GROUP BY master.lastnhl, master.birthyear ORDER BY sum(ga) LIMIT 1
Database: hockey
Note: position has won the most awards refers to pos(max(count(award))); most recent player refers to playerid(pos(max(count(award)))& max(year)); full name = namegiven + lastname;
Question: Which position has won the most awards and who is the most recent player that was awarded with an award in that position? Indicate the name of the award and the full name of the player.
SQL: SELECT master.pos, awardscoaches.award, master.namegiven, master.lastname FROM master INNER JOIN awardscoaches ON awardscoaches.coachid = master.coachid GROUP BY master.pos, awardscoaches.award, master.namegiven, master.lastname ORDER BY count(awardscoaches.award) LIMIT 1
Database: hockey
Note: 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)));
Question: How many games did the coach who received the first-ever Second Team All-Star award play before receiving such award?
SQL: SELECT sum(coaches.g) FROM coaches INNER JOIN ( SELECT coachid, YEAR FROM awardscoaches WHERE award = 'Second Team All-Star' ORDER BY YEAR LIMIT 1 ) AS t2 ON coaches.coachid = t2.coachid AND coaches.year < t2.year
Database: hockey
Note: team playing refers to tmid; oppositng team refers to oppid; victories' and 'wins' are synonyms; most victories refers to max(w);
Question: 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.
SQL: SELECT count(DISTINCT oppid), teamvsteam.tmid, teamvsteam.oppid FROM teams INNER JOIN teamvsteam ON teams.year = teamvsteam.year AND teams.tmid = teamvsteam.tmid WHERE teamvsteam.year = 1915 GROUP BY teamvsteam.tmid, teamvsteam.oppid ORDER BY sum(teamvsteam.w) DESC LIMIT 1
Database: hockey
Note: shorthanded goals refers to shg; shg BEtwEEN 1 aND 5; most trustworthy in the critical moment refers to max(gwg);
Question: Among the teams whose shorthanded goals are between 1 to 5, which player is the most trustworthy in the critical moment?
SQL: SELECT master.namegiven, master.lastname FROM scoring INNER JOIN master ON scoring.playerid = master.playerid WHERE scoring.shg BETWEEN 1 AND 5 ORDER BY scoring.gwg DESC LIMIT 1
Database: hockey
Note: temporary coached refers to notes = 'interim'; number of loss refers to l (to add);
Question: In 1997, how many loss did the coach have who temporary coached Tampa Bay Lightning? Indicate his/her coach ID.
SQL: SELECT sum(coaches.l), coaches.coachid FROM coaches INNER JOIN teams ON coaches.tmid = teams.tmid AND coaches.year = teams.year WHERE coaches.notes = 'interim' AND coaches.year = '1997' AND teams.name = 'Tampa Bay Lightning' GROUP BY coaches.coachid
Database: hockey
Note: short handed assists refers to sha; sha>= 7; final standing refers to rank; the final standing of the team with the most number of assists refers to max(a);
Question: Among the players whose short handed assists are greater or equal to 7, what is the final standing of the team with the most number of assists? Indicate the year to which the most number of assists was achieved and the name of the team.
SQL: SELECT teams.rank, teams.year, teams.name FROM scoring INNER JOIN teams ON scoring.tmid = teams.tmid AND scoring.year = teams.year WHERE scoring.sha >= 7 ORDER BY scoring.a DESC LIMIT 1
Database: hockey
Note: name of coach refers to coachid; placed 4th refers to rank = 4; 1969 game refers to year = 1969;
Question: What is the name of the coach whose team placed 4th in the 1969 game? Indicate their coachID.
SQL: SELECT coaches.coachid FROM coaches INNER JOIN teams ON coaches.tmid = teams.tmid AND coaches.year = teams.year WHERE coaches.year = 1969 AND teams.rank = 4
Database: hockey
Note: year BEtwEEN 1917 aND 1920; first half of season refers to half = 1;
Question: Between 1917 to 1920, what are the names of the team who ranked first in the first half of the season each year?
SQL: SELECT DISTINCT teams.name FROM teamshalf INNER JOIN teams ON teamshalf.tmid = teams.tmid AND teamshalf.year = teams.year WHERE teamshalf.half = 1 AND teamshalf.rank = 1 AND teamshalf.year BETWEEN 1917 AND 1920
Database: hockey
Note: 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;
Question: 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.
SQL: SELECT master.namegiven, master.lastname, master.birthyear, birthmon, birthday , teams.tmid FROM scoring INNER JOIN master ON master.playerid = scoring.playerid INNER JOIN teams ON teams.tmid = scoring.tmid WHERE (master.firstnhl - master.birthyear) BETWEEN 18 AND 24 AND teams.g < 5
Database: hockey
Question: How many bench minor penalties did the team St. Louis Blues got in total in all the games?
SQL: SELECT cast(sum(benchminor) AS REAL) / 2 FROM teams WHERE name = 'St. Louis Blues'
Database: hockey
Note: power play chanses = dividE (ppg, ppc); name = New York Rangers; year = 2009;
Question: What is the power play chances of New York Rangers in 2009?
SQL: SELECT cast(ppg AS REAL) / ppc FROM teams WHERE YEAR = 2009 AND name = 'New York Rangers'
Database: hockey
Note: the highest total points = MaX(pts);
Question: What is the highest total points a team got in a year?
SQL: SELECT sum(pts), YEAR FROM teams GROUP BY YEAR, tmid ORDER BY sum(pts) DESC LIMIT 1
Database: hockey
Note: more wins than loses refers to w > l; over 100 points refers to pts > 100;
Question: Among the teams that had more wins than loses in the year 2006, how many of them have over 100 points?
SQL: SELECT count(tmid) FROM teams WHERE YEAR = 2006 AND w > l AND pts > 100
Database: hockey
Note: team refers to name; year = 2006;
Question: Which team got the most bench minor penalties in 2006?
SQL: SELECT name FROM teams WHERE YEAR = 2006 GROUP BY tmid, name ORDER BY cast(sum(benchminor) AS REAL) / 2 DESC LIMIT 1
Database: hockey
Note: the first 3 teams that got the most penalty minutes refer to name where MaX(pim) limit to 3; year = 2006;
Question: Please list the first 3 teams that got the most penalty minutes in 2006.
SQL: SELECT name FROM teams WHERE YEAR = 2006 GROUP BY tmid, name ORDER BY sum(pim) DESC LIMIT 3
Database: hockey
Note: the highest penalty kill chances refer to MaX(pkc); year = 1995;
Question: Which team had the highest penalty kill chances in 1995, Florida Panthers, Edmonton Oilers or Los Angeles Kings?
SQL: SELECT name FROM teams WHERE YEAR = 1995 AND name IN ('Florida Panthers', 'Edmonton Oilers', 'Los Angeles Kings') ORDER BY pkc DESC LIMIT 1
Database: hockey
Note: more wins than loses refers to w>l; year = 1917;
Question: What is the name of the team that got more wins than loses in the Stanley Cup finals in 1917?
SQL: SELECT teams.name FROM teamssc INNER JOIN teams ON teamssc.tmid = teams.tmid AND teamssc.year = teams.year WHERE teamssc.year = '1917' AND teamssc.w > teamssc.l
Database: hockey
Note: teams refer to tmid; year = 1922;
Question: Please list the teams that have played in 1922's Stanley Cup finals.
SQL: SELECT teams.name FROM teamssc INNER JOIN teams ON teamssc.tmid = teams.tmid AND teamssc.year = teams.year WHERE teamssc.year = '1922'
Database: hockey
Note: how many teams refer to COUNt(tmid); over 20 points refer to pts>20; year = 1922;
Question: Among the teams that played in 1922's Stanley Cup finals, how many of them had over 20 points in that year?
SQL: SELECT count(teamssc.tmid) FROM teamssc INNER JOIN teams ON teamssc.tmid = teams.tmid AND teamssc.year = teams.year WHERE teamssc.year = '1922' AND teams.pts > 20
Database: hockey
Note: teams refer to tmid; year = 1922; ranked second refers to rank = 2; penalty minutes refer to pim;
Question: What were the penalty minutes in 1923's Stanley Cup finals of the team that ranked second in that year?
SQL: SELECT teamssc.pim FROM teamssc INNER JOIN teams ON teamssc.tmid = teams.tmid AND teamssc.year = teams.year WHERE teamssc.year = '1923' AND teams.rank = 2
Database: hockey
Note: team refers name; most wins = MaX(w);
Question: Which team got the most wins in the Stanley Cup finals?
SQL: SELECT teams.name FROM teamssc INNER JOIN teams ON teamssc.tmid = teams.tmid AND teamssc.year = teams.year GROUP BY teams.name ORDER BY sum(teamssc.w) DESC LIMIT 1
Database: hockey
Note: Philadelphia Flyers is name of team playing; Boston Bruins is name of opposing team where oppid = 'BOs'; year = 1985; wins refer to w;
Question: How many wins did the Philadelphia Flyers have over the Boston Bruins in 1985?
SQL: SELECT teamvsteam.w FROM teamvsteam INNER JOIN teams ON teamvsteam.tmid = teams.tmid AND teamvsteam.year = teams.year WHERE teamvsteam.year = 1985 AND teamvsteam.tmid = ( SELECT DISTINCT tmid FROM teams WHERE name = 'Philadelphia Flyers' ) AND teamvsteam.oppid = ( SELECT DISTINCT tmid FROM teams WHERE name = 'Boston Bruins' )
Database: hockey
Note: tie refers to t>0; year = 1909;
Question: Please list the names of the teams that had a tie in 1909.
SQL: SELECT teams.name, teams.name FROM teamvsteam INNER JOIN teams ON teamvsteam.tmid = teams.tmid AND teamvsteam.year = teams.year INNER JOIN teams ON teamvsteam.year = teams.year AND teamvsteam.oppid = teams.tmid WHERE teamvsteam.year = 1909 AND teamvsteam.t = 1
Database: hockey
Note: Montreal Canadiens is the name of team.;
Question: Please list the first names of the coaches who have taught the Montreal Canadiens.
SQL: SELECT DISTINCT master.firstname FROM coaches INNER JOIN teams ON coaches.year = teams.year AND coaches.tmid = teams.tmid INNER JOIN master ON coaches.coachid = master.coachid WHERE teams.name = 'Montreal Canadiens'
Database: hockey
Note: have gotten in the Hall of Fame means hofid is not NUll;  Montreal Canadiens is the name of team.;
Question: How many coaches of the Montreal Canadiens have gotten in the Hall of Fame?
SQL: SELECT count(DISTINCT hofid) FROM coaches INNER JOIN teams ON coaches.year = teams.year AND coaches.tmid = teams.tmid INNER JOIN master ON coaches.coachid = master.coachid WHERE teams.name = 'Montreal Canadiens'
Database: hockey
Note: the tallest refers to MaX(height); Montreal Canadiens is the name of team;
Question: Please give the height of the tallest coach of the Montreal Canadiens.
SQL: SELECT master.height FROM coaches INNER JOIN teams ON coaches.year = teams.year AND coaches.tmid = teams.tmid INNER JOIN master ON coaches.coachid = master.coachid WHERE teams.name = 'Montreal Canadiens' AND master.coachid IS NOT NULL ORDER BY master.height DESC LIMIT 1
Database: hockey
Note: teams refer to tmid; year = 1922;
Question: Please list the first names of the coaches whose team played in 1922's Stanley Cup finals.
SQL: SELECT master.firstname FROM coaches INNER JOIN teamssc ON coaches.year = teamssc.year AND coaches.tmid = teamssc.tmid INNER JOIN master ON coaches.coachid = master.coachid WHERE teamssc.year = 1922
Database: hockey
Note: born in March refers to birthmon = 3; Philadelphia Flyers is the name of team;
Question: Among the coaches who have taught the Philadelphia Flyers, how many of them are born in March?
SQL: SELECT count(DISTINCT master.coachid) FROM coaches INNER JOIN teams ON coaches.year = teams.year AND coaches.tmid = teams.tmid INNER JOIN master ON coaches.coachid = master.coachid WHERE teams.name = 'Philadelphia Flyers' AND master.birthmon = 3
Database: hockey
Note: born in the Usa refers to birthcountry = 'Usa'; Philadelphia Flyers is the name of team;
Question: Among the coaches who are born in the USA, how many of them used to train the Philadelphia Flyers?
SQL: SELECT count(DISTINCT master.coachid) FROM coaches INNER JOIN teams ON coaches.year = teams.year AND coaches.tmid = teams.tmid INNER JOIN master ON coaches.coachid = master.coachid WHERE teams.name = 'Philadelphia Flyers' AND master.birthcountry = 'USA'