db_id
stringlengths
4
31
SQL
stringlengths
18
1.45k
input_sequence
stringlengths
148
11k
question
stringlengths
16
325
image_and_language
select t2.obj_class from img_obj as t1 inner join obj_classes as t2 on t1.obj_class_id = t2.obj_class_id where t1.img_id = 36 and t1.x = 0 and t1.y = 0
Question: list the object classes of image id 36 with coordinates (0,0). | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PRED_CLASS. IM...
list the object classes of image id 36 with coordinates (0,0).
image_and_language
select t1.img_id, t1.x, t1.y from img_obj as t1 inner join obj_classes as t2 on t1.obj_class_id = t2.obj_class_id where t2.obj_class = 'pizza' limit 10
Question: write 10 coordinates with the object class 'pizza.' | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PRED_CLASS. IMG_REL -> IM...
write 10 coordinates with the object class 'pizza.'
image_and_language
select t1.img_id, t2.obj_class from img_obj as t1 inner join obj_classes as t2 on t1.obj_class_id = t2.obj_class_id where t1.x = 126 and t1.y = 363
Question: what object class is in the x and y coordinates of 126 and 363? | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PRED_CLASS. I...
what object class is in the x and y coordinates of 126 and 363?
image_and_language
select t2.obj_class from img_obj as t1 inner join obj_classes as t2 on t1.obj_class_id = t2.obj_class_id where t1.img_id = 56 group by t2.obj_class order by count(t2.obj_class_id) desc limit 1
Question: what is the most common object class of image id 56? | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PRED_CLASS. IMG_REL -> I...
what is the most common object class of image id 56?
image_and_language
select t1.w, t1.h, t2.obj_class from img_obj as t1 inner join obj_classes as t2 on t1.obj_class_id = t2.obj_class_id where t1.img_id = 22
Question: write the object classes of image id 22 alongside the object's width and height. | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_...
write the object classes of image id 22 alongside the object's width and height.
image_and_language
select t2.pred_class from img_rel as t1 inner join pred_classes as t2 on t1.pred_class_id = t2.pred_class_id where t1.img_id = 68
Question: what is the predicate class of image id 68? | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PRED_CLASS. IMG_REL -> IMG_ID, PR...
what is the predicate class of image id 68?
image_and_language
select count(t2.pred_class) from img_rel as t1 inner join pred_classes as t2 on t1.pred_class_id = t2.pred_class_id where t1.img_id = 107 and t2.pred_class = 'has'
Question: how many 'has' predicate classes does image id 107 have? | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PRED_CLASS. IMG_REL ...
how many 'has' predicate classes does image id 107 have?
image_and_language
select t2.pred_class from img_rel as t1 inner join pred_classes as t2 on t1.pred_class_id = t2.pred_class_id where t1.img_id = 4434 order by t2.pred_class desc limit 1
Question: name the most common predicate class of image id 4434. | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PRED_CLASS. IMG_REL ->...
name the most common predicate class of image id 4434.
image_and_language
select t1.x, t1.y from img_obj as t1 inner join obj_classes as t2 on t1.obj_class_id = t2.obj_class_id where t1.img_id = 1764 and t2.obj_class = 'dress'
Question: count the number of 'dress' object classes and include their x and y coordinates in image id 1764. | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLAS...
count the number of 'dress' object classes and include their x and y coordinates in image id 1764.
image_and_language
select t3.obj_sample_id, t3.x, t3.y from att_classes as t1 inner join img_obj_att as t2 on t1.att_class_id = t2.att_class_id inner join img_obj as t3 on t2.img_id = t3.img_id where t3.img_id = 23 and t1.att_class = 'cast'
Question: give the x and y coordinates of the sample object of image id 23 that has the 'cast' attribute class. | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_C...
give the x and y coordinates of the sample object of image id 23 that has the 'cast' attribute class.
image_and_language
select count(t1.att_class) from att_classes as t1 inner join img_obj_att as t2 on t1.att_class_id = t2.att_class_id where t2.img_id = 2355735 and t1.att_class = 'blue'
Question: how many 'blue' attribute classes are there on image id 2355735? | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PRED_CLASS. ...
how many 'blue' attribute classes are there on image id 2355735?
image_and_language
select t2.obj_class, avg(t1.w), avg(t1.h) from img_obj as t1 inner join obj_classes as t2 on t1.obj_class_id = t2.obj_class_id where t1.img_id = 47 group by t2.obj_class
Question: what is the average width and height of the objects in image id 47? list their object classes as well. | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_...
what is the average width and height of the objects in image id 47? list their object classes as well.
hockey
select firstname, lastname from master where birthyear = 1990 and birthcountry != 'usa'
Question: list the first name and last name of all players not from usa and who are born in 1990 . | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMin...
list the first name and last name of all players not from usa and who are born in 1990 .
hockey
select namegiven from master where shootcatch is null and pos = 'f'
Question: list all players' given name who are good at both left and right hand and playing the forward position. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name...
list all players' given name who are good at both left and right hand and playing the forward position.
hockey
select firstname, lastname from master where hofid is null
Question: who are the players who were not in the hall of fame list. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, PPG, PPC, SHA, PKG, PKC, S...
who are the players who were not in the hall of fame list.
hockey
select namegiven , namegiven , birthyear, birthmon, birthday from master where deathyear is null order by birthyear desc, birthmon desc, birthday desc limit 1
Question: who is the youngest player who is still living. state the given name and date of birth. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMino...
who is the youngest player who is still living. state the given name and date of birth.
hockey
select firstname, lastname, deathyear - birthyear from master where shootcatch is null and deathyear is not null
Question: for all the deceased players who are good at both left and right hand, list the player's name and the age when he died. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, S...
for all the deceased players who are good at both left and right hand, list the player's name and the age when he died.
hockey
select t1.firstname, t1.lastname from master as t1 inner join goalies as t2 on t1.playerid = t2.playerid where t2.year >= 2000 and t2.year <= 2005 group by t2.playerid having count(distinct t2.tmid) > 2
Question: name the goalies who played for more than two teams from year 2000 to 2005. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, PPG, PPC,...
name the goalies who played for more than two teams from year 2000 to 2005.
hockey
select avg(weight) from master where height > 72
Question: what is the average weight of players who have height greater than 72 inches. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, PPG, PP...
what is the average weight of players who have height greater than 72 inches.
hockey
select distinct t1.namegiven, t1.birthcountry from master as t1 inner join goalies as t2 on t1.playerid = t2.playerid group by t1.namegiven, t1.birthcountry having sum(t2.min) > 5000
Question: 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. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, r...
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.
hockey
select t1.firstname, t1.lastname from master as t1 inner join goalies as t2 on t1.playerid = t2.playerid where t2.lgid in ('pcha', 'nhl') group by t2.playerid having count(distinct t2.lgid) > 1
Question: name the goaltenders who had played in both pcha and nhl league. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, PPG, PPC, SHA, PKG, ...
name the goaltenders who had played in both pcha and nhl league.
hockey
select t1.playerid, t2.year, min from master as t1 inner join goalies as t2 on t2.playerid = t1.playerid where t1.deathyear is not null order by t2.min desc limit 1
Question: list all deceased goalies by last name. list the season where he had the most time played. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchM...
list all deceased goalies by last name. list the season where he had the most time played.
hockey
select t1.namegiven, t1.height , t1.weight, strftime('%y', current_timestamp) - birthyear from master as t1 inner join goalies as t2 on t1.playerid = t2.playerid where t2.tmid = 'col' and t2.year >= 2000 and t2.year <= 2010 group by t1.playerid
Question: list all goalies from year 2000 to 2010 for team col. state their given name, height, weight and age of today. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, G...
list all goalies from year 2000 to 2010 for team col. state their given name, height, weight and age of today.
hockey
select t1.firstname, t1.lastname , t2.year from master as t1 inner join goalies as t2 on t1.playerid = t2.playerid where t2.eng >= 10
Question: name all goalies with 10 or more empty net goals. name the players and season where he played. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, Be...
name all goalies with 10 or more empty net goals. name the players and season where he played.
hockey
select t1.firstname, t1.lastname, t2.year from master as t1 inner join goalies as t2 on t1.playerid = t2.playerid where cast(t2.ga as real) / t2.sa is not null order by cast(t2.ga as real) / t2.sa limit 1
Question: 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. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G...
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.
hockey
select distinct t1.firstname, t1.lastname, t3.name from master as t1 inner join goalies as t2 on t1.playerid = t2.playerid inner join teams as t3 on t2.tmid = t3.tmid where t2.year = 2005 and t1.height < 72
Question: list all goalies who played in the year 2005 season and shorter than 72 inches. list all the team names he play for. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL,...
list all goalies who played in the year 2005 season and shorter than 72 inches. list all the team names he play for.
hockey
select distinct t1.namenick, t3.year, t3.name from master as t1 inner join goalies as t2 on t1.playerid = t2.playerid inner join teams as t3 on t2.tmid = t3.tmid where t1.playerid = 'aubinje01'
Question: state the nick name of player id 'aubinje01'. list all the teams and season he played for. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchM...
state the nick name of player id 'aubinje01'. list all the teams and season he played for.
hockey
select t1.firstname, t1.lastname, t2.year, avg(t2.min) from master as t1 inner join goalies as t2 on t1.playerid = t2.playerid where t1.playerid = ( select playerid from goalies group by playerid order by count(playerid) desc limit 1 ) group by t1.firstname, t1.lastname, t2.year
Question: name the goalies with the most seasons played. state the average time he played for each season. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, ...
name the goalies with the most seasons played. state the average time he played for each season.
hockey
select distinct t1.firstname, t1.lastname, t2.year from master as t1 inner join ( select playerid, year from goalies where cast(sho as real) / ga > 0.05 ) as t2 on t2.playerid = t1.playerid
Question: name the goalie and the season he played where he had 5% shutouts among the number of goals recorded while the goalie was on the ice. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OT...
name the goalie and the season he played where he had 5% shutouts among the number of goals recorded while the goalie was on the ice.
hockey
select firstname, lastname from master where birthcountry != deathcountry order by birthyear
Question: name the deceased players whose death country is different from his birth country order by birth year. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name,...
name the deceased players whose death country is different from his birth country order by birth year.
hockey
select namegiven, firstnhl, firstwha from master where firstnhl is not null and firstwha is not null
Question: 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. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW...
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.
hockey
select firstname, lastname, pos from master where deathyear is null and pos like '%/%'
Question: list the living players who have two positions. state their given name the position they play. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, Be...
list the living players who have two positions. state their given name the position they play.
hockey
select namenick, lastnhl from master order by height desc limit 1
Question: state the nick name of the tallest player? if the player had left nhl, mention the last season he was with nhl. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, ...
state the nick name of the tallest player? if the player had left nhl, mention the last season he was with nhl.
hockey
select avg(iif(birthyear < 1990, height, null)) - avg(iif(birthyear >= 1990, height, null)) from master
Question: 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. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T,...
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.
hockey
select distinct firstname, lastname, t3.name from goalies as t1 inner join master as t2 on t2.playerid = t1.playerid inner join teams as t3 on t1.lgid = t3.lgid where t1.playerid is not null and t2.coachid is not null and t2.shootcatch = 'l' and t2.pos = 'g'
Question: name the goalies who are good at left hand and also has become a coach after retirement. name all teams he had played before. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, ...
name the goalies who are good at left hand and also has become a coach after retirement. name all teams he had played before.
hockey
select distinct firstname, lastname, t3.name from goalies as t1 inner join master as t2 on t2.playerid = t1.playerid inner join teams as t3 on t1.lgid = t3.lgid where t2.birthcountry = 'canada' and t2.deathyear is not null and t2.pos = 'g'
Question: list all the deceased goalies and the teams he had played whose birth country was in canada. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, Benc...
list all the deceased goalies and the teams he had played whose birth country was in canada.
hockey
select t1.firstname, t1.lastname, t3.year from master as t1 inner join goalies as t2 on t1.playerid = t2.playerid inner join teams as t3 on t2.year = t3.year and t2.tmid = t3.tmid where t1.deathyear is not null and t3.name = 'boston bruins' and t3.rank = 1 and t1.pos = 'g'
Question: name the goalies and season they played when boston bruins won number 1 in rank. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, PPG,...
name the goalies and season they played when boston bruins won number 1 in rank.
hockey
select distinct t3.name from master as t1 inner join goalies as t2 on t1.playerid = t2.playerid inner join teams as t3 on t2.lgid = t3.lgid and t2.year = t3.year where t1.deathyear is not null and t1.firstnhl < 1950
Question: among all goalies who are still alive, whose first season in nhl in before 1950. list the team names they were in. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, G...
among all goalies who are still alive, whose first season in nhl in before 1950. list the team names they were in.
hockey
select distinct t2.namegiven, t3.name, t3.year from coaches as t1 inner join master as t2 on t2.coachid = t1.coachid inner join teams as t3 on t1.lgid = t3.lgid where t2.playerid is not null and t2.coachid is not null
Question: for all players who becomes coach after retirement, state the given name of coach and which teams and years did they coach? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, So...
for all players who becomes coach after retirement, state the given name of coach and which teams and years did they coach?
hockey
select t2.namegiven, t3.name from coaches as t1 inner join master as t2 on t2.coachid = t1.coachid inner join teams as t3 on t1.lgid = t3.lgid where t1.coachid is not null order by cast(t1.w as real) / t1.g desc limit 1
Question: 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. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, 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.
hockey
select cast(t2.w as real) / t2.g, t1.firstname, t1.lastname, t2.year from master as t1 inner join coaches as t2 on t1.coachid = t2.coachid inner join ( select coachid from coaches order by cast(w as real) / g desc limit 1 ) as t3 on t2.coachid = t3.coachid
Question: which coach has the best performance for team det in history? what was the winning percentage? name the coach and the year he coached. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, O...
which coach has the best performance for team det in history? what was the winning percentage? name the coach and the year he coached.
hockey
select t2.namegiven , t2.birthyear, t2.birthmon, t2.birthday, t3.name from goalies as t1 inner join master as t2 on t2.playerid = t1.playerid inner join teams as t3 on t3.lgid = t1.lgid where t3.tmid = 'mtl' group by t2.namegiven, t2.birthyear, t2.birthmon, t2.birthday, t3.name order by count(t2.coachid) desc limit 1
Question: 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. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, O...
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.
hockey
select distinct t1.firstname, t1.lastname, t3.name from master as t1 inner join goalies as t2 on t1.playerid = t2.playerid inner join teams as t3 on t2.year = t3.year and t2.tmid = t3.tmid where t1.pos = 'g' and t2.l > t2.w group by t1.firstname, t1.lastname, t3.name having count(t3.year) > 2
Question: list all goalies with more lost than won games for two seasons or more. state the name of the player and team he played. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, ...
list all goalies with more lost than won games for two seasons or more. state the name of the player and team he played.
hockey
select t1.firstname, t1.lastname, t2.year, cast(t2.w as real) / t2.gp from master as t1 inner join goalies as t2 on t1.playerid = t2.playerid where t1.birthyear = 1987 and t1.shootcatch is null
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. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff...
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.
hockey
select t1.namegiven, cast(sum(t2.min) as real) / sum(t2.gp) from master as t1 inner join goalies as t2 on t1.playerid = t2.playerid where t1.playerid = 'aebisda01' group by t1.namegiven
Question: what is given name for player 'aebisda01'. calculate the average time in minutes for the all his games played as goaltender. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, S...
what is given name for player 'aebisda01'. calculate the average time in minutes for the all his games played as goaltender.
hockey
select t1.firstname, t1.lastname from master as t1 inner join goalies as t2 on t1.playerid = t2.playerid where t1.deathyear is not null group by t1.playerid having cast(sum(t2.min) as real) / sum(t2.gp) > 0.5
Question: list all living goalies who have greater than 50% wins among all games played. state their last name and first name. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL,...
list all living goalies who have greater than 50% wins among all games played. state their last name and first name.
hockey
select count(note) from awardsmisc where note is not null
Question: how many players and coaches are awarded after death? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, PPG, PPC, SHA, PKG, PKC, SHF. C...
how many players and coaches are awarded after death?
hockey
select count(playerid) from awardsplayers where pos = 'g' and year = 1983
Question: among the players who won an award in the year 1983, how many of them play the position of goalie? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM...
among the players who won an award in the year 1983, how many of them play the position of goalie?
hockey
select count(coachid) from coaches where year = 2007 and notes = 'interim'
Question: how many coaches worked a temporary term in the year 2007? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, PPG, PPC, SHA, PKG, PKC, S...
how many coaches worked a temporary term in the year 2007?
hockey
select count(year) from combinedshutouts where year = 1977 and `r/p` = 'r'
Question: how many shoutouts are there in the regular season of 1977? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, PPG, PPC, SHA, PKG, PKC, ...
how many shoutouts are there in the regular season of 1977?
hockey
select count(tmid) from goalies where year = 2005 and eng is null
Question: how many teams scored against their opponent who had pulled their goalie in the year 2005? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchM...
how many teams scored against their opponent who had pulled their goalie in the year 2005?
hockey
select distinct year from goalies where lgid = 'nhl' and sa is not null
Question: please list the years in which the nhl league had shots recorded while the goalie was on the ice. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM,...
please list the years in which the nhl league had shots recorded while the goalie was on the ice.
hockey
select distinct count(tmid) from goalies where postw = postl
Question: how many teams have the same total number of postseason wins and postseason loses? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, PP...
how many teams have the same total number of postseason wins and postseason loses?
hockey
select name from hof where year = 1978
Question: please list the name of the person who was in the hall of fame in the year 1978. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, PPG,...
please list the name of the person who was in the hall of fame in the year 1978.
hockey
select count(hofid) from hof where category = 'builder'
Question: how many people were in the hall of fame's builder category? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, PPG, PPC, SHA, PKG, PKC,...
how many people were in the hall of fame's builder category?
hockey
select count(hofid) from hof where year > 1980 and category = 'player'
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'? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, ...
among the people who got into the hall of fame after the year 1980, how many of them belong to the category of 'player'?
hockey
select distinct t1.namenick from master as t1 inner join hof as t2 on t1.hofid = t2.hofid where t2.year = 2007
Question: please list the nicknames of the players who got in the hall of fame in 2007. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, PPG, PP...
please list the nicknames of the players who got in the hall of fame in 2007.
hockey
select case when t1.hofid is null then 'no' else t2.year end from master as t1 left join hof as t2 on t1.hofid = t2.hofid where t1.height = ( select max(height) from master )
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. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA...
did the tallest player got in the hall of fame? if yes, please list the year when he got in the hall of fame.
hockey
select distinct t2.award from master as t1 inner join awardscoaches as t2 on t1.coachid = t2.coachid where t1.birthcountry = 'canada'
Question: please list the awards the coaches who are born in canada have won. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, PPG, PPC, SHA, PK...
please list the awards the coaches who are born in canada have won.
hockey
select count(t2.coachid) from master as t1 inner join coaches as t2 on t1.coachid = t2.coachid where t2.w > 30 and t1.birthcountry = 'usa'
Question: among the coaches whose team has over 30 wins in a year, how many of them are born in the usa? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, Be...
among the coaches whose team has over 30 wins in a year, how many of them are born in the usa?
hockey
select count(t2.coachid) from master as t1 inner join coaches as t2 on t1.coachid = t2.coachid where t2.lgid = 'nhl' and t1.birthcountry = 'canada'
Question: among the coaches who have taught teams from the nhl league, how many of them are from canada? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, Be...
among the coaches who have taught teams from the nhl league, how many of them are from canada?
hockey
select t2.award from master as t1 inner join awardscoaches as t2 on t1.coachid = t2.coachid where t1.birthyear = 1952
Question: please list the awards won by coaches who were born in 1952. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, PPG, PPC, SHA, PKG, PKC,...
please list the awards won by coaches who were born in 1952.
hockey
select count(t1.coachid) from master as t1 inner join awardscoaches as t2 on t1.coachid = t2.coachid where t2.year = 1940 and t1.birthcity = 'toronto'
Question: among the coaches who have received an award in 1940, how many of them are born in toronto? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, Bench...
among the coaches who have received an award in 1940, how many of them are born in toronto?
hockey
select count(t1.coachid) from master as t1 inner join awardscoaches as t2 on t1.coachid = t2.coachid where t1.deathyear is not null and t2.year > 1940
Question: among the coaches who have received an award after the year 1940, how many of them have already died? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, ...
among the coaches who have received an award after the year 1940, how many of them have already died?
hockey
select distinct t2.award from master as t1 inner join awardscoaches as t2 on t1.coachid = t2.coachid where t1.deathyear is not null and t2.lgid = 'nhl'
Question: please list the awards won by coaches who taught the nhl league and have already died. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor...
please list the awards won by coaches who taught the nhl league and have already died.
hockey
select count(distinct t1.coachid) from master as t1 inner join hof as t2 on t1.hofid = t2.hofid where t1.weight > 195
Question: among the coaches who have gotten in the hall of fame, how many of them have a weight of over 195? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM...
among the coaches who have gotten in the hall of fame, how many of them have a weight of over 195?
hockey
select distinct t1.firstname, t1.lastname from master as t1 inner join hof as t2 on t1.hofid = t2.hofid where t1.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. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T...
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.
hockey
select count(t1.playerid) from master as t1 inner join hof as t2 on t1.hofid = t2.hofid where t1.playerid is not null and t1.coachid is not null
Question: among the players who became coaches, how many of them have gotten in the hall of fame? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMino...
among the players who became coaches, how many of them have gotten in the hall of fame?
hockey
select distinct t1.birthcity from master as t1 inner join awardsplayers as t2 on t1.playerid = t2.playerid where t2.year = 1970
Question: please list the birth cities of the players who have won an award in the year 1970. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, P...
please list the birth cities of the players who have won an award in the year 1970.
hockey
select count(t1.playerid) from master as t1 inner join awardsplayers as t2 on t1.playerid = t2.playerid where t2.award = 'all-rookie' and t1.birthcity = 'toronto'
Question: how many players born in toronto have won the all-rookie award? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, PPG, PPC, SHA, PKG, P...
how many players born in toronto have won the all-rookie award?
hockey
select count(t1.playerid) from master as t1 inner join awardsplayers as t2 on t1.playerid = t2.playerid where t2.award = 'all-rookie' and t1.deathyear is not null
Question: among the players who have won the all-rookie award, how many of them have died? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, PPG,...
among the players who have won the all-rookie award, how many of them have died?
hockey
select count(distinct t1.playerid) from master as t1 inner join awardsplayers as t2 on t1.playerid = t2.playerid where t1.deathstate = 'ma'
Question: among the players who died in massachussets, how many of them have won an award? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, PPG,...
among the players who died in massachussets, how many of them have won an award?
hockey
select t2.award from master as t1 inner join awardsplayers as t2 on t1.playerid = t2.playerid where t1.deathcity = 'kemptville'
Question: please list the awards the players who died in arlington have won. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, PPG, PPC, SHA, PKG...
please list the awards the players who died in arlington have won.
hockey
select distinct t1.namenick from master as t1 inner join awardsplayers as t2 on t1.playerid = t2.playerid where t2.award = 'all-rookie' and t1.birthmon = 3
Question: please list the nicknames of the players who have won the all-rookie award and are born in march. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM,...
please list the nicknames of the players who have won the all-rookie award and are born in march.
hockey
select count(t1.playerid) from master as t1 inner join hof as t2 on t1.hofid = t2.hofid where t1.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? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, Ben...
among the players who were born in july and august, how many of them got in the hall of fame?
hockey
select t1.birthmon from master as t1 inner join awardsplayers as t2 on t1.playerid = t2.playerid group by t2.playerid order by count(t2.award) desc limit 1
Question: in which month was the player who has won the most awards born? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, PPG, PPC, SHA, PKG, P...
in which month was the player who has won the most awards born?
hockey
select t1.birthyear from master as t1 inner join awardsplayers as t2 on t1.playerid = t2.playerid group by t1.birthyear order by count(t2.award) desc limit 1
Question: players born in which year have received the most awards in total? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, PPG, PPC, SHA, PKG...
players born in which year have received the most awards in total?
hockey
select t1.birthcountry from master as t1 inner join awardsplayers as t2 on t1.playerid = t2.playerid group by t1.birthcountry order by count(t2.award) desc limit 1
Question: which country is the most award-winning player from? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, PPG, PPC, SHA, PKG, PKC, SHF. Co...
which country is the most award-winning player from?
hockey
select t1.birthcountry from master as t1 inner join hof as t2 on t1.hofid = t2.hofid group by t1.birthcountry order by count(t1.playerid) desc limit 1
Question: which country has the most players in the hall of fame? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, PPG, PPC, SHA, PKG, PKC, SHF....
which country has the most players in the hall of fame?
hockey
select distinct t1.pos from master as t1 inner join awardsplayers as t2 on t1.playerid = t2.playerid where t1.birthcountry = 'canada' and t2.award = 'all-rookie'
Question: please list the positions of the players who were born in canada and have won the all-rookie award. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PI...
please list the positions of the players who were born in canada and have won the all-rookie award.
hockey
select sum(t1.weight / (t1.height * t1.height)) / count(t1.coachid) from master as t1 inner join hof as t2 on t1.hofid = t2.hofid
Question: what is the average bmi of all the coaches who have gotten in the hall of fame? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, PPG, ...
what is the average bmi of all the coaches who have gotten in the hall of fame?
hockey
select cast(count(case when t1.birthcountry = 'usa' then t1.playerid else null end) as real) * 100 / count(t1.playerid) from master as t1 inner join hof as t2 on t1.hofid = t2.hofid
Question: what is the percentage of american players among all the players who have gotten in the hall of fame? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, ...
what is the percentage of american players among all the players who have gotten in the hall of fame?
hockey
select count(year) from goalies where playerid = 'healygl01'
Question: how many years did player id 'healygl01' play? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, PPG, PPC, SHA, PKG, PKC, SHF. Coaches ...
how many years did player id 'healygl01' play?
hockey
select tmid from goalies where playerid = 'roypa01' and year = 1992
Question: which team did player id 'roypa01' play in 1992? give the team id. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, PPG, PPC, SHA, PKG...
which team did player id 'roypa01' play in 1992? give the team id.
hockey
select gp from goalies where playerid = 'rutlewa01' and year = 1967
Question: what was the total number of the games that player id 'rutlewa01' played in 1967? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, PPG...
what was the total number of the games that player id 'rutlewa01' played in 1967?
hockey
select min from goalies where playerid = 'valiqst01' and year = 2007
Question: show me how many minutes player id 'valiqst01' played in the game in 2007 season. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, PPG...
show me how many minutes player id 'valiqst01' played in the game in 2007 season.
hockey
select w from goalies where playerid = 'vanbijo01' and year = 1990
Question: how many games did player id 'vanbijo01' win in the 1990 season? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, PPG, PPC, SHA, PKG, ...
how many games did player id 'vanbijo01' win in the 1990 season?
hockey
select `t/ol` from goalies where playerid = 'vernomi01' and year = 1998
Question: in how many games did player id 'vernomi01' end up with a tie or an overtime loss in the 1998 season? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, ...
in how many games did player id 'vernomi01' end up with a tie or an overtime loss in the 1998 season?
hockey
select sum(t1.w) from coaches as t1 inner join awardscoaches as t2 on t1.coachid = t2.coachid where t2.year = 1933 and t2.award = 'second team all-star'
Question: for the coach who won second team all-star in 1933, how many wins did he have that year? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMin...
for the coach who won second team all-star in 1933, how many wins did he have that year?
hockey
select iif(t1.note = 'posthumous', 'yes', 'no') from awardsmisc as t1 right join master as t2 on t1.id = t2.playerid where t2.legendsid = 'p194502'
Question: did legendsid 'p194502' personally attend his hall of fame dedication? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, PPG, PPC, SHA,...
did legendsid 'p194502' personally attend his hall of fame dedication?
hockey
select t1.pos from master as t1 inner join awardsplayers as t2 on t1.playerid = t2.playerid where t1.firstname = 'mike' and t1.lastname = 'antonovich'
Question: which position did mike antonovich play? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, PPG, PPC, SHA, PKG, PKC, SHF. Coaches -> coa...
which position did mike antonovich play?
hockey
select t1.birthcountry from master as t1 inner join coaches as t2 on t1.coachid = t2.coachid where t2.year = 1998 and t2.notes = 'co-coach with dave lewis'
Question: for the coach who co-coached with dave lewis in 1998, where was his birth place? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, PPG,...
for the coach who co-coached with dave lewis in 1998, where was his birth place?
hockey
select t1.firstname, t1.lastname from master as t1 inner join goalies as t2 on t1.playerid = t2.playerid where t2.stint = 3 order by t1.weight desc limit 1
Question: which player who showed as the third goalie in a game has the biggest weight? give the full name of the player. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, ...
which player who showed as the third goalie in a game has the biggest weight? give the full name of the player.
hockey
select t1.firstname, t1.lastname from master as t1 inner join goalies as t2 on t1.playerid = t2.playerid group by t2.playerid, t1.height having sum(t2.eng) > 10 order by t1.height desc limit 1
Question: among the players who had 10 empty net goals in their career, who is the tallest? show his full name. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, ...
among the players who had 10 empty net goals in their career, who is the tallest? show his full name.
hockey
select t1.shootcatch from master as t1 inner join goalies as t2 on t1.playerid = t2.playerid where t2.year = 2010 group by t2.playerid order by sum(t2.sho) desc limit 1
Question: for the goalie who had the most shutouts in 2010, what's his catching hand? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, PPG, PPC,...
for the goalie who had the most shutouts in 2010, what's his catching hand?
hockey
select t1.firstname, t1.lastname from master as t1 inner join goalies as t2 on t1.playerid = t2.playerid where t2.year = 2002 and t2.ga > 150 group by t2.playerid, t1.birthyear, t1.birthmon, t1.birthmon having sum(t2.ga) order by t1.birthyear desc, t1.birthmon desc, sum(t1.birthday) desc limit 1
Question: who is the youngest goalie among those who had more than 150 goal againsts in 2002 season? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchM...
who is the youngest goalie among those who had more than 150 goal againsts in 2002 season?
hockey
select t1.firstname, t1.lastname from master as t1 inner join goalies as t2 on t1.playerid = t2.playerid where t2.tmid = 'njd' group by t2.playerid order by sum(t2.sa - t2.ga) desc limit 1
Question: in the history of team id njd, which goalie saved the most goal attempts? give his full name. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, Ben...
in the history of team id njd, which goalie saved the most goal attempts? give his full name.
hockey
select t2.name from goalies as t1 inner join teams as t2 on t1.tmid = t2.tmid where t1.year = 2010 group by t2.name order by sum(posteng) desc limit 1
Question: which teams had the most postseason empty net goals in 2010 season? list their team names. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchM...
which teams had the most postseason empty net goals in 2010 season? list their team names.
hockey
select sum(t2.sho) from scoring as t1 inner join goalies as t2 on t1.playerid = t2.playerid where t2.year = 1995 group by t2.tmid order by sum(t2.postsho) desc limit 1
Question: for the team which had the most postseason shutouts in 1995, how many points did they have that year? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, ...
for the team which had the most postseason shutouts in 1995, how many points did they have that year?
hockey
select t2.coachid, t1.namenick from master as t1 inner join coaches as t2 on t1.coachid = t2.coachid where t2.year = 2009 order by cast(t2.w as real) / (t2.w + t2.l) desc limit 1
Question: which coach had the highest winning rates in the 2009 season? what's coach's nickname. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor...
which coach had the highest winning rates in the 2009 season? what's coach's nickname.