instruction
stringlengths
12
244
input
stringlengths
27
489
output
stringlengths
18
557
text
stringlengths
194
1.14k
What is Package/Option, when HDTV is no, when Language is Italian, and when Television service is cartello promozionale sky hd?
CREATE TABLE table_name_43 (package_option VARCHAR, television_service VARCHAR, hdtv VARCHAR, language VARCHAR)
SELECT package_option FROM table_name_43 WHERE hdtv = "no" AND language = "italian" AND television_service = "cartello promozionale sky hd"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_43 (package_option VARCHAR, television_service VARCHAR, hdtv VARCHAR, language VARCHAR) Question: What is Package/Option, when HDTV is no, when Language is Italian, and when Television service is cartello promozionale sky hd? [/INST] SELECT package_option FROM table_name_43 WHERE hdtv = "no" AND language = "italian" AND television_service = "cartello promozionale sky hd" </s>
What is Country, when HDTV is yes, and when Content is cinema?
CREATE TABLE table_name_29 (country VARCHAR, hdtv VARCHAR, content VARCHAR)
SELECT country FROM table_name_29 WHERE hdtv = "yes" AND content = "cinema"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_29 (country VARCHAR, hdtv VARCHAR, content VARCHAR) Question: What is Country, when HDTV is yes, and when Content is cinema? [/INST] SELECT country FROM table_name_29 WHERE hdtv = "yes" AND content = "cinema" </s>
What is HDTV, when Television service is cartello promozionale sky hd?
CREATE TABLE table_name_95 (hdtv VARCHAR, television_service VARCHAR)
SELECT hdtv FROM table_name_95 WHERE television_service = "cartello promozionale sky hd"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (hdtv VARCHAR, television_service VARCHAR) Question: What is HDTV, when Television service is cartello promozionale sky hd? [/INST] SELECT hdtv FROM table_name_95 WHERE television_service = "cartello promozionale sky hd" </s>
What is Content, when Package/Option is sky cinema, and when Language is italian originale?
CREATE TABLE table_name_6 (content VARCHAR, package_option VARCHAR, language VARCHAR)
SELECT content FROM table_name_6 WHERE package_option = "sky cinema" AND language = "italian originale"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_6 (content VARCHAR, package_option VARCHAR, language VARCHAR) Question: What is Content, when Package/Option is sky cinema, and when Language is italian originale? [/INST] SELECT content FROM table_name_6 WHERE package_option = "sky cinema" AND language = "italian originale" </s>
What is the Venue with an Attendance that is larger than 6,938?
CREATE TABLE table_name_55 (venue VARCHAR, attendance INTEGER)
SELECT venue FROM table_name_55 WHERE attendance > 6 OFFSET 938 ROWS
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_55 (venue VARCHAR, attendance INTEGER) Question: What is the Venue with an Attendance that is larger than 6,938? [/INST] SELECT venue FROM table_name_55 WHERE attendance > 6 OFFSET 938 ROWS </s>
What is the Date with an Opponent that is hearts?
CREATE TABLE table_name_51 (date VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_51 WHERE opponent = "hearts"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_51 (date VARCHAR, opponent VARCHAR) Question: What is the Date with an Opponent that is hearts? [/INST] SELECT date FROM table_name_51 WHERE opponent = "hearts" </s>
What is the Result with a Venue that is n?
CREATE TABLE table_name_45 (result VARCHAR, venue VARCHAR)
SELECT result FROM table_name_45 WHERE venue = "n"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_45 (result VARCHAR, venue VARCHAR) Question: What is the Result with a Venue that is n? [/INST] SELECT result FROM table_name_45 WHERE venue = "n" </s>
Who was the Coat of Cash Wearing Celebrity in Episode 6?
CREATE TABLE table_name_81 (coat_of_cash_wearing_celebrity VARCHAR, episode_number VARCHAR)
SELECT coat_of_cash_wearing_celebrity FROM table_name_81 WHERE episode_number = 6
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_81 (coat_of_cash_wearing_celebrity VARCHAR, episode_number VARCHAR) Question: Who was the Coat of Cash Wearing Celebrity in Episode 6? [/INST] SELECT coat_of_cash_wearing_celebrity FROM table_name_81 WHERE episode_number = 6 </s>
What was the air date of episode 5?
CREATE TABLE table_name_33 (air_date VARCHAR, episode_number VARCHAR)
SELECT air_date FROM table_name_33 WHERE episode_number = 5
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_33 (air_date VARCHAR, episode_number VARCHAR) Question: What was the air date of episode 5? [/INST] SELECT air_date FROM table_name_33 WHERE episode_number = 5 </s>
What is the largest number of races when there are less than 6 podiums, the series is the formula renault 2.0 eurocup, and there are more than 0 wins?
CREATE TABLE table_name_5 (races INTEGER, wins VARCHAR, podiums VARCHAR, series VARCHAR)
SELECT MAX(races) FROM table_name_5 WHERE podiums < 6 AND series = "formula renault 2.0 eurocup" AND wins > 0
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_5 (races INTEGER, wins VARCHAR, podiums VARCHAR, series VARCHAR) Question: What is the largest number of races when there are less than 6 podiums, the series is the formula renault 2.0 eurocup, and there are more than 0 wins? [/INST] SELECT MAX(races) FROM table_name_5 WHERE podiums < 6 AND series = "formula renault 2.0 eurocup" AND wins > 0 </s>
Who were the Opponents in the final in the match with a Score in the final of 1–6, 6–3, 2–6?
CREATE TABLE table_name_22 (opponents_in_the_final VARCHAR, score_in_the_final VARCHAR)
SELECT opponents_in_the_final FROM table_name_22 WHERE score_in_the_final = "1–6, 6–3, 2–6"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_22 (opponents_in_the_final VARCHAR, score_in_the_final VARCHAR) Question: Who were the Opponents in the final in the match with a Score in the final of 1–6, 6–3, 2–6? [/INST] SELECT opponents_in_the_final FROM table_name_22 WHERE score_in_the_final = "1–6, 6–3, 2–6" </s>
What Opponents in the final had a match in 1984 with a Score in the final of 7–6, 6–1?
CREATE TABLE table_name_77 (opponents_in_the_final VARCHAR, date VARCHAR, score_in_the_final VARCHAR)
SELECT opponents_in_the_final FROM table_name_77 WHERE date = 1984 AND score_in_the_final = "7–6, 6–1"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_77 (opponents_in_the_final VARCHAR, date VARCHAR, score_in_the_final VARCHAR) Question: What Opponents in the final had a match in 1984 with a Score in the final of 7–6, 6–1? [/INST] SELECT opponents_in_the_final FROM table_name_77 WHERE date = 1984 AND score_in_the_final = "7–6, 6–1" </s>
How many years were they nominated for outstanding musical?
CREATE TABLE table_name_93 (year VARCHAR, nominee VARCHAR)
SELECT COUNT(year) FROM table_name_93 WHERE nominee = "outstanding musical"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_93 (year VARCHAR, nominee VARCHAR) Question: How many years were they nominated for outstanding musical? [/INST] SELECT COUNT(year) FROM table_name_93 WHERE nominee = "outstanding musical" </s>
Where was the location for Arras Paul Arras?
CREATE TABLE table_name_24 (location VARCHAR, opponent VARCHAR)
SELECT location FROM table_name_24 WHERE opponent = "arras paul arras"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_24 (location VARCHAR, opponent VARCHAR) Question: Where was the location for Arras Paul Arras? [/INST] SELECT location FROM table_name_24 WHERE opponent = "arras paul arras" </s>
Which royal house has the name huai?
CREATE TABLE table_name_88 (royal_house VARCHAR, name VARCHAR)
SELECT royal_house FROM table_name_88 WHERE name = "huai"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_88 (royal_house VARCHAR, name VARCHAR) Question: Which royal house has the name huai? [/INST] SELECT royal_house FROM table_name_88 WHERE name = "huai" </s>
Who has the title of marquis?
CREATE TABLE table_name_52 (name VARCHAR, title VARCHAR)
SELECT name FROM table_name_52 WHERE title = "marquis"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_52 (name VARCHAR, title VARCHAR) Question: Who has the title of marquis? [/INST] SELECT name FROM table_name_52 WHERE title = "marquis" </s>
Which royal house is in the state of chu?
CREATE TABLE table_name_98 (royal_house VARCHAR, state VARCHAR)
SELECT royal_house FROM table_name_98 WHERE state = "chu"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_98 (royal_house VARCHAR, state VARCHAR) Question: Which royal house is in the state of chu? [/INST] SELECT royal_house FROM table_name_98 WHERE state = "chu" </s>
Which state has a king named xiang?
CREATE TABLE table_name_10 (state VARCHAR, title VARCHAR, name VARCHAR)
SELECT state FROM table_name_10 WHERE title = "king" AND name = "xiang"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_10 (state VARCHAR, title VARCHAR, name VARCHAR) Question: Which state has a king named xiang? [/INST] SELECT state FROM table_name_10 WHERE title = "king" AND name = "xiang" </s>
What's the most recent week for the day of November 5, 1978?
CREATE TABLE table_name_99 (week INTEGER, date VARCHAR)
SELECT MAX(week) FROM table_name_99 WHERE date = "november 5, 1978"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_99 (week INTEGER, date VARCHAR) Question: What's the most recent week for the day of November 5, 1978? [/INST] SELECT MAX(week) FROM table_name_99 WHERE date = "november 5, 1978" </s>
What's the mean week number for November 12, 1978?
CREATE TABLE table_name_9 (week INTEGER, date VARCHAR)
SELECT AVG(week) FROM table_name_9 WHERE date = "november 12, 1978"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_9 (week INTEGER, date VARCHAR) Question: What's the mean week number for November 12, 1978? [/INST] SELECT AVG(week) FROM table_name_9 WHERE date = "november 12, 1978" </s>
What's the mean week number when attendance was 63,263?
CREATE TABLE table_name_88 (week INTEGER, attendance VARCHAR)
SELECT AVG(week) FROM table_name_88 WHERE attendance = 63 OFFSET 263 ROWS
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_88 (week INTEGER, attendance VARCHAR) Question: What's the mean week number when attendance was 63,263? [/INST] SELECT AVG(week) FROM table_name_88 WHERE attendance = 63 OFFSET 263 ROWS </s>
What is the number of floors that have years under 2008 and were named Guinness Tower?
CREATE TABLE table_name_58 (floors VARCHAR, year VARCHAR, name VARCHAR)
SELECT COUNT(floors) FROM table_name_58 WHERE year < 2008 AND name = "guinness tower"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_58 (floors VARCHAR, year VARCHAR, name VARCHAR) Question: What is the number of floors that have years under 2008 and were named Guinness Tower? [/INST] SELECT COUNT(floors) FROM table_name_58 WHERE year < 2008 AND name = "guinness tower" </s>
What is the sum of Year opened when steel was the material with a Span feet of 1476?
CREATE TABLE table_name_75 (year_opened INTEGER, material VARCHAR, span_feet VARCHAR)
SELECT SUM(year_opened) FROM table_name_75 WHERE material = "steel" AND span_feet = 1476
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_75 (year_opened INTEGER, material VARCHAR, span_feet VARCHAR) Question: What is the sum of Year opened when steel was the material with a Span feet of 1476? [/INST] SELECT SUM(year_opened) FROM table_name_75 WHERE material = "steel" AND span_feet = 1476 </s>
What is the sum of Year opened when the span feet is more than 1247, and the spam metres is 384?
CREATE TABLE table_name_13 (year_opened INTEGER, span_feet VARCHAR, span_metres VARCHAR)
SELECT SUM(year_opened) FROM table_name_13 WHERE span_feet > 1247 AND span_metres = 384
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_13 (year_opened INTEGER, span_feet VARCHAR, span_metres VARCHAR) Question: What is the sum of Year opened when the span feet is more than 1247, and the spam metres is 384? [/INST] SELECT SUM(year_opened) FROM table_name_13 WHERE span_feet > 1247 AND span_metres = 384 </s>
What is average SiO 2, when Na 2 O is 7.53, and when Al 2 O 3 is less than 2.13?
CREATE TABLE table_name_42 (sio_2 INTEGER, na_2_o VARCHAR, al_2_o_3 VARCHAR)
SELECT AVG(sio_2) FROM table_name_42 WHERE na_2_o = 7.53 AND al_2_o_3 < 2.13
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_42 (sio_2 INTEGER, na_2_o VARCHAR, al_2_o_3 VARCHAR) Question: What is average SiO 2, when Na 2 O is 7.53, and when Al 2 O 3 is less than 2.13? [/INST] SELECT AVG(sio_2) FROM table_name_42 WHERE na_2_o = 7.53 AND al_2_o_3 < 2.13 </s>
What is the highest K 2 O, when Na 2 O is greater than 1.87, when Fe 2 O 3 is greater than 0.07, when Objects is Ritual Disk, and when Al 2 O 3 is less than 0.62?
CREATE TABLE table_name_40 (k_2_o INTEGER, al_2_o_3 VARCHAR, objects VARCHAR, na_2_o VARCHAR, fe_2_o_3 VARCHAR)
SELECT MAX(k_2_o) FROM table_name_40 WHERE na_2_o > 1.87 AND fe_2_o_3 > 0.07 AND objects = "ritual disk" AND al_2_o_3 < 0.62
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (k_2_o INTEGER, al_2_o_3 VARCHAR, objects VARCHAR, na_2_o VARCHAR, fe_2_o_3 VARCHAR) Question: What is the highest K 2 O, when Na 2 O is greater than 1.87, when Fe 2 O 3 is greater than 0.07, when Objects is Ritual Disk, and when Al 2 O 3 is less than 0.62? [/INST] SELECT MAX(k_2_o) FROM table_name_40 WHERE na_2_o > 1.87 AND fe_2_o_3 > 0.07 AND objects = "ritual disk" AND al_2_o_3 < 0.62 </s>
What is the highest SiO 2, when K 2 O is greater than 0.16, when Fe 2 O 3 is greater than 0.16, and when Na 2 O is less than 7.53?
CREATE TABLE table_name_50 (sio_2 INTEGER, na_2_o VARCHAR, k_2_o VARCHAR, fe_2_o_3 VARCHAR)
SELECT MAX(sio_2) FROM table_name_50 WHERE k_2_o > 0.16 AND fe_2_o_3 > 0.16 AND na_2_o < 7.53
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_50 (sio_2 INTEGER, na_2_o VARCHAR, k_2_o VARCHAR, fe_2_o_3 VARCHAR) Question: What is the highest SiO 2, when K 2 O is greater than 0.16, when Fe 2 O 3 is greater than 0.16, and when Na 2 O is less than 7.53? [/INST] SELECT MAX(sio_2) FROM table_name_50 WHERE k_2_o > 0.16 AND fe_2_o_3 > 0.16 AND na_2_o < 7.53 </s>
What is Aberdeen team's date of vacancy?
CREATE TABLE table_name_37 (date_of_vacancy VARCHAR, team VARCHAR)
SELECT date_of_vacancy FROM table_name_37 WHERE team = "aberdeen"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_37 (date_of_vacancy VARCHAR, team VARCHAR) Question: What is Aberdeen team's date of vacancy? [/INST] SELECT date_of_vacancy FROM table_name_37 WHERE team = "aberdeen" </s>
What is Motherwell Team's manner of departure?
CREATE TABLE table_name_57 (manner_of_departure VARCHAR, team VARCHAR)
SELECT manner_of_departure FROM table_name_57 WHERE team = "motherwell"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_57 (manner_of_departure VARCHAR, team VARCHAR) Question: What is Motherwell Team's manner of departure? [/INST] SELECT manner_of_departure FROM table_name_57 WHERE team = "motherwell" </s>
What is the date of appointment for the team with a resigned manner of departure and replaced by Sandy Clark?
CREATE TABLE table_name_2 (date_of_appointment VARCHAR, manner_of_departure VARCHAR, replaced_by VARCHAR)
SELECT date_of_appointment FROM table_name_2 WHERE manner_of_departure = "resigned" AND replaced_by = "sandy clark"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_2 (date_of_appointment VARCHAR, manner_of_departure VARCHAR, replaced_by VARCHAR) Question: What is the date of appointment for the team with a resigned manner of departure and replaced by Sandy Clark? [/INST] SELECT date_of_appointment FROM table_name_2 WHERE manner_of_departure = "resigned" AND replaced_by = "sandy clark" </s>
What manner of departure was Dick Advocaat replaced by?
CREATE TABLE table_name_47 (manner_of_departure VARCHAR, replaced_by VARCHAR)
SELECT manner_of_departure FROM table_name_47 WHERE replaced_by = "dick advocaat"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_47 (manner_of_departure VARCHAR, replaced_by VARCHAR) Question: What manner of departure was Dick Advocaat replaced by? [/INST] SELECT manner_of_departure FROM table_name_47 WHERE replaced_by = "dick advocaat" </s>
Which amount of lost had an against of more than 22 and 9 points?
CREATE TABLE table_name_30 (lost VARCHAR, against VARCHAR, points VARCHAR)
SELECT lost FROM table_name_30 WHERE against > 22 AND points = 9
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_30 (lost VARCHAR, against VARCHAR, points VARCHAR) Question: Which amount of lost had an against of more than 22 and 9 points? [/INST] SELECT lost FROM table_name_30 WHERE against > 22 AND points = 9 </s>
What is the total amount of points when the played number was less than 12?
CREATE TABLE table_name_93 (points INTEGER, played INTEGER)
SELECT SUM(points) FROM table_name_93 WHERE played < 12
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_93 (points INTEGER, played INTEGER) Question: What is the total amount of points when the played number was less than 12? [/INST] SELECT SUM(points) FROM table_name_93 WHERE played < 12 </s>
What is the largest points number where the difference is 12?
CREATE TABLE table_name_69 (points INTEGER, difference VARCHAR)
SELECT MAX(points) FROM table_name_69 WHERE difference = "12"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_69 (points INTEGER, difference VARCHAR) Question: What is the largest points number where the difference is 12? [/INST] SELECT MAX(points) FROM table_name_69 WHERE difference = "12" </s>
What is the total number of points where there were 3 losses and a played number bigger than 12?
CREATE TABLE table_name_40 (points INTEGER, lost VARCHAR, played VARCHAR)
SELECT SUM(points) FROM table_name_40 WHERE lost = 3 AND played > 12
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (points INTEGER, lost VARCHAR, played VARCHAR) Question: What is the total number of points where there were 3 losses and a played number bigger than 12? [/INST] SELECT SUM(points) FROM table_name_40 WHERE lost = 3 AND played > 12 </s>
What was the winning score for the tournament where Garth Mulroy was the runner-up?
CREATE TABLE table_name_94 (winning_score VARCHAR, runner_s__up VARCHAR)
SELECT winning_score FROM table_name_94 WHERE runner_s__up = "garth mulroy"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_94 (winning_score VARCHAR, runner_s__up VARCHAR) Question: What was the winning score for the tournament where Garth Mulroy was the runner-up? [/INST] SELECT winning_score FROM table_name_94 WHERE runner_s__up = "garth mulroy" </s>
Which tournament had a margin of victory of 6 strokes?
CREATE TABLE table_name_34 (tournament VARCHAR, margin_of_victory VARCHAR)
SELECT tournament FROM table_name_34 WHERE margin_of_victory = "6 strokes"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_34 (tournament VARCHAR, margin_of_victory VARCHAR) Question: Which tournament had a margin of victory of 6 strokes? [/INST] SELECT tournament FROM table_name_34 WHERE margin_of_victory = "6 strokes" </s>
For the tournament played on 16 Jan 2011, what was the winning score?
CREATE TABLE table_name_21 (winning_score VARCHAR, date VARCHAR)
SELECT winning_score FROM table_name_21 WHERE date = "16 jan 2011"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_21 (winning_score VARCHAR, date VARCHAR) Question: For the tournament played on 16 Jan 2011, what was the winning score? [/INST] SELECT winning_score FROM table_name_21 WHERE date = "16 jan 2011" </s>
For the tournament ending with a margin of victory of 2 strokes, who was the runner(s)-up?
CREATE TABLE table_name_58 (runner_s__up VARCHAR, margin_of_victory VARCHAR)
SELECT runner_s__up FROM table_name_58 WHERE margin_of_victory = "2 strokes"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_58 (runner_s__up VARCHAR, margin_of_victory VARCHAR) Question: For the tournament ending with a margin of victory of 2 strokes, who was the runner(s)-up? [/INST] SELECT runner_s__up FROM table_name_58 WHERE margin_of_victory = "2 strokes" </s>
What was the winning score for the tournament where Garth Mulroy was the runner-up, and the margin of victory was 1 stroke?
CREATE TABLE table_name_98 (winning_score VARCHAR, margin_of_victory VARCHAR, runner_s__up VARCHAR)
SELECT winning_score FROM table_name_98 WHERE margin_of_victory = "1 stroke" AND runner_s__up = "garth mulroy"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_98 (winning_score VARCHAR, margin_of_victory VARCHAR, runner_s__up VARCHAR) Question: What was the winning score for the tournament where Garth Mulroy was the runner-up, and the margin of victory was 1 stroke? [/INST] SELECT winning_score FROM table_name_98 WHERE margin_of_victory = "1 stroke" AND runner_s__up = "garth mulroy" </s>
For the tournament ending with a margin of victory of 6 strokes, what was the winning score?
CREATE TABLE table_name_90 (winning_score VARCHAR, margin_of_victory VARCHAR)
SELECT winning_score FROM table_name_90 WHERE margin_of_victory = "6 strokes"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_90 (winning_score VARCHAR, margin_of_victory VARCHAR) Question: For the tournament ending with a margin of victory of 6 strokes, what was the winning score? [/INST] SELECT winning_score FROM table_name_90 WHERE margin_of_victory = "6 strokes" </s>
How many Drawns have a Team of aa sΓ£o bento and Points larger than 1?
CREATE TABLE table_name_54 (drawn INTEGER, team VARCHAR, points VARCHAR)
SELECT SUM(drawn) FROM table_name_54 WHERE team = "aa sΓ£o bento" AND points > 1
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_54 (drawn INTEGER, team VARCHAR, points VARCHAR) Question: How many Drawns have a Team of aa sΓ£o bento and Points larger than 1? [/INST] SELECT SUM(drawn) FROM table_name_54 WHERE team = "aa sΓ£o bento" AND points > 1 </s>
What is the Drawn has an Against smaller than 20 and Points of 15?
CREATE TABLE table_name_46 (drawn VARCHAR, against VARCHAR, points VARCHAR)
SELECT drawn FROM table_name_46 WHERE against < 20 AND points = 15
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_46 (drawn VARCHAR, against VARCHAR, points VARCHAR) Question: What is the Drawn has an Against smaller than 20 and Points of 15? [/INST] SELECT drawn FROM table_name_46 WHERE against < 20 AND points = 15 </s>
How many Against has a Drawn smaller than 1, and a Lost smaller than 5?
CREATE TABLE table_name_86 (against INTEGER, drawn VARCHAR, lost VARCHAR)
SELECT MAX(against) FROM table_name_86 WHERE drawn < 1 AND lost < 5
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_86 (against INTEGER, drawn VARCHAR, lost VARCHAR) Question: How many Against has a Drawn smaller than 1, and a Lost smaller than 5? [/INST] SELECT MAX(against) FROM table_name_86 WHERE drawn < 1 AND lost < 5 </s>
what is the average Against has Drawn of 2, and a Played larger than 10?
CREATE TABLE table_name_37 (against INTEGER, drawn VARCHAR, played VARCHAR)
SELECT AVG(against) FROM table_name_37 WHERE drawn = 2 AND played > 10
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_37 (against INTEGER, drawn VARCHAR, played VARCHAR) Question: what is the average Against has Drawn of 2, and a Played larger than 10? [/INST] SELECT AVG(against) FROM table_name_37 WHERE drawn = 2 AND played > 10 </s>
How many goals were there for Johan Cruyff when the rank's less than 3?
CREATE TABLE table_name_36 (goals INTEGER, name VARCHAR, rank VARCHAR)
SELECT SUM(goals) FROM table_name_36 WHERE name = "johan cruyff" AND rank < 3
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_36 (goals INTEGER, name VARCHAR, rank VARCHAR) Question: How many goals were there for Johan Cruyff when the rank's less than 3? [/INST] SELECT SUM(goals) FROM table_name_36 WHERE name = "johan cruyff" AND rank < 3 </s>
What is the highest against when the lost is 3 with less than 30 points?
CREATE TABLE table_name_73 (against INTEGER, lost VARCHAR, points VARCHAR)
SELECT MAX(against) FROM table_name_73 WHERE lost = 3 AND points < 30
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_73 (against INTEGER, lost VARCHAR, points VARCHAR) Question: What is the highest against when the lost is 3 with less than 30 points? [/INST] SELECT MAX(against) FROM table_name_73 WHERE lost = 3 AND points < 30 </s>
What is the average Played when the against is 51, and the drawn is more than 1?
CREATE TABLE table_name_9 (played INTEGER, against VARCHAR, drawn VARCHAR)
SELECT AVG(played) FROM table_name_9 WHERE against = 51 AND drawn > 1
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_9 (played INTEGER, against VARCHAR, drawn VARCHAR) Question: What is the average Played when the against is 51, and the drawn is more than 1? [/INST] SELECT AVG(played) FROM table_name_9 WHERE against = 51 AND drawn > 1 </s>
What is the result against Clemson?
CREATE TABLE table_name_86 (result VARCHAR, opponent VARCHAR)
SELECT result FROM table_name_86 WHERE opponent = "clemson"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_86 (result VARCHAR, opponent VARCHAR) Question: What is the result against Clemson? [/INST] SELECT result FROM table_name_86 WHERE opponent = "clemson" </s>
What is the number of Games for the player in Rank 3?
CREATE TABLE table_name_21 (games INTEGER, rank VARCHAR)
SELECT MAX(games) FROM table_name_21 WHERE rank = 3
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_21 (games INTEGER, rank VARCHAR) Question: What is the number of Games for the player in Rank 3? [/INST] SELECT MAX(games) FROM table_name_21 WHERE rank = 3 </s>
With more than 69 Assists, what is Dejuan Collins' Rank?
CREATE TABLE table_name_59 (rank VARCHAR, name VARCHAR, assists VARCHAR)
SELECT COUNT(rank) FROM table_name_59 WHERE name = "dejuan collins" AND assists > 69
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_59 (rank VARCHAR, name VARCHAR, assists VARCHAR) Question: With more than 69 Assists, what is Dejuan Collins' Rank? [/INST] SELECT COUNT(rank) FROM table_name_59 WHERE name = "dejuan collins" AND assists > 69 </s>
How many Assists for the Player with 13 Games and a Rank less than 3?
CREATE TABLE table_name_29 (assists INTEGER, games VARCHAR, rank VARCHAR)
SELECT SUM(assists) FROM table_name_29 WHERE games = 13 AND rank < 3
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_29 (assists INTEGER, games VARCHAR, rank VARCHAR) Question: How many Assists for the Player with 13 Games and a Rank less than 3? [/INST] SELECT SUM(assists) FROM table_name_29 WHERE games = 13 AND rank < 3 </s>
What is the lowest number of uncommitted superdelegates for a state with more than 16 total and 2 for Hillary Clinton?
CREATE TABLE table_name_16 (uncommitted INTEGER, total VARCHAR, hillary_clinton VARCHAR)
SELECT MIN(uncommitted) FROM table_name_16 WHERE total > 16 AND hillary_clinton = 2
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_16 (uncommitted INTEGER, total VARCHAR, hillary_clinton VARCHAR) Question: What is the lowest number of uncommitted superdelegates for a state with more than 16 total and 2 for Hillary Clinton? [/INST] SELECT MIN(uncommitted) FROM table_name_16 WHERE total > 16 AND hillary_clinton = 2 </s>
What Japanese prefecture has Ibaraki, Tsukuba?
CREATE TABLE table_name_15 (japanese VARCHAR, prefecture VARCHAR, name VARCHAR)
SELECT japanese FROM table_name_15 WHERE prefecture = "ibaraki" AND name = "tsukuba"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_15 (japanese VARCHAR, prefecture VARCHAR, name VARCHAR) Question: What Japanese prefecture has Ibaraki, Tsukuba? [/INST] SELECT japanese FROM table_name_15 WHERE prefecture = "ibaraki" AND name = "tsukuba" </s>
What region has the symbol ε…«ε°Ύ?
CREATE TABLE table_name_71 (region VARCHAR, japanese VARCHAR)
SELECT region FROM table_name_71 WHERE japanese = "ε…«ε°Ύ"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_71 (region VARCHAR, japanese VARCHAR) Question: What region has the symbol ε…«ε°Ύ? [/INST] SELECT region FROM table_name_71 WHERE japanese = "ε…«ε°Ύ" </s>
Which venue held the Euro 2012 Qualifier?
CREATE TABLE table_name_80 (venue VARCHAR, competition VARCHAR)
SELECT venue FROM table_name_80 WHERE competition = "euro 2012 qualifier"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_80 (venue VARCHAR, competition VARCHAR) Question: Which venue held the Euro 2012 Qualifier? [/INST] SELECT venue FROM table_name_80 WHERE competition = "euro 2012 qualifier" </s>
What is the Year with a Number that is larger than 34?
CREATE TABLE table_name_96 (year VARCHAR, number INTEGER)
SELECT year FROM table_name_96 WHERE number > 34
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_96 (year VARCHAR, number INTEGER) Question: What is the Year with a Number that is larger than 34? [/INST] SELECT year FROM table_name_96 WHERE number > 34 </s>
What is the date of the 4 strokes margin of victory?
CREATE TABLE table_name_49 (date VARCHAR, margin_of_victory VARCHAR)
SELECT date FROM table_name_49 WHERE margin_of_victory = "4 strokes"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_49 (date VARCHAR, margin_of_victory VARCHAR) Question: What is the date of the 4 strokes margin of victory? [/INST] SELECT date FROM table_name_49 WHERE margin_of_victory = "4 strokes" </s>
What is the date of the 4 strokes margin of victory?
CREATE TABLE table_name_6 (date VARCHAR, margin_of_victory VARCHAR)
SELECT date FROM table_name_6 WHERE margin_of_victory = "4 strokes"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_6 (date VARCHAR, margin_of_victory VARCHAR) Question: What is the date of the 4 strokes margin of victory? [/INST] SELECT date FROM table_name_6 WHERE margin_of_victory = "4 strokes" </s>
What Elite Eight had a Sweet Sixteen of 1 and a win % of .875?
CREATE TABLE table_name_89 (elite_eight VARCHAR, sweet_sixteen VARCHAR, win__percentage VARCHAR)
SELECT elite_eight FROM table_name_89 WHERE sweet_sixteen = "1" AND win__percentage = ".875"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_89 (elite_eight VARCHAR, sweet_sixteen VARCHAR, win__percentage VARCHAR) Question: What Elite Eight had a Sweet Sixteen of 1 and a win % of .875? [/INST] SELECT elite_eight FROM table_name_89 WHERE sweet_sixteen = "1" AND win__percentage = ".875" </s>
What Round 32 had a # of bids smaller than 2?
CREATE TABLE table_name_31 (round_of_32 VARCHAR, _number_of_bids INTEGER)
SELECT round_of_32 FROM table_name_31 WHERE _number_of_bids < 2
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_31 (round_of_32 VARCHAR, _number_of_bids INTEGER) Question: What Round 32 had a # of bids smaller than 2? [/INST] SELECT round_of_32 FROM table_name_31 WHERE _number_of_bids < 2 </s>
What is the average year that Idris Elba was nominated for or won an award?
CREATE TABLE table_name_19 (year INTEGER, actor VARCHAR)
SELECT AVG(year) FROM table_name_19 WHERE actor = "idris elba"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_19 (year INTEGER, actor VARCHAR) Question: What is the average year that Idris Elba was nominated for or won an award? [/INST] SELECT AVG(year) FROM table_name_19 WHERE actor = "idris elba" </s>
What actor was nominated for or won an award before 1971?
CREATE TABLE table_name_94 (actor VARCHAR, year INTEGER)
SELECT actor FROM table_name_94 WHERE year < 1971
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_94 (actor VARCHAR, year INTEGER) Question: What actor was nominated for or won an award before 1971? [/INST] SELECT actor FROM table_name_94 WHERE year < 1971 </s>
What is the mean vertical relief in feet when the rank is more than 40 and the location is va0573?
CREATE TABLE table_name_94 (vertical_relief__ft_ INTEGER, rank VARCHAR, location VARCHAR)
SELECT AVG(vertical_relief__ft_) FROM table_name_94 WHERE rank > 40 AND location = "va0573"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_94 (vertical_relief__ft_ INTEGER, rank VARCHAR, location VARCHAR) Question: What is the mean vertical relief in feet when the rank is more than 40 and the location is va0573? [/INST] SELECT AVG(vertical_relief__ft_) FROM table_name_94 WHERE rank > 40 AND location = "va0573" </s>
What is the mean vertical relief in feet when the Peak Name is Tower near mead wood road entrance and the elevation in feet is more than 1,410?
CREATE TABLE table_name_87 (vertical_relief__ft_ INTEGER, peak_name VARCHAR, elevation__ft_ VARCHAR)
SELECT AVG(vertical_relief__ft_) FROM table_name_87 WHERE peak_name = "tower near mead wood road entrance" AND elevation__ft_ > 1 OFFSET 410 ROWS
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_87 (vertical_relief__ft_ INTEGER, peak_name VARCHAR, elevation__ft_ VARCHAR) Question: What is the mean vertical relief in feet when the Peak Name is Tower near mead wood road entrance and the elevation in feet is more than 1,410? [/INST] SELECT AVG(vertical_relief__ft_) FROM table_name_87 WHERE peak_name = "tower near mead wood road entrance" AND elevation__ft_ > 1 OFFSET 410 ROWS </s>
What is the total number of ranks when the Peak Name is Red Shirt Table?
CREATE TABLE table_name_51 (rank INTEGER, peak_name VARCHAR)
SELECT SUM(rank) FROM table_name_51 WHERE peak_name = "red shirt table"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_51 (rank INTEGER, peak_name VARCHAR) Question: What is the total number of ranks when the Peak Name is Red Shirt Table? [/INST] SELECT SUM(rank) FROM table_name_51 WHERE peak_name = "red shirt table" </s>
What is the Original artist when the week number is top 9?
CREATE TABLE table_name_39 (original_artist VARCHAR, week__number VARCHAR)
SELECT original_artist FROM table_name_39 WHERE week__number = "top 9"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_39 (original_artist VARCHAR, week__number VARCHAR) Question: What is the Original artist when the week number is top 9? [/INST] SELECT original_artist FROM table_name_39 WHERE week__number = "top 9" </s>
What is the Song choice when The Beatles were the original artist, with an order # of 4?
CREATE TABLE table_name_63 (song_choice VARCHAR, original_artist VARCHAR, order__number VARCHAR)
SELECT song_choice FROM table_name_63 WHERE original_artist = "the beatles" AND order__number = "4"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_63 (song_choice VARCHAR, original_artist VARCHAR, order__number VARCHAR) Question: What is the Song choice when The Beatles were the original artist, with an order # of 4? [/INST] SELECT song_choice FROM table_name_63 WHERE original_artist = "the beatles" AND order__number = "4" </s>
What is the Song choice when Elaine Paige was the Original artist?
CREATE TABLE table_name_99 (song_choice VARCHAR, original_artist VARCHAR)
SELECT song_choice FROM table_name_99 WHERE original_artist = "elaine paige"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_99 (song_choice VARCHAR, original_artist VARCHAR) Question: What is the Song choice when Elaine Paige was the Original artist? [/INST] SELECT song_choice FROM table_name_99 WHERE original_artist = "elaine paige" </s>
What is the name of the Original artist when the week # is top 16 (8 men)?
CREATE TABLE table_name_15 (original_artist VARCHAR, week__number VARCHAR)
SELECT original_artist FROM table_name_15 WHERE week__number = "top 16 (8 men)"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_15 (original_artist VARCHAR, week__number VARCHAR) Question: What is the name of the Original artist when the week # is top 16 (8 men)? [/INST] SELECT original_artist FROM table_name_15 WHERE week__number = "top 16 (8 men)" </s>
What is the Result when the order is # 4, and the week # is top 12?
CREATE TABLE table_name_58 (result VARCHAR, order__number VARCHAR, week__number VARCHAR)
SELECT result FROM table_name_58 WHERE order__number = "4" AND week__number = "top 12"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_58 (result VARCHAR, order__number VARCHAR, week__number VARCHAR) Question: What is the Result when the order is # 4, and the week # is top 12? [/INST] SELECT result FROM table_name_58 WHERE order__number = "4" AND week__number = "top 12" </s>
What score has notts county as the home team?
CREATE TABLE table_name_23 (score VARCHAR, home_team VARCHAR)
SELECT score FROM table_name_23 WHERE home_team = "notts county"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_23 (score VARCHAR, home_team VARCHAR) Question: What score has notts county as the home team? [/INST] SELECT score FROM table_name_23 WHERE home_team = "notts county" </s>
Average round for rodney harrison p before 145?
CREATE TABLE table_name_66 (round INTEGER, name VARCHAR, pick VARCHAR)
SELECT AVG(round) FROM table_name_66 WHERE name = "rodney harrison p" AND pick < 145
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_66 (round INTEGER, name VARCHAR, pick VARCHAR) Question: Average round for rodney harrison p before 145? [/INST] SELECT AVG(round) FROM table_name_66 WHERE name = "rodney harrison p" AND pick < 145 </s>
Highest round 5 pick from western illinois?
CREATE TABLE table_name_51 (pick INTEGER, round VARCHAR, school_college VARCHAR)
SELECT MAX(pick) FROM table_name_51 WHERE round = 5 AND school_college = "western illinois"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_51 (pick INTEGER, round VARCHAR, school_college VARCHAR) Question: Highest round 5 pick from western illinois? [/INST] SELECT MAX(pick) FROM table_name_51 WHERE round = 5 AND school_college = "western illinois" </s>
What is the 2011 when the 2010 shows grand slam tournaments?
CREATE TABLE table_name_36 (Id VARCHAR)
SELECT 2011 FROM table_name_36 WHERE 2010 = "grand slam tournaments"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_36 (Id VARCHAR) Question: What is the 2011 when the 2010 shows grand slam tournaments? [/INST] SELECT 2011 FROM table_name_36 WHERE 2010 = "grand slam tournaments" </s>
What is the 2011 when the 2007 is a, and the 2012 is sf?
CREATE TABLE table_name_58 (Id VARCHAR)
SELECT 2011 FROM table_name_58 WHERE 2007 = "a" AND 2012 = "sf"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_58 (Id VARCHAR) Question: What is the 2011 when the 2007 is a, and the 2012 is sf? [/INST] SELECT 2011 FROM table_name_58 WHERE 2007 = "a" AND 2012 = "sf" </s>
What is the 2011 when the 2010 is 8–4?
CREATE TABLE table_name_56 (Id VARCHAR)
SELECT 2011 FROM table_name_56 WHERE 2010 = "8–4"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_56 (Id VARCHAR) Question: What is the 2011 when the 2010 is 8–4? [/INST] SELECT 2011 FROM table_name_56 WHERE 2010 = "8–4" </s>
What is the 2007 when the 2010 is 3r?
CREATE TABLE table_name_70 (Id VARCHAR)
SELECT 2007 FROM table_name_70 WHERE 2010 = "3r"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_70 (Id VARCHAR) Question: What is the 2007 when the 2010 is 3r? [/INST] SELECT 2007 FROM table_name_70 WHERE 2010 = "3r" </s>
What is the 2010 when the 2009 is 1r, and a 2008 is 1r?
CREATE TABLE table_name_87 (Id VARCHAR)
SELECT 2010 FROM table_name_87 WHERE 2009 = "1r" AND 2008 = "1r"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_87 (Id VARCHAR) Question: What is the 2010 when the 2009 is 1r, and a 2008 is 1r? [/INST] SELECT 2010 FROM table_name_87 WHERE 2009 = "1r" AND 2008 = "1r" </s>
What is the 2011 when the Tournament was the grand slam tournaments?
CREATE TABLE table_name_63 (tournament VARCHAR)
SELECT 2011 FROM table_name_63 WHERE tournament = "grand slam tournaments"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_63 (tournament VARCHAR) Question: What is the 2011 when the Tournament was the grand slam tournaments? [/INST] SELECT 2011 FROM table_name_63 WHERE tournament = "grand slam tournaments" </s>
Which Height (cm) has a Position of d, and a Name of jeff hymanson?
CREATE TABLE table_name_12 (height__cm_ INTEGER, position VARCHAR, name VARCHAR)
SELECT MIN(height__cm_) FROM table_name_12 WHERE position = "d" AND name = "jeff hymanson"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_12 (height__cm_ INTEGER, position VARCHAR, name VARCHAR) Question: Which Height (cm) has a Position of d, and a Name of jeff hymanson? [/INST] SELECT MIN(height__cm_) FROM table_name_12 WHERE position = "d" AND name = "jeff hymanson" </s>
Which Name has a Height (cm) of 175 and a Birthplace of detroit, michigan
CREATE TABLE table_name_42 (name VARCHAR, height__cm_ VARCHAR, birthplace VARCHAR)
SELECT name FROM table_name_42 WHERE height__cm_ = 175 AND birthplace = "detroit, michigan"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_42 (name VARCHAR, height__cm_ VARCHAR, birthplace VARCHAR) Question: Which Name has a Height (cm) of 175 and a Birthplace of detroit, michigan [/INST] SELECT name FROM table_name_42 WHERE height__cm_ = 175 AND birthplace = "detroit, michigan" </s>
Which Position has a Name of john taft?
CREATE TABLE table_name_17 (position VARCHAR, name VARCHAR)
SELECT position FROM table_name_17 WHERE name = "john taft"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_17 (position VARCHAR, name VARCHAR) Question: Which Position has a Name of john taft? [/INST] SELECT position FROM table_name_17 WHERE name = "john taft" </s>
What was the To par when the Score was 67-68=135?
CREATE TABLE table_name_68 (to_par VARCHAR, score VARCHAR)
SELECT to_par FROM table_name_68 WHERE score = 67 - 68 = 135
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_68 (to_par VARCHAR, score VARCHAR) Question: What was the To par when the Score was 67-68=135? [/INST] SELECT to_par FROM table_name_68 WHERE score = 67 - 68 = 135 </s>
From what Country is player K. J. Choi with a Score of 68-71=139?
CREATE TABLE table_name_89 (country VARCHAR, player VARCHAR, score VARCHAR)
SELECT country FROM table_name_89 WHERE score = 68 - 71 = 139 AND player = "k. j. choi"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_89 (country VARCHAR, player VARCHAR, score VARCHAR) Question: From what Country is player K. J. Choi with a Score of 68-71=139? [/INST] SELECT country FROM table_name_89 WHERE score = 68 - 71 = 139 AND player = "k. j. choi" </s>
What Country Scored 66-69=135?
CREATE TABLE table_name_72 (country VARCHAR, score VARCHAR)
SELECT country FROM table_name_72 WHERE score = 66 - 69 = 135
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_72 (country VARCHAR, score VARCHAR) Question: What Country Scored 66-69=135? [/INST] SELECT country FROM table_name_72 WHERE score = 66 - 69 = 135 </s>
Can you tell me the highest Cargo traffic that has the Airport of barcelona airport, and the Aircraft movements smaller than 290,004?
CREATE TABLE table_name_82 (cargo_traffic INTEGER, airport VARCHAR, aircraft_movements VARCHAR)
SELECT MAX(cargo_traffic) FROM table_name_82 WHERE airport = "barcelona airport" AND aircraft_movements < 290 OFFSET 004 ROWS
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_82 (cargo_traffic INTEGER, airport VARCHAR, aircraft_movements VARCHAR) Question: Can you tell me the highest Cargo traffic that has the Airport of barcelona airport, and the Aircraft movements smaller than 290,004? [/INST] SELECT MAX(cargo_traffic) FROM table_name_82 WHERE airport = "barcelona airport" AND aircraft_movements < 290 OFFSET 004 ROWS </s>
What place is in Australia with 9 or more holes?
CREATE TABLE table_name_22 (place VARCHAR, hole VARCHAR, country VARCHAR)
SELECT place FROM table_name_22 WHERE hole > 9 AND country = "australia"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_22 (place VARCHAR, hole VARCHAR, country VARCHAR) Question: What place is in Australia with 9 or more holes? [/INST] SELECT place FROM table_name_22 WHERE hole > 9 AND country = "australia" </s>
How many holes does Player Vijay Singh have?
CREATE TABLE table_name_79 (hole VARCHAR, player VARCHAR)
SELECT COUNT(hole) FROM table_name_79 WHERE player = "vijay singh"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_79 (hole VARCHAR, player VARCHAR) Question: How many holes does Player Vijay Singh have? [/INST] SELECT COUNT(hole) FROM table_name_79 WHERE player = "vijay singh" </s>
How many holes does Player Vijay Singh have?
CREATE TABLE table_name_61 (hole VARCHAR, player VARCHAR)
SELECT COUNT(hole) FROM table_name_61 WHERE player = "vijay singh"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_61 (hole VARCHAR, player VARCHAR) Question: How many holes does Player Vijay Singh have? [/INST] SELECT COUNT(hole) FROM table_name_61 WHERE player = "vijay singh" </s>
On what frequency does W233AG broadcast?
CREATE TABLE table_name_95 (frequency_mhz VARCHAR, call_sign VARCHAR)
SELECT COUNT(frequency_mhz) FROM table_name_95 WHERE call_sign = "w233ag"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (frequency_mhz VARCHAR, call_sign VARCHAR) Question: On what frequency does W233AG broadcast? [/INST] SELECT COUNT(frequency_mhz) FROM table_name_95 WHERE call_sign = "w233ag" </s>
What position did Garion Weller hold in 2012?
CREATE TABLE table_name_23 (position VARCHAR)
SELECT position FROM table_name_23 WHERE 2012 = "garion weller"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_23 (position VARCHAR) Question: What position did Garion Weller hold in 2012? [/INST] SELECT position FROM table_name_23 WHERE 2012 = "garion weller" </s>
Who held the same position in 2014 that Jarrah Rubinstein held in 2013?
CREATE TABLE table_name_23 (Id VARCHAR)
SELECT 2014 FROM table_name_23 WHERE 2013 = "jarrah rubinstein"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_23 (Id VARCHAR) Question: Who held the same position in 2014 that Jarrah Rubinstein held in 2013? [/INST] SELECT 2014 FROM table_name_23 WHERE 2013 = "jarrah rubinstein" </s>
Who held the Male Sports Rep position in 2011?
CREATE TABLE table_name_73 (position VARCHAR)
SELECT 2011 FROM table_name_73 WHERE position = "male sports rep"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_73 (position VARCHAR) Question: Who held the Male Sports Rep position in 2011? [/INST] SELECT 2011 FROM table_name_73 WHERE position = "male sports rep" </s>
Who held the Communications Rep position in 2011?
CREATE TABLE table_name_65 (position VARCHAR)
SELECT 2011 FROM table_name_65 WHERE position = "communications rep"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_65 (position VARCHAR) Question: Who held the Communications Rep position in 2011? [/INST] SELECT 2011 FROM table_name_65 WHERE position = "communications rep" </s>
Who held the same position in 2014 that Garion Weller held in 2014?
CREATE TABLE table_name_82 (Id VARCHAR)
SELECT 2014 FROM table_name_82 WHERE 2012 = "garion weller"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_82 (Id VARCHAR) Question: Who held the same position in 2014 that Garion Weller held in 2014? [/INST] SELECT 2014 FROM table_name_82 WHERE 2012 = "garion weller" </s>
Who held the same position in 2014 that Danielle Button held in 2013?
CREATE TABLE table_name_49 (Id VARCHAR)
SELECT 2014 FROM table_name_49 WHERE 2013 = "danielle button"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_49 (Id VARCHAR) Question: Who held the same position in 2014 that Danielle Button held in 2013? [/INST] SELECT 2014 FROM table_name_49 WHERE 2013 = "danielle button" </s>
At what Location was the match against Opponent of Mostapha Al-Turk lasting less than 2 Rounds?
CREATE TABLE table_name_31 (location VARCHAR, round VARCHAR, opponent VARCHAR)
SELECT location FROM table_name_31 WHERE round < 2 AND opponent = "mostapha al-turk"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_31 (location VARCHAR, round VARCHAR, opponent VARCHAR) Question: At what Location was the match against Opponent of Mostapha Al-Turk lasting less than 2 Rounds? [/INST] SELECT location FROM table_name_31 WHERE round < 2 AND opponent = "mostapha al-turk" </s>
At what Location was the match Method TKO (punches)?
CREATE TABLE table_name_23 (location VARCHAR, method VARCHAR)
SELECT location FROM table_name_23 WHERE method = "tko (punches)"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_23 (location VARCHAR, method VARCHAR) Question: At what Location was the match Method TKO (punches)? [/INST] SELECT location FROM table_name_23 WHERE method = "tko (punches)" </s>
Who was the opponent of the Bye result?
CREATE TABLE table_name_67 (opponent VARCHAR, result VARCHAR)
SELECT opponent FROM table_name_67 WHERE result = "bye"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_67 (opponent VARCHAR, result VARCHAR) Question: Who was the opponent of the Bye result? [/INST] SELECT opponent FROM table_name_67 WHERE result = "bye" </s>