instruction
stringlengths 12
244
| input
stringlengths 27
489
| output
stringlengths 18
557
| text
stringlengths 194
1.14k
|
---|---|---|---|
What was the score when stefan edberg won after 1978? | CREATE TABLE table_name_68 (score VARCHAR, year VARCHAR, champion VARCHAR) | SELECT score FROM table_name_68 WHERE year > 1978 AND champion = "stefan edberg" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_68 (score VARCHAR, year VARCHAR, champion VARCHAR) Question: What was the score when stefan edberg won after 1978? [/INST] SELECT score FROM table_name_68 WHERE year > 1978 AND champion = "stefan edberg" </s> |
What is the Facility ID that has a City of license of wheeling, and a ERP kW less than 4.5? | CREATE TABLE table_name_52 (facility_id INTEGER, city_of_license VARCHAR, erp_kw VARCHAR) | SELECT MAX(facility_id) FROM table_name_52 WHERE city_of_license = "wheeling" AND erp_kw < 4.5 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_52 (facility_id INTEGER, city_of_license VARCHAR, erp_kw VARCHAR) Question: What is the Facility ID that has a City of license of wheeling, and a ERP kW less than 4.5? [/INST] SELECT MAX(facility_id) FROM table_name_52 WHERE city_of_license = "wheeling" AND erp_kw < 4.5 </s> |
What is the City of license that has a ERP kW more than 4.5 and w23dr-d? | CREATE TABLE table_name_45 (city_of_license VARCHAR, erp_kw VARCHAR, station VARCHAR) | SELECT city_of_license FROM table_name_45 WHERE erp_kw > 4.5 AND station = "w23dr-d" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_45 (city_of_license VARCHAR, erp_kw VARCHAR, station VARCHAR) Question: What is the City of license that has a ERP kW more than 4.5 and w23dr-d? [/INST] SELECT city_of_license FROM table_name_45 WHERE erp_kw > 4.5 AND station = "w23dr-d" </s> |
What is the location that has a date of demolition of 1940 and has a church named Christ Church Greyfriars? | CREATE TABLE table_name_46 (location VARCHAR, date_of_demolition VARCHAR, church_name VARCHAR) | SELECT location FROM table_name_46 WHERE date_of_demolition = 1940 AND church_name = "christ church greyfriars" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_46 (location VARCHAR, date_of_demolition VARCHAR, church_name VARCHAR) Question: What is the location that has a date of demolition of 1940 and has a church named Christ Church Greyfriars? [/INST] SELECT location FROM table_name_46 WHERE date_of_demolition = 1940 AND church_name = "christ church greyfriars" </s> |
How many dates of demolition are located on Wood Street? | CREATE TABLE table_name_7 (date_of_demolition VARCHAR, location VARCHAR) | SELECT COUNT(date_of_demolition) FROM table_name_7 WHERE location = "wood street" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (date_of_demolition VARCHAR, location VARCHAR) Question: How many dates of demolition are located on Wood Street? [/INST] SELECT COUNT(date_of_demolition) FROM table_name_7 WHERE location = "wood street" </s> |
What was Olga Govortsova's score when she played on a clay surface on 19 May 2008? | CREATE TABLE table_name_11 (score VARCHAR, surface VARCHAR, date VARCHAR) | SELECT score FROM table_name_11 WHERE surface = "clay" AND date = "19 may 2008" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_11 (score VARCHAR, surface VARCHAR, date VARCHAR) Question: What was Olga Govortsova's score when she played on a clay surface on 19 May 2008? [/INST] SELECT score FROM table_name_11 WHERE surface = "clay" AND date = "19 may 2008" </s> |
What was Olga Govortsova's outcome when she played on a grass surface? | CREATE TABLE table_name_59 (outcome VARCHAR, surface VARCHAR) | SELECT outcome FROM table_name_59 WHERE surface = "grass" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_59 (outcome VARCHAR, surface VARCHAR) Question: What was Olga Govortsova's outcome when she played on a grass surface? [/INST] SELECT outcome FROM table_name_59 WHERE surface = "grass" </s> |
What was Olga Govortsova's goal when she played on a clay surface on 26 May 2012? | CREATE TABLE table_name_84 (score VARCHAR, surface VARCHAR, date VARCHAR) | SELECT score FROM table_name_84 WHERE surface = "clay" AND date = "26 may 2012" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_84 (score VARCHAR, surface VARCHAR, date VARCHAR) Question: What was Olga Govortsova's goal when she played on a clay surface on 26 May 2012? [/INST] SELECT score FROM table_name_84 WHERE surface = "clay" AND date = "26 may 2012" </s> |
Which mountain range has a rank of 19? | CREATE TABLE table_name_35 (mountain_range VARCHAR, rank VARCHAR) | SELECT mountain_range FROM table_name_35 WHERE rank = 19 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_35 (mountain_range VARCHAR, rank VARCHAR) Question: Which mountain range has a rank of 19? [/INST] SELECT mountain_range FROM table_name_35 WHERE rank = 19 </s> |
Which location includes Coast Mountains with a rank less than 18 at Skihist Mountain? | CREATE TABLE table_name_41 (location VARCHAR, mountain_peak VARCHAR, mountain_range VARCHAR, rank VARCHAR) | SELECT location FROM table_name_41 WHERE mountain_range = "coast mountains" AND rank < 18 AND mountain_peak = "skihist mountain" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_41 (location VARCHAR, mountain_peak VARCHAR, mountain_range VARCHAR, rank VARCHAR) Question: Which location includes Coast Mountains with a rank less than 18 at Skihist Mountain? [/INST] SELECT location FROM table_name_41 WHERE mountain_range = "coast mountains" AND rank < 18 AND mountain_peak = "skihist mountain" </s> |
Which mountain range includes Mount Hubbard? | CREATE TABLE table_name_64 (mountain_range VARCHAR, mountain_peak VARCHAR) | SELECT mountain_range FROM table_name_64 WHERE mountain_peak = "mount hubbard" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_64 (mountain_range VARCHAR, mountain_peak VARCHAR) Question: Which mountain range includes Mount Hubbard? [/INST] SELECT mountain_range FROM table_name_64 WHERE mountain_peak = "mount hubbard" </s> |
Which province includes Axel Heiberg Island? | CREATE TABLE table_name_25 (province VARCHAR, mountain_range VARCHAR) | SELECT province FROM table_name_25 WHERE mountain_range = "axel heiberg island" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_25 (province VARCHAR, mountain_range VARCHAR) Question: Which province includes Axel Heiberg Island? [/INST] SELECT province FROM table_name_25 WHERE mountain_range = "axel heiberg island" </s> |
What are the notes of events that finished in 12th position? | CREATE TABLE table_name_94 (notes VARCHAR, position VARCHAR) | SELECT notes FROM table_name_94 WHERE position = "12th" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_94 (notes VARCHAR, position VARCHAR) Question: What are the notes of events that finished in 12th position? [/INST] SELECT notes FROM table_name_94 WHERE position = "12th" </s> |
Which venue was finished in 2nd position in 1985? | CREATE TABLE table_name_40 (venue VARCHAR, position VARCHAR, year VARCHAR) | SELECT venue FROM table_name_40 WHERE position = "2nd" AND year = 1985 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (venue VARCHAR, position VARCHAR, year VARCHAR) Question: Which venue was finished in 2nd position in 1985? [/INST] SELECT venue FROM table_name_40 WHERE position = "2nd" AND year = 1985 </s> |
What is the average year of events that took place in Antwerp, Belgium? | CREATE TABLE table_name_97 (year INTEGER, venue VARCHAR) | SELECT AVG(year) FROM table_name_97 WHERE venue = "antwerp, belgium" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_97 (year INTEGER, venue VARCHAR) Question: What is the average year of events that took place in Antwerp, Belgium? [/INST] SELECT AVG(year) FROM table_name_97 WHERE venue = "antwerp, belgium" </s> |
What's the year of the event that took place most recently in Antwerp, Belgium with team competition notes? | CREATE TABLE table_name_42 (year INTEGER, notes VARCHAR, venue VARCHAR) | SELECT MAX(year) FROM table_name_42 WHERE notes = "team competition" AND venue = "antwerp, belgium" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_42 (year INTEGER, notes VARCHAR, venue VARCHAR) Question: What's the year of the event that took place most recently in Antwerp, Belgium with team competition notes? [/INST] SELECT MAX(year) FROM table_name_42 WHERE notes = "team competition" AND venue = "antwerp, belgium" </s> |
What was the label's format LP and catalog of CH-9192? | CREATE TABLE table_name_76 (label VARCHAR, format VARCHAR, catalog VARCHAR) | SELECT label FROM table_name_76 WHERE format = "lp" AND catalog = "ch-9192" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_76 (label VARCHAR, format VARCHAR, catalog VARCHAR) Question: What was the label's format LP and catalog of CH-9192? [/INST] SELECT label FROM table_name_76 WHERE format = "lp" AND catalog = "ch-9192" </s> |
When was Catalog CHD-9192 published? | CREATE TABLE table_name_66 (date VARCHAR, catalog VARCHAR) | SELECT date FROM table_name_66 WHERE catalog = "chd-9192" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_66 (date VARCHAR, catalog VARCHAR) Question: When was Catalog CHD-9192 published? [/INST] SELECT date FROM table_name_66 WHERE catalog = "chd-9192" </s> |
I need the FCC info on the radio Frequency MHz 107.5? | CREATE TABLE table_name_64 (fcc_info VARCHAR, frequency_mhz VARCHAR) | SELECT fcc_info FROM table_name_64 WHERE frequency_mhz = 107.5 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_64 (fcc_info VARCHAR, frequency_mhz VARCHAR) Question: I need the FCC info on the radio Frequency MHz 107.5? [/INST] SELECT fcc_info FROM table_name_64 WHERE frequency_mhz = 107.5 </s> |
Give me the MHz Frequency of Allapattah, Florida. | CREATE TABLE table_name_28 (frequency_mhz VARCHAR, city_of_license VARCHAR) | SELECT frequency_mhz FROM table_name_28 WHERE city_of_license = "allapattah, florida" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_28 (frequency_mhz VARCHAR, city_of_license VARCHAR) Question: Give me the MHz Frequency of Allapattah, Florida. [/INST] SELECT frequency_mhz FROM table_name_28 WHERE city_of_license = "allapattah, florida" </s> |
What class does the w298ak sign belong to? | CREATE TABLE table_name_10 (class VARCHAR, call_sign VARCHAR) | SELECT class FROM table_name_10 WHERE call_sign = "w298ak" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_10 (class VARCHAR, call_sign VARCHAR) Question: What class does the w298ak sign belong to? [/INST] SELECT class FROM table_name_10 WHERE call_sign = "w298ak" </s> |
What class is ERP W of 800? | CREATE TABLE table_name_9 (class VARCHAR, erp_w VARCHAR) | SELECT class FROM table_name_9 WHERE erp_w = 800 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_9 (class VARCHAR, erp_w VARCHAR) Question: What class is ERP W of 800? [/INST] SELECT class FROM table_name_9 WHERE erp_w = 800 </s> |
What is the total of Goals Conceded that has Points smaller than 21 and a Lost thats smaller than 8? | CREATE TABLE table_name_10 (goals_conceded INTEGER, points VARCHAR, lost VARCHAR) | SELECT SUM(goals_conceded) FROM table_name_10 WHERE points < 21 AND lost < 8 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_10 (goals_conceded INTEGER, points VARCHAR, lost VARCHAR) Question: What is the total of Goals Conceded that has Points smaller than 21 and a Lost thats smaller than 8? [/INST] SELECT SUM(goals_conceded) FROM table_name_10 WHERE points < 21 AND lost < 8 </s> |
What's the total of Lost that's got Points larger than 28, Draw of 5, and Place that's smaller than 1? | CREATE TABLE table_name_69 (lost INTEGER, place VARCHAR, points VARCHAR, draw VARCHAR) | SELECT SUM(lost) FROM table_name_69 WHERE points > 28 AND draw = 5 AND place < 1 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_69 (lost INTEGER, place VARCHAR, points VARCHAR, draw VARCHAR) Question: What's the total of Lost that's got Points larger than 28, Draw of 5, and Place that's smaller than 1? [/INST] SELECT SUM(lost) FROM table_name_69 WHERE points > 28 AND draw = 5 AND place < 1 </s> |
What's the total of Goals Scored with Points that's smaller than 27, and a Team of C.D. AtlΓ©tico Balboa? | CREATE TABLE table_name_40 (goals_scored INTEGER, points VARCHAR, team VARCHAR) | SELECT SUM(goals_scored) FROM table_name_40 WHERE points < 27 AND team = "c.d. atlΓ©tico balboa" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (goals_scored INTEGER, points VARCHAR, team VARCHAR) Question: What's the total of Goals Scored with Points that's smaller than 27, and a Team of C.D. AtlΓ©tico Balboa? [/INST] SELECT SUM(goals_scored) FROM table_name_40 WHERE points < 27 AND team = "c.d. atlΓ©tico balboa" </s> |
What is listed as the Highest Played and that has a Place that is larger than 10? | CREATE TABLE table_name_9 (played INTEGER, place INTEGER) | SELECT MAX(played) FROM table_name_9 WHERE place > 10 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_9 (played INTEGER, place INTEGER) Question: What is listed as the Highest Played and that has a Place that is larger than 10? [/INST] SELECT MAX(played) FROM table_name_9 WHERE place > 10 </s> |
What is listed as the Highest Played, has Points of 17, and Draw that is smaller than 5? | CREATE TABLE table_name_19 (played INTEGER, points VARCHAR, draw VARCHAR) | SELECT MAX(played) FROM table_name_19 WHERE points = 17 AND draw < 5 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_19 (played INTEGER, points VARCHAR, draw VARCHAR) Question: What is listed as the Highest Played, has Points of 17, and Draw that is smaller than 5? [/INST] SELECT MAX(played) FROM table_name_19 WHERE points = 17 AND draw < 5 </s> |
When was the game that ended with a score of 6-4? | CREATE TABLE table_name_38 (date VARCHAR, score VARCHAR) | SELECT date FROM table_name_38 WHERE score = "6-4" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_38 (date VARCHAR, score VARCHAR) Question: When was the game that ended with a score of 6-4? [/INST] SELECT date FROM table_name_38 WHERE score = "6-4" </s> |
What was the score on April 8? | CREATE TABLE table_name_39 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_39 WHERE date = "april 8" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_39 (score VARCHAR, date VARCHAR) Question: What was the score on April 8? [/INST] SELECT score FROM table_name_39 WHERE date = "april 8" </s> |
What was the decision in Minnesota? | CREATE TABLE table_name_12 (decision VARCHAR, home VARCHAR) | SELECT decision FROM table_name_12 WHERE home = "minnesota" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_12 (decision VARCHAR, home VARCHAR) Question: What was the decision in Minnesota? [/INST] SELECT decision FROM table_name_12 WHERE home = "minnesota" </s> |
Which score has a record of 58β15β8? | CREATE TABLE table_name_80 (score VARCHAR, record VARCHAR) | SELECT score FROM table_name_80 WHERE record = "58β15β8" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_80 (score VARCHAR, record VARCHAR) Question: Which score has a record of 58β15β8? [/INST] SELECT score FROM table_name_80 WHERE record = "58β15β8" </s> |
Which section has a level of Tier 3, is in the 6th position, and is in the 1937-38 season? | CREATE TABLE table_name_74 (section VARCHAR, season VARCHAR, level VARCHAR, position VARCHAR) | SELECT section FROM table_name_74 WHERE level = "tier 3" AND position = "6th" AND season = "1937-38" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_74 (section VARCHAR, season VARCHAR, level VARCHAR, position VARCHAR) Question: Which section has a level of Tier 3, is in the 6th position, and is in the 1937-38 season? [/INST] SELECT section FROM table_name_74 WHERE level = "tier 3" AND position = "6th" AND season = "1937-38" </s> |
Which section is in the 6th position? | CREATE TABLE table_name_8 (section VARCHAR, position VARCHAR) | SELECT section FROM table_name_8 WHERE position = "6th" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_8 (section VARCHAR, position VARCHAR) Question: Which section is in the 6th position? [/INST] SELECT section FROM table_name_8 WHERE position = "6th" </s> |
Name the attendance with date of june 11 | CREATE TABLE table_name_92 (attendance VARCHAR, date VARCHAR) | SELECT attendance FROM table_name_92 WHERE date = "june 11" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_92 (attendance VARCHAR, date VARCHAR) Question: Name the attendance with date of june 11 [/INST] SELECT attendance FROM table_name_92 WHERE date = "june 11" </s> |
Which partnership has a run number of 27? | CREATE TABLE table_name_70 (partnerships VARCHAR, runs VARCHAR) | SELECT partnerships FROM table_name_70 WHERE runs = "27" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_70 (partnerships VARCHAR, runs VARCHAR) Question: Which partnership has a run number of 27? [/INST] SELECT partnerships FROM table_name_70 WHERE runs = "27" </s> |
What venue did the parntership of shoaib malik / misbah-ul-haq occur? | CREATE TABLE table_name_79 (venue VARCHAR, partnerships VARCHAR) | SELECT venue FROM table_name_79 WHERE partnerships = "shoaib malik / misbah-ul-haq" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_79 (venue VARCHAR, partnerships VARCHAR) Question: What venue did the parntership of shoaib malik / misbah-ul-haq occur? [/INST] SELECT venue FROM table_name_79 WHERE partnerships = "shoaib malik / misbah-ul-haq" </s> |
What venue did the partnership of herschelle gibbs / justin kemp happen? | CREATE TABLE table_name_74 (venue VARCHAR, partnerships VARCHAR) | SELECT venue FROM table_name_74 WHERE partnerships = "herschelle gibbs / justin kemp" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_74 (venue VARCHAR, partnerships VARCHAR) Question: What venue did the partnership of herschelle gibbs / justin kemp happen? [/INST] SELECT venue FROM table_name_74 WHERE partnerships = "herschelle gibbs / justin kemp" </s> |
What is the number Played that has 310 Points for? | CREATE TABLE table_name_77 (played VARCHAR, points_for VARCHAR) | SELECT played FROM table_name_77 WHERE points_for = "310" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_77 (played VARCHAR, points_for VARCHAR) Question: What is the number Played that has 310 Points for? [/INST] SELECT played FROM table_name_77 WHERE points_for = "310" </s> |
What Losing bonus has a Points against of 588? | CREATE TABLE table_name_62 (losing_bonus VARCHAR, points_against VARCHAR) | SELECT losing_bonus FROM table_name_62 WHERE points_against = "588" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_62 (losing_bonus VARCHAR, points_against VARCHAR) Question: What Losing bonus has a Points against of 588? [/INST] SELECT losing_bonus FROM table_name_62 WHERE points_against = "588" </s> |
What Tries against has a Losing bonus of 7? | CREATE TABLE table_name_43 (tries_against VARCHAR, losing_bonus VARCHAR) | SELECT tries_against FROM table_name_43 WHERE losing_bonus = "7" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_43 (tries_against VARCHAR, losing_bonus VARCHAR) Question: What Tries against has a Losing bonus of 7? [/INST] SELECT tries_against FROM table_name_43 WHERE losing_bonus = "7" </s> |
What Try bonus has a Points against of 488? | CREATE TABLE table_name_61 (try_bonus VARCHAR, points_against VARCHAR) | SELECT try_bonus FROM table_name_61 WHERE points_against = "488" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_61 (try_bonus VARCHAR, points_against VARCHAR) Question: What Try bonus has a Points against of 488? [/INST] SELECT try_bonus FROM table_name_61 WHERE points_against = "488" </s> |
What Points for has a Try bonus of 140? | CREATE TABLE table_name_26 (points_for VARCHAR, try_bonus VARCHAR) | SELECT points_for FROM table_name_26 WHERE try_bonus = "140" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_26 (points_for VARCHAR, try_bonus VARCHAR) Question: What Points for has a Try bonus of 140? [/INST] SELECT points_for FROM table_name_26 WHERE try_bonus = "140" </s> |
What Drawn has a Tries against of 0? | CREATE TABLE table_name_90 (drawn VARCHAR, tries_against VARCHAR) | SELECT drawn FROM table_name_90 WHERE tries_against = "0" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_90 (drawn VARCHAR, tries_against VARCHAR) Question: What Drawn has a Tries against of 0? [/INST] SELECT drawn FROM table_name_90 WHERE tries_against = "0" </s> |
What is the days held the champion with a reign larger than 3 and 1 defense has? | CREATE TABLE table_name_48 (days_held VARCHAR, reign VARCHAR, defenses VARCHAR) | SELECT days_held FROM table_name_48 WHERE reign > 3 AND defenses = 1 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_48 (days_held VARCHAR, reign VARCHAR, defenses VARCHAR) Question: What is the days held the champion with a reign larger than 3 and 1 defense has? [/INST] SELECT days_held FROM table_name_48 WHERE reign > 3 AND defenses = 1 </s> |
What is the days held the champion with a reign larger than 3 and less than 1 defense has? | CREATE TABLE table_name_1 (days_held VARCHAR, reign VARCHAR, defenses VARCHAR) | SELECT days_held FROM table_name_1 WHERE reign > 3 AND defenses < 1 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_1 (days_held VARCHAR, reign VARCHAR, defenses VARCHAR) Question: What is the days held the champion with a reign larger than 3 and less than 1 defense has? [/INST] SELECT days_held FROM table_name_1 WHERE reign > 3 AND defenses < 1 </s> |
What is the average defenses a champion with 404 days held and a reign larger than 1 has? | CREATE TABLE table_name_57 (defenses INTEGER, days_held VARCHAR, reign VARCHAR) | SELECT AVG(defenses) FROM table_name_57 WHERE days_held = "404" AND reign > 1 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_57 (defenses INTEGER, days_held VARCHAR, reign VARCHAR) Question: What is the average defenses a champion with 404 days held and a reign larger than 1 has? [/INST] SELECT AVG(defenses) FROM table_name_57 WHERE days_held = "404" AND reign > 1 </s> |
What is the lowest defense a champion with 345 days held has? | CREATE TABLE table_name_46 (defenses INTEGER, days_held VARCHAR) | SELECT MIN(defenses) FROM table_name_46 WHERE days_held = "345" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_46 (defenses INTEGER, days_held VARCHAR) Question: What is the lowest defense a champion with 345 days held has? [/INST] SELECT MIN(defenses) FROM table_name_46 WHERE days_held = "345" </s> |
On what date was there a record of 76-72? | CREATE TABLE table_name_6 (date VARCHAR, record VARCHAR) | SELECT date FROM table_name_6 WHERE record = "76-72" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_6 (date VARCHAR, record VARCHAR) Question: On what date was there a record of 76-72? [/INST] SELECT date FROM table_name_6 WHERE record = "76-72" </s> |
What was the attendance that had a loss of Ponson (1-5)? | CREATE TABLE table_name_58 (attendance VARCHAR, loss VARCHAR) | SELECT attendance FROM table_name_58 WHERE loss = "ponson (1-5)" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_58 (attendance VARCHAR, loss VARCHAR) Question: What was the attendance that had a loss of Ponson (1-5)? [/INST] SELECT attendance FROM table_name_58 WHERE loss = "ponson (1-5)" </s> |
On which day was there a record of 36-39? | CREATE TABLE table_name_70 (date VARCHAR, record VARCHAR) | SELECT date FROM table_name_70 WHERE record = "36-39" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_70 (date VARCHAR, record VARCHAR) Question: On which day was there a record of 36-39? [/INST] SELECT date FROM table_name_70 WHERE record = "36-39" </s> |
On what day was the record 30-31? | CREATE TABLE table_name_88 (date VARCHAR, record VARCHAR) | SELECT date FROM table_name_88 WHERE record = "30-31" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_88 (date VARCHAR, record VARCHAR) Question: On what day was the record 30-31? [/INST] SELECT date FROM table_name_88 WHERE record = "30-31" </s> |
Who was the opponent at the game that had a loss of Leonard (7β8)? | CREATE TABLE table_name_82 (opponent VARCHAR, loss VARCHAR) | SELECT opponent FROM table_name_82 WHERE loss = "leonard (7β8)" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_82 (opponent VARCHAR, loss VARCHAR) Question: Who was the opponent at the game that had a loss of Leonard (7β8)? [/INST] SELECT opponent FROM table_name_82 WHERE loss = "leonard (7β8)" </s> |
What was the score of the game when the record was 18β43? | CREATE TABLE table_name_3 (score VARCHAR, record VARCHAR) | SELECT score FROM table_name_3 WHERE record = "18β43" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_3 (score VARCHAR, record VARCHAR) Question: What was the score of the game when the record was 18β43? [/INST] SELECT score FROM table_name_3 WHERE record = "18β43" </s> |
What was the score of the game against the Royals when the record was 24β52? | CREATE TABLE table_name_75 (score VARCHAR, opponent VARCHAR, record VARCHAR) | SELECT score FROM table_name_75 WHERE opponent = "royals" AND record = "24β52" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_75 (score VARCHAR, opponent VARCHAR, record VARCHAR) Question: What was the score of the game against the Royals when the record was 24β52? [/INST] SELECT score FROM table_name_75 WHERE opponent = "royals" AND record = "24β52" </s> |
What was the score of the game when the record was 22β46? | CREATE TABLE table_name_36 (score VARCHAR, record VARCHAR) | SELECT score FROM table_name_36 WHERE record = "22β46" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_36 (score VARCHAR, record VARCHAR) Question: What was the score of the game when the record was 22β46? [/INST] SELECT score FROM table_name_36 WHERE record = "22β46" </s> |
What is the real name of the person whose primary military specialty is shock paratrooper? | CREATE TABLE table_name_51 (real_name VARCHAR, primary_military_speciality VARCHAR) | SELECT real_name FROM table_name_51 WHERE primary_military_speciality = "shock paratrooper" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_51 (real_name VARCHAR, primary_military_speciality VARCHAR) Question: What is the real name of the person whose primary military specialty is shock paratrooper? [/INST] SELECT real_name FROM table_name_51 WHERE primary_military_speciality = "shock paratrooper" </s> |
What is the birthplace of Pete Sanderson? | CREATE TABLE table_name_71 (birthplace VARCHAR, real_name VARCHAR) | SELECT birthplace FROM table_name_71 WHERE real_name = "pete sanderson" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_71 (birthplace VARCHAR, real_name VARCHAR) Question: What is the birthplace of Pete Sanderson? [/INST] SELECT birthplace FROM table_name_71 WHERE real_name = "pete sanderson" </s> |
What role did Jean-Luc Bouvier serve? | CREATE TABLE table_name_30 (function__figure_ VARCHAR, real_name VARCHAR) | SELECT function__figure_ FROM table_name_30 WHERE real_name = "jean-luc bouvier" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_30 (function__figure_ VARCHAR, real_name VARCHAR) Question: What role did Jean-Luc Bouvier serve? [/INST] SELECT function__figure_ FROM table_name_30 WHERE real_name = "jean-luc bouvier" </s> |
What is the real name of the person who is a pilot of the silent attack kayak? | CREATE TABLE table_name_28 (real_name VARCHAR, function__figure_ VARCHAR) | SELECT real_name FROM table_name_28 WHERE function__figure_ = "pilot of the silent attack kayak" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_28 (real_name VARCHAR, function__figure_ VARCHAR) Question: What is the real name of the person who is a pilot of the silent attack kayak? [/INST] SELECT real_name FROM table_name_28 WHERE function__figure_ = "pilot of the silent attack kayak" </s> |
What is the code name of the person born in Liverpool? | CREATE TABLE table_name_94 (code_name VARCHAR, birthplace VARCHAR) | SELECT code_name FROM table_name_94 WHERE birthplace = "liverpool" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_94 (code_name VARCHAR, birthplace VARCHAR) Question: What is the code name of the person born in Liverpool? [/INST] SELECT code_name FROM table_name_94 WHERE birthplace = "liverpool" </s> |
What is the names for the medalist in the sport of canoeing? | CREATE TABLE table_name_25 (name VARCHAR, sport VARCHAR) | SELECT name FROM table_name_25 WHERE sport = "canoeing" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_25 (name VARCHAR, sport VARCHAR) Question: What is the names for the medalist in the sport of canoeing? [/INST] SELECT name FROM table_name_25 WHERE sport = "canoeing" </s> |
What games had the women's half middleweight event? | CREATE TABLE table_name_90 (games VARCHAR, event VARCHAR) | SELECT games FROM table_name_90 WHERE event = "women's half middleweight" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_90 (games VARCHAR, event VARCHAR) Question: What games had the women's half middleweight event? [/INST] SELECT games FROM table_name_90 WHERE event = "women's half middleweight" </s> |
Who received the bronze medal in the 2000 Sydney games? | CREATE TABLE table_name_95 (name VARCHAR, medal VARCHAR, games VARCHAR) | SELECT name FROM table_name_95 WHERE medal = "bronze" AND games = "2000 sydney" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (name VARCHAR, medal VARCHAR, games VARCHAR) Question: Who received the bronze medal in the 2000 Sydney games? [/INST] SELECT name FROM table_name_95 WHERE medal = "bronze" AND games = "2000 sydney" </s> |
How many people attended when opponent was twins? | CREATE TABLE table_name_80 (attendance VARCHAR, opponent VARCHAR) | SELECT COUNT(attendance) FROM table_name_80 WHERE opponent = "twins" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_80 (attendance VARCHAR, opponent VARCHAR) Question: How many people attended when opponent was twins? [/INST] SELECT COUNT(attendance) FROM table_name_80 WHERE opponent = "twins" </s> |
Which date has a Record of 41-46? | CREATE TABLE table_name_55 (date VARCHAR, record VARCHAR) | SELECT date FROM table_name_55 WHERE record = "41-46" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_55 (date VARCHAR, record VARCHAR) Question: Which date has a Record of 41-46? [/INST] SELECT date FROM table_name_55 WHERE record = "41-46" </s> |
Which score has a Record of 48-55? | CREATE TABLE table_name_66 (score VARCHAR, record VARCHAR) | SELECT score FROM table_name_66 WHERE record = "48-55" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_66 (score VARCHAR, record VARCHAR) Question: Which score has a Record of 48-55? [/INST] SELECT score FROM table_name_66 WHERE record = "48-55" </s> |
Which score has a Record of 44-49? | CREATE TABLE table_name_96 (score VARCHAR, record VARCHAR) | SELECT score FROM table_name_96 WHERE record = "44-49" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_96 (score VARCHAR, record VARCHAR) Question: Which score has a Record of 44-49? [/INST] SELECT score FROM table_name_96 WHERE record = "44-49" </s> |
Which score has an Opponent of white sox, and a Record of 2-0? | CREATE TABLE table_name_92 (score VARCHAR, opponent VARCHAR, record VARCHAR) | SELECT score FROM table_name_92 WHERE opponent = "white sox" AND record = "2-0" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_92 (score VARCHAR, opponent VARCHAR, record VARCHAR) Question: Which score has an Opponent of white sox, and a Record of 2-0? [/INST] SELECT score FROM table_name_92 WHERE opponent = "white sox" AND record = "2-0" </s> |
How many votes did candice sjostrom receive? | CREATE TABLE table_name_94 (popular_votes INTEGER, candidate VARCHAR) | SELECT AVG(popular_votes) FROM table_name_94 WHERE candidate = "candice sjostrom" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_94 (popular_votes INTEGER, candidate VARCHAR) Question: How many votes did candice sjostrom receive? [/INST] SELECT AVG(popular_votes) FROM table_name_94 WHERE candidate = "candice sjostrom" </s> |
What percentage did chris wright receive? | CREATE TABLE table_name_23 (percentage VARCHAR, candidate VARCHAR) | SELECT percentage FROM table_name_23 WHERE candidate = "chris wright" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_23 (percentage VARCHAR, candidate VARCHAR) Question: What percentage did chris wright receive? [/INST] SELECT percentage FROM table_name_23 WHERE candidate = "chris wright" </s> |
How many votes for the candidate after 1992, 1.59% of the vote, and the office of us representative 4? | CREATE TABLE table_name_2 (popular_votes INTEGER, year VARCHAR, office VARCHAR, percentage VARCHAR) | SELECT AVG(popular_votes) FROM table_name_2 WHERE office = "us representative 4" AND percentage = "1.59%" AND year > 1992 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_2 (popular_votes INTEGER, year VARCHAR, office VARCHAR, percentage VARCHAR) Question: How many votes for the candidate after 1992, 1.59% of the vote, and the office of us representative 4? [/INST] SELECT AVG(popular_votes) FROM table_name_2 WHERE office = "us representative 4" AND percentage = "1.59%" AND year > 1992 </s> |
What years did J. Smith Young serve as a Representative? | CREATE TABLE table_name_36 (years VARCHAR, representative VARCHAR) | SELECT years FROM table_name_36 WHERE representative = "j. smith young" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_36 (years VARCHAR, representative VARCHAR) Question: What years did J. Smith Young serve as a Representative? [/INST] SELECT years FROM table_name_36 WHERE representative = "j. smith young" </s> |
Which party did Thomas L. Young belong to? | CREATE TABLE table_name_58 (party VARCHAR, representative VARCHAR) | SELECT party FROM table_name_58 WHERE representative = "thomas l. young" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_58 (party VARCHAR, representative VARCHAR) Question: Which party did Thomas L. Young belong to? [/INST] SELECT party FROM table_name_58 WHERE representative = "thomas l. young" </s> |
What is the lowest total amount of medals from countries with 0 gold medals, more than 2 bronze medals, and more than 1 silver medal? | CREATE TABLE table_name_57 (total INTEGER, silver VARCHAR, gold VARCHAR, bronze VARCHAR) | SELECT MIN(total) FROM table_name_57 WHERE gold = 0 AND bronze > 2 AND silver > 1 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_57 (total INTEGER, silver VARCHAR, gold VARCHAR, bronze VARCHAR) Question: What is the lowest total amount of medals from countries with 0 gold medals, more than 2 bronze medals, and more than 1 silver medal? [/INST] SELECT MIN(total) FROM table_name_57 WHERE gold = 0 AND bronze > 2 AND silver > 1 </s> |
What is the total number of silver medals for countries of rank 14, with less than 1 total medals? | CREATE TABLE table_name_66 (silver INTEGER, rank VARCHAR, total VARCHAR) | SELECT SUM(silver) FROM table_name_66 WHERE rank = "14" AND total < 1 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_66 (silver INTEGER, rank VARCHAR, total VARCHAR) Question: What is the total number of silver medals for countries of rank 14, with less than 1 total medals? [/INST] SELECT SUM(silver) FROM table_name_66 WHERE rank = "14" AND total < 1 </s> |
How many tackles for the player with over 0 fumble recovries and 0 forced fumbles? | CREATE TABLE table_name_96 (total VARCHAR, fumble_rec VARCHAR, fumble_force VARCHAR) | SELECT COUNT(total) FROM table_name_96 WHERE fumble_rec > 0 AND fumble_force = 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_96 (total VARCHAR, fumble_rec VARCHAR, fumble_force VARCHAR) Question: How many tackles for the player with over 0 fumble recovries and 0 forced fumbles? [/INST] SELECT COUNT(total) FROM table_name_96 WHERE fumble_rec > 0 AND fumble_force = 0 </s> |
How many forced fumbles for jim laney with under 2 solo tackles? | CREATE TABLE table_name_20 (fumble_force VARCHAR, solo VARCHAR, player VARCHAR) | SELECT COUNT(fumble_force) FROM table_name_20 WHERE solo < 2 AND player = "jim laney" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_20 (fumble_force VARCHAR, solo VARCHAR, player VARCHAR) Question: How many forced fumbles for jim laney with under 2 solo tackles? [/INST] SELECT COUNT(fumble_force) FROM table_name_20 WHERE solo < 2 AND player = "jim laney" </s> |
What is the high total for players with over 15 solo tackles? | CREATE TABLE table_name_31 (total INTEGER, solo INTEGER) | SELECT MAX(total) FROM table_name_31 WHERE solo > 15 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_31 (total INTEGER, solo INTEGER) Question: What is the high total for players with over 15 solo tackles? [/INST] SELECT MAX(total) FROM table_name_31 WHERE solo > 15 </s> |
How many fumble recoveries for scott gajos with 0 forced fubmles, 0 sacks, and under 2 solo tackles? | CREATE TABLE table_name_65 (fumble_rec INTEGER, solo VARCHAR, player VARCHAR, sacks VARCHAR, fumble_force VARCHAR) | SELECT SUM(fumble_rec) FROM table_name_65 WHERE sacks = "0" AND fumble_force = "0" AND player = "scott gajos" AND solo < 2 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_65 (fumble_rec INTEGER, solo VARCHAR, player VARCHAR, sacks VARCHAR, fumble_force VARCHAR) Question: How many fumble recoveries for scott gajos with 0 forced fubmles, 0 sacks, and under 2 solo tackles? [/INST] SELECT SUM(fumble_rec) FROM table_name_65 WHERE sacks = "0" AND fumble_force = "0" AND player = "scott gajos" AND solo < 2 </s> |
Who is the Opponent playing at 20:00 GMT at Camp Nou? | CREATE TABLE table_name_64 (opponent VARCHAR, time VARCHAR, ground VARCHAR) | SELECT opponent FROM table_name_64 WHERE time = "20:00 gmt" AND ground = "camp nou" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_64 (opponent VARCHAR, time VARCHAR, ground VARCHAR) Question: Who is the Opponent playing at 20:00 GMT at Camp Nou? [/INST] SELECT opponent FROM table_name_64 WHERE time = "20:00 gmt" AND ground = "camp nou" </s> |
What time was the match played with a score of 3-2? | CREATE TABLE table_name_35 (time VARCHAR, score VARCHAR) | SELECT time FROM table_name_35 WHERE score = "3-2" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_35 (time VARCHAR, score VARCHAR) Question: What time was the match played with a score of 3-2? [/INST] SELECT time FROM table_name_35 WHERE score = "3-2" </s> |
On which ground did the team play Aston Villa? | CREATE TABLE table_name_83 (ground VARCHAR, opponent VARCHAR) | SELECT ground FROM table_name_83 WHERE opponent = "aston villa" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_83 (ground VARCHAR, opponent VARCHAR) Question: On which ground did the team play Aston Villa? [/INST] SELECT ground FROM table_name_83 WHERE opponent = "aston villa" </s> |
What kind of competition was it at San Siro at 18:30 GMT? | CREATE TABLE table_name_60 (competition VARCHAR, ground VARCHAR, time VARCHAR) | SELECT competition FROM table_name_60 WHERE ground = "san siro" AND time = "18:30 gmt" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_60 (competition VARCHAR, ground VARCHAR, time VARCHAR) Question: What kind of competition was it at San Siro at 18:30 GMT? [/INST] SELECT competition FROM table_name_60 WHERE ground = "san siro" AND time = "18:30 gmt" </s> |
What is the total number of decile for the redwood school locality? | CREATE TABLE table_name_34 (decile VARCHAR, name VARCHAR) | SELECT COUNT(decile) FROM table_name_34 WHERE name = "redwood school" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_34 (decile VARCHAR, name VARCHAR) Question: What is the total number of decile for the redwood school locality? [/INST] SELECT COUNT(decile) FROM table_name_34 WHERE name = "redwood school" </s> |
Which report includes a Circuit of Tripoli? | CREATE TABLE table_name_71 (report VARCHAR, circuit VARCHAR) | SELECT report FROM table_name_71 WHERE circuit = "tripoli" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_71 (report VARCHAR, circuit VARCHAR) Question: Which report includes a Circuit of Tripoli? [/INST] SELECT report FROM table_name_71 WHERE circuit = "tripoli" </s> |