db_id
stringlengths
4
31
SQL
stringlengths
18
1.45k
input_sequence
stringlengths
148
11k
question
stringlengths
16
325
retails
select count(c_custkey) from customer where c_acctbal < 0 and c_mktsegment = 'machinery'
Question: how many customers in the machinery segment are in debt? | Tables: customer -> c_custkey, c_mktsegment, c_nationkey, c_name, c_address, c_phone, c_acctbal, c_comment. lineitem -> l_shipdate, l_orderkey, l_discount, l_extendedprice, l_suppkey, l_quantity, l_returnflag, l_partkey, l_linestatus, l_tax, l_commitd...
how many customers in the machinery segment are in debt?
retails
select count(o_orderkey) from orders where strftime('%y', o_orderdate) = '1997' and o_clerk = 'clerk#000000001' and o_orderpriority = '1-urgent'
Question: how many urgent orders did clerk#000000001 handle in 1997? | Tables: customer -> c_custkey, c_mktsegment, c_nationkey, c_name, c_address, c_phone, c_acctbal, c_comment. lineitem -> l_shipdate, l_orderkey, l_discount, l_extendedprice, l_suppkey, l_quantity, l_returnflag, l_partkey, l_linestatus, l_tax, l_commi...
how many urgent orders did clerk#000000001 handle in 1997?
retails
select t3.c_name from orders as t1 inner join lineitem as t2 on t1.o_orderkey = t2.l_orderkey inner join customer as t3 on t1.o_custkey = t3.c_custkey order by (julianday(t2.l_receiptdate) - julianday(t2.l_commitdate)) desc limit 1
Question: what is the name of the customer whose order was delivered the longest? | Tables: customer -> c_custkey, c_mktsegment, c_nationkey, c_name, c_address, c_phone, c_acctbal, c_comment. lineitem -> l_shipdate, l_orderkey, l_discount, l_extendedprice, l_suppkey, l_quantity, l_returnflag, l_partkey, l_linestatus, l...
what is the name of the customer whose order was delivered the longest?
retails
select sum(t3.o_totalprice) from customer as t1 inner join nation as t2 on t1.c_nationkey = t2.n_nationkey inner join orders as t3 on t1.c_custkey = t3.o_custkey where t2.n_name = 'argentina'
Question: how much is the total price of all the orders shipped to customers in argentina? | Tables: customer -> c_custkey, c_mktsegment, c_nationkey, c_name, c_address, c_phone, c_acctbal, c_comment. lineitem -> l_shipdate, l_orderkey, l_discount, l_extendedprice, l_suppkey, l_quantity, l_returnflag, l_partkey, l_line...
how much is the total price of all the orders shipped to customers in argentina?
retails
select count(t2.c_name) from orders as t1 inner join customer as t2 on t1.o_custkey = t2.c_custkey where t2.c_mktsegment = 'building' and t1.o_totalprice > 50000
Question: how many customers in the building segments have orders with a total price of no less than 50,000? | Tables: customer -> c_custkey, c_mktsegment, c_nationkey, c_name, c_address, c_phone, c_acctbal, c_comment. lineitem -> l_shipdate, l_orderkey, l_discount, l_extendedprice, l_suppkey, l_quantity, l_returnflag,...
how many customers in the building segments have orders with a total price of no less than 50,000?
retails
select t2.n_name from supplier as t1 inner join nation as t2 on t1.s_nationkey = t2.n_nationkey group by t1.s_nationkey order by count(t1.s_name) limit 1
Question: which country has the least number of suppliers? | Tables: customer -> c_custkey, c_mktsegment, c_nationkey, c_name, c_address, c_phone, c_acctbal, c_comment. lineitem -> l_shipdate, l_orderkey, l_discount, l_extendedprice, l_suppkey, l_quantity, l_returnflag, l_partkey, l_linestatus, l_tax, l_commitdate, l_r...
which country has the least number of suppliers?
retails
select t2.ps_supplycost from part as t1 inner join partsupp as t2 on t1.p_partkey = t2.ps_partkey where t1.p_name = 'medium metallic grey dodger linen'
Question: how much is the part supply cost for the medium metallic grey dodger linen? | Tables: customer -> c_custkey, c_mktsegment, c_nationkey, c_name, c_address, c_phone, c_acctbal, c_comment. lineitem -> l_shipdate, l_orderkey, l_discount, l_extendedprice, l_suppkey, l_quantity, l_returnflag, l_partkey, l_linestatu...
how much is the part supply cost for the medium metallic grey dodger linen?
retails
select t.n_name from ( select t2.n_name, sum(t1.s_acctbal) as num from supplier as t1 inner join nation as t2 on t1.s_nationkey = t2.n_nationkey where t1.s_acctbal < 0 group by t1.s_nationkey ) as t order by t.num limit 2
Question: what are the top 2 countries with the highest number of indebted suppliers? | Tables: customer -> c_custkey, c_mktsegment, c_nationkey, c_name, c_address, c_phone, c_acctbal, c_comment. lineitem -> l_shipdate, l_orderkey, l_discount, l_extendedprice, l_suppkey, l_quantity, l_returnflag, l_partkey, l_linestatu...
what are the top 2 countries with the highest number of indebted suppliers?
retails
select t1.p_name from part as t1 inner join partsupp as t2 on t1.p_partkey = t2.ps_partkey where t2.ps_supplycost > 1000
Question: what are the names of the parts that have a part supply cost of at least 1,000? | Tables: customer -> c_custkey, c_mktsegment, c_nationkey, c_name, c_address, c_phone, c_acctbal, c_comment. lineitem -> l_shipdate, l_orderkey, l_discount, l_extendedprice, l_suppkey, l_quantity, l_returnflag, l_partkey, l_lines...
what are the names of the parts that have a part supply cost of at least 1,000?
retails
select t2.n_name from supplier as t1 inner join nation as t2 on t1.s_nationkey = t2.n_nationkey order by t1.s_suppkey desc limit 1
Question: what is the name of the country of the supplier with the highest debt? | Tables: customer -> c_custkey, c_mktsegment, c_nationkey, c_name, c_address, c_phone, c_acctbal, c_comment. lineitem -> l_shipdate, l_orderkey, l_discount, l_extendedprice, l_suppkey, l_quantity, l_returnflag, l_partkey, l_linestatus, l_...
what is the name of the country of the supplier with the highest debt?
retails
select t1.o_clerk from orders as t1 inner join lineitem as t2 on t1.o_orderkey = t2.l_orderkey order by t2.l_extendedprice desc limit 1
Question: who is the clerk in charge of handling the item with the highest amount of extended price? | Tables: customer -> c_custkey, c_mktsegment, c_nationkey, c_name, c_address, c_phone, c_acctbal, c_comment. lineitem -> l_shipdate, l_orderkey, l_discount, l_extendedprice, l_suppkey, l_quantity, l_returnflag, l_partk...
who is the clerk in charge of handling the item with the highest amount of extended price?
retails
select sum(t2.l_quantity) from orders as t1 inner join lineitem as t2 on t1.o_orderkey = t2.l_orderkey where t1.o_orderdate = '1995-10-05' and t1.o_custkey = 101660
Question: what are the total quantities of the items ordered by customer 101660 on 10/5/1995? | Tables: customer -> c_custkey, c_mktsegment, c_nationkey, c_name, c_address, c_phone, c_acctbal, c_comment. lineitem -> l_shipdate, l_orderkey, l_discount, l_extendedprice, l_suppkey, l_quantity, l_returnflag, l_partkey, l_l...
what are the total quantities of the items ordered by customer 101660 on 10/5/1995?
retails
select sum(t2.l_extendedprice * (1 - t2.l_discount) * (1 + t2.l_tax)) from orders as t1 inner join lineitem as t2 on t1.o_orderkey = t2.l_orderkey where t1.o_custkey = 88931 and t1.o_orderdate = '1994-07-13'
Question: what is the total amount of tax charged for the order placed by customer 88931 on 7/13/994? | Tables: customer -> c_custkey, c_mktsegment, c_nationkey, c_name, c_address, c_phone, c_acctbal, c_comment. lineitem -> l_shipdate, l_orderkey, l_discount, l_extendedprice, l_suppkey, l_quantity, l_returnflag, l_part...
what is the total amount of tax charged for the order placed by customer 88931 on 7/13/994?
retails
select t3.p_name from orders as t1 inner join lineitem as t2 on t1.o_orderkey = t2.l_orderkey inner join part as t3 on t2.l_partkey = t3.p_partkey where t1.o_custkey = 110942
Question: what are the names of the parts that were ordered by customer 110942? | Tables: customer -> c_custkey, c_mktsegment, c_nationkey, c_name, c_address, c_phone, c_acctbal, c_comment. lineitem -> l_shipdate, l_orderkey, l_discount, l_extendedprice, l_suppkey, l_quantity, l_returnflag, l_partkey, l_linestatus, l_t...
what are the names of the parts that were ordered by customer 110942?
retails
select t2.l_extendedprice * (1 - t2.l_discount), t3.p_name from orders as t1 inner join lineitem as t2 on t1.o_orderkey = t2.l_orderkey inner join part as t3 on t2.l_partkey = t3.p_partkey where t1.o_custkey = 111511 and t1.o_orderkey = 53159
Question: how much is the discounted price of every item that customer 111511 ordered in order 53159? list the names of the parts of every item. | Tables: customer -> c_custkey, c_mktsegment, c_nationkey, c_name, c_address, c_phone, c_acctbal, c_comment. lineitem -> l_shipdate, l_orderkey, l_discount, l_extendedprice, ...
how much is the discounted price of every item that customer 111511 ordered in order 53159? list the names of the parts of every item.
ice_hockey_draft
select t2.height_in_inch from playerinfo as t1 inner join height_info as t2 on t1.height = t2.height_id where t1.playername = 'david bornhammar'
Question: what is the height of david bornhammar in inches? | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday, birthplace, nation, height, weight, position_info, shoots, d...
what is the height of david bornhammar in inches?
ice_hockey_draft
select distinct t1.playername from playerinfo as t1 inner join height_info as t2 on t1.height = t2.height_id where t2.height_in_inch > '6''2''
Question: please list the names of all the players with a height of over 6'2' inches. | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday, birthplace, nation, height, weight...
please list the names of all the players with a height of over 6'2' inches.
ice_hockey_draft
select count(t1.eliteid) from playerinfo as t1 inner join height_info as t2 on t1.height = t2.height_id where t2.height_in_inch > '6''2'' and t1.nation = 'sweden'
Question: among the players with a height of over 6'2' inches, how many of them were born in sweden? | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday, birthplace, nation,...
among the players with a height of over 6'2' inches, how many of them were born in sweden?
ice_hockey_draft
select t1.playername from playerinfo as t1 inner join height_info as t2 on t1.height = t2.height_id order by t2.height_in_cm desc limit 1
Question: what is the name of the tallest player? | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday, birthplace, nation, height, weight, position_info, shoots, draftyear, ...
what is the name of the tallest player?
ice_hockey_draft
select t2.weight_in_kg from playerinfo as t1 inner join weight_info as t2 on t1.weight = t2.weight_id where t1.playername = 'david bornhammar'
Question: how much does david bornhammar weigh in kilograms? | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday, birthplace, nation, height, weight, position_info, shoots, ...
how much does david bornhammar weigh in kilograms?
ice_hockey_draft
select count(t1.eliteid) from playerinfo as t1 inner join weight_info as t2 on t1.weight = t2.weight_id where t2.weight_in_kg > 90
Question: how many players weigh more than 90 kg? | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday, birthplace, nation, height, weight, position_info, shoots, draftyear, ...
how many players weigh more than 90 kg?
ice_hockey_draft
select count(t1.eliteid) from playerinfo as t1 inner join weight_info as t2 on t1.weight = t2.weight_id where t2.weight_in_kg > 90 and t1.position_info = 'd'
Question: among the players that weigh more than 90 kg, how many of them have a position of defense? | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday, birthplace, nation,...
among the players that weigh more than 90 kg, how many of them have a position of defense?
ice_hockey_draft
select t1.playername from playerinfo as t1 inner join weight_info as t2 on t1.weight = t2.weight_id where t2.weight_in_kg > 90 and t1.sum_7yr_gp = ( select max(t1.sum_7yr_gp) from playerinfo as t1 inner join weight_info as t2 on t1.weight = t2.weight_id where t2.weight_in_kg > 90 )
Question: among the players that weigh more than 90 kg, what is the name of the player that has the most attendance in the player's first 7 years of nhl career? | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, bir...
among the players that weigh more than 90 kg, what is the name of the player that has the most attendance in the player's first 7 years of nhl career?
ice_hockey_draft
select t2.weight_in_kg from playerinfo as t1 inner join weight_info as t2 on t1.weight = t2.weight_id where t1.sum_7yr_toi = ( select max(t.sum_7yr_toi) from playerinfo t )
Question: what is the weight of the player with the longest time on ice in the players first 7 years of nhl career in kilograms? | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, b...
what is the weight of the player with the longest time on ice in the players first 7 years of nhl career in kilograms?
ice_hockey_draft
select ( select t2.height_in_cm from playerinfo as t1 inner join height_info as t2 on t1.height = t2.height_id where t1.playername = 'david bornhammar' ) - ( select t2.height_in_cm from playerinfo as t1 inner join height_info as t2 on t1.height = t2.height_id where t1.playername = 'pauli levokari' )
Question: how much taller is david bornhammar than pauli levokari in centimeters? | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday, birthplace, nation, height, weight, po...
how much taller is david bornhammar than pauli levokari in centimeters?
ice_hockey_draft
select count(t1.eliteid) from playerinfo as t1 inner join weight_info as t2 on t1.weight = t2.weight_id where t2.weight_in_kg > 90 and t1.shoots = 'r'
Question: among all the players that are right-shooted, how many of them weigh over 90 kg? | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday, birthplace, nation, height, w...
among all the players that are right-shooted, how many of them weigh over 90 kg?
ice_hockey_draft
select t1.playername from playerinfo as t1 inner join weight_info as t2 on t1.weight = t2.weight_id where t2.weight_in_kg > 90 and t1.shoots = 'r'
Question: please list the names of all the players that are over 90 kg and are right-shooted. | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday, birthplace, nation, height...
please list the names of all the players that are over 90 kg and are right-shooted.
ice_hockey_draft
select cast(t2.weight_in_kg as real) / (cast(t3.height_in_cm as real) / 100 * (cast(t3.height_in_cm as real) / 100)) from playerinfo as t1 inner join weight_info as t2 on t1.weight = t2.weight_id inner join height_info as t3 on t1.height = t3.height_id where t1.playername = 'david bornhammar'
Question: what is the bmi of david bornhammar? | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday, birthplace, nation, height, weight, position_info, shoots, draftyear, dra...
what is the bmi of david bornhammar?
ice_hockey_draft
select cast(sum(t2.height_in_cm) as real) / count(t1.eliteid) from playerinfo as t1 inner join height_info as t2 on t1.height = t2.height_id where t1.position_info = 'd'
Question: what is the average height in centimeters of all the players in the position of defense? | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday, birthplace, nation, h...
what is the average height in centimeters of all the players in the position of defense?
ice_hockey_draft
select max(t2.weight_in_lbs) from playerinfo as t1 inner join weight_info as t2 on t1.weight = t2.weight_id
Question: what is the weight in pounds of the heaviest player? | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday, birthplace, nation, height, weight, position_info, shoots...
what is the weight in pounds of the heaviest player?
ice_hockey_draft
select count(t1.eliteid) from playerinfo as t1 inner join height_info as t2 on t1.height = t2.height_id where t2.height_in_inch = '5''7'' and t1.shoots = 'r'
Question: how many right-shooted players have a height of 5'7''? | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday, birthplace, nation, height, weight, position_info, shoo...
how many right-shooted players have a height of 5'7''?
ice_hockey_draft
select t1.playername from playerinfo as t1 inner join seasonstatus as t2 on t1.eliteid = t2.eliteid where t1.sum_7yr_gp > 500 order by t2.pim desc limit 1
Question: among the players whose total nhl games played in their first 7 years of nhl career is no less than 500, what is the name of the player who committed the most rule violations? | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo ->...
among the players whose total nhl games played in their first 7 years of nhl career is no less than 500, what is the name of the player who committed the most rule violations?
ice_hockey_draft
select t2.height_in_cm from playerinfo as t1 inner join height_info as t2 on t1.height = t2.height_id where t1.birthplace = 'edmonton, ab, can' order by t2.height_in_cm desc limit 1
Question: what is the height in centimeter of the tallest player born in edmonton, alberta, canada? | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday, birthplace, nation, ...
what is the height in centimeter of the tallest player born in edmonton, alberta, canada?
ice_hockey_draft
select count(distinct t1.eliteid) from playerinfo as t1 inner join seasonstatus as t2 on t1.eliteid = t2.eliteid where t1.overallby = 'anaheim ducks' and t1.draftyear = 2008 and t2.team = 'u.s. national u18 team'
Question: how many players, who were drafted by anaheim ducks in 2008, have played for u.s. national u18 team? | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday, birthplac...
how many players, who were drafted by anaheim ducks in 2008, have played for u.s. national u18 team?
ice_hockey_draft
select t3.weight_in_kg from seasonstatus as t1 inner join playerinfo as t2 on t1.eliteid = t2.eliteid inner join weight_info as t3 on t2.weight = t3.weight_id order by t1.plusminus desc limit 1
Question: what is the weight in kilograms of the player with the highest number of goal differential of all time? | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday, birthp...
what is the weight in kilograms of the player with the highest number of goal differential of all time?
ice_hockey_draft
select t2.playername from seasonstatus as t1 inner join playerinfo as t2 on t1.eliteid = t2.eliteid where t1.season between '2004' and '2005' and t1.league = 'qmjhl' order by t1.p desc limit 1
Question: who is the most valuable player in qmjhl league during the 2004-2005 season? | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday, birthplace, nation, height, weigh...
who is the most valuable player in qmjhl league during the 2004-2005 season?
ice_hockey_draft
select t2.playername from seasonstatus as t1 inner join playerinfo as t2 on t1.eliteid = t2.eliteid where t1.season = '1998-1999' and t1.gametype = 'regular season' and t1.team = 'acadie-bathurst titan'
Question: what are the names of the players who played for acadie-bathurst titan during the regular season in 1998-1999? | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday,...
what are the names of the players who played for acadie-bathurst titan during the regular season in 1998-1999?
ice_hockey_draft
select t1.gp from seasonstatus as t1 inner join playerinfo as t2 on t1.eliteid = t2.eliteid where t2.eliteid = ( select t.eliteid from playerinfo t order by t.height desc limit 1 )
Question: how many games did the tallest player have ever played? | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday, birthplace, nation, height, weight, position_info, sho...
how many games did the tallest player have ever played?
ice_hockey_draft
select distinct t2.playername from seasonstatus as t1 inner join playerinfo as t2 on t1.eliteid = t2.eliteid where t1.season = '1997-1998' and t1.league = 'ohl' order by t2.birthdate desc limit 1
Question: who is the youngest player to have played during the 1997-1998 season for ohl league? | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday, birthplace, nation, heig...
who is the youngest player to have played during the 1997-1998 season for ohl league?
ice_hockey_draft
select count(t2.eliteid) from seasonstatus as t1 inner join playerinfo as t2 on t1.eliteid = t2.eliteid where t1.gp = 72 and t2.shoots = 'l'
Question: among the players who played 72 games, how many are left-shooters? | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday, birthplace, nation, height, weight, positio...
among the players who played 72 games, how many are left-shooters?
ice_hockey_draft
select t3.rs_g - t4.pf_g as diff from ( select t2.playername, t1.g as rs_g from seasonstatus as t1 inner join playerinfo as t2 on t1.eliteid = t2.eliteid where t2.playername = 'pavel brendl' and t1.season = '1998-1999' and t1.gametype = 'regular season' ) as t3 inner join ( select t2.playername, t1.g as pf_g from seaso...
Question: what is the difference in the number of goals scored by pavel brendl during the regular season versus the playoffs in the 1998-1999 season? | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, bir...
what is the difference in the number of goals scored by pavel brendl during the regular season versus the playoffs in the 1998-1999 season?
ice_hockey_draft
select cast(sum(t2.weight_in_lbs) as real) / count(t1.eliteid) from playerinfo as t1 inner join weight_info as t2 on t1.weight = t2.weight_id where t1.css_rank = ( select max(css_rank) from playerinfo )
Question: what is the average weight in pounds of all the players with the highest prospects for the draft? | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday, birthplace, ...
what is the average weight in pounds of all the players with the highest prospects for the draft?
ice_hockey_draft
select cast(count(case when gp > 20 then team else null end) as real) * 100 / count(team) from seasonstatus where season = '2007-2008' and gametype = 'playoffs'
Question: among all the teams that made the playoffs in the 2007-2008 season, identify the percentage that played over 20 games. | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, b...
among all the teams that made the playoffs in the 2007-2008 season, identify the percentage that played over 20 games.
ice_hockey_draft
select t2.playername from seasonstatus as t1 inner join playerinfo as t2 on t1.eliteid = t2.eliteid where t1.season = '2007-2008' and t1.league = 'whl' order by t1.g desc limit 1
Question: name the player who scored the most goals in a single game in the 2007-2008 season of whl? | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday, birthplace, nation,...
name the player who scored the most goals in a single game in the 2007-2008 season of whl?
ice_hockey_draft
select t2.playername from seasonstatus as t1 inner join playerinfo as t2 on t1.eliteid = t2.eliteid where t1.team = 'chilliwack chiefs' and t1.p >= 100
Question: name the chilliwack chiefs players who have scored 100 points or more in the nhl. | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday, birthplace, nation, height, ...
name the chilliwack chiefs players who have scored 100 points or more in the nhl.
ice_hockey_draft
select t2.playername from weight_info as t1 inner join playerinfo as t2 on t1.weight_id = t2.weight where t1.weight_in_kg = 120
Question: identify the players who weigh 120 kg. | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday, birthplace, nation, height, weight, position_info, shoots, draftyear, d...
identify the players who weigh 120 kg.
ice_hockey_draft
select t2.playername, t1.height_in_cm from height_info as t1 inner join playerinfo as t2 on t1.height_id = t2.height where t2.height = ( select height from playerinfo where playername = 'brian gionta' )
Question: identify the players with the same height as brian gionta. how tall are they? | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday, birthplace, nation, height, weig...
identify the players with the same height as brian gionta. how tall are they?
ice_hockey_draft
select t2.playername, t2.position_info from seasonstatus as t1 inner join playerinfo as t2 on t1.eliteid = t2.eliteid where t1.pim = ( select max(pim) from seasonstatus )
Question: identify the name and position of the player who has committed the most rule violations. | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday, birthplace, nation, h...
identify the name and position of the player who has committed the most rule violations.
ice_hockey_draft
select t2.playername from seasonstatus as t1 inner join playerinfo as t2 on t1.eliteid = t2.eliteid where t1.p = ( select max(p) from seasonstatus )
Question: name the player who has the most nhl points in draft year. | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday, birthplace, nation, height, weight, position_info, ...
name the player who has the most nhl points in draft year.
ice_hockey_draft
select cast(count(case when nation in ('belarus', 'czech rep.', 'slovakia', 'ukraine') then eliteid else null end) as real) * 100 / count(eliteid) from playerinfo where overallby = 'toronto maple leafs'
Question: among all players drafted by the toronto maple leafs, identify the percentage who are from eastern europe. | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday, bir...
among all players drafted by the toronto maple leafs, identify the percentage who are from eastern europe.
ice_hockey_draft
select playername from playerinfo where overallby = 'toronto maple leafs' and draftyear = '2008' order by css_rank desc limit 1
Question: among all players drafted by the toronto maple leafs in 2008, identify the player with the highest prospects for the draft. | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmon...
among all players drafted by the toronto maple leafs in 2008, identify the player with the highest prospects for the draft.
ice_hockey_draft
select t2.playername, t1.team from seasonstatus as t1 inner join playerinfo as t2 on t1.eliteid = t2.eliteid where t1.season = '2006-2007' and t1.gametype = 'playoffs' and t1.league = 'superelit' order by t1.p desc limit 1
Question: name the player and his team who made the playoffs in the 2006-2007 season of superelit league with the highest points. | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, ...
name the player and his team who made the playoffs in the 2006-2007 season of superelit league with the highest points.
ice_hockey_draft
select count(eliteid) from playerinfo where overallby = 'toronto maple leafs' and sum_7yr_gp > 300
Question: how many players who were drafted by the toronto maple leafs have played over 300 games in their first 7 years of the nhl career? | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, bi...
how many players who were drafted by the toronto maple leafs have played over 300 games in their first 7 years of the nhl career?
ice_hockey_draft
select t3.height_in_cm from seasonstatus as t1 inner join playerinfo as t2 on t1.eliteid = t2.eliteid inner join height_info as t3 on t2.height = t3.height_id where t1.season = '2005-2006' and t1.team = 'yale univ.' and t1.pim = 28
Question: how tall is the player from yale university who picked up 28 penalty minutes in the 2005-2006 season? | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday, birthpla...
how tall is the player from yale university who picked up 28 penalty minutes in the 2005-2006 season?
ice_hockey_draft
select cast(sum(case when t2.playername = 'ian schultz' then t1.g else 0 end) as real) * 100 / sum(t1.g) from seasonstatus as t1 inner join playerinfo as t2 on t1.eliteid = t2.eliteid where t1.season = '2007-2008' and t1.team = 'calgary hitmen'
Question: among all goals scored by calgary hitmen in the 2007-2008 season, identify the percentage scored by ian schultz. | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthda...
among all goals scored by calgary hitmen in the 2007-2008 season, identify the percentage scored by ian schultz.
ice_hockey_draft
select cast(sum(case when t2.playername = 'yevgeni muratov' then t1.pim else 0 end) as real) * 100 / sum(t1.pim) from seasonstatus as t1 inner join playerinfo as t2 on t1.eliteid = t2.eliteid where t1.season = '1999-2000' and t1.team = 'ak bars kazan'
Question: among all penalty minutes picked up by ak bars kazan in the 1999-2000 season, identify the percentage picked up by yevgeni muratov. | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, ...
among all penalty minutes picked up by ak bars kazan in the 1999-2000 season, identify the percentage picked up by yevgeni muratov.
ice_hockey_draft
select birthplace from playerinfo where playername = 'aaron gagnon'
Question: what is the birthplace of aaron gagnon? | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday, birthplace, nation, height, weight, position_info, shoots, draftyear, ...
what is the birthplace of aaron gagnon?
ice_hockey_draft
select t2.weight_in_kg from playerinfo as t1 inner join weight_info as t2 on t1.weight = t2.weight_id where t1.playername = 'tony martensson'
Question: what is the weight in kg of tony martensson? | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday, birthplace, nation, height, weight, position_info, shoots, drafty...
what is the weight in kg of tony martensson?
ice_hockey_draft
select t1.playername from playerinfo as t1 inner join weight_info as t2 on t1.weight = t2.weight_id where t2.weight_in_lbs = 190
Question: list out the name of players who weight 190 lbs. | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday, birthplace, nation, height, weight, position_info, shoots, dr...
list out the name of players who weight 190 lbs.
ice_hockey_draft
select t1.playername from playerinfo as t1 inner join weight_info as t2 on t1.weight = t2.weight_id order by t2.weight_in_kg desc limit 1
Question: who has the heaviest weight? | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday, birthplace, nation, height, weight, position_info, shoots, draftyear, draftround,...
who has the heaviest weight?
ice_hockey_draft
select cast(count(case when t1.nation = 'denmark' and t2.weight_in_lbs > 154 then t1.eliteid else null end) as real) * 100 / count(t1.eliteid) from playerinfo as t1 inner join weight_info as t2 on t1.weight = t2.weight_id
Question: what is the percentage of players who were born in denmark and weight above 154 lbs? | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday, birthplace, nation, heigh...
what is the percentage of players who were born in denmark and weight above 154 lbs?
ice_hockey_draft
select distinct t1.team from seasonstatus as t1 inner join playerinfo as t2 on t1.eliteid = t2.eliteid where t2.playername = 'andreas jamtin'
Question: which team does andreas jamtin belong to? | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday, birthplace, nation, height, weight, position_info, shoots, draftyear...
which team does andreas jamtin belong to?
ice_hockey_draft
select distinct t1.season from seasonstatus as t1 inner join playerinfo as t2 on t1.eliteid = t2.eliteid where t2.playername = 'niklas eckerblom'
Question: list out the seasons that niklas eckerblom played. | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday, birthplace, nation, height, weight, position_info, shoots, ...
list out the seasons that niklas eckerblom played.
ice_hockey_draft
select distinct t1.gametype from seasonstatus as t1 inner join playerinfo as t2 on t1.eliteid = t2.eliteid where t2.playername = 'matthias trattnig'
Question: mention the type of game that matthias trattnig played. | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday, birthplace, nation, height, weight, position_info, sho...
mention the type of game that matthias trattnig played.
ice_hockey_draft
select distinct t2.nation from seasonstatus as t1 inner join playerinfo as t2 on t1.eliteid = t2.eliteid where t1.season = '1997-1998'
Question: list out the nation of players who played for the 1997-1998 season . | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday, birthplace, nation, height, weight, posit...
list out the nation of players who played for the 1997-1998 season .
ice_hockey_draft
select t1.p from seasonstatus as t1 inner join playerinfo as t2 on t1.eliteid = t2.eliteid where t2.playername = 'per mars' order by t1.p desc limit 1
Question: what is the highest point highest point of per mars in the draft year? | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday, birthplace, nation, height, weight, pos...
what is the highest point highest point of per mars in the draft year?
ice_hockey_draft
select t2.playername from height_info as t1 inner join playerinfo as t2 on t1.height_id = t2.height where t2.nation = 'italy' order by t1.height_in_cm asc limit 1
Question: among the italian players, who has the shortest height? | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday, birthplace, nation, height, weight, position_info, sho...
among the italian players, who has the shortest height?
ice_hockey_draft
select t2.playername from height_info as t1 inner join playerinfo as t2 on t1.height_id = t2.height where t1.height_in_inch = '5''8''
Question: list out the name of players who have a height of 5'8'. | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday, birthplace, nation, height, weight, position_info, sho...
list out the name of players who have a height of 5'8'.
ice_hockey_draft
select count(t2.eliteid) from height_info as t1 inner join playerinfo as t2 on t1.height_id = t2.height where t1.height_in_cm > 182 and strftime('%y', t2.birthdate) = '1982'
Question: how many players were born in 1982 and have a height above 182cm? | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday, birthplace, nation, height, weight, position...
how many players were born in 1982 and have a height above 182cm?
ice_hockey_draft
select cast(count(case when t1.height_in_cm < 200 and t2.nation = 'russia' then t2.eliteid else null end) as real) * 100 / count(t2.eliteid) from height_info as t1 inner join playerinfo as t2 on t1.height_id = t2.height
Question: what is the percentage of russian players who have a height of under 200 inch? | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday, birthplace, nation, height, wei...
what is the percentage of russian players who have a height of under 200 inch?
ice_hockey_draft
select t2.playername from weight_info as t1 inner join playerinfo as t2 on t1.weight_id = t2.weight where t2.nation = 'usa' order by t1.weight_in_lbs asc limit 1
Question: among the usa players, who has the lightest weight? | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday, birthplace, nation, height, weight, position_info, shoots,...
among the usa players, who has the lightest weight?
ice_hockey_draft
select t2.playername from seasonstatus as t1 inner join playerinfo as t2 on t1.eliteid = t2.eliteid where t1.season = '2000-2001' order by t1.pim desc limit 1
Question: who among the players in season 2000-2001 has committed the highest rule violations or penalty minutes? | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday, birthp...
who among the players in season 2000-2001 has committed the highest rule violations or penalty minutes?
ice_hockey_draft
select distinct t2.playername from seasonstatus as t1 inner join playerinfo as t2 on t1.eliteid = t2.eliteid where t1.season = '2000-2001' and t1.team = 'avangard omsk'
Question: list the names of all players in team avangard omsk in season 2000-2001. | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday, birthplace, nation, height, weight, p...
list the names of all players in team avangard omsk in season 2000-2001.
ice_hockey_draft
select t2.playername from seasonstatus as t1 inner join playerinfo as t2 on t1.eliteid = t2.eliteid where t2.overallby = 'arizona coyotes' and t2.draftyear = 2000 order by t1.pim desc limit 1
Question: who among the players drafted by arizona coyotes in 2000 has committed the highest rule violations? | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday, birthplace...
who among the players drafted by arizona coyotes in 2000 has committed the highest rule violations?
ice_hockey_draft
select count(t2.eliteid) from height_info as t1 inner join playerinfo as t2 on t1.height_id = t2.height where t2.overallby = 'arizona coyotes' and t1.height_in_cm = 195
Question: how many players were drafted by arizona coyotes whose height reaches 195 centimeters? | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday, birthplace, nation, hei...
how many players were drafted by arizona coyotes whose height reaches 195 centimeters?
ice_hockey_draft
select distinct t2.playername from seasonstatus as t1 inner join playerinfo as t2 on t1.eliteid = t2.eliteid where t1.season = '2000-2001' and t1.team = 'avangard omsk' and t1.gametype = 'playoffs'
Question: list the names of all players from avangard omsk that have played for playoffs in season 2000-2001. | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday, birthplace...
list the names of all players from avangard omsk that have played for playoffs in season 2000-2001.
ice_hockey_draft
select distinct t2.playername from seasonstatus as t1 inner join playerinfo as t2 on t1.eliteid = t2.eliteid where t1.season = '2000-2001' and t1.league = 'international' order by t1.p desc limit 1
Question: who is the most valuable player who played in the 2000-2001 season of the international league? | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday, birthplace, na...
who is the most valuable player who played in the 2000-2001 season of the international league?
ice_hockey_draft
select count(t2.eliteid) from weight_info as t1 inner join playerinfo as t2 on t1.weight_id = t2.weight where t1.weight_in_lbs = 185 and strftime('%y', t2.birthdate) = '1980'
Question: how many players who were born in 1980 weigh 185 in pounds? | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday, birthplace, nation, height, weight, position_info,...
how many players who were born in 1980 weigh 185 in pounds?
ice_hockey_draft
select distinct t2.playername from seasonstatus as t1 inner join playerinfo as t2 on t1.eliteid = t2.eliteid where t1.season = '2000-2001' and t1.league = 'international' order by t1.gp desc limit 1
Question: who has played the most game plays in the 2000-2001 season of the international league? | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday, birthplace, nation, he...
who has played the most game plays in the 2000-2001 season of the international league?
ice_hockey_draft
select t2.playername from seasonstatus as t1 inner join playerinfo as t2 on t1.eliteid = t2.eliteid where t1.season = '2000-2001' and t1.league = 'international' and t1.team = 'czech republic (all)' and t1.g = 0
Question: list the names of all players from avangard omsk who played in the 2000-2001 season of the international league that have no goals in draft year. | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdat...
list the names of all players from avangard omsk who played in the 2000-2001 season of the international league that have no goals in draft year.
ice_hockey_draft
select t2.playername from seasonstatus as t1 inner join playerinfo as t2 on t1.eliteid = t2.eliteid where t1.season = '2000-2001' and t1.gametype = 'regular season' and t1.team = 'avangard omsk' order by t2.birthdate asc limit 1
Question: who is the oldest player who played for avangard omsk during the regular season in 2000-2001? | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday, birthplace, nati...
who is the oldest player who played for avangard omsk during the regular season in 2000-2001?
ice_hockey_draft
select t2.playername from seasonstatus as t1 inner join playerinfo as t2 on t1.eliteid = t2.eliteid where t1.season = '2007-2008' and t1.league = 'ohl' and t1.gametype = 'regular season' order by t1.a desc limit 1
Question: among the players who played in ohl league during the regular season in 2007-2008, who is the player that attained the most number of assist? | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, b...
among the players who played in ohl league during the regular season in 2007-2008, who is the player that attained the most number of assist?
ice_hockey_draft
select count(t2.team) from playerinfo as t1 inner join seasonstatus as t2 on t1.eliteid = t2.eliteid inner join weight_info as t3 on t1.weight = t3.weight_id where t1.overallby = 'arizona coyotes' order by t3.weight_in_lbs desc limit 1
Question: how many teams did the heaviest player drafted by arizona coyotes have played for? | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday, birthplace, nation, height,...
how many teams did the heaviest player drafted by arizona coyotes have played for?
ice_hockey_draft
select cast(sum(t1.weight_in_lbs) as real) / count(t2.eliteid) from weight_info as t1 inner join playerinfo as t2 on t1.weight_id = t2.weight where t2.overallby = 'arizona coyotes'
Question: calculate the average weight in pounds of all players drafted by arizona coyotes. | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday, birthplace, nation, height, ...
calculate the average weight in pounds of all players drafted by arizona coyotes.
ice_hockey_draft
select cast(sum(t1.height_in_cm) as real) / count(t2.eliteid) from height_info as t1 inner join playerinfo as t2 on t1.height_id = t2.height inner join seasonstatus as t3 on t2.eliteid = t3.eliteid where t3.team = 'acadie-bathurst titan' and t3.gametype = 'regular season'
Question: calculate the average height in centimeter of all players who played in acadie-bathurst titan during regular season. | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, bir...
calculate the average height in centimeter of all players who played in acadie-bathurst titan during regular season.
ice_hockey_draft
select t2.gp from playerinfo as t1 inner join seasonstatus as t2 on t1.eliteid = t2.eliteid where t2.season = '1997-1998' and t1.playername = 'pavel patera'
Question: how many games did per mars play in the 1997-1998 season? | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday, birthplace, nation, height, weight, position_info, s...
how many games did per mars play in the 1997-1998 season?
ice_hockey_draft
select t2.weight_in_kg from playerinfo as t1 inner join weight_info as t2 on t1.weight = t2.weight_id where t1.playername = 'pavel patera'
Question: how heavy is matthias trattnig in kilograms? | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday, birthplace, nation, height, weight, position_info, shoots, drafty...
how heavy is matthias trattnig in kilograms?
ice_hockey_draft
select t1.playername from playerinfo as t1 inner join height_info as t2 on t1.height = t2.height_id where t2.height_in_inch > '5''9''
Question: list the name of players who have a height over 5'9. | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday, birthplace, nation, height, weight, position_info, shoots...
list the name of players who have a height over 5'9.
ice_hockey_draft
select t2.team from playerinfo as t1 inner join seasonstatus as t2 on t1.eliteid = t2.eliteid where t2.season = '1997-1998' and t1.playername = 'niko kapanen'
Question: what team did niklas eckerblom play in the 1997-1998 season? | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday, birthplace, nation, height, weight, position_info...
what team did niklas eckerblom play in the 1997-1998 season?
ice_hockey_draft
select t.team from ( select t2.team, count(distinct t1.eliteid) from playerinfo as t1 inner join seasonstatus as t2 on t1.eliteid = t2.eliteid where t1.nation = 'sweden' group by t2.team order by count(distinct t1.eliteid) desc limit 1 ) as t
Question: which team has the most swedish? | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday, birthplace, nation, height, weight, position_info, shoots, draftyear, draftro...
which team has the most swedish?
ice_hockey_draft
select sum(t2.gp) from playerinfo as t1 inner join seasonstatus as t2 on t1.eliteid = t2.eliteid where t1.playername = 'per mars' and t2.gametype = 'playoffs'
Question: how many playoffs did per mars participate in? | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday, birthplace, nation, height, weight, position_info, shoots, draf...
how many playoffs did per mars participate in?
ice_hockey_draft
select t1.playername from playerinfo as t1 inner join seasonstatus as t2 on t1.eliteid = t2.eliteid where t2.team = 'rimouski oceanic' and t2.gametype = 'playoffs' order by t2.g desc limit 1
Question: name the player who had the most goals for team rimouski oceanic in playoff. | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday, birthplace, nation, height, weigh...
name the player who had the most goals for team rimouski oceanic in playoff.
ice_hockey_draft
select t.nation from ( select t1.nation, count(t1.eliteid) from playerinfo as t1 inner join seasonstatus as t2 on t1.eliteid = t2.eliteid where t2.team = 'plymouth whalers' group by t1.nation order by count(t1.eliteid) desc limit 1 ) as t
Question: which country do most players of team plymouth whalers come from? | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday, birthplace, nation, height, weight, position...
which country do most players of team plymouth whalers come from?
ice_hockey_draft
select t1.playername from playerinfo as t1 inner join seasonstatus as t2 on t1.eliteid = t2.eliteid where t2.team = 'plymouth whalers' and t2.season = '1999-2000' order by t2.a desc limit 1
Question: who had the most assists of team plymouth whalers in the 1999-2000 season? | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday, birthplace, nation, height, weight,...
who had the most assists of team plymouth whalers in the 1999-2000 season?
ice_hockey_draft
select t3.height_in_inch from playerinfo as t1 inner join seasonstatus as t2 on t1.eliteid = t2.eliteid inner join height_info as t3 on t1.height = t3.height_id where t2.team = 'oshawa generals'
Question: indicate the height of all players from team oshawa generals in inches. | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday, birthplace, nation, height, weight, po...
indicate the height of all players from team oshawa generals in inches.
ice_hockey_draft
select t1.playername from playerinfo as t1 inner join seasonstatus as t2 on t1.eliteid = t2.eliteid where t2.league = 'ohl' and t2.season = '1999-2000' order by t1.birthdate limit 1
Question: who is the oldest player that participated in ohl league in the 1997 - 2000 season? | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday, birthplace, nation, height...
who is the oldest player that participated in ohl league in the 1997 - 2000 season?
ice_hockey_draft
select t.playername from ( select t1.playername, t3.height_in_cm from playerinfo as t1 inner join seasonstatus as t2 on t1.eliteid = t2.eliteid inner join height_info as t3 on t1.height = t3.height_id where t2.team = 'usa u20' order by t3.height_in_cm desc ) as t where t.height_in_cm = ( select max(t3.height_in_cm) fro...
Question: who is the tallest player in team usa u20? | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday, birthplace, nation, height, weight, position_info, shoots, draftyea...
who is the tallest player in team usa u20?
ice_hockey_draft
select distinct cast(count(case when t1.nation = 'sweden' then t1.eliteid else null end) over (partition by t2.season) as real) * 100 / count(t1.eliteid) over (partition by t2.season) from playerinfo as t1 inner join seasonstatus as t2 on t1.eliteid = t2.eliteid where t2.season in ('1997-1998', '1998-1999', '1999-2000'...
Question: what is the percentage of swedish players in playoffs games in the 1997 - 2000 season? | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday, birthplace, nation, hei...
what is the percentage of swedish players in playoffs games in the 1997 - 2000 season?
ice_hockey_draft
select cast(count(case when t1.nation = 'sweden' then t2.pim else null end) as real) * 100 / count(*) from playerinfo as t1 inner join seasonstatus as t2 on t1.eliteid = t2.eliteid where t2.league = 'ohl'
Question: calculate the percentage of penalty minutes of swedish players in ohl league among all players. | Tables: height_info -> height_id, height_in_cm, height_in_inch. weight_info -> weight_id, weight_in_kg, weight_in_lbs. PlayerInfo -> ELITEID, PlayerName, birthdate, birthyear, birthmonth, birthday, birthplace, na...
calculate the percentage of penalty minutes of swedish players in ohl league among all players.
works_cycles
select avg(t2.standardcost) from product as t1 inner join productcosthistory as t2 on t1.productid = t2.productid where t1.productnumber = 'ca-1098'
Question: what is the average standard cost of product number ca-1098? | Tables: CountryRegion -> CountryRegionCode, Name, ModifiedDate. Culture -> CultureID, Name, ModifiedDate. Currency -> CurrencyCode, Name, ModifiedDate. CountryRegionCurrency -> CountryRegionCode, CurrencyCode, ModifiedDate. Person -> BusinessEntit...
what is the average standard cost of product number ca-1098?