instruction stringlengths 12 244 | input stringlengths 27 489 | output stringlengths 18 557 | text stringlengths 194 1.14k |
|---|---|---|---|
What is the name of the director who directed the movie that Raintree Pictures produced? | CREATE TABLE table_name_13 (director VARCHAR, producer VARCHAR) | SELECT director FROM table_name_13 WHERE producer = "raintree pictures" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_13 (director VARCHAR, producer VARCHAR) Question: What is the name of the director who directed the movie that Raintree Pictures produced? [/INST] SELECT director FROM table_name_13 WHERE producer = "... |
What is the title of the film that had a production cost of $850,000? | CREATE TABLE table_name_93 (title VARCHAR, production_cost VARCHAR) | SELECT title FROM table_name_93 WHERE production_cost = "$850,000" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_93 (title VARCHAR, production_cost VARCHAR) Question: What is the title of the film that had a production cost of $850,000? [/INST] SELECT title FROM table_name_93 WHERE production_cost = "$850,000" <... |
How much is the Singapore Gross for the film that Siu Wing directed? | CREATE TABLE table_name_93 (singapore_gross VARCHAR, director VARCHAR) | SELECT singapore_gross FROM table_name_93 WHERE director = "siu wing" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_93 (singapore_gross VARCHAR, director VARCHAR) Question: How much is the Singapore Gross for the film that Siu Wing directed? [/INST] SELECT singapore_gross FROM table_name_93 WHERE director = "siu wi... |
What is the Date with an Away that is broadview hawks? | CREATE TABLE table_name_5 (date VARCHAR, away VARCHAR) | SELECT date FROM table_name_5 WHERE away = "broadview hawks" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_5 (date VARCHAR, away VARCHAR) Question: What is the Date with an Away that is broadview hawks? [/INST] SELECT date FROM table_name_5 WHERE away = "broadview hawks" </s> |
What is the Home with an Away that is toronto rebels? | CREATE TABLE table_name_94 (home VARCHAR, away VARCHAR) | SELECT home FROM table_name_94 WHERE away = "toronto rebels" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_94 (home VARCHAR, away VARCHAR) Question: What is the Home with an Away that is toronto rebels? [/INST] SELECT home FROM table_name_94 WHERE away = "toronto rebels" </s> |
What is the Time with a Score that is 46-82? | CREATE TABLE table_name_17 (time VARCHAR, score VARCHAR) | SELECT time FROM table_name_17 WHERE score = "46-82" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_17 (time VARCHAR, score VARCHAR) Question: What is the Time with a Score that is 46-82? [/INST] SELECT time FROM table_name_17 WHERE score = "46-82" </s> |
What is the Date with an Away that is central blues? | CREATE TABLE table_name_15 (date VARCHAR, away VARCHAR) | SELECT date FROM table_name_15 WHERE away = "central blues" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_15 (date VARCHAR, away VARCHAR) Question: What is the Date with an Away that is central blues? [/INST] SELECT date FROM table_name_15 WHERE away = "central blues" </s> |
What is the Time with a Home that is high park demons? | CREATE TABLE table_name_31 (time VARCHAR, home VARCHAR) | SELECT time FROM table_name_31 WHERE home = "high park demons" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_31 (time VARCHAR, home VARCHAR) Question: What is the Time with a Home that is high park demons? [/INST] SELECT time FROM table_name_31 WHERE home = "high park demons" </s> |
What is the Away with a Score that is 46-82? | CREATE TABLE table_name_70 (away VARCHAR, score VARCHAR) | SELECT away FROM table_name_70 WHERE score = "46-82" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_70 (away VARCHAR, score VARCHAR) Question: What is the Away with a Score that is 46-82? [/INST] SELECT away FROM table_name_70 WHERE score = "46-82" </s> |
Which Partner is on 22 april 2002? | CREATE TABLE table_name_35 (partner VARCHAR, date VARCHAR) | SELECT partner FROM table_name_35 WHERE date = "22 april 2002" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_35 (partner VARCHAR, date VARCHAR) Question: Which Partner is on 22 april 2002? [/INST] SELECT partner FROM table_name_35 WHERE date = "22 april 2002" </s> |
Which Partner has an Opponents of wayne arthurs sandon stolle? | CREATE TABLE table_name_24 (partner VARCHAR, opponents VARCHAR) | SELECT partner FROM table_name_24 WHERE opponents = "wayne arthurs sandon stolle" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_24 (partner VARCHAR, opponents VARCHAR) Question: Which Partner has an Opponents of wayne arthurs sandon stolle? [/INST] SELECT partner FROM table_name_24 WHERE opponents = "wayne arthurs sandon stoll... |
Which Score has a Tournament of san jose, us (2)? | CREATE TABLE table_name_56 (score VARCHAR, tournament VARCHAR) | SELECT score FROM table_name_56 WHERE tournament = "san jose, us (2)" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_56 (score VARCHAR, tournament VARCHAR) Question: Which Score has a Tournament of san jose, us (2)? [/INST] SELECT score FROM table_name_56 WHERE tournament = "san jose, us (2)" </s> |
Which Opponents has a Score of 6–3, 6–4, 6–1? | CREATE TABLE table_name_60 (opponents VARCHAR, score VARCHAR) | SELECT opponents FROM table_name_60 WHERE score = "6–3, 6–4, 6–1" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_60 (opponents VARCHAR, score VARCHAR) Question: Which Opponents has a Score of 6–3, 6–4, 6–1? [/INST] SELECT opponents FROM table_name_60 WHERE score = "6–3, 6–4, 6–1" </s> |
Which Outcome has a Score of 6–4, 6–4, 6–2? | CREATE TABLE table_name_19 (outcome VARCHAR, score VARCHAR) | SELECT outcome FROM table_name_19 WHERE score = "6–4, 6–4, 6–2" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_19 (outcome VARCHAR, score VARCHAR) Question: Which Outcome has a Score of 6–4, 6–4, 6–2? [/INST] SELECT outcome FROM table_name_19 WHERE score = "6–4, 6–4, 6–2" </s> |
Which Tournament has a Score of 1–6, 0–6? | CREATE TABLE table_name_89 (tournament VARCHAR, score VARCHAR) | SELECT tournament FROM table_name_89 WHERE score = "1–6, 0–6" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_89 (tournament VARCHAR, score VARCHAR) Question: Which Tournament has a Score of 1–6, 0–6? [/INST] SELECT tournament FROM table_name_89 WHERE score = "1–6, 0–6" </s> |
Who is the opponent of the 3:00 time? | CREATE TABLE table_name_73 (opponent VARCHAR, time VARCHAR) | SELECT opponent FROM table_name_73 WHERE time = "3:00" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_73 (opponent VARCHAR, time VARCHAR) Question: Who is the opponent of the 3:00 time? [/INST] SELECT opponent FROM table_name_73 WHERE time = "3:00" </s> |
What was the score of the game with Nathalie Tauziat as a partner? | CREATE TABLE table_name_7 (score VARCHAR, partnering VARCHAR) | SELECT score FROM table_name_7 WHERE partnering = "nathalie tauziat" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (score VARCHAR, partnering VARCHAR) Question: What was the score of the game with Nathalie Tauziat as a partner? [/INST] SELECT score FROM table_name_7 WHERE partnering = "nathalie tauziat" </s> |
What type of surface was used for the game played on September 20, 1993? | CREATE TABLE table_name_93 (surface VARCHAR, date VARCHAR) | SELECT surface FROM table_name_93 WHERE date = "september 20, 1993" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_93 (surface VARCHAR, date VARCHAR) Question: What type of surface was used for the game played on September 20, 1993? [/INST] SELECT surface FROM table_name_93 WHERE date = "september 20, 1993" </s> |
What was the score of the game that was played on a grass surface? | CREATE TABLE table_name_24 (score VARCHAR, surface VARCHAR) | SELECT score FROM table_name_24 WHERE surface = "grass" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_24 (score VARCHAR, surface VARCHAR) Question: What was the score of the game that was played on a grass surface? [/INST] SELECT score FROM table_name_24 WHERE surface = "grass" </s> |
What was the date of the game that was played against Laura Golarsa? | CREATE TABLE table_name_85 (date VARCHAR, partnering VARCHAR) | SELECT date FROM table_name_85 WHERE partnering = "laura golarsa" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_85 (date VARCHAR, partnering VARCHAR) Question: What was the date of the game that was played against Laura Golarsa? [/INST] SELECT date FROM table_name_85 WHERE partnering = "laura golarsa" </s> |
What is the total rank of the celebrity with a 34.66 average and a season greater than 1? | CREATE TABLE table_name_39 (rank VARCHAR, average VARCHAR, season VARCHAR) | SELECT COUNT(rank) FROM table_name_39 WHERE average = 34.66 AND season > 1 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_39 (rank VARCHAR, average VARCHAR, season VARCHAR) Question: What is the total rank of the celebrity with a 34.66 average and a season greater than 1? [/INST] SELECT COUNT(rank) FROM table_name_39 WHE... |
What is the highest average of celebrity Natalia Lesz, who is ranked greater than 4? | CREATE TABLE table_name_19 (average INTEGER, rank VARCHAR, celebrity VARCHAR) | SELECT MAX(average) FROM table_name_19 WHERE rank > 4 AND celebrity = "natalia lesz" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_19 (average INTEGER, rank VARCHAR, celebrity VARCHAR) Question: What is the highest average of celebrity Natalia Lesz, who is ranked greater than 4? [/INST] SELECT MAX(average) FROM table_name_19 WHER... |
Who is the professional partner of celebrity małgorzata foremniak with a season less than 7, an average greater than 34.66, and a rank less than 10? | CREATE TABLE table_name_52 (professional_partner VARCHAR, celebrity VARCHAR, rank VARCHAR, season VARCHAR, average VARCHAR) | SELECT professional_partner FROM table_name_52 WHERE season < 7 AND average > 34.66 AND rank < 10 AND celebrity = "małgorzata foremniak" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_52 (professional_partner VARCHAR, celebrity VARCHAR, rank VARCHAR, season VARCHAR, average VARCHAR) Question: Who is the professional partner of celebrity małgorzata foremniak with a season less than ... |
What is the primary language used in the film title Nynke? | CREATE TABLE table_name_86 (main_language_s_ VARCHAR, original_title VARCHAR) | SELECT main_language_s_ FROM table_name_86 WHERE original_title = "nynke" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_86 (main_language_s_ VARCHAR, original_title VARCHAR) Question: What is the primary language used in the film title Nynke? [/INST] SELECT main_language_s_ FROM table_name_86 WHERE original_title = "ny... |
For the film made in 1964: (37th), what was the result? | CREATE TABLE table_name_11 (result VARCHAR, year VARCHAR) | SELECT result FROM table_name_11 WHERE year = "1964: (37th)" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_11 (result VARCHAR, year VARCHAR) Question: For the film made in 1964: (37th), what was the result? [/INST] SELECT result FROM table_name_11 WHERE year = "1964: (37th)" </s> |
What is the nomination title used for the original film, Monsieur Hawarden? | CREATE TABLE table_name_18 (film_title_used_in_nomination VARCHAR, original_title VARCHAR) | SELECT film_title_used_in_nomination FROM table_name_18 WHERE original_title = "monsieur hawarden" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_18 (film_title_used_in_nomination VARCHAR, original_title VARCHAR) Question: What is the nomination title used for the original film, Monsieur Hawarden? [/INST] SELECT film_title_used_in_nomination FR... |
What is the nomination title used for the original film, Zwartboek? | CREATE TABLE table_name_98 (film_title_used_in_nomination VARCHAR, original_title VARCHAR) | SELECT film_title_used_in_nomination FROM table_name_98 WHERE original_title = "zwartboek" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_98 (film_title_used_in_nomination VARCHAR, original_title VARCHAR) Question: What is the nomination title used for the original film, Zwartboek? [/INST] SELECT film_title_used_in_nomination FROM table... |
What is the primary language used in the film, Black Book? | CREATE TABLE table_name_53 (main_language_s_ VARCHAR, film_title_used_in_nomination VARCHAR) | SELECT main_language_s_ FROM table_name_53 WHERE film_title_used_in_nomination = "black book" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_53 (main_language_s_ VARCHAR, film_title_used_in_nomination VARCHAR) Question: What is the primary language used in the film, Black Book? [/INST] SELECT main_language_s_ FROM table_name_53 WHERE film_... |
What is the average agricultural panel value with a Labour panel less than 1, a total value less than 21, and a National University of Ireland value greater than 0? | CREATE TABLE table_name_53 (agricultural_panel INTEGER, national_university_of_ireland VARCHAR, labour_panel VARCHAR, total VARCHAR) | SELECT AVG(agricultural_panel) FROM table_name_53 WHERE labour_panel < 1 AND total < 21 AND national_university_of_ireland > 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_53 (agricultural_panel INTEGER, national_university_of_ireland VARCHAR, labour_panel VARCHAR, total VARCHAR) Question: What is the average agricultural panel value with a Labour panel less than 1, a t... |
What is the highest administrative panel value with an agricultural panel less than 1 and a labour panel value less than 5? | CREATE TABLE table_name_56 (administrative_panel INTEGER, agricultural_panel VARCHAR, labour_panel VARCHAR) | SELECT MAX(administrative_panel) FROM table_name_56 WHERE agricultural_panel < 1 AND labour_panel < 5 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_56 (administrative_panel INTEGER, agricultural_panel VARCHAR, labour_panel VARCHAR) Question: What is the highest administrative panel value with an agricultural panel less than 1 and a labour panel v... |
What is the highest labour panel value with a cultural and educational panel greater than 1, a University of Dublin value greater than 0, and a total value less than 60? | CREATE TABLE table_name_43 (labour_panel INTEGER, total VARCHAR, cultural_and_educational_panel VARCHAR, university_of_dublin VARCHAR) | SELECT MAX(labour_panel) FROM table_name_43 WHERE cultural_and_educational_panel > 1 AND university_of_dublin > 0 AND total < 60 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_43 (labour_panel INTEGER, total VARCHAR, cultural_and_educational_panel VARCHAR, university_of_dublin VARCHAR) Question: What is the highest labour panel value with a cultural and educational panel gr... |
What is the total University of Dublin value with a labour panel greater than 11? | CREATE TABLE table_name_45 (university_of_dublin VARCHAR, labour_panel INTEGER) | SELECT COUNT(university_of_dublin) FROM table_name_45 WHERE labour_panel > 11 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_45 (university_of_dublin VARCHAR, labour_panel INTEGER) Question: What is the total University of Dublin value with a labour panel greater than 11? [/INST] SELECT COUNT(university_of_dublin) FROM tabl... |
What is the sum of the cultural and educational panel value with an administrative panel of 0 and an agricultural panel value less than 0? | CREATE TABLE table_name_87 (cultural_and_educational_panel INTEGER, administrative_panel VARCHAR, agricultural_panel VARCHAR) | SELECT SUM(cultural_and_educational_panel) FROM table_name_87 WHERE administrative_panel = 0 AND agricultural_panel < 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_87 (cultural_and_educational_panel INTEGER, administrative_panel VARCHAR, agricultural_panel VARCHAR) Question: What is the sum of the cultural and educational panel value with an administrative panel... |
What is the highest 2012 immigration for a country with an immigration of 81,094 in 2011? | CREATE TABLE table_name_69 (Id VARCHAR) | SELECT MAX(2012) FROM table_name_69 WHERE 2011 = 81 OFFSET 094 ROWS | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_69 (Id VARCHAR) Question: What is the highest 2012 immigration for a country with an immigration of 81,094 in 2011? [/INST] SELECT MAX(2012) FROM table_name_69 WHERE 2011 = 81 OFFSET 094 ROWS </s> |
What is the Gauge of Locomotive G534 Owned by Aurizon which has a Status of Operational? | CREATE TABLE table_name_39 (gauge VARCHAR, locomotive VARCHAR, status VARCHAR, owner VARCHAR) | SELECT gauge FROM table_name_39 WHERE status = "operational" AND owner = "aurizon" AND locomotive = "g534" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_39 (gauge VARCHAR, locomotive VARCHAR, status VARCHAR, owner VARCHAR) Question: What is the Gauge of Locomotive G534 Owned by Aurizon which has a Status of Operational? [/INST] SELECT gauge FROM table... |
Which Locomotive Entered Service in November 1984 and has an Operator of Southern Shorthaul Railroad? | CREATE TABLE table_name_59 (locomotive VARCHAR, operator VARCHAR, entered_service VARCHAR) | SELECT locomotive FROM table_name_59 WHERE operator = "southern shorthaul railroad" AND entered_service = "november 1984" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_59 (locomotive VARCHAR, operator VARCHAR, entered_service VARCHAR) Question: Which Locomotive Entered Service in November 1984 and has an Operator of Southern Shorthaul Railroad? [/INST] SELECT locomo... |
What is the Serial number of the Locomotive that Entered Service in November 1984 and has an Owner of Chicago Freight Car Leasing Australia? | CREATE TABLE table_name_90 (serial_no VARCHAR, entered_service VARCHAR, owner VARCHAR) | SELECT serial_no FROM table_name_90 WHERE entered_service = "november 1984" AND owner = "chicago freight car leasing australia" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_90 (serial_no VARCHAR, entered_service VARCHAR, owner VARCHAR) Question: What is the Serial number of the Locomotive that Entered Service in November 1984 and has an Owner of Chicago Freight Car Leasi... |
What is the Serial Number of the Locomotive that Entered Service October 1989? | CREATE TABLE table_name_26 (serial_no VARCHAR, entered_service VARCHAR) | SELECT serial_no FROM table_name_26 WHERE entered_service = "october 1989" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_26 (serial_no VARCHAR, entered_service VARCHAR) Question: What is the Serial Number of the Locomotive that Entered Service October 1989? [/INST] SELECT serial_no FROM table_name_26 WHERE entered_servi... |
What is the 2011 value with a 2008 value of 0.3 and is a member state of the European Union? | CREATE TABLE table_name_64 (member_state VARCHAR) | SELECT 2011 FROM table_name_64 WHERE 2008 = "0.3" AND member_state = "european union" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_64 (member_state VARCHAR) Question: What is the 2011 value with a 2008 value of 0.3 and is a member state of the European Union? [/INST] SELECT 2011 FROM table_name_64 WHERE 2008 = "0.3" AND member_st... |
What is the 2012 value with a 1.3 in 2010 and a 3.6 in 2008? | CREATE TABLE table_name_67 (Id VARCHAR) | SELECT 2012 FROM table_name_67 WHERE 2010 = "1.3" AND 2008 = "3.6" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_67 (Id VARCHAR) Question: What is the 2012 value with a 1.3 in 2010 and a 3.6 in 2008? [/INST] SELECT 2012 FROM table_name_67 WHERE 2010 = "1.3" AND 2008 = "3.6" </s> |
What is the sum of Yellow, when Category is Bugre (Indian), and when Amerindian is less than 50,00? | CREATE TABLE table_name_76 (yellow INTEGER, category VARCHAR, amerindian VARCHAR) | SELECT SUM(yellow) FROM table_name_76 WHERE category = "bugre (indian)" AND amerindian < 50 OFFSET 00 ROWS | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_76 (yellow INTEGER, category VARCHAR, amerindian VARCHAR) Question: What is the sum of Yellow, when Category is Bugre (Indian), and when Amerindian is less than 50,00? [/INST] SELECT SUM(yellow) FROM ... |
What kind of IATA has an Airport of hamburg airport? | CREATE TABLE table_name_5 (iata VARCHAR, airport VARCHAR) | SELECT iata FROM table_name_5 WHERE airport = "hamburg airport" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_5 (iata VARCHAR, airport VARCHAR) Question: What kind of IATA has an Airport of hamburg airport? [/INST] SELECT iata FROM table_name_5 WHERE airport = "hamburg airport" </s> |
Which Country that has a IATA of bal? | CREATE TABLE table_name_83 (country VARCHAR, iata VARCHAR) | SELECT country FROM table_name_83 WHERE iata = "bal" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_83 (country VARCHAR, iata VARCHAR) Question: Which Country that has a IATA of bal? [/INST] SELECT country FROM table_name_83 WHERE iata = "bal" </s> |
Which Country has a IATA of vie? | CREATE TABLE table_name_32 (country VARCHAR, iata VARCHAR) | SELECT country FROM table_name_32 WHERE iata = "vie" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_32 (country VARCHAR, iata VARCHAR) Question: Which Country has a IATA of vie? [/INST] SELECT country FROM table_name_32 WHERE iata = "vie" </s> |
WHich Country has a ICAO of ltcd? | CREATE TABLE table_name_46 (country VARCHAR, icao VARCHAR) | SELECT country FROM table_name_46 WHERE icao = "ltcd" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_46 (country VARCHAR, icao VARCHAR) Question: WHich Country has a ICAO of ltcd? [/INST] SELECT country FROM table_name_46 WHERE icao = "ltcd" </s> |
Which Airport has a IATA of erz? | CREATE TABLE table_name_63 (airport VARCHAR, iata VARCHAR) | SELECT airport FROM table_name_63 WHERE iata = "erz" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_63 (airport VARCHAR, iata VARCHAR) Question: Which Airport has a IATA of erz? [/INST] SELECT airport FROM table_name_63 WHERE iata = "erz" </s> |
What kind of IATA that has a Airport of berlin schönefeld airport? | CREATE TABLE table_name_83 (iata VARCHAR, airport VARCHAR) | SELECT iata FROM table_name_83 WHERE airport = "berlin schönefeld airport" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_83 (iata VARCHAR, airport VARCHAR) Question: What kind of IATA that has a Airport of berlin schönefeld airport? [/INST] SELECT iata FROM table_name_83 WHERE airport = "berlin schönefeld airport" </s> |
Who provided lyrics or music to the artist Cube? | CREATE TABLE table_name_46 (lyrics__l____music__m_ VARCHAR, artist VARCHAR) | SELECT lyrics__l____music__m_ FROM table_name_46 WHERE artist = "cube" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_46 (lyrics__l____music__m_ VARCHAR, artist VARCHAR) Question: Who provided lyrics or music to the artist Cube? [/INST] SELECT lyrics__l____music__m_ FROM table_name_46 WHERE artist = "cube" </s> |
What was the aircraft damage for the Boeing 707-320B? | CREATE TABLE table_name_51 (aircraft VARCHAR) | SELECT aircraft AS damage FROM table_name_51 WHERE aircraft = "boeing 707-320b" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_51 (aircraft VARCHAR) Question: What was the aircraft damage for the Boeing 707-320B? [/INST] SELECT aircraft AS damage FROM table_name_51 WHERE aircraft = "boeing 707-320b" </s> |
What was the number of fatalities for the Viscount 700? | CREATE TABLE table_name_71 (fatalities VARCHAR, aircraft VARCHAR) | SELECT fatalities FROM table_name_71 WHERE aircraft = "viscount 700" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_71 (fatalities VARCHAR, aircraft VARCHAR) Question: What was the number of fatalities for the Viscount 700? [/INST] SELECT fatalities FROM table_name_71 WHERE aircraft = "viscount 700" </s> |
What was the aircraft damage for the accident that had fatalities of 30/30? | CREATE TABLE table_name_35 (aircraft VARCHAR, fatalities VARCHAR) | SELECT aircraft AS damage FROM table_name_35 WHERE fatalities = "30/30" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_35 (aircraft VARCHAR, fatalities VARCHAR) Question: What was the aircraft damage for the accident that had fatalities of 30/30? [/INST] SELECT aircraft AS damage FROM table_name_35 WHERE fatalities = ... |
What was the location that had an accident by the F-27-600RF aircraft with tail number 6O-SAZ? | CREATE TABLE table_name_42 (location VARCHAR, aircraft VARCHAR, tail_number VARCHAR) | SELECT location FROM table_name_42 WHERE aircraft = "f-27-600rf" AND tail_number = "6o-saz" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_42 (location VARCHAR, aircraft VARCHAR, tail_number VARCHAR) Question: What was the location that had an accident by the F-27-600RF aircraft with tail number 6O-SAZ? [/INST] SELECT location FROM table... |
What was the tail number of the aircraft that had 5/30 fatalities? | CREATE TABLE table_name_86 (tail_number VARCHAR, fatalities VARCHAR) | SELECT tail_number FROM table_name_86 WHERE fatalities = "5/30" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_86 (tail_number VARCHAR, fatalities VARCHAR) Question: What was the tail number of the aircraft that had 5/30 fatalities? [/INST] SELECT tail_number FROM table_name_86 WHERE fatalities = "5/30" </s> |
What was the location of the accident that led to 50/50 fatalities? | CREATE TABLE table_name_84 (location VARCHAR, fatalities VARCHAR) | SELECT location FROM table_name_84 WHERE fatalities = "50/50" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_84 (location VARCHAR, fatalities VARCHAR) Question: What was the location of the accident that led to 50/50 fatalities? [/INST] SELECT location FROM table_name_84 WHERE fatalities = "50/50" </s> |
What % has 4 RLng? | CREATE TABLE table_name_80 (int_percentage VARCHAR, rlng VARCHAR) | SELECT int_percentage FROM table_name_80 WHERE rlng = "4" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_80 (int_percentage VARCHAR, rlng VARCHAR) Question: What % has 4 RLng? [/INST] SELECT int_percentage FROM table_name_80 WHERE rlng = "4" </s> |
What team had a Ravg of 3.4? | CREATE TABLE table_name_72 (team VARCHAR, ravg VARCHAR) | SELECT team FROM table_name_72 WHERE ravg = "3.4" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_72 (team VARCHAR, ravg VARCHAR) Question: What team had a Ravg of 3.4? [/INST] SELECT team FROM table_name_72 WHERE ravg = "3.4" </s> |
What is the int percentage that has Ravg of 2.8? | CREATE TABLE table_name_29 (int_percentage VARCHAR, ravg VARCHAR) | SELECT int_percentage FROM table_name_29 WHERE ravg = "2.8" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_29 (int_percentage VARCHAR, ravg VARCHAR) Question: What is the int percentage that has Ravg of 2.8? [/INST] SELECT int_percentage FROM table_name_29 WHERE ravg = "2.8" </s> |
Who is the R1st that has 36 RYds? | CREATE TABLE table_name_49 (r1st VARCHAR, ryds VARCHAR) | SELECT r1st FROM table_name_49 WHERE ryds = "36" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_49 (r1st VARCHAR, ryds VARCHAR) Question: Who is the R1st that has 36 RYds? [/INST] SELECT r1st FROM table_name_49 WHERE ryds = "36" </s> |
What was the Ravg for 2003? | CREATE TABLE table_name_87 (ravg VARCHAR, year VARCHAR) | SELECT ravg FROM table_name_87 WHERE year = "2003" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_87 (ravg VARCHAR, year VARCHAR) Question: What was the Ravg for 2003? [/INST] SELECT ravg FROM table_name_87 WHERE year = "2003" </s> |
What was the rate for 73 RYds? | CREATE TABLE table_name_22 (rate VARCHAR, ryds VARCHAR) | SELECT rate FROM table_name_22 WHERE ryds = "73" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_22 (rate VARCHAR, ryds VARCHAR) Question: What was the rate for 73 RYds? [/INST] SELECT rate FROM table_name_22 WHERE ryds = "73" </s> |
What is the name of the non-mammal from brazil of the unit of caturrita formation? | CREATE TABLE table_name_19 (name VARCHAR, location VARCHAR, unit VARCHAR) | SELECT name FROM table_name_19 WHERE location = "brazil" AND unit = "caturrita formation" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_19 (name VARCHAR, location VARCHAR, unit VARCHAR) Question: What is the name of the non-mammal from brazil of the unit of caturrita formation? [/INST] SELECT name FROM table_name_19 WHERE location = "... |
What is the name of the non-mammal who has tatarinov as the author? | CREATE TABLE table_name_4 (name VARCHAR, authors VARCHAR) | SELECT name FROM table_name_4 WHERE authors = "tatarinov" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_4 (name VARCHAR, authors VARCHAR) Question: What is the name of the non-mammal who has tatarinov as the author? [/INST] SELECT name FROM table_name_4 WHERE authors = "tatarinov" </s> |
What is the unit of the non-mammal from greenland? | CREATE TABLE table_name_95 (unit VARCHAR, location VARCHAR) | SELECT unit FROM table_name_95 WHERE location = "greenland" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (unit VARCHAR, location VARCHAR) Question: What is the unit of the non-mammal from greenland? [/INST] SELECT unit FROM table_name_95 WHERE location = "greenland" </s> |
Who is the author for the malasaurus? | CREATE TABLE table_name_65 (authors VARCHAR, name VARCHAR) | SELECT authors FROM table_name_65 WHERE name = "malasaurus" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_65 (authors VARCHAR, name VARCHAR) Question: Who is the author for the malasaurus? [/INST] SELECT authors FROM table_name_65 WHERE name = "malasaurus" </s> |
What is the name of the non mammal of the unit vyazniki assemblage? | CREATE TABLE table_name_3 (name VARCHAR, unit VARCHAR) | SELECT name FROM table_name_3 WHERE unit = "vyazniki assemblage" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_3 (name VARCHAR, unit VARCHAR) Question: What is the name of the non mammal of the unit vyazniki assemblage? [/INST] SELECT name FROM table_name_3 WHERE unit = "vyazniki assemblage" </s> |
Who are the authors for the malasaurus of the vyazniki assemblage? | CREATE TABLE table_name_16 (authors VARCHAR, unit VARCHAR, name VARCHAR) | SELECT authors FROM table_name_16 WHERE unit = "vyazniki assemblage" AND name = "malasaurus" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_16 (authors VARCHAR, unit VARCHAR, name VARCHAR) Question: Who are the authors for the malasaurus of the vyazniki assemblage? [/INST] SELECT authors FROM table_name_16 WHERE unit = "vyazniki assemblag... |
What is the lowest Rank with more than 0 bronze, 8 silver, and a total of 19, with less than 9 gold? | CREATE TABLE table_name_23 (rank INTEGER, gold VARCHAR, total VARCHAR, bronze VARCHAR, silver VARCHAR) | SELECT MIN(rank) FROM table_name_23 WHERE bronze > 0 AND silver = 8 AND total = 19 AND gold < 9 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_23 (rank INTEGER, gold VARCHAR, total VARCHAR, bronze VARCHAR, silver VARCHAR) Question: What is the lowest Rank with more than 0 bronze, 8 silver, and a total of 19, with less than 9 gold? [/INST] SE... |
What is the sum for gold when there is more than 17 silver and more than 24 bronze? | CREATE TABLE table_name_28 (gold INTEGER, silver VARCHAR, bronze VARCHAR) | SELECT SUM(gold) FROM table_name_28 WHERE silver > 17 AND bronze > 24 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_28 (gold INTEGER, silver VARCHAR, bronze VARCHAR) Question: What is the sum for gold when there is more than 17 silver and more than 24 bronze? [/INST] SELECT SUM(gold) FROM table_name_28 WHERE silver... |
What is the sum of Bronze when the rank is 7, and the total is more than 22? | CREATE TABLE table_name_19 (bronze INTEGER, rank VARCHAR, total VARCHAR) | SELECT SUM(bronze) FROM table_name_19 WHERE rank = 7 AND total > 22 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_19 (bronze INTEGER, rank VARCHAR, total VARCHAR) Question: What is the sum of Bronze when the rank is 7, and the total is more than 22? [/INST] SELECT SUM(bronze) FROM table_name_19 WHERE rank = 7 AND... |
What is the sum of rank when silver is 1, and gold is less than 7, and bronze is 2? | CREATE TABLE table_name_28 (rank INTEGER, bronze VARCHAR, silver VARCHAR, gold VARCHAR) | SELECT SUM(rank) FROM table_name_28 WHERE silver = 1 AND gold < 7 AND bronze = 2 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_28 (rank INTEGER, bronze VARCHAR, silver VARCHAR, gold VARCHAR) Question: What is the sum of rank when silver is 1, and gold is less than 7, and bronze is 2? [/INST] SELECT SUM(rank) FROM table_name_2... |
Who was the Conductor of the Three Pintos (Die Drei Pintos) Production? | CREATE TABLE table_name_34 (conductor VARCHAR, production VARCHAR) | SELECT conductor FROM table_name_34 WHERE production = "the three pintos (die drei pintos)" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_34 (conductor VARCHAR, production VARCHAR) Question: Who was the Conductor of the Three Pintos (Die Drei Pintos) Production? [/INST] SELECT conductor FROM table_name_34 WHERE production = "the three p... |
Who is the Conductor who had Stephen Barlow as Director? | CREATE TABLE table_name_22 (conductor VARCHAR, director VARCHAR) | SELECT conductor FROM table_name_22 WHERE director = "stephen barlow" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_22 (conductor VARCHAR, director VARCHAR) Question: Who is the Conductor who had Stephen Barlow as Director? [/INST] SELECT conductor FROM table_name_22 WHERE director = "stephen barlow" </s> |
Who was Director John Ramster's Composer? | CREATE TABLE table_name_3 (composer VARCHAR, director VARCHAR) | SELECT composer FROM table_name_3 WHERE director = "john ramster" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_3 (composer VARCHAR, director VARCHAR) Question: Who was Director John Ramster's Composer? [/INST] SELECT composer FROM table_name_3 WHERE director = "john ramster" </s> |
Which Giant Slalom has a Slalom of 45? | CREATE TABLE table_name_26 (Giant VARCHAR, slalom VARCHAR) | SELECT Giant AS slalom FROM table_name_26 WHERE slalom = "45" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_26 (Giant VARCHAR, slalom VARCHAR) Question: Which Giant Slalom has a Slalom of 45? [/INST] SELECT Giant AS slalom FROM table_name_26 WHERE slalom = "45" </s> |
Which Slalom has a Super G of 4? | CREATE TABLE table_name_98 (slalom VARCHAR, super_g VARCHAR) | SELECT slalom FROM table_name_98 WHERE super_g = "4" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_98 (slalom VARCHAR, super_g VARCHAR) Question: Which Slalom has a Super G of 4? [/INST] SELECT slalom FROM table_name_98 WHERE super_g = "4" </s> |
Which champion has sentosa golf club as the tournament location? | CREATE TABLE table_name_55 (champion VARCHAR, tournament_location VARCHAR) | SELECT champion FROM table_name_55 WHERE tournament_location = "sentosa golf club" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_55 (champion VARCHAR, tournament_location VARCHAR) Question: Which champion has sentosa golf club as the tournament location? [/INST] SELECT champion FROM table_name_55 WHERE tournament_location = "se... |
Which county has 2011 as the year? | CREATE TABLE table_name_17 (country VARCHAR, year VARCHAR) | SELECT country FROM table_name_17 WHERE year = 2011 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_17 (country VARCHAR, year VARCHAR) Question: Which county has 2011 as the year? [/INST] SELECT country FROM table_name_17 WHERE year = 2011 </s> |
What is the total sum of bronze medals for the Soviet Union when there are more than 0 silver medals and more than 3 total medals? | CREATE TABLE table_name_39 (bronze INTEGER, total VARCHAR, silver VARCHAR, nation VARCHAR) | SELECT SUM(bronze) FROM table_name_39 WHERE silver > 0 AND nation = "soviet union" AND total > 3 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_39 (bronze INTEGER, total VARCHAR, silver VARCHAR, nation VARCHAR) Question: What is the total sum of bronze medals for the Soviet Union when there are more than 0 silver medals and more than 3 total ... |
What is the lowest rank of a nation with fewer than 3 gold medals, more than 2 bronze medals, and 0 silver medals? | CREATE TABLE table_name_95 (rank INTEGER, bronze VARCHAR, gold VARCHAR, silver VARCHAR) | SELECT MIN(rank) FROM table_name_95 WHERE gold < 3 AND silver = 0 AND bronze > 2 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (rank INTEGER, bronze VARCHAR, gold VARCHAR, silver VARCHAR) Question: What is the lowest rank of a nation with fewer than 3 gold medals, more than 2 bronze medals, and 0 silver medals? [/INST] SEL... |
For the album Board Up the House, what is the contribution? | CREATE TABLE table_name_49 (contribution VARCHAR, album VARCHAR) | SELECT contribution FROM table_name_49 WHERE album = "board up the house" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_49 (contribution VARCHAR, album VARCHAR) Question: For the album Board Up the House, what is the contribution? [/INST] SELECT contribution FROM table_name_49 WHERE album = "board up the house" </s> |
What band has a year above 2011? | CREATE TABLE table_name_75 (band VARCHAR, year INTEGER) | SELECT band FROM table_name_75 WHERE year > 2011 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_75 (band VARCHAR, year INTEGER) Question: What band has a year above 2011? [/INST] SELECT band FROM table_name_75 WHERE year > 2011 </s> |
What time was the game played that had a record of 0–2–0? | CREATE TABLE table_name_56 (time___et__ VARCHAR, record VARCHAR) | SELECT time___et__ FROM table_name_56 WHERE record = "0–2–0" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_56 (time___et__ VARCHAR, record VARCHAR) Question: What time was the game played that had a record of 0–2–0? [/INST] SELECT time___et__ FROM table_name_56 WHERE record = "0–2–0" </s> |
What is the average weight of a player who is less than 175 centimeters tall? | CREATE TABLE table_name_83 (weight__kg_ INTEGER, height__cm_ INTEGER) | SELECT AVG(weight__kg_) FROM table_name_83 WHERE height__cm_ < 175 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_83 (weight__kg_ INTEGER, height__cm_ INTEGER) Question: What is the average weight of a player who is less than 175 centimeters tall? [/INST] SELECT AVG(weight__kg_) FROM table_name_83 WHERE height__c... |
What is the English name of the country that has Ramallah as its capital? | CREATE TABLE table_name_59 (english_country_name VARCHAR, english_capital_name VARCHAR) | SELECT english_country_name FROM table_name_59 WHERE english_capital_name = "ramallah" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_59 (english_country_name VARCHAR, english_capital_name VARCHAR) Question: What is the English name of the country that has Ramallah as its capital? [/INST] SELECT english_country_name FROM table_name_... |
What is the English name of the country that has Doha as its capital? | CREATE TABLE table_name_5 (english_country_name VARCHAR, english_capital_name VARCHAR) | SELECT english_country_name FROM table_name_5 WHERE english_capital_name = "doha" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_5 (english_country_name VARCHAR, english_capital_name VARCHAR) Question: What is the English name of the country that has Doha as its capital? [/INST] SELECT english_country_name FROM table_name_5 WHE... |
What is the name of the capital, in Arabic, that is called n'djamena in English? | CREATE TABLE table_name_7 (arabic_capital_name VARCHAR, english_capital_name VARCHAR) | SELECT arabic_capital_name FROM table_name_7 WHERE english_capital_name = "n'djamena" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (arabic_capital_name VARCHAR, english_capital_name VARCHAR) Question: What is the name of the capital, in Arabic, that is called n'djamena in English? [/INST] SELECT arabic_capital_name FROM table_n... |
What is the name of the country in Arabic that has Moroni as the name of its capital in English? | CREATE TABLE table_name_68 (arabic_country_name VARCHAR, english_capital_name VARCHAR) | SELECT arabic_country_name FROM table_name_68 WHERE english_capital_name = "moroni" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_68 (arabic_country_name VARCHAR, english_capital_name VARCHAR) Question: What is the name of the country in Arabic that has Moroni as the name of its capital in English? [/INST] SELECT arabic_country_... |
When was the premiere on the TVB Jade Channel? | CREATE TABLE table_name_86 (premiere VARCHAR, channel VARCHAR) | SELECT premiere FROM table_name_86 WHERE channel = "tvb jade" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_86 (premiere VARCHAR, channel VARCHAR) Question: When was the premiere on the TVB Jade Channel? [/INST] SELECT premiere FROM table_name_86 WHERE channel = "tvb jade" </s> |
Who was the host of the premiere on November 10, 2007? | CREATE TABLE table_name_18 (host VARCHAR, premiere VARCHAR) | SELECT host FROM table_name_18 WHERE premiere = "november 10, 2007" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_18 (host VARCHAR, premiere VARCHAR) Question: Who was the host of the premiere on November 10, 2007? [/INST] SELECT host FROM table_name_18 WHERE premiere = "november 10, 2007" </s> |
Which country had a premiere on July 24, 2010? | CREATE TABLE table_name_65 (country VARCHAR, premiere VARCHAR) | SELECT country FROM table_name_65 WHERE premiere = "july 24, 2010" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_65 (country VARCHAR, premiere VARCHAR) Question: Which country had a premiere on July 24, 2010? [/INST] SELECT country FROM table_name_65 WHERE premiere = "july 24, 2010" </s> |
Which channel comes out of Israel? | CREATE TABLE table_name_83 (channel VARCHAR, country VARCHAR) | SELECT channel FROM table_name_83 WHERE country = "israel" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_83 (channel VARCHAR, country VARCHAR) Question: Which channel comes out of Israel? [/INST] SELECT channel FROM table_name_83 WHERE country = "israel" </s> |
What is the largest total when the rank is 6 and there's less than 1 gold? | CREATE TABLE table_name_31 (total INTEGER, rank VARCHAR, gold VARCHAR) | SELECT MAX(total) FROM table_name_31 WHERE rank = "6" AND gold < 1 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_31 (total INTEGER, rank VARCHAR, gold VARCHAR) Question: What is the largest total when the rank is 6 and there's less than 1 gold? [/INST] SELECT MAX(total) FROM table_name_31 WHERE rank = "6" AND go... |
What is the largest gold number when the total is less than 3, the rank is 5, and the silver is more than 1? | CREATE TABLE table_name_16 (gold INTEGER, silver VARCHAR, total VARCHAR, rank VARCHAR) | SELECT MAX(gold) FROM table_name_16 WHERE total < 3 AND rank = "5" AND silver > 1 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_16 (gold INTEGER, silver VARCHAR, total VARCHAR, rank VARCHAR) Question: What is the largest gold number when the total is less than 3, the rank is 5, and the silver is more than 1? [/INST] SELECT MAX... |
What is the total of silver when gold is less than 0? | CREATE TABLE table_name_30 (silver INTEGER, gold INTEGER) | SELECT SUM(silver) FROM table_name_30 WHERE gold < 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_30 (silver INTEGER, gold INTEGER) Question: What is the total of silver when gold is less than 0? [/INST] SELECT SUM(silver) FROM table_name_30 WHERE gold < 0 </s> |
Which team was the visitor when Milt Palacio (15) was the leading scorer? | CREATE TABLE table_name_82 (visitor VARCHAR, leading_scorer VARCHAR) | SELECT visitor FROM table_name_82 WHERE leading_scorer = "milt palacio (15)" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_82 (visitor VARCHAR, leading_scorer VARCHAR) Question: Which team was the visitor when Milt Palacio (15) was the leading scorer? [/INST] SELECT visitor FROM table_name_82 WHERE leading_scorer = "milt ... |
What is the home of the team with Carlos Boozer (27) as the leading scorer? | CREATE TABLE table_name_1 (home VARCHAR, leading_scorer VARCHAR) | SELECT home FROM table_name_1 WHERE leading_scorer = "carlos boozer (27)" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_1 (home VARCHAR, leading_scorer VARCHAR) Question: What is the home of the team with Carlos Boozer (27) as the leading scorer? [/INST] SELECT home FROM table_name_1 WHERE leading_scorer = "carlos booz... |
What date was the game played with the Cavaliers at home and the Warriors visiting? | CREATE TABLE table_name_39 (date VARCHAR, home VARCHAR, visitor VARCHAR) | SELECT date FROM table_name_39 WHERE home = "cavaliers" AND visitor = "warriors" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_39 (date VARCHAR, home VARCHAR, visitor VARCHAR) Question: What date was the game played with the Cavaliers at home and the Warriors visiting? [/INST] SELECT date FROM table_name_39 WHERE home = "cava... |
What is the sum total of all the years with a bell that weighed 857 kilograms? | CREATE TABLE table_name_40 (year INTEGER, weight__kg_ VARCHAR) | SELECT SUM(year) FROM table_name_40 WHERE weight__kg_ = "857" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (year INTEGER, weight__kg_ VARCHAR) Question: What is the sum total of all the years with a bell that weighed 857 kilograms? [/INST] SELECT SUM(year) FROM table_name_40 WHERE weight__kg_ = "857" </... |
What is the Enrollment for the Pilots? | CREATE TABLE table_name_3 (enrollment INTEGER, team_nickname VARCHAR) | SELECT MIN(enrollment) FROM table_name_3 WHERE team_nickname = "pilots" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_3 (enrollment INTEGER, team_nickname VARCHAR) Question: What is the Enrollment for the Pilots? [/INST] SELECT MIN(enrollment) FROM table_name_3 WHERE team_nickname = "pilots" </s> |
What is the Enrollment for the Coyotes Founded in 1891? | CREATE TABLE table_name_34 (enrollment VARCHAR, founded VARCHAR, team_nickname VARCHAR) | SELECT COUNT(enrollment) FROM table_name_34 WHERE founded = 1891 AND team_nickname = "coyotes" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_34 (enrollment VARCHAR, founded VARCHAR, team_nickname VARCHAR) Question: What is the Enrollment for the Coyotes Founded in 1891? [/INST] SELECT COUNT(enrollment) FROM table_name_34 WHERE founded = 18... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.