instruction stringlengths 12 244 | input stringlengths 27 489 | output stringlengths 18 557 | text stringlengths 194 1.14k |
|---|---|---|---|
Name the opponent for week of 2 | CREATE TABLE table_name_6 (opponent VARCHAR, week VARCHAR) | SELECT opponent FROM table_name_6 WHERE week = 2 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_6 (opponent VARCHAR, week VARCHAR) Question: Name the opponent for week of 2 [/INST] SELECT opponent FROM table_name_6 WHERE week = 2 </s> |
What is the team classification with a winner of Beat Zberg, and a points classification of José María Jiménez. | CREATE TABLE table_name_13 (team_classification VARCHAR, points_classification VARCHAR, winner VARCHAR) | SELECT team_classification FROM table_name_13 WHERE points_classification = "josé maría jiménez" AND winner = "beat zberg" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_13 (team_classification VARCHAR, points_classification VARCHAR, winner VARCHAR) Question: What is the team classification with a winner of Beat Zberg, and a points classification of José María Jiménez... |
When was the person who died on 16 July 1946 born? | CREATE TABLE table_name_3 (birth VARCHAR, death VARCHAR) | SELECT birth FROM table_name_3 WHERE death = "16 july 1946" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_3 (birth VARCHAR, death VARCHAR) Question: When was the person who died on 16 July 1946 born? [/INST] SELECT birth FROM table_name_3 WHERE death = "16 july 1946" </s> |
Who is the spouse of the person born on 29 September 1766? | CREATE TABLE table_name_82 (spouse VARCHAR, birth VARCHAR) | SELECT spouse FROM table_name_82 WHERE birth = "29 september 1766" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_82 (spouse VARCHAR, birth VARCHAR) Question: Who is the spouse of the person born on 29 September 1766? [/INST] SELECT spouse FROM table_name_82 WHERE birth = "29 september 1766" </s> |
Who is born on 29 September 1766? | CREATE TABLE table_name_20 (name VARCHAR, birth VARCHAR) | SELECT name FROM table_name_20 WHERE birth = "29 september 1766" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_20 (name VARCHAR, birth VARCHAR) Question: Who is born on 29 September 1766? [/INST] SELECT name FROM table_name_20 WHERE birth = "29 september 1766" </s> |
Who was born on 10 May 1788 that ceased to be queen? | CREATE TABLE table_name_3 (ceased_to_be_queen VARCHAR, birth VARCHAR) | SELECT ceased_to_be_queen FROM table_name_3 WHERE birth = "10 may 1788" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_3 (ceased_to_be_queen VARCHAR, birth VARCHAR) Question: Who was born on 10 May 1788 that ceased to be queen? [/INST] SELECT ceased_to_be_queen FROM table_name_3 WHERE birth = "10 may 1788" </s> |
How is the marriage of who became queen on 30 October 1816 husband's accession? | CREATE TABLE table_name_84 (marriage VARCHAR, became_queen VARCHAR) | SELECT marriage FROM table_name_84 WHERE became_queen = "30 october 1816 husband's accession" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_84 (marriage VARCHAR, became_queen VARCHAR) Question: How is the marriage of who became queen on 30 October 1816 husband's accession? [/INST] SELECT marriage FROM table_name_84 WHERE became_queen = "3... |
When was the person who became queen on 15 April 1820 born? | CREATE TABLE table_name_79 (birth VARCHAR, became_queen VARCHAR) | SELECT birth FROM table_name_79 WHERE became_queen = "15 april 1820" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_79 (birth VARCHAR, became_queen VARCHAR) Question: When was the person who became queen on 15 April 1820 born? [/INST] SELECT birth FROM table_name_79 WHERE became_queen = "15 april 1820" </s> |
What is their record on April 2? | CREATE TABLE table_name_59 (record VARCHAR, date VARCHAR) | SELECT record FROM table_name_59 WHERE date = "april 2" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_59 (record VARCHAR, date VARCHAR) Question: What is their record on April 2? [/INST] SELECT record FROM table_name_59 WHERE date = "april 2" </s> |
Which team has the record of 11-6? | CREATE TABLE table_name_8 (loss VARCHAR, record VARCHAR) | SELECT loss FROM table_name_8 WHERE record = "11-6" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_8 (loss VARCHAR, record VARCHAR) Question: Which team has the record of 11-6? [/INST] SELECT loss FROM table_name_8 WHERE record = "11-6" </s> |
What was his record when he went over 1 round? | CREATE TABLE table_name_81 (record VARCHAR, round INTEGER) | SELECT record FROM table_name_81 WHERE round > 1 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_81 (record VARCHAR, round INTEGER) Question: What was his record when he went over 1 round? [/INST] SELECT record FROM table_name_81 WHERE round > 1 </s> |
What event did he have a 2-0 record? | CREATE TABLE table_name_51 (event VARCHAR, record VARCHAR) | SELECT event FROM table_name_51 WHERE record = "2-0" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_51 (event VARCHAR, record VARCHAR) Question: What event did he have a 2-0 record? [/INST] SELECT event FROM table_name_51 WHERE record = "2-0" </s> |
What was his result against dan bobish? | CREATE TABLE table_name_80 (res VARCHAR, opponent VARCHAR) | SELECT res FROM table_name_80 WHERE opponent = "dan bobish" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_80 (res VARCHAR, opponent VARCHAR) Question: What was his result against dan bobish? [/INST] SELECT res FROM table_name_80 WHERE opponent = "dan bobish" </s> |
Which Voltage Center (V) has an S-Spec Number of sk096? | CREATE TABLE table_name_76 (voltage_center__v_ VARCHAR, s_spec_number VARCHAR) | SELECT voltage_center__v_ FROM table_name_76 WHERE s_spec_number = "sk096" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_76 (voltage_center__v_ VARCHAR, s_spec_number VARCHAR) Question: Which Voltage Center (V) has an S-Spec Number of sk096? [/INST] SELECT voltage_center__v_ FROM table_name_76 WHERE s_spec_number = "sk0... |
Which Voltage Center (V) has an Input Clock (MHz) of 25 x 3, and a Part Number of a80486dx4-75? | CREATE TABLE table_name_71 (voltage_center__v_ VARCHAR, input_clock__mhz_ VARCHAR, part_number VARCHAR) | SELECT voltage_center__v_ FROM table_name_71 WHERE input_clock__mhz_ = "25 x 3" AND part_number = "a80486dx4-75" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_71 (voltage_center__v_ VARCHAR, input_clock__mhz_ VARCHAR, part_number VARCHAR) Question: Which Voltage Center (V) has an Input Clock (MHz) of 25 x 3, and a Part Number of a80486dx4-75? [/INST] SELECT... |
What is the low gold total for under 2 total and over 0 silvers? | CREATE TABLE table_name_57 (gold INTEGER, total VARCHAR, silver VARCHAR) | SELECT MIN(gold) FROM table_name_57 WHERE total < 2 AND silver > 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_57 (gold INTEGER, total VARCHAR, silver VARCHAR) Question: What is the low gold total for under 2 total and over 0 silvers? [/INST] SELECT MIN(gold) FROM table_name_57 WHERE total < 2 AND silver > 0 <... |
How many silvers for the nation with under 6 total and under 0 bronze? | CREATE TABLE table_name_62 (silver VARCHAR, total VARCHAR, bronze VARCHAR) | SELECT COUNT(silver) FROM table_name_62 WHERE total < 6 AND bronze < 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_62 (silver VARCHAR, total VARCHAR, bronze VARCHAR) Question: How many silvers for the nation with under 6 total and under 0 bronze? [/INST] SELECT COUNT(silver) FROM table_name_62 WHERE total < 6 AND ... |
The person that was notable for professional wrestling had a Born-Died of what year? | CREATE TABLE table_name_1 (born___died VARCHAR, notable_for VARCHAR) | SELECT born___died FROM table_name_1 WHERE notable_for = "professional wrestling" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_1 (born___died VARCHAR, notable_for VARCHAR) Question: The person that was notable for professional wrestling had a Born-Died of what year? [/INST] SELECT born___died FROM table_name_1 WHERE notable_f... |
The person that was born in Sydney died in what year? | CREATE TABLE table_name_47 (born___died VARCHAR, connection_with_australia VARCHAR) | SELECT born___died FROM table_name_47 WHERE connection_with_australia = "born in sydney" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_47 (born___died VARCHAR, connection_with_australia VARCHAR) Question: The person that was born in Sydney died in what year? [/INST] SELECT born___died FROM table_name_47 WHERE connection_with_australi... |
The person notable for tennis died in what year? | CREATE TABLE table_name_1 (born___died VARCHAR, notable_for VARCHAR) | SELECT born___died FROM table_name_1 WHERE notable_for = "tennis" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_1 (born___died VARCHAR, notable_for VARCHAR) Question: The person notable for tennis died in what year? [/INST] SELECT born___died FROM table_name_1 WHERE notable_for = "tennis" </s> |
What was the record when the team played at Oakland Seals? | CREATE TABLE table_name_36 (record VARCHAR, home VARCHAR) | SELECT record FROM table_name_36 WHERE home = "oakland seals" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_36 (record VARCHAR, home VARCHAR) Question: What was the record when the team played at Oakland Seals? [/INST] SELECT record FROM table_name_36 WHERE home = "oakland seals" </s> |
What was the purse when the trainer was Aidan O'Brien? | CREATE TABLE table_name_21 (purse VARCHAR, trainer VARCHAR) | SELECT purse FROM table_name_21 WHERE trainer = "aidan o'brien" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_21 (purse VARCHAR, trainer VARCHAR) Question: What was the purse when the trainer was Aidan O'Brien? [/INST] SELECT purse FROM table_name_21 WHERE trainer = "aidan o'brien" </s> |
What is the time for when cornelio velasquez was the jockey? | CREATE TABLE table_name_12 (time VARCHAR, jockey VARCHAR) | SELECT time FROM table_name_12 WHERE jockey = "cornelio velasquez" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_12 (time VARCHAR, jockey VARCHAR) Question: What is the time for when cornelio velasquez was the jockey? [/INST] SELECT time FROM table_name_12 WHERE jockey = "cornelio velasquez" </s> |
Who was the jockey when the owner was Richard Pegum? | CREATE TABLE table_name_75 (jockey VARCHAR, owner VARCHAR) | SELECT jockey FROM table_name_75 WHERE owner = "richard pegum" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_75 (jockey VARCHAR, owner VARCHAR) Question: Who was the jockey when the owner was Richard Pegum? [/INST] SELECT jockey FROM table_name_75 WHERE owner = "richard pegum" </s> |
What is the purse when Aidan O'brien was the trainer? | CREATE TABLE table_name_95 (purse VARCHAR, trainer VARCHAR) | SELECT purse FROM table_name_95 WHERE trainer = "aidan o'brien" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (purse VARCHAR, trainer VARCHAR) Question: What is the purse when Aidan O'brien was the trainer? [/INST] SELECT purse FROM table_name_95 WHERE trainer = "aidan o'brien" </s> |
What is the purse for the year earlier than 2013 and muhannak was the winner? | CREATE TABLE table_name_82 (purse VARCHAR, year VARCHAR, winner VARCHAR) | SELECT purse FROM table_name_82 WHERE year < 2013 AND winner = "muhannak" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_82 (purse VARCHAR, year VARCHAR, winner VARCHAR) Question: What is the purse for the year earlier than 2013 and muhannak was the winner? [/INST] SELECT purse FROM table_name_82 WHERE year < 2013 AND w... |
Who was the trainer in 2013? | CREATE TABLE table_name_71 (trainer VARCHAR, year VARCHAR) | SELECT trainer FROM table_name_71 WHERE year = 2013 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_71 (trainer VARCHAR, year VARCHAR) Question: Who was the trainer in 2013? [/INST] SELECT trainer FROM table_name_71 WHERE year = 2013 </s> |
Which throw number had a DOB of 19/10/81? | CREATE TABLE table_name_2 (throws VARCHAR, dob VARCHAR) | SELECT throws FROM table_name_2 WHERE dob = "19/10/81" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_2 (throws VARCHAR, dob VARCHAR) Question: Which throw number had a DOB of 19/10/81? [/INST] SELECT throws FROM table_name_2 WHERE dob = "19/10/81" </s> |
Which first's surname is Cook? | CREATE TABLE table_name_76 (first VARCHAR, surname VARCHAR) | SELECT first FROM table_name_76 WHERE surname = "cook" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_76 (first VARCHAR, surname VARCHAR) Question: Which first's surname is Cook? [/INST] SELECT first FROM table_name_76 WHERE surname = "cook" </s> |
Which position has L bats and Anderson as a surname? | CREATE TABLE table_name_14 (position VARCHAR, bats VARCHAR, surname VARCHAR) | SELECT position FROM table_name_14 WHERE bats = "l" AND surname = "anderson" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_14 (position VARCHAR, bats VARCHAR, surname VARCHAR) Question: Which position has L bats and Anderson as a surname? [/INST] SELECT position FROM table_name_14 WHERE bats = "l" AND surname = "anderson"... |
What is the team 2 with a team 1 us gorée? | CREATE TABLE table_name_88 (team_2 VARCHAR, team_1 VARCHAR) | SELECT team_2 FROM table_name_88 WHERE team_1 = "us gorée" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_88 (team_2 VARCHAR, team_1 VARCHAR) Question: What is the team 2 with a team 1 us gorée? [/INST] SELECT team_2 FROM table_name_88 WHERE team_1 = "us gorée" </s> |
What is the 2nd leg of team 1 Zamalek SC? | CREATE TABLE table_name_31 (team_1 VARCHAR) | SELECT 2 AS nd_leg FROM table_name_31 WHERE team_1 = "zamalek sc" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_31 (team_1 VARCHAR) Question: What is the 2nd leg of team 1 Zamalek SC? [/INST] SELECT 2 AS nd_leg FROM table_name_31 WHERE team_1 = "zamalek sc" </s> |
What is the 1st leg of the team with a 2-1 agg.? | CREATE TABLE table_name_13 (agg VARCHAR) | SELECT 1 AS st_leg FROM table_name_13 WHERE agg = "2-1" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_13 (agg VARCHAR) Question: What is the 1st leg of the team with a 2-1 agg.? [/INST] SELECT 1 AS st_leg FROM table_name_13 WHERE agg = "2-1" </s> |
What is the 2nd leg of team 2 Far rabat? | CREATE TABLE table_name_92 (team_2 VARCHAR) | SELECT 2 AS nd_leg FROM table_name_92 WHERE team_2 = "far rabat" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_92 (team_2 VARCHAR) Question: What is the 2nd leg of team 2 Far rabat? [/INST] SELECT 2 AS nd_leg FROM table_name_92 WHERE team_2 = "far rabat" </s> |
How many Watts has a Class of a, and a Frequency of 91.5 fm, and a City of license of elkhart, kansas? | CREATE TABLE table_name_37 (watts INTEGER, city_of_license VARCHAR, class VARCHAR, frequency VARCHAR) | SELECT MIN(watts) FROM table_name_37 WHERE class = "a" AND frequency = "91.5 fm" AND city_of_license = "elkhart, kansas" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_37 (watts INTEGER, city_of_license VARCHAR, class VARCHAR, frequency VARCHAR) Question: How many Watts has a Class of a, and a Frequency of 91.5 fm, and a City of license of elkhart, kansas? [/INST] S... |
Which Class has a City of license of garden city, kansas? | CREATE TABLE table_name_50 (class VARCHAR, city_of_license VARCHAR) | SELECT class FROM table_name_50 WHERE city_of_license = "garden city, kansas" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_50 (class VARCHAR, city_of_license VARCHAR) Question: Which Class has a City of license of garden city, kansas? [/INST] SELECT class FROM table_name_50 WHERE city_of_license = "garden city, kansas" </... |
Which Frequency has a Call sign of kcse? | CREATE TABLE table_name_93 (frequency VARCHAR, call_sign VARCHAR) | SELECT frequency FROM table_name_93 WHERE call_sign = "kcse" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_93 (frequency VARCHAR, call_sign VARCHAR) Question: Which Frequency has a Call sign of kcse? [/INST] SELECT frequency FROM table_name_93 WHERE call_sign = "kcse" </s> |
What year has 59th as a finish position? | CREATE TABLE table_name_58 (year VARCHAR, finish_position VARCHAR) | SELECT year FROM table_name_58 WHERE finish_position = "59th" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_58 (year VARCHAR, finish_position VARCHAR) Question: What year has 59th as a finish position? [/INST] SELECT year FROM table_name_58 WHERE finish_position = "59th" </s> |
Which 2nd day has a year prior to 2009? | CREATE TABLE table_name_4 (year INTEGER) | SELECT 2 AS nd_day FROM table_name_4 WHERE year < 2009 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_4 (year INTEGER) Question: Which 2nd day has a year prior to 2009? [/INST] SELECT 2 AS nd_day FROM table_name_4 WHERE year < 2009 </s> |
What event did Pakistan get the bronze medal at the 1988 Seoul Games? | CREATE TABLE table_name_82 (event VARCHAR, medal VARCHAR, games VARCHAR) | SELECT event FROM table_name_82 WHERE medal = "bronze" AND games = "1988 seoul" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_82 (event VARCHAR, medal VARCHAR, games VARCHAR) Question: What event did Pakistan get the bronze medal at the 1988 Seoul Games? [/INST] SELECT event FROM table_name_82 WHERE medal = "bronze" AND game... |
What sport in the 1960 Rome Games did Pakistan play in the Men's Freestyle Welterweight? | CREATE TABLE table_name_56 (sport VARCHAR, games VARCHAR, event VARCHAR) | SELECT sport FROM table_name_56 WHERE games = "1960 rome" AND event = "men's freestyle welterweight" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_56 (sport VARCHAR, games VARCHAR, event VARCHAR) Question: What sport in the 1960 Rome Games did Pakistan play in the Men's Freestyle Welterweight? [/INST] SELECT sport FROM table_name_56 WHERE games ... |
When did Pakistan win a Silver Medal in a Men's Competition? | CREATE TABLE table_name_56 (games VARCHAR, event VARCHAR, medal VARCHAR) | SELECT games FROM table_name_56 WHERE event = "men's competition" AND medal = "silver" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_56 (games VARCHAR, event VARCHAR, medal VARCHAR) Question: When did Pakistan win a Silver Medal in a Men's Competition? [/INST] SELECT games FROM table_name_56 WHERE event = "men's competition" AND me... |
When did Pakistan win a Gold Medal in Field Hockey? | CREATE TABLE table_name_19 (games VARCHAR, sport VARCHAR, medal VARCHAR) | SELECT games FROM table_name_19 WHERE sport = "field hockey" AND medal = "gold" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_19 (games VARCHAR, sport VARCHAR, medal VARCHAR) Question: When did Pakistan win a Gold Medal in Field Hockey? [/INST] SELECT games FROM table_name_19 WHERE sport = "field hockey" AND medal = "gold" <... |
What team played in the 1964 Tokyo Games? | CREATE TABLE table_name_56 (name VARCHAR, games VARCHAR) | SELECT name FROM table_name_56 WHERE games = "1964 tokyo" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_56 (name VARCHAR, games VARCHAR) Question: What team played in the 1964 Tokyo Games? [/INST] SELECT name FROM table_name_56 WHERE games = "1964 tokyo" </s> |
What sport did the National Team play in the 1968 mexico City Games? | CREATE TABLE table_name_58 (sport VARCHAR, name VARCHAR, games VARCHAR) | SELECT sport FROM table_name_58 WHERE name = "national team" AND games = "1968 mexico city" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_58 (sport VARCHAR, name VARCHAR, games VARCHAR) Question: What sport did the National Team play in the 1968 mexico City Games? [/INST] SELECT sport FROM table_name_58 WHERE name = "national team" AND ... |
What is the total number of rounds that Center position Denis Arkhipov have? | CREATE TABLE table_name_33 (round VARCHAR, position VARCHAR, player VARCHAR) | SELECT COUNT(round) FROM table_name_33 WHERE position = "center" AND player = "denis arkhipov" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_33 (round VARCHAR, position VARCHAR, player VARCHAR) Question: What is the total number of rounds that Center position Denis Arkhipov have? [/INST] SELECT COUNT(round) FROM table_name_33 WHERE positio... |
Who is the player from Round 3 from Russia? | CREATE TABLE table_name_17 (player VARCHAR, round VARCHAR, nationality VARCHAR) | SELECT player FROM table_name_17 WHERE round = 3 AND nationality = "russia" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_17 (player VARCHAR, round VARCHAR, nationality VARCHAR) Question: Who is the player from Round 3 from Russia? [/INST] SELECT player FROM table_name_17 WHERE round = 3 AND nationality = "russia" </s> |
What is the sum of the round with the defenceman? | CREATE TABLE table_name_41 (round INTEGER, position VARCHAR) | SELECT SUM(round) FROM table_name_41 WHERE position = "defenceman" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_41 (round INTEGER, position VARCHAR) Question: What is the sum of the round with the defenceman? [/INST] SELECT SUM(round) FROM table_name_41 WHERE position = "defenceman" </s> |
What is the college club that plays before round 3? | CREATE TABLE table_name_85 (college_junior_club_team VARCHAR, round INTEGER) | SELECT college_junior_club_team FROM table_name_85 WHERE round < 3 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_85 (college_junior_club_team VARCHAR, round INTEGER) Question: What is the college club that plays before round 3? [/INST] SELECT college_junior_club_team FROM table_name_85 WHERE round < 3 </s> |
What was the population of the area that was formerly under the authority of the Audenshaw Urban District? | CREATE TABLE table_name_65 (population VARCHAR, former_local_authority VARCHAR) | SELECT population FROM table_name_65 WHERE former_local_authority = "audenshaw urban district" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_65 (population VARCHAR, former_local_authority VARCHAR) Question: What was the population of the area that was formerly under the authority of the Audenshaw Urban District? [/INST] SELECT population F... |
What is the overall pick number that Derrick Harvey was when he was picked in a round after round 1? | CREATE TABLE table_name_26 (overall INTEGER, name VARCHAR, round VARCHAR) | SELECT MIN(overall) FROM table_name_26 WHERE name = "derrick harvey" AND round > 1 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_26 (overall INTEGER, name VARCHAR, round VARCHAR) Question: What is the overall pick number that Derrick Harvey was when he was picked in a round after round 1? [/INST] SELECT MIN(overall) FROM table_... |
What college was the defensive end pick that was picked in round 2? | CREATE TABLE table_name_72 (college VARCHAR, position VARCHAR, round VARCHAR) | SELECT college FROM table_name_72 WHERE position = "defensive end" AND round = 2 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_72 (college VARCHAR, position VARCHAR, round VARCHAR) Question: What college was the defensive end pick that was picked in round 2? [/INST] SELECT college FROM table_name_72 WHERE position = "defensiv... |
What is the average round that the player from USF was picked in when his draft pick number was less than 24? | CREATE TABLE table_name_48 (round INTEGER, college VARCHAR, pick__number VARCHAR) | SELECT AVG(round) FROM table_name_48 WHERE college = "usf" AND pick__number < 24 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_48 (round INTEGER, college VARCHAR, pick__number VARCHAR) Question: What is the average round that the player from USF was picked in when his draft pick number was less than 24? [/INST] SELECT AVG(rou... |
What is the sum of the pick numbers where the player was picked in round 5 and overall pick number was greater than 159? | CREATE TABLE table_name_77 (pick__number INTEGER, round VARCHAR, overall VARCHAR) | SELECT SUM(pick__number) FROM table_name_77 WHERE round = 5 AND overall > 159 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_77 (pick__number INTEGER, round VARCHAR, overall VARCHAR) Question: What is the sum of the pick numbers where the player was picked in round 5 and overall pick number was greater than 159? [/INST] SEL... |
What is the average overall pick number for the USF player who was picked after round 5? | CREATE TABLE table_name_23 (overall INTEGER, college VARCHAR, round VARCHAR) | SELECT AVG(overall) FROM table_name_23 WHERE college = "usf" AND round > 5 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_23 (overall INTEGER, college VARCHAR, round VARCHAR) Question: What is the average overall pick number for the USF player who was picked after round 5? [/INST] SELECT AVG(overall) FROM table_name_23 W... |
Which Population is the lowest one that has a Median family income of $74,905, and a Number of households smaller than 145,790? | CREATE TABLE table_name_37 (population INTEGER, median_family_income VARCHAR, number_of_households VARCHAR) | SELECT MIN(population) FROM table_name_37 WHERE median_family_income = "$74,905" AND number_of_households < 145 OFFSET 790 ROWS | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_37 (population INTEGER, median_family_income VARCHAR, number_of_households VARCHAR) Question: Which Population is the lowest one that has a Median family income of $74,905, and a Number of households ... |
What is the total number of Rapes that have Embezzlements a figure of 820 and total number of convictions less than 94,574? | CREATE TABLE table_name_27 (rape__art_190_stgb_ VARCHAR, embezzlement__art_138_stgb_ VARCHAR, total_convictions VARCHAR) | SELECT COUNT(rape__art_190_stgb_) FROM table_name_27 WHERE embezzlement__art_138_stgb_ = 820 AND total_convictions < 94 OFFSET 574 ROWS | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_27 (rape__art_190_stgb_ VARCHAR, embezzlement__art_138_stgb_ VARCHAR, total_convictions VARCHAR) Question: What is the total number of Rapes that have Embezzlements a figure of 820 and total number of... |
How many were in Attendance during a Tie no of 1? | CREATE TABLE table_name_89 (attendance VARCHAR, tie_no VARCHAR) | SELECT attendance FROM table_name_89 WHERE tie_no = 1 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_89 (attendance VARCHAR, tie_no VARCHAR) Question: How many were in Attendance during a Tie no of 1? [/INST] SELECT attendance FROM table_name_89 WHERE tie_no = 1 </s> |
What was the Attendance during the Tamworth Away game? | CREATE TABLE table_name_9 (attendance VARCHAR, away_team VARCHAR) | SELECT COUNT(attendance) FROM table_name_9 WHERE away_team = "tamworth" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_9 (attendance VARCHAR, away_team VARCHAR) Question: What was the Attendance during the Tamworth Away game? [/INST] SELECT COUNT(attendance) FROM table_name_9 WHERE away_team = "tamworth" </s> |
Which Tournament has a Location of texas, and a Winner of tom watson (39)? | CREATE TABLE table_name_15 (tournament VARCHAR, location VARCHAR, winner VARCHAR) | SELECT tournament FROM table_name_15 WHERE location = "texas" AND winner = "tom watson (39)" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_15 (tournament VARCHAR, location VARCHAR, winner VARCHAR) Question: Which Tournament has a Location of texas, and a Winner of tom watson (39)? [/INST] SELECT tournament FROM table_name_15 WHERE locati... |
What was the resolution for KO opposing Cliff Beckett? | CREATE TABLE table_name_81 (res VARCHAR, type VARCHAR, opponent VARCHAR) | SELECT res FROM table_name_81 WHERE type = "ko" AND opponent = "cliff beckett" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_81 (res VARCHAR, type VARCHAR, opponent VARCHAR) Question: What was the resolution for KO opposing Cliff Beckett? [/INST] SELECT res FROM table_name_81 WHERE type = "ko" AND opponent = "cliff beckett"... |
What is the type when Robert Villemain had a record at 109–1–2? | CREATE TABLE table_name_34 (type VARCHAR, opponent VARCHAR, record VARCHAR) | SELECT type FROM table_name_34 WHERE opponent = "robert villemain" AND record = "109–1–2" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_34 (type VARCHAR, opponent VARCHAR, record VARCHAR) Question: What is the type when Robert Villemain had a record at 109–1–2? [/INST] SELECT type FROM table_name_34 WHERE opponent = "robert villemain"... |
What is the platform & frequency [MHz] of the whr-g54s model? | CREATE TABLE table_name_46 (platform_ VARCHAR, _frequency_ VARCHAR, mhz VARCHAR, model VARCHAR) | SELECT platform_ & _frequency_ AS "mhz" FROM table_name_46 WHERE model = "whr-g54s" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_46 (platform_ VARCHAR, _frequency_ VARCHAR, mhz VARCHAR, model VARCHAR) Question: What is the platform & frequency [MHz] of the whr-g54s model? [/INST] SELECT platform_ & _frequency_ AS "mhz" FROM tab... |
What is the voltage iinput [V/A] of the whr-g54s model? | CREATE TABLE table_name_89 (voltage_input_ VARCHAR, v_a VARCHAR, model VARCHAR) | SELECT voltage_input_ AS "v_a" FROM table_name_89 WHERE model = "whr-g54s" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_89 (voltage_input_ VARCHAR, v_a VARCHAR, model VARCHAR) Question: What is the voltage iinput [V/A] of the whr-g54s model? [/INST] SELECT voltage_input_ AS "v_a" FROM table_name_89 WHERE model = "whr-g... |
What is the Ethernet port count of the whr-hp-g300n model? | CREATE TABLE table_name_72 (ethernet_port_count VARCHAR, model VARCHAR) | SELECT ethernet_port_count FROM table_name_72 WHERE model = "whr-hp-g300n" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_72 (ethernet_port_count VARCHAR, model VARCHAR) Question: What is the Ethernet port count of the whr-hp-g300n model? [/INST] SELECT ethernet_port_count FROM table_name_72 WHERE model = "whr-hp-g300n" ... |
Which Year has an Album of airwaves, and a US Hot 100 of –? | CREATE TABLE table_name_64 (year INTEGER, album VARCHAR, us_hot_100 VARCHAR) | SELECT MAX(year) FROM table_name_64 WHERE album = "airwaves" AND us_hot_100 = "–" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_64 (year INTEGER, album VARCHAR, us_hot_100 VARCHAR) Question: Which Year has an Album of airwaves, and a US Hot 100 of –? [/INST] SELECT MAX(year) FROM table_name_64 WHERE album = "airwaves" AND us_h... |
Which Song has a Year smaller than 1979, and a US Hot 100 of 8? | CREATE TABLE table_name_1 (song VARCHAR, year VARCHAR, us_hot_100 VARCHAR) | SELECT song FROM table_name_1 WHERE year < 1979 AND us_hot_100 = "8" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_1 (song VARCHAR, year VARCHAR, us_hot_100 VARCHAR) Question: Which Song has a Year smaller than 1979, and a US Hot 100 of 8? [/INST] SELECT song FROM table_name_1 WHERE year < 1979 AND us_hot_100 = "8... |
What is the series record for the game on April 24? | CREATE TABLE table_name_41 (series VARCHAR, date VARCHAR) | SELECT series FROM table_name_41 WHERE date = "april 24" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_41 (series VARCHAR, date VARCHAR) Question: What is the series record for the game on April 24? [/INST] SELECT series FROM table_name_41 WHERE date = "april 24" </s> |
What was the game number that took place on April 27? | CREATE TABLE table_name_50 (game VARCHAR, date VARCHAR) | SELECT game FROM table_name_50 WHERE date = "april 27" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_50 (game VARCHAR, date VARCHAR) Question: What was the game number that took place on April 27? [/INST] SELECT game FROM table_name_50 WHERE date = "april 27" </s> |
Which Opponent has a Attendance of 6,275? | CREATE TABLE table_name_82 (opponent VARCHAR, attendance VARCHAR) | SELECT opponent FROM table_name_82 WHERE attendance = "6,275" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_82 (opponent VARCHAR, attendance VARCHAR) Question: Which Opponent has a Attendance of 6,275? [/INST] SELECT opponent FROM table_name_82 WHERE attendance = "6,275" </s> |
Which Opponent has a Attendance of 7,034? | CREATE TABLE table_name_29 (opponent VARCHAR, attendance VARCHAR) | SELECT opponent FROM table_name_29 WHERE attendance = "7,034" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_29 (opponent VARCHAR, attendance VARCHAR) Question: Which Opponent has a Attendance of 7,034? [/INST] SELECT opponent FROM table_name_29 WHERE attendance = "7,034" </s> |
When has a Result of 0–2 and a Opponent of aberdeen? | CREATE TABLE table_name_13 (date VARCHAR, result VARCHAR, opponent VARCHAR) | SELECT date FROM table_name_13 WHERE result = "0–2" AND opponent = "aberdeen" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_13 (date VARCHAR, result VARCHAR, opponent VARCHAR) Question: When has a Result of 0–2 and a Opponent of aberdeen? [/INST] SELECT date FROM table_name_13 WHERE result = "0–2" AND opponent = "aberdeen"... |
Which Venue has a Result of 2–2 and Attendances of 5,760? | CREATE TABLE table_name_58 (venue VARCHAR, result VARCHAR, attendance VARCHAR) | SELECT venue FROM table_name_58 WHERE result = "2–2" AND attendance = "5,760" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_58 (venue VARCHAR, result VARCHAR, attendance VARCHAR) Question: Which Venue has a Result of 2–2 and Attendances of 5,760? [/INST] SELECT venue FROM table_name_58 WHERE result = "2–2" AND attendance =... |
Which Venue has Attendances of 11,045? | CREATE TABLE table_name_97 (venue VARCHAR, attendance VARCHAR) | SELECT venue FROM table_name_97 WHERE attendance = "11,045" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_97 (venue VARCHAR, attendance VARCHAR) Question: Which Venue has Attendances of 11,045? [/INST] SELECT venue FROM table_name_97 WHERE attendance = "11,045" </s> |
When Venue of A has Attendance of 4,365? | CREATE TABLE table_name_53 (date VARCHAR, venue VARCHAR, attendance VARCHAR) | SELECT date FROM table_name_53 WHERE venue = "a" AND attendance = "4,365" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_53 (date VARCHAR, venue VARCHAR, attendance VARCHAR) Question: When Venue of A has Attendance of 4,365? [/INST] SELECT date FROM table_name_53 WHERE venue = "a" AND attendance = "4,365" </s> |
What is the 1st leg of cs sfaxien? | CREATE TABLE table_name_48 (team_2 VARCHAR) | SELECT 1 AS st_leg FROM table_name_48 WHERE team_2 = "cs sfaxien" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_48 (team_2 VARCHAR) Question: What is the 1st leg of cs sfaxien? [/INST] SELECT 1 AS st_leg FROM table_name_48 WHERE team_2 = "cs sfaxien" </s> |
Name the finish for lee janzen | CREATE TABLE table_name_94 (finish VARCHAR, player VARCHAR) | SELECT finish FROM table_name_94 WHERE player = "lee janzen" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_94 (finish VARCHAR, player VARCHAR) Question: Name the finish for lee janzen [/INST] SELECT finish FROM table_name_94 WHERE player = "lee janzen" </s> |
Name the most total with to par more than 16 | CREATE TABLE table_name_14 (total INTEGER, to_par INTEGER) | SELECT MAX(total) FROM table_name_14 WHERE to_par > 16 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_14 (total INTEGER, to_par INTEGER) Question: Name the most total with to par more than 16 [/INST] SELECT MAX(total) FROM table_name_14 WHERE to_par > 16 </s> |
What was the Steeler's record when they played against the new york Jets? | CREATE TABLE table_name_95 (record VARCHAR, opponent VARCHAR) | SELECT record FROM table_name_95 WHERE opponent = "new york jets" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (record VARCHAR, opponent VARCHAR) Question: What was the Steeler's record when they played against the new york Jets? [/INST] SELECT record FROM table_name_95 WHERE opponent = "new york jets" </s> |
What is the Result from the Date that is December 8, 1963? | CREATE TABLE table_name_24 (result VARCHAR, date VARCHAR) | SELECT result FROM table_name_24 WHERE date = "december 8, 1963" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_24 (result VARCHAR, date VARCHAR) Question: What is the Result from the Date that is December 8, 1963? [/INST] SELECT result FROM table_name_24 WHERE date = "december 8, 1963" </s> |
What is the date when the attendance is 960? | CREATE TABLE table_name_28 (date VARCHAR, attendance VARCHAR) | SELECT date FROM table_name_28 WHERE attendance = 960 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_28 (date VARCHAR, attendance VARCHAR) Question: What is the date when the attendance is 960? [/INST] SELECT date FROM table_name_28 WHERE attendance = 960 </s> |
What is the date of the away venue with an opponent of wightlink raiders with an attendance larger than 375? | CREATE TABLE table_name_8 (date INTEGER, attendance VARCHAR, venue VARCHAR, opponent VARCHAR) | SELECT SUM(date) FROM table_name_8 WHERE venue = "away" AND opponent = "wightlink raiders" AND attendance > 375 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_8 (date INTEGER, attendance VARCHAR, venue VARCHAR, opponent VARCHAR) Question: What is the date of the away venue with an opponent of wightlink raiders with an attendance larger than 375? [/INST] SEL... |
What is the average attendance when the opponent is telford tigers? | CREATE TABLE table_name_75 (attendance INTEGER, opponent VARCHAR) | SELECT AVG(attendance) FROM table_name_75 WHERE opponent = "telford tigers" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_75 (attendance INTEGER, opponent VARCHAR) Question: What is the average attendance when the opponent is telford tigers? [/INST] SELECT AVG(attendance) FROM table_name_75 WHERE opponent = "telford tige... |
What is the result when the attendance is 960? | CREATE TABLE table_name_44 (result VARCHAR, attendance VARCHAR) | SELECT result FROM table_name_44 WHERE attendance = 960 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_44 (result VARCHAR, attendance VARCHAR) Question: What is the result when the attendance is 960? [/INST] SELECT result FROM table_name_44 WHERE attendance = 960 </s> |
Name the tournament for 2006 of a, 1996 of 1r and 2004 of 1r | CREATE TABLE table_name_68 (tournament VARCHAR) | SELECT tournament FROM table_name_68 WHERE 2006 = "a" AND 1996 = "1r" AND 2004 = "1r" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_68 (tournament VARCHAR) Question: Name the tournament for 2006 of a, 1996 of 1r and 2004 of 1r [/INST] SELECT tournament FROM table_name_68 WHERE 2006 = "a" AND 1996 = "1r" AND 2004 = "1r" </s> |
Name the 2003 for atp masters series 1998 | CREATE TABLE table_name_83 (Id VARCHAR) | SELECT 2003 FROM table_name_83 WHERE 1998 = "atp masters series" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_83 (Id VARCHAR) Question: Name the 2003 for atp masters series 1998 [/INST] SELECT 2003 FROM table_name_83 WHERE 1998 = "atp masters series" </s> |
Name the 1997 for atp masters series 1992 | CREATE TABLE table_name_65 (Id VARCHAR) | SELECT 1997 FROM table_name_65 WHERE 1992 = "atp masters series" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_65 (Id VARCHAR) Question: Name the 1997 for atp masters series 1992 [/INST] SELECT 1997 FROM table_name_65 WHERE 1992 = "atp masters series" </s> |
what city is brule in | CREATE TABLE table_name_84 (city VARCHAR, county VARCHAR) | SELECT city FROM table_name_84 WHERE county = "brule" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_84 (city VARCHAR, county VARCHAR) Question: what city is brule in [/INST] SELECT city FROM table_name_84 WHERE county = "brule" </s> |
Who was performer 3 with karen maruyama as performer 2? | CREATE TABLE table_name_67 (performer_3 VARCHAR, performer_2 VARCHAR) | SELECT performer_3 FROM table_name_67 WHERE performer_2 = "karen maruyama" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_67 (performer_3 VARCHAR, performer_2 VARCHAR) Question: Who was performer 3 with karen maruyama as performer 2? [/INST] SELECT performer_3 FROM table_name_67 WHERE performer_2 = "karen maruyama" </s> |
What day was wayne brady performer 2, ryan stiles performer 4, and an episode number greater than 5? | CREATE TABLE table_name_78 (date VARCHAR, performer_2 VARCHAR, performer_4 VARCHAR, episode VARCHAR) | SELECT date FROM table_name_78 WHERE performer_4 = "ryan stiles" AND episode > 5 AND performer_2 = "wayne brady" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_78 (date VARCHAR, performer_2 VARCHAR, performer_4 VARCHAR, episode VARCHAR) Question: What day was wayne brady performer 2, ryan stiles performer 4, and an episode number greater than 5? [/INST] SELE... |
Which course has a flat stage on 4 September? | CREATE TABLE table_name_21 (course VARCHAR, type VARCHAR, date VARCHAR) | SELECT course FROM table_name_21 WHERE type = "flat stage" AND date = "4 september" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_21 (course VARCHAR, type VARCHAR, date VARCHAR) Question: Which course has a flat stage on 4 September? [/INST] SELECT course FROM table_name_21 WHERE type = "flat stage" AND date = "4 september" </s> |
What is the date for the La Granja de San Ildefonso to Alto de Navacerrada course? | CREATE TABLE table_name_67 (date VARCHAR, course VARCHAR) | SELECT date FROM table_name_67 WHERE course = "la granja de san ildefonso to alto de navacerrada" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_67 (date VARCHAR, course VARCHAR) Question: What is the date for the La Granja de San Ildefonso to Alto de Navacerrada course? [/INST] SELECT date FROM table_name_67 WHERE course = "la granja de san i... |
Who won the Granada course? | CREATE TABLE table_name_33 (winner VARCHAR, course VARCHAR) | SELECT winner FROM table_name_33 WHERE course = "granada" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_33 (winner VARCHAR, course VARCHAR) Question: Who won the Granada course? [/INST] SELECT winner FROM table_name_33 WHERE course = "granada" </s> |
What is the distance for the 5 September race? | CREATE TABLE table_name_69 (distance VARCHAR, date VARCHAR) | SELECT distance FROM table_name_69 WHERE date = "5 september" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_69 (distance VARCHAR, date VARCHAR) Question: What is the distance for the 5 September race? [/INST] SELECT distance FROM table_name_69 WHERE date = "5 september" </s> |
What is the race date for the course Jaén to Córdoba? | CREATE TABLE table_name_64 (date VARCHAR, course VARCHAR) | SELECT date FROM table_name_64 WHERE course = "jaén to córdoba" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_64 (date VARCHAR, course VARCHAR) Question: What is the race date for the course Jaén to Córdoba? [/INST] SELECT date FROM table_name_64 WHERE course = "jaén to córdoba" </s> |
What was the average election year that has less than 136 deputies, and 1,560,753 votes received? | CREATE TABLE table_name_86 (election_date INTEGER, number_of_deputies VARCHAR, number_of_votes_received VARCHAR) | SELECT AVG(election_date) FROM table_name_86 WHERE number_of_deputies < 136 AND number_of_votes_received = "1,560,753" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_86 (election_date INTEGER, number_of_deputies VARCHAR, number_of_votes_received VARCHAR) Question: What was the average election year that has less than 136 deputies, and 1,560,753 votes received? [/I... |
What percentage of the vote was 1,255,153 of received votes? | CREATE TABLE table_name_62 (percentage_of_votes VARCHAR, number_of_votes_received VARCHAR) | SELECT percentage_of_votes FROM table_name_62 WHERE number_of_votes_received = "1,255,153" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_62 (percentage_of_votes VARCHAR, number_of_votes_received VARCHAR) Question: What percentage of the vote was 1,255,153 of received votes? [/INST] SELECT percentage_of_votes FROM table_name_62 WHERE nu... |
What were the number of deputies for the 1964 election year? | CREATE TABLE table_name_44 (number_of_deputies VARCHAR, election_date VARCHAR) | SELECT number_of_deputies FROM table_name_44 WHERE election_date = 1964 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_44 (number_of_deputies VARCHAR, election_date VARCHAR) Question: What were the number of deputies for the 1964 election year? [/INST] SELECT number_of_deputies FROM table_name_44 WHERE election_date =... |
What is the number of deputies with 94.2% of the votes? | CREATE TABLE table_name_74 (number_of_deputies INTEGER, percentage_of_votes VARCHAR) | SELECT SUM(number_of_deputies) FROM table_name_74 WHERE percentage_of_votes = "94.2%" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_74 (number_of_deputies INTEGER, percentage_of_votes VARCHAR) Question: What is the number of deputies with 94.2% of the votes? [/INST] SELECT SUM(number_of_deputies) FROM table_name_74 WHERE percentag... |
What was deputies with the lowest number of unknown received votes, in an election year after 1986? | CREATE TABLE table_name_17 (number_of_deputies INTEGER, number_of_votes_received VARCHAR, election_date VARCHAR) | SELECT MIN(number_of_deputies) FROM table_name_17 WHERE number_of_votes_received = "unknown" AND election_date > 1986 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_17 (number_of_deputies INTEGER, number_of_votes_received VARCHAR, election_date VARCHAR) Question: What was deputies with the lowest number of unknown received votes, in an election year after 1986? [... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.