instruction
stringlengths 12
244
| input
stringlengths 27
489
| output
stringlengths 18
557
| text
stringlengths 194
1.14k
|
---|---|---|---|
Which Tournament has a Score of 4-6 6-2 6-1?
|
CREATE TABLE table_name_40 (tournament VARCHAR, score VARCHAR)
|
SELECT tournament FROM table_name_40 WHERE score = "4-6 6-2 6-1"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (tournament VARCHAR, score VARCHAR) Question: Which Tournament has a Score of 4-6 6-2 6-1? [/INST] SELECT tournament FROM table_name_40 WHERE score = "4-6 6-2 6-1" </s>
|
Which outcome has a Surface of clay and a Score of 4–6, 7–5, 2–6?
|
CREATE TABLE table_name_50 (outcome VARCHAR, surface VARCHAR, score VARCHAR)
|
SELECT outcome FROM table_name_50 WHERE surface = "clay" AND score = "4–6, 7–5, 2–6"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_50 (outcome VARCHAR, surface VARCHAR, score VARCHAR) Question: Which outcome has a Surface of clay and a Score of 4–6, 7–5, 2–6? [/INST] SELECT outcome FROM table_name_50 WHERE surface = "clay" AND score = "4–6, 7–5, 2–6" </s>
|
What date was versmold?
|
CREATE TABLE table_name_15 (date VARCHAR, tournament VARCHAR)
|
SELECT date FROM table_name_15 WHERE tournament = "versmold"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_15 (date VARCHAR, tournament VARCHAR) Question: What date was versmold? [/INST] SELECT date FROM table_name_15 WHERE tournament = "versmold" </s>
|
Name the competition for motherwell opponents
|
CREATE TABLE table_name_17 (competition VARCHAR, opponents VARCHAR)
|
SELECT competition FROM table_name_17 WHERE opponents = "motherwell"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_17 (competition VARCHAR, opponents VARCHAR) Question: Name the competition for motherwell opponents [/INST] SELECT competition FROM table_name_17 WHERE opponents = "motherwell" </s>
|
Name the home leg for uefa europa league and round of q1 with opponents of motherwell
|
CREATE TABLE table_name_82 (home_leg VARCHAR, opponents VARCHAR, competition VARCHAR, round VARCHAR)
|
SELECT home_leg FROM table_name_82 WHERE competition = "uefa europa league" AND round = "q1" AND opponents = "motherwell"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_82 (home_leg VARCHAR, opponents VARCHAR, competition VARCHAR, round VARCHAR) Question: Name the home leg for uefa europa league and round of q1 with opponents of motherwell [/INST] SELECT home_leg FROM table_name_82 WHERE competition = "uefa europa league" AND round = "q1" AND opponents = "motherwell" </s>
|
Name the aggregate with opponents of tauras
|
CREATE TABLE table_name_65 (aggregate VARCHAR, opponents VARCHAR)
|
SELECT aggregate FROM table_name_65 WHERE opponents = "tauras"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_65 (aggregate VARCHAR, opponents VARCHAR) Question: Name the aggregate with opponents of tauras [/INST] SELECT aggregate FROM table_name_65 WHERE opponents = "tauras" </s>
|
What date was 53-75 recorded?
|
CREATE TABLE table_name_16 (date VARCHAR, record VARCHAR)
|
SELECT date FROM table_name_16 WHERE record = "53-75"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_16 (date VARCHAR, record VARCHAR) Question: What date was 53-75 recorded? [/INST] SELECT date FROM table_name_16 WHERE record = "53-75" </s>
|
Overall of 62 is what average round?
|
CREATE TABLE table_name_42 (round INTEGER, overall VARCHAR)
|
SELECT AVG(round) FROM table_name_42 WHERE overall = 62
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_42 (round INTEGER, overall VARCHAR) Question: Overall of 62 is what average round? [/INST] SELECT AVG(round) FROM table_name_42 WHERE overall = 62 </s>
|
College of san diego state, and a Pick # smaller than 30 is what lowest overall?
|
CREATE TABLE table_name_32 (overall INTEGER, college VARCHAR, pick__number VARCHAR)
|
SELECT MIN(overall) FROM table_name_32 WHERE college = "san diego state" AND pick__number < 30
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_32 (overall INTEGER, college VARCHAR, pick__number VARCHAR) Question: College of san diego state, and a Pick # smaller than 30 is what lowest overall? [/INST] SELECT MIN(overall) FROM table_name_32 WHERE college = "san diego state" AND pick__number < 30 </s>
|
College of san diego state, and a Pick # smaller than 30 has what lowest overall?
|
CREATE TABLE table_name_46 (overall INTEGER, college VARCHAR, pick__number VARCHAR)
|
SELECT MIN(overall) FROM table_name_46 WHERE college = "san diego state" AND pick__number < 30
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_46 (overall INTEGER, college VARCHAR, pick__number VARCHAR) Question: College of san diego state, and a Pick # smaller than 30 has what lowest overall? [/INST] SELECT MIN(overall) FROM table_name_46 WHERE college = "san diego state" AND pick__number < 30 </s>
|
Which city of license has an independent network affiliation, a variety format and is station KKUP?
|
CREATE TABLE table_name_9 (city_of_license VARCHAR, station VARCHAR, network_affiliation VARCHAR, format VARCHAR)
|
SELECT city_of_license FROM table_name_9 WHERE network_affiliation = "independent" AND format = "variety" AND station = "kkup"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_9 (city_of_license VARCHAR, station VARCHAR, network_affiliation VARCHAR, format VARCHAR) Question: Which city of license has an independent network affiliation, a variety format and is station KKUP? [/INST] SELECT city_of_license FROM table_name_9 WHERE network_affiliation = "independent" AND format = "variety" AND station = "kkup" </s>
|
What is the status of the independent station KPFB?
|
CREATE TABLE table_name_60 (status VARCHAR, network_affiliation VARCHAR, station VARCHAR)
|
SELECT status FROM table_name_60 WHERE network_affiliation = "independent" AND station = "kpfb"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_60 (status VARCHAR, network_affiliation VARCHAR, station VARCHAR) Question: What is the status of the independent station KPFB? [/INST] SELECT status FROM table_name_60 WHERE network_affiliation = "independent" AND station = "kpfb" </s>
|
Which city station is owned by Coyote Communications?
|
CREATE TABLE table_name_56 (city_of_license VARCHAR, status VARCHAR)
|
SELECT city_of_license FROM table_name_56 WHERE status = "owned by coyote communications"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_56 (city_of_license VARCHAR, status VARCHAR) Question: Which city station is owned by Coyote Communications? [/INST] SELECT city_of_license FROM table_name_56 WHERE status = "owned by coyote communications" </s>
|
What year were the Olympic Games?
|
CREATE TABLE table_name_10 (year INTEGER, competition VARCHAR)
|
SELECT SUM(year) FROM table_name_10 WHERE competition = "olympic games"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_10 (year INTEGER, competition VARCHAR) Question: What year were the Olympic Games? [/INST] SELECT SUM(year) FROM table_name_10 WHERE competition = "olympic games" </s>
|
What's the year in 5th position that happened in Osaka, Japan?
|
CREATE TABLE table_name_92 (year INTEGER, position VARCHAR, venue VARCHAR)
|
SELECT MIN(year) FROM table_name_92 WHERE position = "5th" AND venue = "osaka, japan"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_92 (year INTEGER, position VARCHAR, venue VARCHAR) Question: What's the year in 5th position that happened in Osaka, Japan? [/INST] SELECT MIN(year) FROM table_name_92 WHERE position = "5th" AND venue = "osaka, japan" </s>
|
What year was the venue in Barcelona, Spain?
|
CREATE TABLE table_name_57 (year INTEGER, venue VARCHAR)
|
SELECT MIN(year) FROM table_name_57 WHERE venue = "barcelona, spain"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_57 (year INTEGER, venue VARCHAR) Question: What year was the venue in Barcelona, Spain? [/INST] SELECT MIN(year) FROM table_name_57 WHERE venue = "barcelona, spain" </s>
|
For a school with authority of state and a roll of 798, what is the decile?
|
CREATE TABLE table_name_10 (decile VARCHAR, authority VARCHAR, roll VARCHAR)
|
SELECT decile FROM table_name_10 WHERE authority = "state" AND roll = 798
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_10 (decile VARCHAR, authority VARCHAR, roll VARCHAR) Question: For a school with authority of state and a roll of 798, what is the decile? [/INST] SELECT decile FROM table_name_10 WHERE authority = "state" AND roll = 798 </s>
|
Murupara has a roll greater than 296 for what years?
|
CREATE TABLE table_name_6 (years VARCHAR, roll VARCHAR, area VARCHAR)
|
SELECT years FROM table_name_6 WHERE roll > 296 AND area = "murupara"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_6 (years VARCHAR, roll VARCHAR, area VARCHAR) Question: Murupara has a roll greater than 296 for what years? [/INST] SELECT years FROM table_name_6 WHERE roll > 296 AND area = "murupara" </s>
|
When a school has authority of state and a decile greater than 1, what is the roll number?
|
CREATE TABLE table_name_66 (roll VARCHAR, authority VARCHAR, decile VARCHAR)
|
SELECT roll FROM table_name_66 WHERE authority = "state" AND decile > 1
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_66 (roll VARCHAR, authority VARCHAR, decile VARCHAR) Question: When a school has authority of state and a decile greater than 1, what is the roll number? [/INST] SELECT roll FROM table_name_66 WHERE authority = "state" AND decile > 1 </s>
|
Who did the Jays play on August 30?
|
CREATE TABLE table_name_53 (opponent VARCHAR, date VARCHAR)
|
SELECT opponent FROM table_name_53 WHERE date = "august 30"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_53 (opponent VARCHAR, date VARCHAR) Question: Who did the Jays play on August 30? [/INST] SELECT opponent FROM table_name_53 WHERE date = "august 30" </s>
|
Which opponent has a record of 5-0-1?
|
CREATE TABLE table_name_10 (opponent VARCHAR, record VARCHAR)
|
SELECT opponent FROM table_name_10 WHERE record = "5-0-1"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_10 (opponent VARCHAR, record VARCHAR) Question: Which opponent has a record of 5-0-1? [/INST] SELECT opponent FROM table_name_10 WHERE record = "5-0-1" </s>
|
What method does the opponent of Dan New use?
|
CREATE TABLE table_name_90 (method VARCHAR, opponent VARCHAR)
|
SELECT method FROM table_name_90 WHERE opponent = "dan new"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_90 (method VARCHAR, opponent VARCHAR) Question: What method does the opponent of Dan New use? [/INST] SELECT method FROM table_name_90 WHERE opponent = "dan new" </s>
|
Which method has a record of 3-0?
|
CREATE TABLE table_name_27 (method VARCHAR, record VARCHAR)
|
SELECT method FROM table_name_27 WHERE record = "3-0"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_27 (method VARCHAR, record VARCHAR) Question: Which method has a record of 3-0? [/INST] SELECT method FROM table_name_27 WHERE record = "3-0" </s>
|
Which event is a win by an opponent of Nicolas Smith, with the round marked n/a?
|
CREATE TABLE table_name_24 (event VARCHAR, opponent VARCHAR, res VARCHAR, round VARCHAR)
|
SELECT event FROM table_name_24 WHERE res = "win" AND round = "n/a" AND opponent = "nicolas smith"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_24 (event VARCHAR, opponent VARCHAR, res VARCHAR, round VARCHAR) Question: Which event is a win by an opponent of Nicolas Smith, with the round marked n/a? [/INST] SELECT event FROM table_name_24 WHERE res = "win" AND round = "n/a" AND opponent = "nicolas smith" </s>
|
Which event lasted 1 round and included an opponent of Dan Spychalski?
|
CREATE TABLE table_name_36 (event VARCHAR, round VARCHAR, opponent VARCHAR)
|
SELECT event FROM table_name_36 WHERE round = "1" AND opponent = "dan spychalski"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_36 (event VARCHAR, round VARCHAR, opponent VARCHAR) Question: Which event lasted 1 round and included an opponent of Dan Spychalski? [/INST] SELECT event FROM table_name_36 WHERE round = "1" AND opponent = "dan spychalski" </s>
|
What is Jimmy Smith's opponent's record?
|
CREATE TABLE table_name_70 (record VARCHAR, opponent VARCHAR)
|
SELECT record FROM table_name_70 WHERE opponent = "jimmy smith"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_70 (record VARCHAR, opponent VARCHAR) Question: What is Jimmy Smith's opponent's record? [/INST] SELECT record FROM table_name_70 WHERE opponent = "jimmy smith" </s>
|
Name the sum of frequecy with brand of exa fm
|
CREATE TABLE table_name_47 (frequency INTEGER, brand VARCHAR)
|
SELECT SUM(frequency) FROM table_name_47 WHERE brand = "exa fm"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_47 (frequency INTEGER, brand VARCHAR) Question: Name the sum of frequecy with brand of exa fm [/INST] SELECT SUM(frequency) FROM table_name_47 WHERE brand = "exa fm" </s>
|
Name the webcast for website of • and frequency of 103.3
|
CREATE TABLE table_name_5 (webcast VARCHAR, website VARCHAR, frequency VARCHAR)
|
SELECT webcast FROM table_name_5 WHERE website = "•" AND frequency = 103.3
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_5 (webcast VARCHAR, website VARCHAR, frequency VARCHAR) Question: Name the webcast for website of • and frequency of 103.3 [/INST] SELECT webcast FROM table_name_5 WHERE website = "•" AND frequency = 103.3 </s>
|
Name the lowest frequency for brand of radio manantial
|
CREATE TABLE table_name_54 (frequency INTEGER, brand VARCHAR)
|
SELECT MIN(frequency) FROM table_name_54 WHERE brand = "radio manantial"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_54 (frequency INTEGER, brand VARCHAR) Question: Name the lowest frequency for brand of radio manantial [/INST] SELECT MIN(frequency) FROM table_name_54 WHERE brand = "radio manantial" </s>
|
Score of new york yankees – 2, brooklyn dodgers – 3 involves how many number of games?
|
CREATE TABLE table_name_13 (game VARCHAR, score VARCHAR)
|
SELECT COUNT(game) FROM table_name_13 WHERE score = "new york yankees – 2, brooklyn dodgers – 3"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_13 (game VARCHAR, score VARCHAR) Question: Score of new york yankees – 2, brooklyn dodgers – 3 involves how many number of games? [/INST] SELECT COUNT(game) FROM table_name_13 WHERE score = "new york yankees – 2, brooklyn dodgers – 3" </s>
|
Date of october 5 had what score?
|
CREATE TABLE table_name_15 (score VARCHAR, date VARCHAR)
|
SELECT score FROM table_name_15 WHERE date = "october 5"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_15 (score VARCHAR, date VARCHAR) Question: Date of october 5 had what score? [/INST] SELECT score FROM table_name_15 WHERE date = "october 5" </s>
|
brooklyn dodgers – 3, new york yankees – 5, and a Game larger than 1 had what attendance figure?
|
CREATE TABLE table_name_47 (attendance INTEGER, score VARCHAR, game VARCHAR)
|
SELECT SUM(attendance) FROM table_name_47 WHERE score = "brooklyn dodgers – 3, new york yankees – 5" AND game > 1
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_47 (attendance INTEGER, score VARCHAR, game VARCHAR) Question: brooklyn dodgers – 3, new york yankees – 5, and a Game larger than 1 had what attendance figure? [/INST] SELECT SUM(attendance) FROM table_name_47 WHERE score = "brooklyn dodgers – 3, new york yankees – 5" AND game > 1 </s>
|
Who won mixed doubles in the 2002 season?
|
CREATE TABLE table_name_42 (mixed_doubles VARCHAR, season VARCHAR)
|
SELECT mixed_doubles FROM table_name_42 WHERE season = 2002
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_42 (mixed_doubles VARCHAR, season VARCHAR) Question: Who won mixed doubles in the 2002 season? [/INST] SELECT mixed_doubles FROM table_name_42 WHERE season = 2002 </s>
|
Name the lowest Quay cranes for Berths of 1 and operator of mtl with terminal of terminal 5 (ct5)
|
CREATE TABLE table_name_72 (quay_cranes INTEGER, terminal VARCHAR, berths VARCHAR, operator VARCHAR)
|
SELECT MIN(quay_cranes) FROM table_name_72 WHERE berths = 1 AND operator = "mtl" AND terminal = "terminal 5 (ct5)"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_72 (quay_cranes INTEGER, terminal VARCHAR, berths VARCHAR, operator VARCHAR) Question: Name the lowest Quay cranes for Berths of 1 and operator of mtl with terminal of terminal 5 (ct5) [/INST] SELECT MIN(quay_cranes) FROM table_name_72 WHERE berths = 1 AND operator = "mtl" AND terminal = "terminal 5 (ct5)" </s>
|
Name the operator with berths more than 1 and depth of 12.5-15.5
|
CREATE TABLE table_name_81 (operator VARCHAR, berths VARCHAR, depth__m_ VARCHAR)
|
SELECT operator FROM table_name_81 WHERE berths > 1 AND depth__m_ = "12.5-15.5"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_81 (operator VARCHAR, berths VARCHAR, depth__m_ VARCHAR) Question: Name the operator with berths more than 1 and depth of 12.5-15.5 [/INST] SELECT operator FROM table_name_81 WHERE berths > 1 AND depth__m_ = "12.5-15.5" </s>
|
What is the average points that Centro Asegurador earned with the McLaren M23 chassis?
|
CREATE TABLE table_name_3 (points INTEGER, chassis VARCHAR, entrant VARCHAR)
|
SELECT AVG(points) FROM table_name_3 WHERE chassis = "mclaren m23" AND entrant = "centro asegurador"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_3 (points INTEGER, chassis VARCHAR, entrant VARCHAR) Question: What is the average points that Centro Asegurador earned with the McLaren M23 chassis? [/INST] SELECT AVG(points) FROM table_name_3 WHERE chassis = "mclaren m23" AND entrant = "centro asegurador" </s>
|
What was the chassis of Emilio de Villota in 1981?
|
CREATE TABLE table_name_94 (chassis VARCHAR, year INTEGER)
|
SELECT chassis FROM table_name_94 WHERE year > 1981
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_94 (chassis VARCHAR, year INTEGER) Question: What was the chassis of Emilio de Villota in 1981? [/INST] SELECT chassis FROM table_name_94 WHERE year > 1981 </s>
|
What directors won an award on 14/6/6?
|
CREATE TABLE table_name_98 (director_s_ VARCHAR, date VARCHAR)
|
SELECT director_s_ FROM table_name_98 WHERE date = "14/6/6"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_98 (director_s_ VARCHAR, date VARCHAR) Question: What directors won an award on 14/6/6? [/INST] SELECT director_s_ FROM table_name_98 WHERE date = "14/6/6" </s>
|
What date did Passion Pictures receive an award?
|
CREATE TABLE table_name_42 (date VARCHAR, recipient VARCHAR)
|
SELECT date FROM table_name_42 WHERE recipient = "passion pictures"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_42 (date VARCHAR, recipient VARCHAR) Question: What date did Passion Pictures receive an award? [/INST] SELECT date FROM table_name_42 WHERE recipient = "passion pictures" </s>
|
What award did Charlie Productions Ltd receive?
|
CREATE TABLE table_name_14 (award VARCHAR, recipient VARCHAR)
|
SELECT award FROM table_name_14 WHERE recipient = "charlie productions ltd"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_14 (award VARCHAR, recipient VARCHAR) Question: What award did Charlie Productions Ltd receive? [/INST] SELECT award FROM table_name_14 WHERE recipient = "charlie productions ltd" </s>
|
What film had Bub Ltd as the recipient?
|
CREATE TABLE table_name_75 (film VARCHAR, recipient VARCHAR)
|
SELECT film FROM table_name_75 WHERE recipient = "bub ltd"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_75 (film VARCHAR, recipient VARCHAR) Question: What film had Bub Ltd as the recipient? [/INST] SELECT film FROM table_name_75 WHERE recipient = "bub ltd" </s>
|
What film was awarded on 22/3/06?
|
CREATE TABLE table_name_2 (film VARCHAR, date VARCHAR)
|
SELECT film FROM table_name_2 WHERE date = "22/3/06"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_2 (film VARCHAR, date VARCHAR) Question: What film was awarded on 22/3/06? [/INST] SELECT film FROM table_name_2 WHERE date = "22/3/06" </s>
|
What score resulted in a winner after 2008?
|
CREATE TABLE table_name_18 (score VARCHAR, outcome VARCHAR, year VARCHAR)
|
SELECT score FROM table_name_18 WHERE outcome = "winner" AND year > 2008
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_18 (score VARCHAR, outcome VARCHAR, year VARCHAR) Question: What score resulted in a winner after 2008? [/INST] SELECT score FROM table_name_18 WHERE outcome = "winner" AND year > 2008 </s>
|
What score has an opponent gan teik chai lin woon fui?
|
CREATE TABLE table_name_6 (score VARCHAR, opponent VARCHAR)
|
SELECT score FROM table_name_6 WHERE opponent = "gan teik chai lin woon fui"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_6 (score VARCHAR, opponent VARCHAR) Question: What score has an opponent gan teik chai lin woon fui? [/INST] SELECT score FROM table_name_6 WHERE opponent = "gan teik chai lin woon fui" </s>
|
What tournament has an opponent gan teik chai lin woon fui?
|
CREATE TABLE table_name_77 (tournament VARCHAR, opponent VARCHAR)
|
SELECT tournament FROM table_name_77 WHERE opponent = "gan teik chai lin woon fui"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_77 (tournament VARCHAR, opponent VARCHAR) Question: What tournament has an opponent gan teik chai lin woon fui? [/INST] SELECT tournament FROM table_name_77 WHERE opponent = "gan teik chai lin woon fui" </s>
|
What tournament has an opponent jung jae-sung lee yong-dae?
|
CREATE TABLE table_name_59 (tournament VARCHAR, opponent VARCHAR)
|
SELECT tournament FROM table_name_59 WHERE opponent = "jung jae-sung lee yong-dae"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_59 (tournament VARCHAR, opponent VARCHAR) Question: What tournament has an opponent jung jae-sung lee yong-dae? [/INST] SELECT tournament FROM table_name_59 WHERE opponent = "jung jae-sung lee yong-dae" </s>
|
What is the record of the team that lost to Alexander (5-2)?
|
CREATE TABLE table_name_12 (record VARCHAR, loss VARCHAR)
|
SELECT record FROM table_name_12 WHERE loss = "alexander (5-2)"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_12 (record VARCHAR, loss VARCHAR) Question: What is the record of the team that lost to Alexander (5-2)? [/INST] SELECT record FROM table_name_12 WHERE loss = "alexander (5-2)" </s>
|
Which opponent has a record of 17-11?
|
CREATE TABLE table_name_86 (opponent VARCHAR, record VARCHAR)
|
SELECT opponent FROM table_name_86 WHERE record = "17-11"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_86 (opponent VARCHAR, record VARCHAR) Question: Which opponent has a record of 17-11? [/INST] SELECT opponent FROM table_name_86 WHERE record = "17-11" </s>
|
What is the score of the game that resulted in a 15-9 record?
|
CREATE TABLE table_name_46 (score VARCHAR, record VARCHAR)
|
SELECT score FROM table_name_46 WHERE record = "15-9"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_46 (score VARCHAR, record VARCHAR) Question: What is the score of the game that resulted in a 15-9 record? [/INST] SELECT score FROM table_name_46 WHERE record = "15-9" </s>
|
What was the attendance on May 26?
|
CREATE TABLE table_name_86 (attendance VARCHAR, date VARCHAR)
|
SELECT attendance FROM table_name_86 WHERE date = "may 26"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_86 (attendance VARCHAR, date VARCHAR) Question: What was the attendance on May 26? [/INST] SELECT attendance FROM table_name_86 WHERE date = "may 26" </s>
|
What is the score of the game that was a loss to Dotson (2-3)?
|
CREATE TABLE table_name_34 (score VARCHAR, loss VARCHAR)
|
SELECT score FROM table_name_34 WHERE loss = "dotson (2-3)"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_34 (score VARCHAR, loss VARCHAR) Question: What is the score of the game that was a loss to Dotson (2-3)? [/INST] SELECT score FROM table_name_34 WHERE loss = "dotson (2-3)" </s>
|
On what date was the record 19-11?
|
CREATE TABLE table_name_58 (date VARCHAR, record VARCHAR)
|
SELECT date FROM table_name_58 WHERE record = "19-11"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_58 (date VARCHAR, record VARCHAR) Question: On what date was the record 19-11? [/INST] SELECT date FROM table_name_58 WHERE record = "19-11" </s>
|
What were the highest points before the year 1974?
|
CREATE TABLE table_name_61 (points INTEGER, year INTEGER)
|
SELECT MAX(points) FROM table_name_61 WHERE year < 1974
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_61 (points INTEGER, year INTEGER) Question: What were the highest points before the year 1974? [/INST] SELECT MAX(points) FROM table_name_61 WHERE year < 1974 </s>
|
What was the chassis when the entrant was Lavazza March, and the points were 0.5?
|
CREATE TABLE table_name_75 (chassis VARCHAR, entrant VARCHAR, points VARCHAR)
|
SELECT chassis FROM table_name_75 WHERE entrant = "lavazza march" AND points = 0.5
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_75 (chassis VARCHAR, entrant VARCHAR, points VARCHAR) Question: What was the chassis when the entrant was Lavazza March, and the points were 0.5? [/INST] SELECT chassis FROM table_name_75 WHERE entrant = "lavazza march" AND points = 0.5 </s>
|
What was the chassis when the entrant was Lavazza March, and the year was 1975?
|
CREATE TABLE table_name_38 (chassis VARCHAR, entrant VARCHAR, year VARCHAR)
|
SELECT chassis FROM table_name_38 WHERE entrant = "lavazza march" AND year = 1975
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_38 (chassis VARCHAR, entrant VARCHAR, year VARCHAR) Question: What was the chassis when the entrant was Lavazza March, and the year was 1975? [/INST] SELECT chassis FROM table_name_38 WHERE entrant = "lavazza march" AND year = 1975 </s>
|
What was the chassis when the points were greater than 0 and the entrant was March Engineering?
|
CREATE TABLE table_name_74 (chassis VARCHAR, points VARCHAR, entrant VARCHAR)
|
SELECT chassis FROM table_name_74 WHERE points > 0 AND entrant = "march engineering"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_74 (chassis VARCHAR, points VARCHAR, entrant VARCHAR) Question: What was the chassis when the points were greater than 0 and the entrant was March Engineering? [/INST] SELECT chassis FROM table_name_74 WHERE points > 0 AND entrant = "march engineering" </s>
|
Who had a time of 56.07?
|
CREATE TABLE table_name_21 (name VARCHAR, time VARCHAR)
|
SELECT name FROM table_name_21 WHERE time = 56.07
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_21 (name VARCHAR, time VARCHAR) Question: Who had a time of 56.07? [/INST] SELECT name FROM table_name_21 WHERE time = 56.07 </s>
|
What is the original title of Madame Rosa?
|
CREATE TABLE table_name_83 (original_title VARCHAR, english_title VARCHAR)
|
SELECT original_title FROM table_name_83 WHERE english_title = "madame rosa"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_83 (original_title VARCHAR, english_title VARCHAR) Question: What is the original title of Madame Rosa? [/INST] SELECT original_title FROM table_name_83 WHERE english_title = "madame rosa" </s>
|
What is the original title where Paul Verhoeven is the director?
|
CREATE TABLE table_name_42 (original_title VARCHAR, director VARCHAR)
|
SELECT original_title FROM table_name_42 WHERE director = "paul verhoeven"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_42 (original_title VARCHAR, director VARCHAR) Question: What is the original title where Paul Verhoeven is the director? [/INST] SELECT original_title FROM table_name_42 WHERE director = "paul verhoeven" </s>
|
What original title has a year of 1978?
|
CREATE TABLE table_name_18 (original_title VARCHAR, year VARCHAR)
|
SELECT original_title FROM table_name_18 WHERE year = "1978"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_18 (original_title VARCHAR, year VARCHAR) Question: What original title has a year of 1978? [/INST] SELECT original_title FROM table_name_18 WHERE year = "1978" </s>
|
Who is the director of the best foreign film?
|
CREATE TABLE table_name_14 (director VARCHAR, original_title VARCHAR)
|
SELECT director FROM table_name_14 WHERE original_title = "best foreign film"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_14 (director VARCHAR, original_title VARCHAR) Question: Who is the director of the best foreign film? [/INST] SELECT director FROM table_name_14 WHERE original_title = "best foreign film" </s>
|
What is the English title for Ansikte Mot Ansikte?
|
CREATE TABLE table_name_90 (english_title VARCHAR, original_title VARCHAR)
|
SELECT english_title FROM table_name_90 WHERE original_title = "ansikte mot ansikte"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_90 (english_title VARCHAR, original_title VARCHAR) Question: What is the English title for Ansikte Mot Ansikte? [/INST] SELECT english_title FROM table_name_90 WHERE original_title = "ansikte mot ansikte" </s>
|
What happened on 2009-09-05?
|
CREATE TABLE table_name_93 (circumstances VARCHAR, date VARCHAR)
|
SELECT circumstances FROM table_name_93 WHERE date = "2009-09-05"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_93 (circumstances VARCHAR, date VARCHAR) Question: What happened on 2009-09-05? [/INST] SELECT circumstances FROM table_name_93 WHERE date = "2009-09-05" </s>
|
Where was the combat of 2009-09-16?
|
CREATE TABLE table_name_80 (location VARCHAR, circumstances VARCHAR, date VARCHAR)
|
SELECT location FROM table_name_80 WHERE circumstances = "combat" AND date = "2009-09-16"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_80 (location VARCHAR, circumstances VARCHAR, date VARCHAR) Question: Where was the combat of 2009-09-16? [/INST] SELECT location FROM table_name_80 WHERE circumstances = "combat" AND date = "2009-09-16" </s>
|
What happened on 2009-03-14?
|
CREATE TABLE table_name_25 (circumstances VARCHAR, date VARCHAR)
|
SELECT circumstances FROM table_name_25 WHERE date = "2009-03-14"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_25 (circumstances VARCHAR, date VARCHAR) Question: What happened on 2009-03-14? [/INST] SELECT circumstances FROM table_name_25 WHERE date = "2009-03-14" </s>
|
How many casualties from the combat in the Fayzabad area?
|
CREATE TABLE table_name_71 (casualties VARCHAR, circumstances VARCHAR, location VARCHAR)
|
SELECT casualties FROM table_name_71 WHERE circumstances = "combat" AND location = "fayzabad area"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_71 (casualties VARCHAR, circumstances VARCHAR, location VARCHAR) Question: How many casualties from the combat in the Fayzabad area? [/INST] SELECT casualties FROM table_name_71 WHERE circumstances = "combat" AND location = "fayzabad area" </s>
|
Where was the incident of 2009-09-05?
|
CREATE TABLE table_name_28 (location VARCHAR, date VARCHAR)
|
SELECT location FROM table_name_28 WHERE date = "2009-09-05"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_28 (location VARCHAR, date VARCHAR) Question: Where was the incident of 2009-09-05? [/INST] SELECT location FROM table_name_28 WHERE date = "2009-09-05" </s>
|
What is the home team of the game on January 22?
|
CREATE TABLE table_name_67 (home VARCHAR, date VARCHAR)
|
SELECT home FROM table_name_67 WHERE date = "january 22"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_67 (home VARCHAR, date VARCHAR) Question: What is the home team of the game on January 22? [/INST] SELECT home FROM table_name_67 WHERE date = "january 22" </s>
|
What is the score of the game on February 26 with the Chicago black hawks as the home team and the New York Rangers as the visitor team?
|
CREATE TABLE table_name_59 (score VARCHAR, date VARCHAR, home VARCHAR, visitor VARCHAR)
|
SELECT score FROM table_name_59 WHERE home = "chicago black hawks" AND visitor = "new york rangers" AND date = "february 26"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_59 (score VARCHAR, date VARCHAR, home VARCHAR, visitor VARCHAR) Question: What is the score of the game on February 26 with the Chicago black hawks as the home team and the New York Rangers as the visitor team? [/INST] SELECT score FROM table_name_59 WHERE home = "chicago black hawks" AND visitor = "new york rangers" AND date = "february 26" </s>
|
What is the home team of the game on February 4?
|
CREATE TABLE table_name_74 (home VARCHAR, date VARCHAR)
|
SELECT home FROM table_name_74 WHERE date = "february 4"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_74 (home VARCHAR, date VARCHAR) Question: What is the home team of the game on February 4? [/INST] SELECT home FROM table_name_74 WHERE date = "february 4" </s>
|
What Team had less than 1 point with a Zakspeed 871 chassis?
|
CREATE TABLE table_name_44 (team VARCHAR, points VARCHAR, chassis VARCHAR)
|
SELECT team FROM table_name_44 WHERE points < 1 AND chassis = "zakspeed 871"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_44 (team VARCHAR, points VARCHAR, chassis VARCHAR) Question: What Team had less than 1 point with a Zakspeed 871 chassis? [/INST] SELECT team FROM table_name_44 WHERE points < 1 AND chassis = "zakspeed 871" </s>
|
What is the lowest amount of points for a Ford Cosworth DFR (Mader) 3.5 V8 engine?
|
CREATE TABLE table_name_35 (points INTEGER, engine VARCHAR)
|
SELECT MIN(points) FROM table_name_35 WHERE engine = "ford cosworth dfr (mader) 3.5 v8"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_35 (points INTEGER, engine VARCHAR) Question: What is the lowest amount of points for a Ford Cosworth DFR (Mader) 3.5 V8 engine? [/INST] SELECT MIN(points) FROM table_name_35 WHERE engine = "ford cosworth dfr (mader) 3.5 v8" </s>
|
What year was a Rial Arc2 chassis used?
|
CREATE TABLE table_name_55 (year INTEGER, chassis VARCHAR)
|
SELECT SUM(year) FROM table_name_55 WHERE chassis = "rial arc2"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_55 (year INTEGER, chassis VARCHAR) Question: What year was a Rial Arc2 chassis used? [/INST] SELECT SUM(year) FROM table_name_55 WHERE chassis = "rial arc2" </s>
|
Name the bronze when silver is 1
|
CREATE TABLE table_name_25 (bronze VARCHAR, silver VARCHAR)
|
SELECT bronze FROM table_name_25 WHERE silver = 1
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_25 (bronze VARCHAR, silver VARCHAR) Question: Name the bronze when silver is 1 [/INST] SELECT bronze FROM table_name_25 WHERE silver = 1 </s>
|
Name the least silver when gold is less than 0
|
CREATE TABLE table_name_41 (silver INTEGER, gold INTEGER)
|
SELECT MIN(silver) FROM table_name_41 WHERE gold < 0
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_41 (silver INTEGER, gold INTEGER) Question: Name the least silver when gold is less than 0 [/INST] SELECT MIN(silver) FROM table_name_41 WHERE gold < 0 </s>
|
Name the least silver for nation of total when bronze is more than 24
|
CREATE TABLE table_name_40 (silver INTEGER, nation VARCHAR, bronze VARCHAR)
|
SELECT MIN(silver) FROM table_name_40 WHERE nation = "total" AND bronze > 24
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (silver INTEGER, nation VARCHAR, bronze VARCHAR) Question: Name the least silver for nation of total when bronze is more than 24 [/INST] SELECT MIN(silver) FROM table_name_40 WHERE nation = "total" AND bronze > 24 </s>
|
Name the year with finish of 12th and record of 23-36
|
CREATE TABLE table_name_14 (year VARCHAR, finish VARCHAR, record VARCHAR)
|
SELECT year FROM table_name_14 WHERE finish = "12th" AND record = "23-36"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_14 (year VARCHAR, finish VARCHAR, record VARCHAR) Question: Name the year with finish of 12th and record of 23-36 [/INST] SELECT year FROM table_name_14 WHERE finish = "12th" AND record = "23-36" </s>
|
Name the record for 1997
|
CREATE TABLE table_name_78 (record VARCHAR, year VARCHAR)
|
SELECT record FROM table_name_78 WHERE year = "1997"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_78 (record VARCHAR, year VARCHAR) Question: Name the record for 1997 [/INST] SELECT record FROM table_name_78 WHERE year = "1997" </s>
|
Name the year for jesus alfaro and finish of 6th
|
CREATE TABLE table_name_65 (year VARCHAR, manager VARCHAR, finish VARCHAR)
|
SELECT year FROM table_name_65 WHERE manager = "jesus alfaro" AND finish = "6th"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_65 (year VARCHAR, manager VARCHAR, finish VARCHAR) Question: Name the year for jesus alfaro and finish of 6th [/INST] SELECT year FROM table_name_65 WHERE manager = "jesus alfaro" AND finish = "6th" </s>
|
Name the manager for playoffs of missed for 1999
|
CREATE TABLE table_name_45 (manager VARCHAR, playoffs VARCHAR, year VARCHAR)
|
SELECT manager FROM table_name_45 WHERE playoffs = "missed" AND year = "1999"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_45 (manager VARCHAR, playoffs VARCHAR, year VARCHAR) Question: Name the manager for playoffs of missed for 1999 [/INST] SELECT manager FROM table_name_45 WHERE playoffs = "missed" AND year = "1999" </s>
|
What was the average attendance when the record was 17-18?
|
CREATE TABLE table_name_45 (attendance INTEGER, record VARCHAR)
|
SELECT AVG(attendance) FROM table_name_45 WHERE record = "17-18"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_45 (attendance INTEGER, record VARCHAR) Question: What was the average attendance when the record was 17-18? [/INST] SELECT AVG(attendance) FROM table_name_45 WHERE record = "17-18" </s>
|
What was marlboro brm's lowest points by using brm p160b?
|
CREATE TABLE table_name_60 (points INTEGER, entrant VARCHAR, chassis VARCHAR)
|
SELECT MIN(points) FROM table_name_60 WHERE entrant = "marlboro brm" AND chassis = "brm p160b"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_60 (points INTEGER, entrant VARCHAR, chassis VARCHAR) Question: What was marlboro brm's lowest points by using brm p160b? [/INST] SELECT MIN(points) FROM table_name_60 WHERE entrant = "marlboro brm" AND chassis = "brm p160b" </s>
|
What is the total points in 1974?
|
CREATE TABLE table_name_47 (points VARCHAR, year VARCHAR)
|
SELECT COUNT(points) FROM table_name_47 WHERE year = 1974
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_47 (points VARCHAR, year VARCHAR) Question: What is the total points in 1974? [/INST] SELECT COUNT(points) FROM table_name_47 WHERE year = 1974 </s>
|
Who has 0 points in 1974?
|
CREATE TABLE table_name_3 (entrant VARCHAR, points VARCHAR, year VARCHAR)
|
SELECT entrant FROM table_name_3 WHERE points = 0 AND year = 1974
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_3 (entrant VARCHAR, points VARCHAR, year VARCHAR) Question: Who has 0 points in 1974? [/INST] SELECT entrant FROM table_name_3 WHERE points = 0 AND year = 1974 </s>
|
What is the lowest points of using mclaren m14a as chassis?
|
CREATE TABLE table_name_37 (points INTEGER, chassis VARCHAR)
|
SELECT MIN(points) FROM table_name_37 WHERE chassis = "mclaren m14a"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_37 (points INTEGER, chassis VARCHAR) Question: What is the lowest points of using mclaren m14a as chassis? [/INST] SELECT MIN(points) FROM table_name_37 WHERE chassis = "mclaren m14a" </s>
|
Location of saint paul, and a Final-Score larger than 14.35, and a Event of all around is what sum of year?
|
CREATE TABLE table_name_39 (year INTEGER, event VARCHAR, location VARCHAR, final_score VARCHAR)
|
SELECT SUM(year) FROM table_name_39 WHERE location = "saint paul" AND final_score > 14.35 AND event = "all around"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_39 (year INTEGER, event VARCHAR, location VARCHAR, final_score VARCHAR) Question: Location of saint paul, and a Final-Score larger than 14.35, and a Event of all around is what sum of year? [/INST] SELECT SUM(year) FROM table_name_39 WHERE location = "saint paul" AND final_score > 14.35 AND event = "all around" </s>
|
Competition of u.s championships, and a Event of all around has what average year?
|
CREATE TABLE table_name_61 (year INTEGER, competition VARCHAR, event VARCHAR)
|
SELECT AVG(year) FROM table_name_61 WHERE competition = "u.s championships" AND event = "all around"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_61 (year INTEGER, competition VARCHAR, event VARCHAR) Question: Competition of u.s championships, and a Event of all around has what average year? [/INST] SELECT AVG(year) FROM table_name_61 WHERE competition = "u.s championships" AND event = "all around" </s>
|
What film was in 1970?
|
CREATE TABLE table_name_55 (film VARCHAR, year VARCHAR)
|
SELECT film FROM table_name_55 WHERE year = 1970
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_55 (film VARCHAR, year VARCHAR) Question: What film was in 1970? [/INST] SELECT film FROM table_name_55 WHERE year = 1970 </s>
|
Who wrote the lyrics for Mukti?
|
CREATE TABLE table_name_14 (lyricist VARCHAR, film VARCHAR)
|
SELECT lyricist FROM table_name_14 WHERE film = "mukti"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_14 (lyricist VARCHAR, film VARCHAR) Question: Who wrote the lyrics for Mukti? [/INST] SELECT lyricist FROM table_name_14 WHERE film = "mukti" </s>
|
What song was directed by Shankar Jaikishan?
|
CREATE TABLE table_name_13 (song VARCHAR, music_director_s_ VARCHAR)
|
SELECT song FROM table_name_13 WHERE music_director_s_ = "shankar jaikishan"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_13 (song VARCHAR, music_director_s_ VARCHAR) Question: What song was directed by Shankar Jaikishan? [/INST] SELECT song FROM table_name_13 WHERE music_director_s_ = "shankar jaikishan" </s>
|
What song was written after 1976 and directed by Rahul Dev Burman?
|
CREATE TABLE table_name_23 (song VARCHAR, year VARCHAR, music_director_s_ VARCHAR)
|
SELECT song FROM table_name_23 WHERE year > 1976 AND music_director_s_ = "rahul dev burman"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_23 (song VARCHAR, year VARCHAR, music_director_s_ VARCHAR) Question: What song was written after 1976 and directed by Rahul Dev Burman? [/INST] SELECT song FROM table_name_23 WHERE year > 1976 AND music_director_s_ = "rahul dev burman" </s>
|
What car does Scott Deware own that has rounds under 12?
|
CREATE TABLE table_name_24 (car_s_ VARCHAR, rounds VARCHAR, owner_s_ VARCHAR)
|
SELECT car_s_ FROM table_name_24 WHERE rounds < 12 AND owner_s_ = "scott deware"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_24 (car_s_ VARCHAR, rounds VARCHAR, owner_s_ VARCHAR) Question: What car does Scott Deware own that has rounds under 12? [/INST] SELECT car_s_ FROM table_name_24 WHERE rounds < 12 AND owner_s_ = "scott deware" </s>
|
Which City or town has a Top division titles of 17
|
CREATE TABLE table_name_92 (city_or_town VARCHAR, top_division_titles VARCHAR)
|
SELECT city_or_town FROM table_name_92 WHERE top_division_titles = "17"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_92 (city_or_town VARCHAR, top_division_titles VARCHAR) Question: Which City or town has a Top division titles of 17 [/INST] SELECT city_or_town FROM table_name_92 WHERE top_division_titles = "17" </s>
|
Which City or town has top division smaller than 40 and Gaziantepspor Club ?
|
CREATE TABLE table_name_70 (city_or_town VARCHAR, number_of_seasons_in_top_division VARCHAR, club VARCHAR)
|
SELECT city_or_town FROM table_name_70 WHERE number_of_seasons_in_top_division < 40 AND club = "gaziantepspor"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_70 (city_or_town VARCHAR, number_of_seasons_in_top_division VARCHAR, club VARCHAR) Question: Which City or town has top division smaller than 40 and Gaziantepspor Club ? [/INST] SELECT city_or_town FROM table_name_70 WHERE number_of_seasons_in_top_division < 40 AND club = "gaziantepspor" </s>
|
What is the 2003 value with 2r in 2008 and 1r in 2011?
|
CREATE TABLE table_name_59 (Id VARCHAR)
|
SELECT 2003 FROM table_name_59 WHERE 2008 = "2r" AND 2011 = "1r"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_59 (Id VARCHAR) Question: What is the 2003 value with 2r in 2008 and 1r in 2011? [/INST] SELECT 2003 FROM table_name_59 WHERE 2008 = "2r" AND 2011 = "1r" </s>
|
What is the 2007 value with 2r in 2011 and 2r in 2008?
|
CREATE TABLE table_name_67 (Id VARCHAR)
|
SELECT 2007 FROM table_name_67 WHERE 2011 = "2r" AND 2008 = "2r"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_67 (Id VARCHAR) Question: What is the 2007 value with 2r in 2011 and 2r in 2008? [/INST] SELECT 2007 FROM table_name_67 WHERE 2011 = "2r" AND 2008 = "2r" </s>
|
What is the 2007 value with 1r in 2009 and 2r in 2011 at the Tournament of Wimbledon?
|
CREATE TABLE table_name_36 (tournament VARCHAR)
|
SELECT 2007 FROM table_name_36 WHERE 2009 = "1r" AND 2011 = "2r" AND tournament = "wimbledon"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_36 (tournament VARCHAR) Question: What is the 2007 value with 1r in 2009 and 2r in 2011 at the Tournament of Wimbledon? [/INST] SELECT 2007 FROM table_name_36 WHERE 2009 = "1r" AND 2011 = "2r" AND tournament = "wimbledon" </s>
|
What is the 2003 value with 1r in 2009 at the Australian Open?
|
CREATE TABLE table_name_16 (tournament VARCHAR)
|
SELECT 2003 FROM table_name_16 WHERE 2009 = "1r" AND tournament = "australian open"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_16 (tournament VARCHAR) Question: What is the 2003 value with 1r in 2009 at the Australian Open? [/INST] SELECT 2003 FROM table_name_16 WHERE 2009 = "1r" AND tournament = "australian open" </s>
|
How many wins did they have at Richmond Cricket Ground Stadium?
|
CREATE TABLE table_name_20 (wins VARCHAR, stadium VARCHAR)
|
SELECT wins FROM table_name_20 WHERE stadium = "richmond cricket ground"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_20 (wins VARCHAR, stadium VARCHAR) Question: How many wins did they have at Richmond Cricket Ground Stadium? [/INST] SELECT wins FROM table_name_20 WHERE stadium = "richmond cricket ground" </s>
|
How many games did they play in 1905?
|
CREATE TABLE table_name_83 (played INTEGER, years VARCHAR)
|
SELECT AVG(played) FROM table_name_83 WHERE years = "1905"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_83 (played INTEGER, years VARCHAR) Question: How many games did they play in 1905? [/INST] SELECT AVG(played) FROM table_name_83 WHERE years = "1905" </s>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.