instruction
stringlengths 12
244
| input
stringlengths 27
489
| output
stringlengths 18
557
| text
stringlengths 194
1.14k
|
---|---|---|---|
What is the first year of the European Championships competition? | CREATE TABLE table_name_52 (year INTEGER, competition VARCHAR) | SELECT MIN(year) FROM table_name_52 WHERE competition = "european championships" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_52 (year INTEGER, competition VARCHAR) Question: What is the first year of the European Championships competition? [/INST] SELECT MIN(year) FROM table_name_52 WHERE competition = "european championships" </s> |
Which position has a venue of Helsinki, Finland? | CREATE TABLE table_name_40 (position VARCHAR, venue VARCHAR) | SELECT position FROM table_name_40 WHERE venue = "helsinki, finland" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (position VARCHAR, venue VARCHAR) Question: Which position has a venue of Helsinki, Finland? [/INST] SELECT position FROM table_name_40 WHERE venue = "helsinki, finland" </s> |
What is the date that a hell ship sunk in the East China Sea? | CREATE TABLE table_name_71 (date VARCHAR, where_sunk VARCHAR, ship_type VARCHAR) | SELECT date FROM table_name_71 WHERE where_sunk = "east china sea" AND ship_type = "hell ship" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_71 (date VARCHAR, where_sunk VARCHAR, ship_type VARCHAR) Question: What is the date that a hell ship sunk in the East China Sea? [/INST] SELECT date FROM table_name_71 WHERE where_sunk = "east china sea" AND ship_type = "hell ship" </s> |
Which nation had a battlecruiser with an estimate of 513? | CREATE TABLE table_name_39 (nat VARCHAR, ship_type VARCHAR, estimate VARCHAR) | SELECT nat FROM table_name_39 WHERE ship_type = "battlecruiser" AND estimate = "513" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_39 (nat VARCHAR, ship_type VARCHAR, estimate VARCHAR) Question: Which nation had a battlecruiser with an estimate of 513? [/INST] SELECT nat FROM table_name_39 WHERE ship_type = "battlecruiser" AND estimate = "513" </s> |
What is the date that a ship sank in the South Atlantic? | CREATE TABLE table_name_59 (date VARCHAR, where_sunk VARCHAR) | SELECT date FROM table_name_59 WHERE where_sunk = "south atlantic" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_59 (date VARCHAR, where_sunk VARCHAR) Question: What is the date that a ship sank in the South Atlantic? [/INST] SELECT date FROM table_name_59 WHERE where_sunk = "south atlantic" </s> |
What type of ship was the Shinano? | CREATE TABLE table_name_77 (ship_type VARCHAR, name VARCHAR) | SELECT ship_type FROM table_name_77 WHERE name = "shinano" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_77 (ship_type VARCHAR, name VARCHAR) Question: What type of ship was the Shinano? [/INST] SELECT ship_type FROM table_name_77 WHERE name = "shinano" </s> |
What nation had a ship named Roma? | CREATE TABLE table_name_24 (nat VARCHAR, name VARCHAR) | SELECT nat FROM table_name_24 WHERE name = "roma" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_24 (nat VARCHAR, name VARCHAR) Question: What nation had a ship named Roma? [/INST] SELECT nat FROM table_name_24 WHERE name = "roma" </s> |
What was score of the Blue Jays' game versus the Indians when their record was 21-19? | CREATE TABLE table_name_6 (score VARCHAR, opponent VARCHAR, record VARCHAR) | SELECT score FROM table_name_6 WHERE opponent = "indians" AND record = "21-19" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_6 (score VARCHAR, opponent VARCHAR, record VARCHAR) Question: What was score of the Blue Jays' game versus the Indians when their record was 21-19? [/INST] SELECT score FROM table_name_6 WHERE opponent = "indians" AND record = "21-19" </s> |
During what years did the tallest building, located at 211 Union Street, have less than 31 floors? | CREATE TABLE table_name_95 (years_as_tallest VARCHAR, floors VARCHAR, street_address VARCHAR) | SELECT years_as_tallest FROM table_name_95 WHERE floors < 31 AND street_address = "211 union street" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (years_as_tallest VARCHAR, floors VARCHAR, street_address VARCHAR) Question: During what years did the tallest building, located at 211 Union Street, have less than 31 floors? [/INST] SELECT years_as_tallest FROM table_name_95 WHERE floors < 31 AND street_address = "211 union street" </s> |
What is the average number of floors at 170 Fourth Avenue North? | CREATE TABLE table_name_76 (floors INTEGER, street_address VARCHAR) | SELECT AVG(floors) FROM table_name_76 WHERE street_address = "170 fourth avenue north" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_76 (floors INTEGER, street_address VARCHAR) Question: What is the average number of floors at 170 Fourth Avenue North? [/INST] SELECT AVG(floors) FROM table_name_76 WHERE street_address = "170 fourth avenue north" </s> |
What is the address of the Life & Casualty Tower? | CREATE TABLE table_name_94 (street_address VARCHAR, name VARCHAR) | SELECT street_address FROM table_name_94 WHERE name = "life & casualty tower" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_94 (street_address VARCHAR, name VARCHAR) Question: What is the address of the Life & Casualty Tower? [/INST] SELECT street_address FROM table_name_94 WHERE name = "life & casualty tower" </s> |
What is listed as the Tie no for Home team of Gillingham? | CREATE TABLE table_name_43 (tie_no VARCHAR, home_team VARCHAR) | SELECT tie_no FROM table_name_43 WHERE home_team = "gillingham" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_43 (tie_no VARCHAR, home_team VARCHAR) Question: What is listed as the Tie no for Home team of Gillingham? [/INST] SELECT tie_no FROM table_name_43 WHERE home_team = "gillingham" </s> |
What is the Tie no listed for the Away team of Barnet? | CREATE TABLE table_name_13 (tie_no VARCHAR, away_team VARCHAR) | SELECT tie_no FROM table_name_13 WHERE away_team = "barnet" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_13 (tie_no VARCHAR, away_team VARCHAR) Question: What is the Tie no listed for the Away team of Barnet? [/INST] SELECT tie_no FROM table_name_13 WHERE away_team = "barnet" </s> |
What is listed for the Attendance that has a Tie no of 5? | CREATE TABLE table_name_97 (attendance VARCHAR, tie_no VARCHAR) | SELECT attendance FROM table_name_97 WHERE tie_no = "5" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_97 (attendance VARCHAR, tie_no VARCHAR) Question: What is listed for the Attendance that has a Tie no of 5? [/INST] SELECT attendance FROM table_name_97 WHERE tie_no = "5" </s> |
Which Away team has a Tie no of 4? | CREATE TABLE table_name_38 (away_team VARCHAR, tie_no VARCHAR) | SELECT away_team FROM table_name_38 WHERE tie_no = "4" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_38 (away_team VARCHAR, tie_no VARCHAR) Question: Which Away team has a Tie no of 4? [/INST] SELECT away_team FROM table_name_38 WHERE tie_no = "4" </s> |
Which Home Team has an Attendance of 1,859? | CREATE TABLE table_name_14 (home_team VARCHAR, attendance VARCHAR) | SELECT home_team FROM table_name_14 WHERE attendance = "1,859" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_14 (home_team VARCHAR, attendance VARCHAR) Question: Which Home Team has an Attendance of 1,859? [/INST] SELECT home_team FROM table_name_14 WHERE attendance = "1,859" </s> |
What is listed as the Away team for the Home team of the Bristol Rovers? | CREATE TABLE table_name_8 (away_team VARCHAR, home_team VARCHAR) | SELECT away_team FROM table_name_8 WHERE home_team = "bristol rovers" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_8 (away_team VARCHAR, home_team VARCHAR) Question: What is listed as the Away team for the Home team of the Bristol Rovers? [/INST] SELECT away_team FROM table_name_8 WHERE home_team = "bristol rovers" </s> |
What is the total of the first season in Segunda División that has a City of cañete? | CREATE TABLE table_name_44 (first_season_of_current_spell_in_segunda_división INTEGER, city VARCHAR) | SELECT SUM(first_season_of_current_spell_in_segunda_división) FROM table_name_44 WHERE city = "cañete" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_44 (first_season_of_current_spell_in_segunda_división INTEGER, city VARCHAR) Question: What is the total of the first season in Segunda División that has a City of cañete? [/INST] SELECT SUM(first_season_of_current_spell_in_segunda_división) FROM table_name_44 WHERE city = "cañete" </s> |
Which team has Top division titles larger than 0, a Founded larger than 1927, and a Stadium of miguel grau? | CREATE TABLE table_name_69 (team VARCHAR, stadium VARCHAR, top_division_titles VARCHAR, founded VARCHAR) | SELECT team FROM table_name_69 WHERE top_division_titles > 0 AND founded > 1927 AND stadium = "miguel grau" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_69 (team VARCHAR, stadium VARCHAR, top_division_titles VARCHAR, founded VARCHAR) Question: Which team has Top division titles larger than 0, a Founded larger than 1927, and a Stadium of miguel grau? [/INST] SELECT team FROM table_name_69 WHERE top_division_titles > 0 AND founded > 1927 AND stadium = "miguel grau" </s> |
Which city has a First season of current spell in Segunda División smaller than 2013? | CREATE TABLE table_name_69 (city VARCHAR, first_season_of_current_spell_in_segunda_división INTEGER) | SELECT city FROM table_name_69 WHERE first_season_of_current_spell_in_segunda_división < 2013 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_69 (city VARCHAR, first_season_of_current_spell_in_segunda_división INTEGER) Question: Which city has a First season of current spell in Segunda División smaller than 2013? [/INST] SELECT city FROM table_name_69 WHERE first_season_of_current_spell_in_segunda_división < 2013 </s> |
What is the smallest capacity for a First season in Segunda División of 2013, and Top division titles larger than 0? | CREATE TABLE table_name_11 (capacity INTEGER, first_season_in_segunda_división VARCHAR, top_division_titles VARCHAR) | SELECT MIN(capacity) FROM table_name_11 WHERE first_season_in_segunda_división = 2013 AND top_division_titles > 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_11 (capacity INTEGER, first_season_in_segunda_división VARCHAR, top_division_titles VARCHAR) Question: What is the smallest capacity for a First season in Segunda División of 2013, and Top division titles larger than 0? [/INST] SELECT MIN(capacity) FROM table_name_11 WHERE first_season_in_segunda_división = 2013 AND top_division_titles > 0 </s> |
What's the total enrollment ofr Mcgill University that has a capacity less than 25,012? | CREATE TABLE table_name_99 (enrollment VARCHAR, institution VARCHAR, capacity VARCHAR) | SELECT COUNT(enrollment) FROM table_name_99 WHERE institution = "mcgill university" AND capacity < 25 OFFSET 012 ROWS | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_99 (enrollment VARCHAR, institution VARCHAR, capacity VARCHAR) Question: What's the total enrollment ofr Mcgill University that has a capacity less than 25,012? [/INST] SELECT COUNT(enrollment) FROM table_name_99 WHERE institution = "mcgill university" AND capacity < 25 OFFSET 012 ROWS </s> |
What's the smallest season for Montreal that's greater than 5,100 for capacity? | CREATE TABLE table_name_8 (first_season INTEGER, city VARCHAR, capacity VARCHAR) | SELECT MIN(first_season) FROM table_name_8 WHERE city = "montreal" AND capacity > 5 OFFSET 100 ROWS | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_8 (first_season INTEGER, city VARCHAR, capacity VARCHAR) Question: What's the smallest season for Montreal that's greater than 5,100 for capacity? [/INST] SELECT MIN(first_season) FROM table_name_8 WHERE city = "montreal" AND capacity > 5 OFFSET 100 ROWS </s> |
What's the name of the city whose first season was in 1996? | CREATE TABLE table_name_32 (city VARCHAR, first_season VARCHAR) | SELECT city FROM table_name_32 WHERE first_season = 1996 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_32 (city VARCHAR, first_season VARCHAR) Question: What's the name of the city whose first season was in 1996? [/INST] SELECT city FROM table_name_32 WHERE first_season = 1996 </s> |
What's the name of the carabins stadium? | CREATE TABLE table_name_55 (football_stadium VARCHAR, team VARCHAR) | SELECT football_stadium FROM table_name_55 WHERE team = "carabins" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_55 (football_stadium VARCHAR, team VARCHAR) Question: What's the name of the carabins stadium? [/INST] SELECT football_stadium FROM table_name_55 WHERE team = "carabins" </s> |
what team has the qual 2 of 1:44.050? | CREATE TABLE table_name_9 (best VARCHAR, qual_2 VARCHAR) | SELECT best FROM table_name_9 WHERE qual_2 = "1:44.050" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_9 (best VARCHAR, qual_2 VARCHAR) Question: what team has the qual 2 of 1:44.050? [/INST] SELECT best FROM table_name_9 WHERE qual_2 = "1:44.050" </s> |
what name goes along with the team of forsythe racing, and a Qual 2 of 1:47.132? | CREATE TABLE table_name_87 (name VARCHAR, team VARCHAR, qual_2 VARCHAR) | SELECT name FROM table_name_87 WHERE team = "forsythe racing" AND qual_2 = "1:47.132" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_87 (name VARCHAR, team VARCHAR, qual_2 VARCHAR) Question: what name goes along with the team of forsythe racing, and a Qual 2 of 1:47.132? [/INST] SELECT name FROM table_name_87 WHERE team = "forsythe racing" AND qual_2 = "1:47.132" </s> |
what team had the 1:44.027 qual 2? | CREATE TABLE table_name_82 (team VARCHAR, qual_2 VARCHAR) | SELECT team FROM table_name_82 WHERE qual_2 = "1:44.027" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_82 (team VARCHAR, qual_2 VARCHAR) Question: what team had the 1:44.027 qual 2? [/INST] SELECT team FROM table_name_82 WHERE qual_2 = "1:44.027" </s> |
what is the qual 1 for alex tagliani? | CREATE TABLE table_name_25 (qual_1 VARCHAR, name VARCHAR) | SELECT qual_1 FROM table_name_25 WHERE name = "alex tagliani" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_25 (qual_1 VARCHAR, name VARCHAR) Question: what is the qual 1 for alex tagliani? [/INST] SELECT qual_1 FROM table_name_25 WHERE name = "alex tagliani" </s> |
what is the team with the best of 1:43.134? | CREATE TABLE table_name_75 (team VARCHAR, best VARCHAR) | SELECT team FROM table_name_75 WHERE best = "1:43.134" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_75 (team VARCHAR, best VARCHAR) Question: what is the team with the best of 1:43.134? [/INST] SELECT team FROM table_name_75 WHERE best = "1:43.134" </s> |
Who was the visiting team at the matchup at the RCA Dome? | CREATE TABLE table_name_99 (visiting_team VARCHAR, stadium VARCHAR) | SELECT visiting_team FROM table_name_99 WHERE stadium = "rca dome" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_99 (visiting_team VARCHAR, stadium VARCHAR) Question: Who was the visiting team at the matchup at the RCA Dome? [/INST] SELECT visiting_team FROM table_name_99 WHERE stadium = "rca dome" </s> |
What was the final score in the game in which the Detroit Lions were the home team? | CREATE TABLE table_name_11 (final_score VARCHAR, host_team VARCHAR) | SELECT final_score FROM table_name_11 WHERE host_team = "detroit lions" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_11 (final_score VARCHAR, host_team VARCHAR) Question: What was the final score in the game in which the Detroit Lions were the home team? [/INST] SELECT final_score FROM table_name_11 WHERE host_team = "detroit lions" </s> |
Which stadium hosted the November 20 game? | CREATE TABLE table_name_11 (stadium VARCHAR, date VARCHAR) | SELECT stadium FROM table_name_11 WHERE date = "november 20" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_11 (stadium VARCHAR, date VARCHAR) Question: Which stadium hosted the November 20 game? [/INST] SELECT stadium FROM table_name_11 WHERE date = "november 20" </s> |
Who was the visiting team against the Minnesota Vikings? | CREATE TABLE table_name_13 (visiting_team VARCHAR, host_team VARCHAR) | SELECT visiting_team FROM table_name_13 WHERE host_team = "minnesota vikings" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_13 (visiting_team VARCHAR, host_team VARCHAR) Question: Who was the visiting team against the Minnesota Vikings? [/INST] SELECT visiting_team FROM table_name_13 WHERE host_team = "minnesota vikings" </s> |
Who was the host team at Candlestick Park? | CREATE TABLE table_name_22 (host_team VARCHAR, stadium VARCHAR) | SELECT host_team FROM table_name_22 WHERE stadium = "candlestick park" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_22 (host_team VARCHAR, stadium VARCHAR) Question: Who was the host team at Candlestick Park? [/INST] SELECT host_team FROM table_name_22 WHERE stadium = "candlestick park" </s> |
Which date had a final score of 20-27? | CREATE TABLE table_name_58 (date VARCHAR, final_score VARCHAR) | SELECT date FROM table_name_58 WHERE final_score = "20-27" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_58 (date VARCHAR, final_score VARCHAR) Question: Which date had a final score of 20-27? [/INST] SELECT date FROM table_name_58 WHERE final_score = "20-27" </s> |
How many years have had the position of 2nd? | CREATE TABLE table_name_66 (year VARCHAR, position VARCHAR) | SELECT COUNT(year) FROM table_name_66 WHERE position = "2nd" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_66 (year VARCHAR, position VARCHAR) Question: How many years have had the position of 2nd? [/INST] SELECT COUNT(year) FROM table_name_66 WHERE position = "2nd" </s> |
What position had notes of 20km and a year earlier than 2002? | CREATE TABLE table_name_29 (position VARCHAR, notes VARCHAR, year VARCHAR) | SELECT position FROM table_name_29 WHERE notes = "20km" AND year < 2002 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_29 (position VARCHAR, notes VARCHAR, year VARCHAR) Question: What position had notes of 20km and a year earlier than 2002? [/INST] SELECT position FROM table_name_29 WHERE notes = "20km" AND year < 2002 </s> |
What was the venue before 2006, with the position of 10th? | CREATE TABLE table_name_26 (venue VARCHAR, year VARCHAR, position VARCHAR) | SELECT venue FROM table_name_26 WHERE year < 2006 AND position = "10th" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_26 (venue VARCHAR, year VARCHAR, position VARCHAR) Question: What was the venue before 2006, with the position of 10th? [/INST] SELECT venue FROM table_name_26 WHERE year < 2006 AND position = "10th" </s> |
What were the notes when the Venue was Turin, Italy? | CREATE TABLE table_name_62 (notes VARCHAR, venue VARCHAR) | SELECT notes FROM table_name_62 WHERE venue = "turin, italy" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_62 (notes VARCHAR, venue VARCHAR) Question: What were the notes when the Venue was Turin, Italy? [/INST] SELECT notes FROM table_name_62 WHERE venue = "turin, italy" </s> |
What is Gareth Morgan's Secondary Military Specialty? | CREATE TABLE table_name_21 (secondary_military_speciality VARCHAR, real_name VARCHAR) | SELECT secondary_military_speciality FROM table_name_21 WHERE real_name = "gareth morgan" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_21 (secondary_military_speciality VARCHAR, real_name VARCHAR) Question: What is Gareth Morgan's Secondary Military Specialty? [/INST] SELECT secondary_military_speciality FROM table_name_21 WHERE real_name = "gareth morgan" </s> |
What is the Code Name of the figure born in Hawaii? | CREATE TABLE table_name_81 (code_name VARCHAR, birthplace VARCHAR) | SELECT code_name FROM table_name_81 WHERE birthplace = "hawaii" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_81 (code_name VARCHAR, birthplace VARCHAR) Question: What is the Code Name of the figure born in Hawaii? [/INST] SELECT code_name FROM table_name_81 WHERE birthplace = "hawaii" </s> |
Name the last title for greater buenos aires and first season of 1920 | CREATE TABLE table_name_9 (last_title VARCHAR, area_province VARCHAR, first_season VARCHAR) | SELECT last_title FROM table_name_9 WHERE area_province = "greater buenos aires" AND first_season = "1920" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_9 (last_title VARCHAR, area_province VARCHAR, first_season VARCHAR) Question: Name the last title for greater buenos aires and first season of 1920 [/INST] SELECT last_title FROM table_name_9 WHERE area_province = "greater buenos aires" AND first_season = "1920" </s> |
Name the area for District of córdoba | CREATE TABLE table_name_64 (area_province VARCHAR, district VARCHAR) | SELECT area_province FROM table_name_64 WHERE district = "córdoba" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_64 (area_province VARCHAR, district VARCHAR) Question: Name the area for District of córdoba [/INST] SELECT area_province FROM table_name_64 WHERE district = "córdoba" </s> |
Name the last title for club of quilmes | CREATE TABLE table_name_36 (last_title VARCHAR, club VARCHAR) | SELECT last_title FROM table_name_36 WHERE club = "quilmes" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_36 (last_title VARCHAR, club VARCHAR) Question: Name the last title for club of quilmes [/INST] SELECT last_title FROM table_name_36 WHERE club = "quilmes" </s> |
Name the last time for club of newell's old boys | CREATE TABLE table_name_11 (last_title VARCHAR, club VARCHAR) | SELECT last_title FROM table_name_11 WHERE club = "newell's old boys" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_11 (last_title VARCHAR, club VARCHAR) Question: Name the last time for club of newell's old boys [/INST] SELECT last_title FROM table_name_11 WHERE club = "newell's old boys" </s> |
Name the averag scored for 2011 long teng cup and 2 october 2011 | CREATE TABLE table_name_64 (scored INTEGER, competition VARCHAR, date VARCHAR) | SELECT AVG(scored) FROM table_name_64 WHERE competition = "2011 long teng cup" AND date = "2 october 2011" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_64 (scored INTEGER, competition VARCHAR, date VARCHAR) Question: Name the averag scored for 2011 long teng cup and 2 october 2011 [/INST] SELECT AVG(scored) FROM table_name_64 WHERE competition = "2011 long teng cup" AND date = "2 october 2011" </s> |
Can you tell me the Barrel twist that has the Barrel lenght of 11.5 in.? | CREATE TABLE table_name_63 (barrel_twist VARCHAR, barrel_length VARCHAR) | SELECT barrel_twist FROM table_name_63 WHERE barrel_length = "11.5 in." | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_63 (barrel_twist VARCHAR, barrel_length VARCHAR) Question: Can you tell me the Barrel twist that has the Barrel lenght of 11.5 in.? [/INST] SELECT barrel_twist FROM table_name_63 WHERE barrel_length = "11.5 in." </s> |
What is the average year that had a value less than 2,575 in Inglewood? | CREATE TABLE table_name_27 (year INTEGER, inglewood INTEGER) | SELECT AVG(year) FROM table_name_27 WHERE inglewood < 2 OFFSET 575 ROWS | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_27 (year INTEGER, inglewood INTEGER) Question: What is the average year that had a value less than 2,575 in Inglewood? [/INST] SELECT AVG(year) FROM table_name_27 WHERE inglewood < 2 OFFSET 575 ROWS </s> |
What is the nature of the incident in Kabul on 2004-01-28? | CREATE TABLE table_name_62 (nature_of_incident VARCHAR, location VARCHAR, date VARCHAR) | SELECT nature_of_incident FROM table_name_62 WHERE location = "kabul" AND date = "2004-01-28" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_62 (nature_of_incident VARCHAR, location VARCHAR, date VARCHAR) Question: What is the nature of the incident in Kabul on 2004-01-28? [/INST] SELECT nature_of_incident FROM table_name_62 WHERE location = "kabul" AND date = "2004-01-28" </s> |
What is the nature of the incident that's a bomb attack? | CREATE TABLE table_name_69 (nature_of_incident VARCHAR, circumstances VARCHAR) | SELECT nature_of_incident FROM table_name_69 WHERE circumstances = "bomb attack" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_69 (nature_of_incident VARCHAR, circumstances VARCHAR) Question: What is the nature of the incident that's a bomb attack? [/INST] SELECT nature_of_incident FROM table_name_69 WHERE circumstances = "bomb attack" </s> |
What is the nature of the incident with Casualties of 3 wia, and Circumstances of ied? | CREATE TABLE table_name_93 (nature_of_incident VARCHAR, casualties VARCHAR, circumstances VARCHAR) | SELECT nature_of_incident FROM table_name_93 WHERE casualties = "3 wia" AND circumstances = "ied" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_93 (nature_of_incident VARCHAR, casualties VARCHAR, circumstances VARCHAR) Question: What is the nature of the incident with Casualties of 3 wia, and Circumstances of ied? [/INST] SELECT nature_of_incident FROM table_name_93 WHERE casualties = "3 wia" AND circumstances = "ied" </s> |
Which Casualties have a Location of kunduz, and Circumstances of suicide? | CREATE TABLE table_name_24 (casualties VARCHAR, location VARCHAR, circumstances VARCHAR) | SELECT casualties FROM table_name_24 WHERE location = "kunduz" AND circumstances = "suicide" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_24 (casualties VARCHAR, location VARCHAR, circumstances VARCHAR) Question: Which Casualties have a Location of kunduz, and Circumstances of suicide? [/INST] SELECT casualties FROM table_name_24 WHERE location = "kunduz" AND circumstances = "suicide" </s> |
Which Casualties have a hostile Nature of incident and Circumstances of mortar attack? | CREATE TABLE table_name_67 (casualties VARCHAR, nature_of_incident VARCHAR, circumstances VARCHAR) | SELECT casualties FROM table_name_67 WHERE nature_of_incident = "hostile" AND circumstances = "mortar attack" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_67 (casualties VARCHAR, nature_of_incident VARCHAR, circumstances VARCHAR) Question: Which Casualties have a hostile Nature of incident and Circumstances of mortar attack? [/INST] SELECT casualties FROM table_name_67 WHERE nature_of_incident = "hostile" AND circumstances = "mortar attack" </s> |
When was the delegate who has previous experience as a commissioner of health born? | CREATE TABLE table_name_36 (born_in VARCHAR, former_experience VARCHAR) | SELECT born_in FROM table_name_36 WHERE former_experience = "commissioner of health" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_36 (born_in VARCHAR, former_experience VARCHAR) Question: When was the delegate who has previous experience as a commissioner of health born? [/INST] SELECT born_in FROM table_name_36 WHERE former_experience = "commissioner of health" </s> |
What is the name of the airport in the city of Kota Kinabalu? | CREATE TABLE table_name_85 (airport VARCHAR, city VARCHAR) | SELECT airport FROM table_name_85 WHERE city = "kota kinabalu" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_85 (airport VARCHAR, city VARCHAR) Question: What is the name of the airport in the city of Kota Kinabalu? [/INST] SELECT airport FROM table_name_85 WHERE city = "kota kinabalu" </s> |
What is the IATA for the city of Amsterdam? | CREATE TABLE table_name_23 (iata VARCHAR, city VARCHAR) | SELECT iata FROM table_name_23 WHERE city = "amsterdam" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_23 (iata VARCHAR, city VARCHAR) Question: What is the IATA for the city of Amsterdam? [/INST] SELECT iata FROM table_name_23 WHERE city = "amsterdam" </s> |
Which country has an IATA of JFK? | CREATE TABLE table_name_3 (country VARCHAR, iata VARCHAR) | SELECT country FROM table_name_3 WHERE iata = "jfk" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_3 (country VARCHAR, iata VARCHAR) Question: Which country has an IATA of JFK? [/INST] SELECT country FROM table_name_3 WHERE iata = "jfk" </s> |
Which city has an IATA of AUH? | CREATE TABLE table_name_42 (city VARCHAR, iata VARCHAR) | SELECT city FROM table_name_42 WHERE iata = "auh" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_42 (city VARCHAR, iata VARCHAR) Question: Which city has an IATA of AUH? [/INST] SELECT city FROM table_name_42 WHERE iata = "auh" </s> |
Which airport has an IATA of AMS? | CREATE TABLE table_name_39 (airport VARCHAR, iata VARCHAR) | SELECT airport FROM table_name_39 WHERE iata = "ams" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_39 (airport VARCHAR, iata VARCHAR) Question: Which airport has an IATA of AMS? [/INST] SELECT airport FROM table_name_39 WHERE iata = "ams" </s> |
Which city has an ICAO of Kiah? | CREATE TABLE table_name_59 (city VARCHAR, icao VARCHAR) | SELECT city FROM table_name_59 WHERE icao = "kiah" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_59 (city VARCHAR, icao VARCHAR) Question: Which city has an ICAO of Kiah? [/INST] SELECT city FROM table_name_59 WHERE icao = "kiah" </s> |
What Genre did Sándor Simó direct? | CREATE TABLE table_name_88 (genre VARCHAR, directed_by VARCHAR) | SELECT genre FROM table_name_88 WHERE directed_by = "sándor simó" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_88 (genre VARCHAR, directed_by VARCHAR) Question: What Genre did Sándor Simó direct? [/INST] SELECT genre FROM table_name_88 WHERE directed_by = "sándor simó" </s> |
What is the Genre for Malina (ger.-aus.-fr.), an Original Title? | CREATE TABLE table_name_12 (genre VARCHAR, original_title VARCHAR) | SELECT genre FROM table_name_12 WHERE original_title = "malina (ger.-aus.-fr.)" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_12 (genre VARCHAR, original_title VARCHAR) Question: What is the Genre for Malina (ger.-aus.-fr.), an Original Title? [/INST] SELECT genre FROM table_name_12 WHERE original_title = "malina (ger.-aus.-fr.)" </s> |
The Last Metro refers to which Original Title? | CREATE TABLE table_name_91 (original_title VARCHAR, title_in_english VARCHAR) | SELECT original_title FROM table_name_91 WHERE title_in_english = "the last metro" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_91 (original_title VARCHAR, title_in_english VARCHAR) Question: The Last Metro refers to which Original Title? [/INST] SELECT original_title FROM table_name_91 WHERE title_in_english = "the last metro" </s> |
What original title, Franciska Vasárnapjai (hungarian), had an Episode Actor role which was Directed by Géza Bereményi? | CREATE TABLE table_name_48 (genre VARCHAR, role VARCHAR, original_title VARCHAR) | SELECT genre FROM table_name_48 WHERE role = "episode actor" AND original_title = "franciska vasárnapjai (hungarian)" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_48 (genre VARCHAR, role VARCHAR, original_title VARCHAR) Question: What original title, Franciska Vasárnapjai (hungarian), had an Episode Actor role which was Directed by Géza Bereményi? [/INST] SELECT genre FROM table_name_48 WHERE role = "episode actor" AND original_title = "franciska vasárnapjai (hungarian)" </s> |
What is the Original title for an Episode Actor role which was Directed by Géza Bereményi? | CREATE TABLE table_name_59 (original_title VARCHAR, role VARCHAR, directed_by VARCHAR) | SELECT original_title FROM table_name_59 WHERE role = "episode actor" AND directed_by = "géza bereményi" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_59 (original_title VARCHAR, role VARCHAR, directed_by VARCHAR) Question: What is the Original title for an Episode Actor role which was Directed by Géza Bereményi? [/INST] SELECT original_title FROM table_name_59 WHERE role = "episode actor" AND directed_by = "géza bereményi" </s> |
What is the round for bob randall? | CREATE TABLE table_name_13 (round INTEGER, name VARCHAR) | SELECT AVG(round) FROM table_name_13 WHERE name = "bob randall" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_13 (round INTEGER, name VARCHAR) Question: What is the round for bob randall? [/INST] SELECT AVG(round) FROM table_name_13 WHERE name = "bob randall" </s> |
what is the position when signed is yes, round is less than 24 and name is charlie hough? | CREATE TABLE table_name_96 (position VARCHAR, name VARCHAR, signed VARCHAR, round VARCHAR) | SELECT position FROM table_name_96 WHERE signed = "yes" AND round < 24 AND name = "charlie hough" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_96 (position VARCHAR, name VARCHAR, signed VARCHAR, round VARCHAR) Question: what is the position when signed is yes, round is less than 24 and name is charlie hough? [/INST] SELECT position FROM table_name_96 WHERE signed = "yes" AND round < 24 AND name = "charlie hough" </s> |
what is the school when signed is no and round is 50? | CREATE TABLE table_name_26 (school VARCHAR, signed VARCHAR, round VARCHAR) | SELECT school FROM table_name_26 WHERE signed = "no" AND round = 50 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_26 (school VARCHAR, signed VARCHAR, round VARCHAR) Question: what is the school when signed is no and round is 50? [/INST] SELECT school FROM table_name_26 WHERE signed = "no" AND round = 50 </s> |
what is the school for round 8? | CREATE TABLE table_name_68 (school VARCHAR, round VARCHAR) | SELECT school FROM table_name_68 WHERE round = 8 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_68 (school VARCHAR, round VARCHAR) Question: what is the school for round 8? [/INST] SELECT school FROM table_name_68 WHERE round = 8 </s> |
what is the position for robert johnson? | CREATE TABLE table_name_25 (position VARCHAR, name VARCHAR) | SELECT position FROM table_name_25 WHERE name = "robert johnson" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_25 (position VARCHAR, name VARCHAR) Question: what is the position for robert johnson? [/INST] SELECT position FROM table_name_25 WHERE name = "robert johnson" </s> |
Was position ss from carson city high school signed? | CREATE TABLE table_name_48 (signed VARCHAR, position VARCHAR, school VARCHAR) | SELECT signed FROM table_name_48 WHERE position = "ss" AND school = "carson city high school" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_48 (signed VARCHAR, position VARCHAR, school VARCHAR) Question: Was position ss from carson city high school signed? [/INST] SELECT signed FROM table_name_48 WHERE position = "ss" AND school = "carson city high school" </s> |
What was the average number of yards Michael Henig had in a year when he had more than 12 starts/ | CREATE TABLE table_name_46 (yards INTEGER, starts INTEGER) | SELECT AVG(yards) FROM table_name_46 WHERE starts > 12 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_46 (yards INTEGER, starts INTEGER) Question: What was the average number of yards Michael Henig had in a year when he had more than 12 starts/ [/INST] SELECT AVG(yards) FROM table_name_46 WHERE starts > 12 </s> |
What was the average number of starts Michael Henig had in a year when he had more than 1201 yards? | CREATE TABLE table_name_54 (starts INTEGER, yards INTEGER) | SELECT AVG(starts) FROM table_name_54 WHERE yards > 1201 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_54 (starts INTEGER, yards INTEGER) Question: What was the average number of starts Michael Henig had in a year when he had more than 1201 yards? [/INST] SELECT AVG(starts) FROM table_name_54 WHERE yards > 1201 </s> |
Name the airport with IATA of cxb | CREATE TABLE table_name_64 (airport VARCHAR, iata VARCHAR) | SELECT airport FROM table_name_64 WHERE iata = "cxb" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_64 (airport VARCHAR, iata VARCHAR) Question: Name the airport with IATA of cxb [/INST] SELECT airport FROM table_name_64 WHERE iata = "cxb" </s> |
Name the airport with IATA of dmk | CREATE TABLE table_name_74 (airport VARCHAR, iata VARCHAR) | SELECT airport FROM table_name_74 WHERE iata = "dmk" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_74 (airport VARCHAR, iata VARCHAR) Question: Name the airport with IATA of dmk [/INST] SELECT airport FROM table_name_74 WHERE iata = "dmk" </s> |
Name the city that has singapore changi airport | CREATE TABLE table_name_15 (city VARCHAR, airport VARCHAR) | SELECT city FROM table_name_15 WHERE airport = "singapore changi airport" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_15 (city VARCHAR, airport VARCHAR) Question: Name the city that has singapore changi airport [/INST] SELECT city FROM table_name_15 WHERE airport = "singapore changi airport" </s> |
Name the ICAO for when IATA is zyl | CREATE TABLE table_name_22 (icao VARCHAR, iata VARCHAR) | SELECT icao FROM table_name_22 WHERE iata = "zyl" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_22 (icao VARCHAR, iata VARCHAR) Question: Name the ICAO for when IATA is zyl [/INST] SELECT icao FROM table_name_22 WHERE iata = "zyl" </s> |
Name the ICAO for IATA of rgn | CREATE TABLE table_name_69 (icao VARCHAR, iata VARCHAR) | SELECT icao FROM table_name_69 WHERE iata = "rgn" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_69 (icao VARCHAR, iata VARCHAR) Question: Name the ICAO for IATA of rgn [/INST] SELECT icao FROM table_name_69 WHERE iata = "rgn" </s> |
Name the ICAO for IATA of ccu | CREATE TABLE table_name_62 (icao VARCHAR, iata VARCHAR) | SELECT icao FROM table_name_62 WHERE iata = "ccu" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_62 (icao VARCHAR, iata VARCHAR) Question: Name the ICAO for IATA of ccu [/INST] SELECT icao FROM table_name_62 WHERE iata = "ccu" </s> |
What is the largest gold with a Total larger than 16? | CREATE TABLE table_name_90 (gold INTEGER, total INTEGER) | SELECT MAX(gold) FROM table_name_90 WHERE total > 16 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_90 (gold INTEGER, total INTEGER) Question: What is the largest gold with a Total larger than 16? [/INST] SELECT MAX(gold) FROM table_name_90 WHERE total > 16 </s> |
What is the largest silver with a Total smaller than 2, a Bronze smaller than 1, and a Nation of yugoslavia? | CREATE TABLE table_name_79 (silver INTEGER, nation VARCHAR, total VARCHAR, bronze VARCHAR) | SELECT MAX(silver) FROM table_name_79 WHERE total < 2 AND bronze < 1 AND nation = "yugoslavia" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_79 (silver INTEGER, nation VARCHAR, total VARCHAR, bronze VARCHAR) Question: What is the largest silver with a Total smaller than 2, a Bronze smaller than 1, and a Nation of yugoslavia? [/INST] SELECT MAX(silver) FROM table_name_79 WHERE total < 2 AND bronze < 1 AND nation = "yugoslavia" </s> |
What is the smallest bronze with a Nation of west germany, and a Gold larger than 0? | CREATE TABLE table_name_58 (bronze INTEGER, nation VARCHAR, gold VARCHAR) | SELECT MIN(bronze) FROM table_name_58 WHERE nation = "west germany" AND gold > 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_58 (bronze INTEGER, nation VARCHAR, gold VARCHAR) Question: What is the smallest bronze with a Nation of west germany, and a Gold larger than 0? [/INST] SELECT MIN(bronze) FROM table_name_58 WHERE nation = "west germany" AND gold > 0 </s> |
What was the record on July 2? | CREATE TABLE table_name_34 (record VARCHAR, date VARCHAR) | SELECT record FROM table_name_34 WHERE date = "july 2" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_34 (record VARCHAR, date VARCHAR) Question: What was the record on July 2? [/INST] SELECT record FROM table_name_34 WHERE date = "july 2" </s> |
What is the largest silver with less than 0 gold? | CREATE TABLE table_name_63 (silver INTEGER, gold INTEGER) | SELECT MAX(silver) FROM table_name_63 WHERE gold < 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_63 (silver INTEGER, gold INTEGER) Question: What is the largest silver with less than 0 gold? [/INST] SELECT MAX(silver) FROM table_name_63 WHERE gold < 0 </s> |
What's the average total viewers that has 17.6% Share? | CREATE TABLE table_name_96 (total_viewers INTEGER, share VARCHAR) | SELECT AVG(total_viewers) FROM table_name_96 WHERE share = "17.6%" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_96 (total_viewers INTEGER, share VARCHAR) Question: What's the average total viewers that has 17.6% Share? [/INST] SELECT AVG(total_viewers) FROM table_name_96 WHERE share = "17.6%" </s> |
What's the share of Episode 1? | CREATE TABLE table_name_84 (share VARCHAR, episode_no VARCHAR) | SELECT share FROM table_name_84 WHERE episode_no = 1 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_84 (share VARCHAR, episode_no VARCHAR) Question: What's the share of Episode 1? [/INST] SELECT share FROM table_name_84 WHERE episode_no = 1 </s> |
How many locomotives were made that were withdrawn in 1913? | CREATE TABLE table_name_97 (quantity_made VARCHAR, withdrawn VARCHAR) | SELECT quantity_made FROM table_name_97 WHERE withdrawn = "1913" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_97 (quantity_made VARCHAR, withdrawn VARCHAR) Question: How many locomotives were made that were withdrawn in 1913? [/INST] SELECT quantity_made FROM table_name_97 WHERE withdrawn = "1913" </s> |
What is the date of creation for the locomotive having a type of 0-4-2 | CREATE TABLE table_name_9 (date_made VARCHAR, type VARCHAR) | SELECT date_made FROM table_name_9 WHERE type = "0-4-2" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_9 (date_made VARCHAR, type VARCHAR) Question: What is the date of creation for the locomotive having a type of 0-4-2 [/INST] SELECT date_made FROM table_name_9 WHERE type = "0-4-2" </s> |
What is the date of creation of the locomotive of type 0-6-0 and GSR class of 441? | CREATE TABLE table_name_31 (date_made VARCHAR, type VARCHAR, gsr_class VARCHAR) | SELECT date_made FROM table_name_31 WHERE type = "0-6-0" AND gsr_class = "441" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_31 (date_made VARCHAR, type VARCHAR, gsr_class VARCHAR) Question: What is the date of creation of the locomotive of type 0-6-0 and GSR class of 441? [/INST] SELECT date_made FROM table_name_31 WHERE type = "0-6-0" AND gsr_class = "441" </s> |
In Round 19, where did Tony Lockett play? | CREATE TABLE table_name_20 (venue VARCHAR, round VARCHAR, player VARCHAR) | SELECT venue FROM table_name_20 WHERE round = "19" AND player = "tony lockett" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_20 (venue VARCHAR, round VARCHAR, player VARCHAR) Question: In Round 19, where did Tony Lockett play? [/INST] SELECT venue FROM table_name_20 WHERE round = "19" AND player = "tony lockett" </s> |
Who is the opponent in 1992? | CREATE TABLE table_name_17 (opponent VARCHAR, year VARCHAR) | SELECT opponent FROM table_name_17 WHERE year = "1992" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_17 (opponent VARCHAR, year VARCHAR) Question: Who is the opponent in 1992? [/INST] SELECT opponent FROM table_name_17 WHERE year = "1992" </s> |
What club had a score of 18.1? | CREATE TABLE table_name_87 (club VARCHAR, score VARCHAR) | SELECT club FROM table_name_87 WHERE score = "18.1" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_87 (club VARCHAR, score VARCHAR) Question: What club had a score of 18.1? [/INST] SELECT club FROM table_name_87 WHERE score = "18.1" </s> |
What is the number for year built of W27 that was withdrawn in 1967 with a To LoW year earlier than 1926? | CREATE TABLE table_name_51 (built VARCHAR, to_iow VARCHAR, withdrawn VARCHAR, br_sr_no VARCHAR) | SELECT COUNT(built) FROM table_name_51 WHERE withdrawn = 1967 AND br_sr_no = "w27" AND to_iow < 1926 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_51 (built VARCHAR, to_iow VARCHAR, withdrawn VARCHAR, br_sr_no VARCHAR) Question: What is the number for year built of W27 that was withdrawn in 1967 with a To LoW year earlier than 1926? [/INST] SELECT COUNT(built) FROM table_name_51 WHERE withdrawn = 1967 AND br_sr_no = "w27" AND to_iow < 1926 </s> |
What is the number of the year withdrawn for a LSWR number greater than 210 and a To LoW year of 1923? | CREATE TABLE table_name_19 (withdrawn VARCHAR, lswr_no VARCHAR, to_iow VARCHAR) | SELECT COUNT(withdrawn) FROM table_name_19 WHERE lswr_no > 210 AND to_iow = 1923 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_19 (withdrawn VARCHAR, lswr_no VARCHAR, to_iow VARCHAR) Question: What is the number of the year withdrawn for a LSWR number greater than 210 and a To LoW year of 1923? [/INST] SELECT COUNT(withdrawn) FROM table_name_19 WHERE lswr_no > 210 AND to_iow = 1923 </s> |
What is the BR/SR number of Freshwater which was withdrawn in 1967 and built before 1892 with a To LoW year after 1927? | CREATE TABLE table_name_25 (br_sr_no VARCHAR, sr_name VARCHAR, to_iow VARCHAR, withdrawn VARCHAR, built VARCHAR) | SELECT br_sr_no FROM table_name_25 WHERE withdrawn = 1967 AND built < 1892 AND to_iow > 1927 AND sr_name = "freshwater" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_25 (br_sr_no VARCHAR, sr_name VARCHAR, to_iow VARCHAR, withdrawn VARCHAR, built VARCHAR) Question: What is the BR/SR number of Freshwater which was withdrawn in 1967 and built before 1892 with a To LoW year after 1927? [/INST] SELECT br_sr_no FROM table_name_25 WHERE withdrawn = 1967 AND built < 1892 AND to_iow > 1927 AND sr_name = "freshwater" </s> |
Name the engine for year less than 1977 | CREATE TABLE table_name_76 (engine VARCHAR, year INTEGER) | SELECT engine FROM table_name_76 WHERE year < 1977 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_76 (engine VARCHAR, year INTEGER) Question: Name the engine for year less than 1977 [/INST] SELECT engine FROM table_name_76 WHERE year < 1977 </s> |
Name the start for year less than 1977 | CREATE TABLE table_name_70 (start VARCHAR, year INTEGER) | SELECT start FROM table_name_70 WHERE year < 1977 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_70 (start VARCHAR, year INTEGER) Question: Name the start for year less than 1977 [/INST] SELECT start FROM table_name_70 WHERE year < 1977 </s> |
Name the least year for start of 17th | CREATE TABLE table_name_13 (year INTEGER, start VARCHAR) | SELECT MIN(year) FROM table_name_13 WHERE start = "17th" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_13 (year INTEGER, start VARCHAR) Question: Name the least year for start of 17th [/INST] SELECT MIN(year) FROM table_name_13 WHERE start = "17th" </s> |
Name the start for finish being 21st | CREATE TABLE table_name_39 (start VARCHAR, finish VARCHAR) | SELECT start FROM table_name_39 WHERE finish = "21st" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_39 (start VARCHAR, finish VARCHAR) Question: Name the start for finish being 21st [/INST] SELECT start FROM table_name_39 WHERE finish = "21st" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.