instruction stringlengths 12 244 | input stringlengths 27 489 | output stringlengths 18 557 | text stringlengths 194 1.14k |
|---|---|---|---|
What is number of silver for the country with more than 0 gold, rank of 14, and more than 4 bronze? | CREATE TABLE table_name_81 (silver VARCHAR, bronze VARCHAR, gold VARCHAR, rank VARCHAR) | SELECT COUNT(silver) FROM table_name_81 WHERE gold > 0 AND rank = "14" AND bronze > 4 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_81 (silver VARCHAR, bronze VARCHAR, gold VARCHAR, rank VARCHAR) Question: What is number of silver for the country with more than 0 gold, rank of 14, and more than 4 bronze? [/INST] SELECT COUNT(silve... |
What is the number of gold for the country ranked 19? | CREATE TABLE table_name_19 (gold INTEGER, rank VARCHAR) | SELECT SUM(gold) FROM table_name_19 WHERE rank = "19" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_19 (gold INTEGER, rank VARCHAR) Question: What is the number of gold for the country ranked 19? [/INST] SELECT SUM(gold) FROM table_name_19 WHERE rank = "19" </s> |
What is the least amount of silver when there is less than 0 bronze? | CREATE TABLE table_name_83 (silver INTEGER, bronze INTEGER) | SELECT MIN(silver) FROM table_name_83 WHERE bronze < 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_83 (silver INTEGER, bronze INTEGER) Question: What is the least amount of silver when there is less than 0 bronze? [/INST] SELECT MIN(silver) FROM table_name_83 WHERE bronze < 0 </s> |
What is the most bronze when the total is 14, and there are more than 6 gold? | CREATE TABLE table_name_99 (bronze INTEGER, total VARCHAR, gold VARCHAR) | SELECT MAX(bronze) FROM table_name_99 WHERE total = 14 AND gold > 6 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_99 (bronze INTEGER, total VARCHAR, gold VARCHAR) Question: What is the most bronze when the total is 14, and there are more than 6 gold? [/INST] SELECT MAX(bronze) FROM table_name_99 WHERE total = 14 ... |
Who has 187kg and a Snatch of Clean & Jerk? | CREATE TABLE table_name_79 (snatch VARCHAR) | SELECT 187 AS kg FROM table_name_79 WHERE snatch = "clean & jerk" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_79 (snatch VARCHAR) Question: Who has 187kg and a Snatch of Clean & Jerk? [/INST] SELECT 187 AS kg FROM table_name_79 WHERE snatch = "clean & jerk" </s> |
What is the Reserved for (SC / ST /None) when the constituency number is 203? | CREATE TABLE table_name_81 (reserved_for___sc___st__none_ VARCHAR, constituency_number VARCHAR) | SELECT reserved_for___sc___st__none_ FROM table_name_81 WHERE constituency_number = "203" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_81 (reserved_for___sc___st__none_ VARCHAR, constituency_number VARCHAR) Question: What is the Reserved for (SC / ST /None) when the constituency number is 203? [/INST] SELECT reserved_for___sc___st__n... |
What is the number of electorates (2009) for the Indore district, when reserved for (SC / ST /None) is none, and constituency number is 208? | CREATE TABLE table_name_21 (number_of_electorates__2009_ INTEGER, constituency_number VARCHAR, district VARCHAR, reserved_for___sc___st__none_ VARCHAR) | SELECT SUM(number_of_electorates__2009_) FROM table_name_21 WHERE district = "indore" AND reserved_for___sc___st__none_ = "none" AND constituency_number = "208" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_21 (number_of_electorates__2009_ INTEGER, constituency_number VARCHAR, district VARCHAR, reserved_for___sc___st__none_ VARCHAR) Question: What is the number of electorates (2009) for the Indore distri... |
What percentage of users were using other browsers according to the source that reported 21.22% were using Firefox? | CREATE TABLE table_name_95 (other VARCHAR, firefox VARCHAR) | SELECT other FROM table_name_95 WHERE firefox = "21.22%" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (other VARCHAR, firefox VARCHAR) Question: What percentage of users were using other browsers according to the source that reported 21.22% were using Firefox? [/INST] SELECT other FROM table_name_9... |
According to W3Counter, what percentage of browsers used Firefox? | CREATE TABLE table_name_60 (firefox VARCHAR, source VARCHAR) | SELECT firefox FROM table_name_60 WHERE source = "w3counter" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_60 (firefox VARCHAR, source VARCHAR) Question: According to W3Counter, what percentage of browsers used Firefox? [/INST] SELECT firefox FROM table_name_60 WHERE source = "w3counter" </s> |
What percentage of users were using Firefox according to the source that reported 21.70% used Internet Explorer? | CREATE TABLE table_name_22 (firefox VARCHAR, internet_explorer VARCHAR) | SELECT firefox FROM table_name_22 WHERE internet_explorer = "21.70%" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_22 (firefox VARCHAR, internet_explorer VARCHAR) Question: What percentage of users were using Firefox according to the source that reported 21.70% used Internet Explorer? [/INST] SELECT firefox FROM t... |
Which source reported 32.60% of browsers used Chrome? | CREATE TABLE table_name_43 (source VARCHAR, chrome VARCHAR) | SELECT source FROM table_name_43 WHERE chrome = "32.60%" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_43 (source VARCHAR, chrome VARCHAR) Question: Which source reported 32.60% of browsers used Chrome? [/INST] SELECT source FROM table_name_43 WHERE chrome = "32.60%" </s> |
What percentage of users were using Firefox according to the source that reported 15.40% used Safari? | CREATE TABLE table_name_66 (firefox VARCHAR, safari VARCHAR) | SELECT firefox FROM table_name_66 WHERE safari = "15.40%" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_66 (firefox VARCHAR, safari VARCHAR) Question: What percentage of users were using Firefox according to the source that reported 15.40% used Safari? [/INST] SELECT firefox FROM table_name_66 WHERE saf... |
What percentage of users were using Internet Explorer according to the source that reported 20.01% used Firefox? | CREATE TABLE table_name_53 (internet_explorer VARCHAR, firefox VARCHAR) | SELECT internet_explorer FROM table_name_53 WHERE firefox = "20.01%" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_53 (internet_explorer VARCHAR, firefox VARCHAR) Question: What percentage of users were using Internet Explorer according to the source that reported 20.01% used Firefox? [/INST] SELECT internet_explo... |
How many points did team Rothmans Honda have in 1992? | CREATE TABLE table_name_7 (points INTEGER, team VARCHAR, year VARCHAR) | SELECT MIN(points) FROM table_name_7 WHERE team = "rothmans honda" AND year = 1992 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (points INTEGER, team VARCHAR, year VARCHAR) Question: How many points did team Rothmans Honda have in 1992? [/INST] SELECT MIN(points) FROM table_name_7 WHERE team = "rothmans honda" AND year = 199... |
What class before 1990 has points of 33? | CREATE TABLE table_name_66 (class VARCHAR, year VARCHAR, points VARCHAR) | SELECT class FROM table_name_66 WHERE year < 1990 AND points = 33 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_66 (class VARCHAR, year VARCHAR, points VARCHAR) Question: What class before 1990 has points of 33? [/INST] SELECT class FROM table_name_66 WHERE year < 1990 AND points = 33 </s> |
How many total points were in 1992? | CREATE TABLE table_name_74 (points VARCHAR, year VARCHAR) | SELECT COUNT(points) FROM table_name_74 WHERE year = 1992 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_74 (points VARCHAR, year VARCHAR) Question: How many total points were in 1992? [/INST] SELECT COUNT(points) FROM table_name_74 WHERE year = 1992 </s> |
In 1992, what class has higher wins than 0? | CREATE TABLE table_name_58 (class VARCHAR, wins VARCHAR, year VARCHAR) | SELECT class FROM table_name_58 WHERE wins > 0 AND year = 1992 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_58 (class VARCHAR, wins VARCHAR, year VARCHAR) Question: In 1992, what class has higher wins than 0? [/INST] SELECT class FROM table_name_58 WHERE wins > 0 AND year = 1992 </s> |
What was the class that team Honda Britain was in with points higher than 0? | CREATE TABLE table_name_34 (class VARCHAR, team VARCHAR, points VARCHAR) | SELECT class FROM table_name_34 WHERE team = "honda britain" AND points > 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_34 (class VARCHAR, team VARCHAR, points VARCHAR) Question: What was the class that team Honda Britain was in with points higher than 0? [/INST] SELECT class FROM table_name_34 WHERE team = "honda brit... |
Which FA Cup Goals have League Cup Apps larger than 0, and a Name of trevor cherry? | CREATE TABLE table_name_55 (fa_cup_goals INTEGER, league_cup_apps VARCHAR, name VARCHAR) | SELECT MAX(fa_cup_goals) FROM table_name_55 WHERE league_cup_apps > 0 AND name = "trevor cherry" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_55 (fa_cup_goals INTEGER, league_cup_apps VARCHAR, name VARCHAR) Question: Which FA Cup Goals have League Cup Apps larger than 0, and a Name of trevor cherry? [/INST] SELECT MAX(fa_cup_goals) FROM tab... |
How many League Goals have League Cup Goals smaller than 0? | CREATE TABLE table_name_43 (league_goals INTEGER, league_cup_goals INTEGER) | SELECT SUM(league_goals) FROM table_name_43 WHERE league_cup_goals < 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_43 (league_goals INTEGER, league_cup_goals INTEGER) Question: How many League Goals have League Cup Goals smaller than 0? [/INST] SELECT SUM(league_goals) FROM table_name_43 WHERE league_cup_goals < 0... |
What's the 2009 of the Australian Open having a 1R in 2011? | CREATE TABLE table_name_56 (tournament VARCHAR) | SELECT 2009 FROM table_name_56 WHERE 2011 = "1r" AND tournament = "australian open" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_56 (tournament VARCHAR) Question: What's the 2009 of the Australian Open having a 1R in 2011? [/INST] SELECT 2009 FROM table_name_56 WHERE 2011 = "1r" AND tournament = "australian open" </s> |
What's the 2008 of the Australian Open when the 2011 was 1R? | CREATE TABLE table_name_87 (tournament VARCHAR) | SELECT 2008 FROM table_name_87 WHERE 2011 = "1r" AND tournament = "australian open" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_87 (tournament VARCHAR) Question: What's the 2008 of the Australian Open when the 2011 was 1R? [/INST] SELECT 2008 FROM table_name_87 WHERE 2011 = "1r" AND tournament = "australian open" </s> |
What's the 2008 of the US Open when 2010 was 2R and 2011 was 1R? | CREATE TABLE table_name_17 (tournament VARCHAR) | SELECT 2008 FROM table_name_17 WHERE 2011 = "1r" AND 2010 = "2r" AND tournament = "us open" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_17 (tournament VARCHAR) Question: What's the 2008 of the US Open when 2010 was 2R and 2011 was 1R? [/INST] SELECT 2008 FROM table_name_17 WHERE 2011 = "1r" AND 2010 = "2r" AND tournament = "us open" <... |
What is the lowest number of episodes in a series with an airing date of 12 jan- 6 feb? | CREATE TABLE table_name_22 (number_of_episodes INTEGER, airing_date VARCHAR) | SELECT MIN(number_of_episodes) FROM table_name_22 WHERE airing_date = "12 jan- 6 feb" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_22 (number_of_episodes INTEGER, airing_date VARCHAR) Question: What is the lowest number of episodes in a series with an airing date of 12 jan- 6 feb? [/INST] SELECT MIN(number_of_episodes) FROM table... |
What tournament has petra mandula patricia wartusch as the opponent in the final? | CREATE TABLE table_name_40 (tournament VARCHAR, opponent_in_the_final VARCHAR) | SELECT tournament FROM table_name_40 WHERE opponent_in_the_final = "petra mandula patricia wartusch" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (tournament VARCHAR, opponent_in_the_final VARCHAR) Question: What tournament has petra mandula patricia wartusch as the opponent in the final? [/INST] SELECT tournament FROM table_name_40 WHERE op... |
What date has kimberly po nathalie tauziat as the opponent in the final? | CREATE TABLE table_name_92 (date VARCHAR, opponent_in_the_final VARCHAR) | SELECT date FROM table_name_92 WHERE opponent_in_the_final = "kimberly po nathalie tauziat" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_92 (date VARCHAR, opponent_in_the_final VARCHAR) Question: What date has kimberly po nathalie tauziat as the opponent in the final? [/INST] SELECT date FROM table_name_92 WHERE opponent_in_the_final =... |
What score has February 12, 2006 as the date? | CREATE TABLE table_name_38 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_38 WHERE date = "february 12, 2006" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_38 (score VARCHAR, date VARCHAR) Question: What score has February 12, 2006 as the date? [/INST] SELECT score FROM table_name_38 WHERE date = "february 12, 2006" </s> |
What opponent in the final has October 9, 2005 as the date? | CREATE TABLE table_name_69 (opponent_in_the_final VARCHAR, date VARCHAR) | SELECT opponent_in_the_final FROM table_name_69 WHERE date = "october 9, 2005" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_69 (opponent_in_the_final VARCHAR, date VARCHAR) Question: What opponent in the final has October 9, 2005 as the date? [/INST] SELECT opponent_in_the_final FROM table_name_69 WHERE date = "october 9, ... |
What is the to par for Bo Bae Song? | CREATE TABLE table_name_20 (to_par VARCHAR, player VARCHAR) | SELECT to_par FROM table_name_20 WHERE player = "bo bae song" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_20 (to_par VARCHAR, player VARCHAR) Question: What is the to par for Bo Bae Song? [/INST] SELECT to_par FROM table_name_20 WHERE player = "bo bae song" </s> |
What is the to par for Jiyai Shin when the place is t1? | CREATE TABLE table_name_70 (to_par VARCHAR, place VARCHAR, player VARCHAR) | SELECT to_par FROM table_name_70 WHERE place = "t1" AND player = "jiyai shin" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_70 (to_par VARCHAR, place VARCHAR, player VARCHAR) Question: What is the to par for Jiyai Shin when the place is t1? [/INST] SELECT to_par FROM table_name_70 WHERE place = "t1" AND player = "jiyai shi... |
What is the to par for Jiyai Shin in place t1? | CREATE TABLE table_name_49 (to_par VARCHAR, place VARCHAR, player VARCHAR) | SELECT to_par FROM table_name_49 WHERE place = "t1" AND player = "jiyai shin" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_49 (to_par VARCHAR, place VARCHAR, player VARCHAR) Question: What is the to par for Jiyai Shin in place t1? [/INST] SELECT to_par FROM table_name_49 WHERE place = "t1" AND player = "jiyai shin" </s> |
What was Laura Diaz's score for place t9? | CREATE TABLE table_name_72 (score VARCHAR, place VARCHAR, player VARCHAR) | SELECT score FROM table_name_72 WHERE place = "t9" AND player = "laura diaz" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_72 (score VARCHAR, place VARCHAR, player VARCHAR) Question: What was Laura Diaz's score for place t9? [/INST] SELECT score FROM table_name_72 WHERE place = "t9" AND player = "laura diaz" </s> |
What country does Bo Bae Song play for? | CREATE TABLE table_name_65 (country VARCHAR, player VARCHAR) | SELECT country FROM table_name_65 WHERE player = "bo bae song" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_65 (country VARCHAR, player VARCHAR) Question: What country does Bo Bae Song play for? [/INST] SELECT country FROM table_name_65 WHERE player = "bo bae song" </s> |
How many gold medals did Brazil win with a total of more than 55 medals? | CREATE TABLE table_name_37 (gold INTEGER, nation VARCHAR, total VARCHAR) | SELECT AVG(gold) FROM table_name_37 WHERE nation = "brazil" AND total > 55 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_37 (gold INTEGER, nation VARCHAR, total VARCHAR) Question: How many gold medals did Brazil win with a total of more than 55 medals? [/INST] SELECT AVG(gold) FROM table_name_37 WHERE nation = "brazil" ... |
How many teams won more than 2 silver medals and fewer than 2 Bronze medals? | CREATE TABLE table_name_38 (rank VARCHAR, silver VARCHAR, bronze VARCHAR) | SELECT COUNT(rank) FROM table_name_38 WHERE silver > 2 AND bronze < 2 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_38 (rank VARCHAR, silver VARCHAR, bronze VARCHAR) Question: How many teams won more than 2 silver medals and fewer than 2 Bronze medals? [/INST] SELECT COUNT(rank) FROM table_name_38 WHERE silver > 2 ... |
What is the fewest gold medals won by Greece? | CREATE TABLE table_name_92 (gold INTEGER, nation VARCHAR) | SELECT MIN(gold) FROM table_name_92 WHERE nation = "greece" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_92 (gold INTEGER, nation VARCHAR) Question: What is the fewest gold medals won by Greece? [/INST] SELECT MIN(gold) FROM table_name_92 WHERE nation = "greece" </s> |
What is the lowest rank of the United States, with fewer than 4 bronze medals? | CREATE TABLE table_name_55 (rank INTEGER, nation VARCHAR, bronze VARCHAR) | SELECT MIN(rank) FROM table_name_55 WHERE nation = "united states" AND bronze < 4 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_55 (rank INTEGER, nation VARCHAR, bronze VARCHAR) Question: What is the lowest rank of the United States, with fewer than 4 bronze medals? [/INST] SELECT MIN(rank) FROM table_name_55 WHERE nation = "u... |
What is the highest number of gold medals won by a team that won fewer than 2 silver and fewer than 4 bronze medals? | CREATE TABLE table_name_83 (gold INTEGER, silver VARCHAR, bronze VARCHAR) | SELECT MAX(gold) FROM table_name_83 WHERE silver < 2 AND bronze < 4 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_83 (gold INTEGER, silver VARCHAR, bronze VARCHAR) Question: What is the highest number of gold medals won by a team that won fewer than 2 silver and fewer than 4 bronze medals? [/INST] SELECT MAX(gold... |
Which React has a Lane smaller than 4, and a Rank larger than 4, and a Time larger than 23.22? | CREATE TABLE table_name_72 (react INTEGER, time VARCHAR, lane VARCHAR, rank VARCHAR) | SELECT AVG(react) FROM table_name_72 WHERE lane < 4 AND rank > 4 AND time > 23.22 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_72 (react INTEGER, time VARCHAR, lane VARCHAR, rank VARCHAR) Question: Which React has a Lane smaller than 4, and a Rank larger than 4, and a Time larger than 23.22? [/INST] SELECT AVG(react) FROM tab... |
What shows for against when draws are 0, and losses are 16? | CREATE TABLE table_name_67 (against INTEGER, draws VARCHAR, losses VARCHAR) | SELECT AVG(against) FROM table_name_67 WHERE draws = 0 AND losses = 16 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_67 (against INTEGER, draws VARCHAR, losses VARCHAR) Question: What shows for against when draws are 0, and losses are 16? [/INST] SELECT AVG(against) FROM table_name_67 WHERE draws = 0 AND losses = 16... |
What is the highest number of wins when draws are larger than 1, and byes are larger than 0? | CREATE TABLE table_name_59 (wins INTEGER, draws VARCHAR, byes VARCHAR) | SELECT MAX(wins) FROM table_name_59 WHERE draws > 1 AND byes > 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_59 (wins INTEGER, draws VARCHAR, byes VARCHAR) Question: What is the highest number of wins when draws are larger than 1, and byes are larger than 0? [/INST] SELECT MAX(wins) FROM table_name_59 WHERE ... |
Which team were runners-up in 2007 and had 1 under winners? | CREATE TABLE table_name_24 (team VARCHAR, winners VARCHAR, years_runners_up VARCHAR) | SELECT team FROM table_name_24 WHERE winners = 1 AND years_runners_up = "2007" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_24 (team VARCHAR, winners VARCHAR, years_runners_up VARCHAR) Question: Which team were runners-up in 2007 and had 1 under winners? [/INST] SELECT team FROM table_name_24 WHERE winners = 1 AND years_ru... |
What is the sum of winners when 1983 is the years won? | CREATE TABLE table_name_31 (winners VARCHAR, years_won VARCHAR) | SELECT COUNT(winners) FROM table_name_31 WHERE years_won = "1983" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_31 (winners VARCHAR, years_won VARCHAR) Question: What is the sum of winners when 1983 is the years won? [/INST] SELECT COUNT(winners) FROM table_name_31 WHERE years_won = "1983" </s> |
Which Rank has a Total of 12? | CREATE TABLE table_name_72 (rank INTEGER, total VARCHAR) | SELECT AVG(rank) FROM table_name_72 WHERE total = 12 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_72 (rank INTEGER, total VARCHAR) Question: Which Rank has a Total of 12? [/INST] SELECT AVG(rank) FROM table_name_72 WHERE total = 12 </s> |
Which Rank has an Opposition of limerick? | CREATE TABLE table_name_12 (rank VARCHAR, opposition VARCHAR) | SELECT rank FROM table_name_12 WHERE opposition = "limerick" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_12 (rank VARCHAR, opposition VARCHAR) Question: Which Rank has an Opposition of limerick? [/INST] SELECT rank FROM table_name_12 WHERE opposition = "limerick" </s> |
How much Rank has a Tally of 0-10, and an Opposition of cork? | CREATE TABLE table_name_37 (rank VARCHAR, tally VARCHAR, opposition VARCHAR) | SELECT COUNT(rank) FROM table_name_37 WHERE tally = "0-10" AND opposition = "cork" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_37 (rank VARCHAR, tally VARCHAR, opposition VARCHAR) Question: How much Rank has a Tally of 0-10, and an Opposition of cork? [/INST] SELECT COUNT(rank) FROM table_name_37 WHERE tally = "0-10" AND oppo... |
Which Total has a Rank smaller than 3, and a County of cork? | CREATE TABLE table_name_18 (total INTEGER, rank VARCHAR, county VARCHAR) | SELECT MIN(total) FROM table_name_18 WHERE rank < 3 AND county = "cork" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_18 (total INTEGER, rank VARCHAR, county VARCHAR) Question: Which Total has a Rank smaller than 3, and a County of cork? [/INST] SELECT MIN(total) FROM table_name_18 WHERE rank < 3 AND county = "cork" ... |
Which Rank has a Tally of 4-0? | CREATE TABLE table_name_36 (rank INTEGER, tally VARCHAR) | SELECT AVG(rank) FROM table_name_36 WHERE tally = "4-0" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_36 (rank INTEGER, tally VARCHAR) Question: Which Rank has a Tally of 4-0? [/INST] SELECT AVG(rank) FROM table_name_36 WHERE tally = "4-0" </s> |
Which Lane has a Rank larger than 3, and a Time larger than 45.63, and a Reaction smaller than 0.28800000000000003, and an Athlete of geiner mosquera? | CREATE TABLE table_name_60 (lane INTEGER, athlete VARCHAR, react VARCHAR, rank VARCHAR, time VARCHAR) | SELECT MAX(lane) FROM table_name_60 WHERE rank > 3 AND time > 45.63 AND react < 0.28800000000000003 AND athlete = "geiner mosquera" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_60 (lane INTEGER, athlete VARCHAR, react VARCHAR, rank VARCHAR, time VARCHAR) Question: Which Lane has a Rank larger than 3, and a Time larger than 45.63, and a Reaction smaller than 0.288000000000000... |
How many reactions have an Athlete of alleyne francique, and a Lane larger than 9? | CREATE TABLE table_name_24 (react VARCHAR, athlete VARCHAR, lane VARCHAR) | SELECT COUNT(react) FROM table_name_24 WHERE athlete = "alleyne francique" AND lane > 9 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_24 (react VARCHAR, athlete VARCHAR, lane VARCHAR) Question: How many reactions have an Athlete of alleyne francique, and a Lane larger than 9? [/INST] SELECT COUNT(react) FROM table_name_24 WHERE athl... |
What yeae has 6-08 (24) as a waterford score? | CREATE TABLE table_name_67 (year VARCHAR, waterford_score VARCHAR) | SELECT year FROM table_name_67 WHERE waterford_score = "6-08 (24)" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_67 (year VARCHAR, waterford_score VARCHAR) Question: What yeae has 6-08 (24) as a waterford score? [/INST] SELECT year FROM table_name_67 WHERE waterford_score = "6-08 (24)" </s> |
What is the lowest year that has all-ireland hurling final as the competition, and 6-08 (24) as the waterford score? | CREATE TABLE table_name_95 (year INTEGER, competition VARCHAR, waterford_score VARCHAR) | SELECT MIN(year) FROM table_name_95 WHERE competition = "all-ireland hurling final" AND waterford_score = "6-08 (24)" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (year INTEGER, competition VARCHAR, waterford_score VARCHAR) Question: What is the lowest year that has all-ireland hurling final as the competition, and 6-08 (24) as the waterford score? [/INST] S... |
What is the waterford score that has a year prior to 1963, with all-ireland hurling final replay as the competition? | CREATE TABLE table_name_7 (waterford_score VARCHAR, year VARCHAR, competition VARCHAR) | SELECT waterford_score FROM table_name_7 WHERE year < 1963 AND competition = "all-ireland hurling final replay" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (waterford_score VARCHAR, year VARCHAR, competition VARCHAR) Question: What is the waterford score that has a year prior to 1963, with all-ireland hurling final replay as the competition? [/INST] SE... |
What rounds did RML Racing Silverline and James Nash compete? | CREATE TABLE table_name_28 (rounds VARCHAR, team VARCHAR, drivers VARCHAR) | SELECT rounds FROM table_name_28 WHERE team = "rml racing silverline" AND drivers = "james nash" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_28 (rounds VARCHAR, team VARCHAR, drivers VARCHAR) Question: What rounds did RML Racing Silverline and James Nash compete? [/INST] SELECT rounds FROM table_name_28 WHERE team = "rml racing silverline"... |
What class is Rob Collard in? | CREATE TABLE table_name_28 (class VARCHAR, drivers VARCHAR) | SELECT class FROM table_name_28 WHERE drivers = "rob collard" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_28 (class VARCHAR, drivers VARCHAR) Question: What class is Rob Collard in? [/INST] SELECT class FROM table_name_28 WHERE drivers = "rob collard" </s> |
What is the car specs for team Airwaves BMW's driver Rob Collard? | CREATE TABLE table_name_68 (car_spec VARCHAR, team VARCHAR, drivers VARCHAR) | SELECT car_spec FROM table_name_68 WHERE team = "airwaves bmw" AND drivers = "rob collard" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_68 (car_spec VARCHAR, team VARCHAR, drivers VARCHAR) Question: What is the car specs for team Airwaves BMW's driver Rob Collard? [/INST] SELECT car_spec FROM table_name_68 WHERE team = "airwaves bmw" ... |
What is the language of TV3? | CREATE TABLE table_name_83 (language VARCHAR, name VARCHAR) | SELECT language FROM table_name_83 WHERE name = "tv3" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_83 (language VARCHAR, name VARCHAR) Question: What is the language of TV3? [/INST] SELECT language FROM table_name_83 WHERE name = "tv3" </s> |
What is the group of ESPN International Sports? | CREATE TABLE table_name_70 (group VARCHAR, name VARCHAR) | SELECT group FROM table_name_70 WHERE name = "espn international sports" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_70 (group VARCHAR, name VARCHAR) Question: What is the group of ESPN International Sports? [/INST] SELECT group FROM table_name_70 WHERE name = "espn international sports" </s> |
What is the type of station for ESPN International Sports? | CREATE TABLE table_name_74 (type VARCHAR, name VARCHAR) | SELECT type FROM table_name_74 WHERE name = "espn international sports" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_74 (type VARCHAR, name VARCHAR) Question: What is the type of station for ESPN International Sports? [/INST] SELECT type FROM table_name_74 WHERE name = "espn international sports" </s> |
What is the type of station that is in the movies group? | CREATE TABLE table_name_18 (type VARCHAR, group VARCHAR) | SELECT type FROM table_name_18 WHERE group = "movies" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_18 (type VARCHAR, group VARCHAR) Question: What is the type of station that is in the movies group? [/INST] SELECT type FROM table_name_18 WHERE group = "movies" </s> |
What is the name of the person with a total of 22? | CREATE TABLE table_name_6 (name VARCHAR, total VARCHAR) | SELECT name FROM table_name_6 WHERE total = 22 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_6 (name VARCHAR, total VARCHAR) Question: What is the name of the person with a total of 22? [/INST] SELECT name FROM table_name_6 WHERE total = 22 </s> |
What's the nationality of Henry Carr having a time of 20.3y? | CREATE TABLE table_name_82 (nationality VARCHAR, athlete VARCHAR, time VARCHAR) | SELECT nationality FROM table_name_82 WHERE athlete = "henry carr" AND time = "20.3y" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_82 (nationality VARCHAR, athlete VARCHAR, time VARCHAR) Question: What's the nationality of Henry Carr having a time of 20.3y? [/INST] SELECT nationality FROM table_name_82 WHERE athlete = "henry carr... |
What's the nationality of Livio Berruti? | CREATE TABLE table_name_53 (nationality VARCHAR, athlete VARCHAR) | SELECT nationality FROM table_name_53 WHERE athlete = "livio berruti" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_53 (nationality VARCHAR, athlete VARCHAR) Question: What's the nationality of Livio Berruti? [/INST] SELECT nationality FROM table_name_53 WHERE athlete = "livio berruti" </s> |
What's the nationality of Ray norton with a time of 20.6? | CREATE TABLE table_name_70 (nationality VARCHAR, time VARCHAR, athlete VARCHAR) | SELECT nationality FROM table_name_70 WHERE time = "20.6" AND athlete = "ray norton" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_70 (nationality VARCHAR, time VARCHAR, athlete VARCHAR) Question: What's the nationality of Ray norton with a time of 20.6? [/INST] SELECT nationality FROM table_name_70 WHERE time = "20.6" AND athlet... |
What is the sum of the prominence in m of slovakia? | CREATE TABLE table_name_39 (prominence__m_ INTEGER, country VARCHAR) | SELECT SUM(prominence__m_) FROM table_name_39 WHERE country = "slovakia" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_39 (prominence__m_ INTEGER, country VARCHAR) Question: What is the sum of the prominence in m of slovakia? [/INST] SELECT SUM(prominence__m_) FROM table_name_39 WHERE country = "slovakia" </s> |
What is the prominence in m of a col in m greater than 738? | CREATE TABLE table_name_57 (prominence__m_ VARCHAR, col__m_ INTEGER) | SELECT prominence__m_ FROM table_name_57 WHERE col__m_ > 738 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_57 (prominence__m_ VARCHAR, col__m_ INTEGER) Question: What is the prominence in m of a col in m greater than 738? [/INST] SELECT prominence__m_ FROM table_name_57 WHERE col__m_ > 738 </s> |
Whta is the lowest col in m of gerlachovský štít peak, which has an elevation greater than 2,655 m? | CREATE TABLE table_name_69 (col__m_ INTEGER, peak VARCHAR, elevation__m_ VARCHAR) | SELECT MIN(col__m_) FROM table_name_69 WHERE peak = "gerlachovský štít" AND elevation__m_ > 2 OFFSET 655 ROWS | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_69 (col__m_ INTEGER, peak VARCHAR, elevation__m_ VARCHAR) Question: Whta is the lowest col in m of gerlachovský štít peak, which has an elevation greater than 2,655 m? [/INST] SELECT MIN(col__m_) FROM... |
What is the average prominence in m of pietrosul rodnei peak, which has an elevation less than 2,303? | CREATE TABLE table_name_48 (prominence__m_ INTEGER, peak VARCHAR, elevation__m_ VARCHAR) | SELECT AVG(prominence__m_) FROM table_name_48 WHERE peak = "pietrosul rodnei" AND elevation__m_ < 2 OFFSET 303 ROWS | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_48 (prominence__m_ INTEGER, peak VARCHAR, elevation__m_ VARCHAR) Question: What is the average prominence in m of pietrosul rodnei peak, which has an elevation less than 2,303? [/INST] SELECT AVG(prom... |
What is the Score of the Shooter with a Comp of OG? | CREATE TABLE table_name_9 (score VARCHAR, comp VARCHAR) | SELECT score FROM table_name_9 WHERE comp = "og" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_9 (score VARCHAR, comp VARCHAR) Question: What is the Score of the Shooter with a Comp of OG? [/INST] SELECT score FROM table_name_9 WHERE comp = "og" </s> |
What is the B Score when the total is more than 16.125, and position is 3rd? | CREATE TABLE table_name_70 (b_score INTEGER, total VARCHAR, position VARCHAR) | SELECT SUM(b_score) FROM table_name_70 WHERE total > 16.125 AND position = "3rd" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_70 (b_score INTEGER, total VARCHAR, position VARCHAR) Question: What is the B Score when the total is more than 16.125, and position is 3rd? [/INST] SELECT SUM(b_score) FROM table_name_70 WHERE total ... |
What is the lowest A Score when the B Score is 9.15, and total is 16.05? | CREATE TABLE table_name_61 (a_score INTEGER, b_score VARCHAR, total VARCHAR) | SELECT MIN(a_score) FROM table_name_61 WHERE b_score = 9.15 AND total = 16.05 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_61 (a_score INTEGER, b_score VARCHAR, total VARCHAR) Question: What is the lowest A Score when the B Score is 9.15, and total is 16.05? [/INST] SELECT MIN(a_score) FROM table_name_61 WHERE b_score = 9... |
Who had a time of 7:14.64? | CREATE TABLE table_name_39 (athlete VARCHAR, time VARCHAR) | SELECT athlete FROM table_name_39 WHERE time = "7:14.64" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_39 (athlete VARCHAR, time VARCHAR) Question: Who had a time of 7:14.64? [/INST] SELECT athlete FROM table_name_39 WHERE time = "7:14.64" </s> |
What rank was Lassi Karonen? | CREATE TABLE table_name_9 (rank VARCHAR, athlete VARCHAR) | SELECT COUNT(rank) FROM table_name_9 WHERE athlete = "lassi karonen" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_9 (rank VARCHAR, athlete VARCHAR) Question: What rank was Lassi Karonen? [/INST] SELECT COUNT(rank) FROM table_name_9 WHERE athlete = "lassi karonen" </s> |
What was the rank when then time was 7:52.53? | CREATE TABLE table_name_10 (rank INTEGER, time VARCHAR) | SELECT MIN(rank) FROM table_name_10 WHERE time = "7:52.53" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_10 (rank INTEGER, time VARCHAR) Question: What was the rank when then time was 7:52.53? [/INST] SELECT MIN(rank) FROM table_name_10 WHERE time = "7:52.53" </s> |
Who was the athlete from Germany with notes of Q? | CREATE TABLE table_name_73 (athlete VARCHAR, notes VARCHAR, country VARCHAR) | SELECT athlete FROM table_name_73 WHERE notes = "q" AND country = "germany" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_73 (athlete VARCHAR, notes VARCHAR, country VARCHAR) Question: Who was the athlete from Germany with notes of Q? [/INST] SELECT athlete FROM table_name_73 WHERE notes = "q" AND country = "germany" </s... |
What rank is Germany? | CREATE TABLE table_name_74 (rank VARCHAR, country VARCHAR) | SELECT rank FROM table_name_74 WHERE country = "germany" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_74 (rank VARCHAR, country VARCHAR) Question: What rank is Germany? [/INST] SELECT rank FROM table_name_74 WHERE country = "germany" </s> |
Who was the athlete from Hong Kong? | CREATE TABLE table_name_71 (athlete VARCHAR, country VARCHAR) | SELECT athlete FROM table_name_71 WHERE country = "hong kong" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_71 (athlete VARCHAR, country VARCHAR) Question: Who was the athlete from Hong Kong? [/INST] SELECT athlete FROM table_name_71 WHERE country = "hong kong" </s> |
Which school has a mascot of the Blazers and in the Northeast Corner conference? | CREATE TABLE table_name_75 (school VARCHAR, conference_joined VARCHAR, mascot VARCHAR) | SELECT school FROM table_name_75 WHERE conference_joined = "northeast corner" AND mascot = "blazers" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_75 (school VARCHAR, conference_joined VARCHAR, mascot VARCHAR) Question: Which school has a mascot of the Blazers and in the Northeast Corner conference? [/INST] SELECT school FROM table_name_75 WHERE... |
Which mascot has an IHSAA Class and Football class of 2A/2A? | CREATE TABLE table_name_80 (mascot VARCHAR, ihsaa_class___football_class VARCHAR) | SELECT mascot FROM table_name_80 WHERE ihsaa_class___football_class = "2a/2a" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_80 (mascot VARCHAR, ihsaa_class___football_class VARCHAR) Question: Which mascot has an IHSAA Class and Football class of 2A/2A? [/INST] SELECT mascot FROM table_name_80 WHERE ihsaa_class___football_c... |
Which player was selected in rounds under 3? | CREATE TABLE table_name_33 (player VARCHAR, round INTEGER) | SELECT player FROM table_name_33 WHERE round < 3 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_33 (player VARCHAR, round INTEGER) Question: Which player was selected in rounds under 3? [/INST] SELECT player FROM table_name_33 WHERE round < 3 </s> |
Which Water (sqmi) has a Pop (2010) of 359, and a Longitude smaller than -97.176811? | CREATE TABLE table_name_91 (water__sqmi_ INTEGER, pop__2010_ VARCHAR, longitude VARCHAR) | SELECT MAX(water__sqmi_) FROM table_name_91 WHERE pop__2010_ = 359 AND longitude < -97.176811 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_91 (water__sqmi_ INTEGER, pop__2010_ VARCHAR, longitude VARCHAR) Question: Which Water (sqmi) has a Pop (2010) of 359, and a Longitude smaller than -97.176811? [/INST] SELECT MAX(water__sqmi_) FROM ta... |
Which Land (sqmi) has a Water (sqmi) smaller than 0.04, and a Longitude of -96.794706? | CREATE TABLE table_name_79 (land___sqmi__ INTEGER, water__sqmi_ VARCHAR, longitude VARCHAR) | SELECT MIN(land___sqmi__) FROM table_name_79 WHERE water__sqmi_ < 0.04 AND longitude = -96.794706 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_79 (land___sqmi__ INTEGER, water__sqmi_ VARCHAR, longitude VARCHAR) Question: Which Land (sqmi) has a Water (sqmi) smaller than 0.04, and a Longitude of -96.794706? [/INST] SELECT MIN(land___sqmi__) F... |
How much Latitude has a Water (sqmi) of 0.267, and an ANSI code larger than 1759605? | CREATE TABLE table_name_9 (latitude INTEGER, water__sqmi_ VARCHAR, ansi_code VARCHAR) | SELECT SUM(latitude) FROM table_name_9 WHERE water__sqmi_ = 0.267 AND ansi_code > 1759605 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_9 (latitude INTEGER, water__sqmi_ VARCHAR, ansi_code VARCHAR) Question: How much Latitude has a Water (sqmi) of 0.267, and an ANSI code larger than 1759605? [/INST] SELECT SUM(latitude) FROM table_nam... |
Which ANSI code has a GEO ID larger than 3809927140, and a Water (sqmi) smaller than 0.492, and a Pop (2010) of 37, and a Latitude larger than 48.245979? | CREATE TABLE table_name_48 (ansi_code INTEGER, latitude VARCHAR, pop__2010_ VARCHAR, geo_id VARCHAR, water__sqmi_ VARCHAR) | SELECT MIN(ansi_code) FROM table_name_48 WHERE geo_id > 3809927140 AND water__sqmi_ < 0.492 AND pop__2010_ = 37 AND latitude > 48.245979 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_48 (ansi_code INTEGER, latitude VARCHAR, pop__2010_ VARCHAR, geo_id VARCHAR, water__sqmi_ VARCHAR) Question: Which ANSI code has a GEO ID larger than 3809927140, and a Water (sqmi) smaller than 0.492,... |
What is the Owner of Frequency 00 99.3? | CREATE TABLE table_name_64 (owner VARCHAR, frequency VARCHAR) | SELECT owner FROM table_name_64 WHERE frequency = "00 99.3" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_64 (owner VARCHAR, frequency VARCHAR) Question: What is the Owner of Frequency 00 99.3? [/INST] SELECT owner FROM table_name_64 WHERE frequency = "00 99.3" </s> |
What is the Branding of Frequency 00 94.5? | CREATE TABLE table_name_70 (branding VARCHAR, frequency VARCHAR) | SELECT branding FROM table_name_70 WHERE frequency = "00 94.5" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_70 (branding VARCHAR, frequency VARCHAR) Question: What is the Branding of Frequency 00 94.5? [/INST] SELECT branding FROM table_name_70 WHERE frequency = "00 94.5" </s> |
What is the Call Sign of the Frequency by Owner CKUA Radio Foundation? | CREATE TABLE table_name_33 (call_sign VARCHAR, owner VARCHAR) | SELECT call_sign FROM table_name_33 WHERE owner = "ckua radio foundation" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_33 (call_sign VARCHAR, owner VARCHAR) Question: What is the Call Sign of the Frequency by Owner CKUA Radio Foundation? [/INST] SELECT call_sign FROM table_name_33 WHERE owner = "ckua radio foundation"... |
What is the Owner of the Frequency with a Format of First Nations Community Radio? | CREATE TABLE table_name_40 (owner VARCHAR, format VARCHAR) | SELECT owner FROM table_name_40 WHERE format = "first nations community radio" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (owner VARCHAR, format VARCHAR) Question: What is the Owner of the Frequency with a Format of First Nations Community Radio? [/INST] SELECT owner FROM table_name_40 WHERE format = "first nations co... |
Which School has a Previous Conference of none (new school), and a Year Joined larger than 1960, and a Location of versailles? | CREATE TABLE table_name_78 (school VARCHAR, location VARCHAR, previous_conference VARCHAR, year_joined VARCHAR) | SELECT school FROM table_name_78 WHERE previous_conference = "none (new school)" AND year_joined > 1960 AND location = "versailles" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_78 (school VARCHAR, location VARCHAR, previous_conference VARCHAR, year_joined VARCHAR) Question: Which School has a Previous Conference of none (new school), and a Year Joined larger than 1960, and a... |
Which Location has a Previous Conference of independents, and a Mascot of hilltoppers? | CREATE TABLE table_name_95 (location VARCHAR, previous_conference VARCHAR, mascot VARCHAR) | SELECT location FROM table_name_95 WHERE previous_conference = "independents" AND mascot = "hilltoppers" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (location VARCHAR, previous_conference VARCHAR, mascot VARCHAR) Question: Which Location has a Previous Conference of independents, and a Mascot of hilltoppers? [/INST] SELECT location FROM table_n... |
Which Year Joined has a Size larger than 93, and a Previous Conference of none (new school), and a Mascot of rebels? | CREATE TABLE table_name_88 (year_joined INTEGER, mascot VARCHAR, size VARCHAR, previous_conference VARCHAR) | SELECT AVG(year_joined) FROM table_name_88 WHERE size > 93 AND previous_conference = "none (new school)" AND mascot = "rebels" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_88 (year_joined INTEGER, mascot VARCHAR, size VARCHAR, previous_conference VARCHAR) Question: Which Year Joined has a Size larger than 93, and a Previous Conference of none (new school), and a Mascot ... |
How many years Joined have a Size smaller than 417, and an IHSAA Class of A, and a School of jac-cen-del? | CREATE TABLE table_name_68 (year_joined VARCHAR, school VARCHAR, size VARCHAR, ihsaa_class VARCHAR) | SELECT COUNT(year_joined) FROM table_name_68 WHERE size < 417 AND ihsaa_class = "a" AND school = "jac-cen-del" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_68 (year_joined VARCHAR, school VARCHAR, size VARCHAR, ihsaa_class VARCHAR) Question: How many years Joined have a Size smaller than 417, and an IHSAA Class of A, and a School of jac-cen-del? [/INST] ... |
What is the 1957 number when the 1955 is smaller than 0.63, and 1952 is larger than 0.22? | CREATE TABLE table_name_71 (Id VARCHAR) | SELECT COUNT(1957) FROM table_name_71 WHERE 1955 < 0.63 AND 1952 > 0.22 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_71 (Id VARCHAR) Question: What is the 1957 number when the 1955 is smaller than 0.63, and 1952 is larger than 0.22? [/INST] SELECT COUNT(1957) FROM table_name_71 WHERE 1955 < 0.63 AND 1952 > 0.22 </s> |
What is the 1952 rate when the 1954 is more than 4.2? | CREATE TABLE table_name_37 (Id VARCHAR) | SELECT SUM(1952) FROM table_name_37 WHERE 1954 > 4.2 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_37 (Id VARCHAR) Question: What is the 1952 rate when the 1954 is more than 4.2? [/INST] SELECT SUM(1952) FROM table_name_37 WHERE 1954 > 4.2 </s> |
What is the 1955 rate when the 1956 is more than 2.9, and 1953 is larger than 4.5? | CREATE TABLE table_name_7 (Id VARCHAR) | SELECT SUM(1955) FROM table_name_7 WHERE 1956 > 2.9 AND 1953 > 4.5 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (Id VARCHAR) Question: What is the 1955 rate when the 1956 is more than 2.9, and 1953 is larger than 4.5? [/INST] SELECT SUM(1955) FROM table_name_7 WHERE 1956 > 2.9 AND 1953 > 4.5 </s> |
In what Week resulting in the bottom 3 was Endre Jansen Partner? | CREATE TABLE table_name_97 (week INTEGER, result VARCHAR, partner VARCHAR) | SELECT MAX(week) FROM table_name_97 WHERE result = "bottom 3" AND partner = "endre jansen" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_97 (week INTEGER, result VARCHAR, partner VARCHAR) Question: In what Week resulting in the bottom 3 was Endre Jansen Partner? [/INST] SELECT MAX(week) FROM table_name_97 WHERE result = "bottom 3" AND ... |
What Dance in Week 1 resulted in Safe? | CREATE TABLE table_name_16 (dance VARCHAR, result VARCHAR, week VARCHAR) | SELECT dance FROM table_name_16 WHERE result = "safe" AND week = 1 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_16 (dance VARCHAR, result VARCHAR, week VARCHAR) Question: What Dance in Week 1 resulted in Safe? [/INST] SELECT dance FROM table_name_16 WHERE result = "safe" AND week = 1 </s> |
In what Week was the Locking Dance? | CREATE TABLE table_name_16 (week INTEGER, dance VARCHAR) | SELECT MAX(week) FROM table_name_16 WHERE dance = "locking" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_16 (week INTEGER, dance VARCHAR) Question: In what Week was the Locking Dance? [/INST] SELECT MAX(week) FROM table_name_16 WHERE dance = "locking" </s> |
What position has 7 as the round, with a pick # less than 214? | CREATE TABLE table_name_5 (position VARCHAR, round VARCHAR, pick__number VARCHAR) | SELECT position FROM table_name_5 WHERE round = 7 AND pick__number < 214 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_5 (position VARCHAR, round VARCHAR, pick__number VARCHAR) Question: What position has 7 as the round, with a pick # less than 214? [/INST] SELECT position FROM table_name_5 WHERE round = 7 AND pick__n... |
What college has a round greater than 1, with dylan mcfarland as the player? | CREATE TABLE table_name_95 (college VARCHAR, round VARCHAR, player VARCHAR) | SELECT college FROM table_name_95 WHERE round > 1 AND player = "dylan mcfarland" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (college VARCHAR, round VARCHAR, player VARCHAR) Question: What college has a round greater than 1, with dylan mcfarland as the player? [/INST] SELECT college FROM table_name_95 WHERE round > 1 AND... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.