text
stringlengths
354
1.06k
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_41 (place__posiciΓ³n_ INTEGER, points__pts_ VARCHAR, played__pj_ VARCHAR) Question: What was the top place with over 24 points and more than 14 played? [/INST] Here is the SQLite query to answer to the question: What was the top place with over 24 points and more than 14 played?: ``` SELECT MAX(place__posiciΓ³n_) FROM table_name_41 WHERE points__pts_ > 24 AND played__pj_ > 14 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_4 (quantity_rebuilt VARCHAR, type VARCHAR, railway_number_s_ VARCHAR) Question: What is the total of quantity rebuilt if the type is 1B N2T and the railway number is 88, 118? [/INST] Here is the SQLite query to answer to the question: What is the total of quantity rebuilt if the type is 1B N2T and the railway number is 88, 118?: ``` SELECT COUNT(quantity_rebuilt) FROM table_name_4 WHERE type = "1b n2t" AND railway_number_s_ = "88, 118" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_79 (extras INTEGER, name VARCHAR, wickets VARCHAR) Question: What is the highest Extras for Farveez Maharoof, with more than 4 wickets? [/INST] Here is the SQLite query to answer to the question: What is the highest Extras for Farveez Maharoof, with more than 4 wickets?: ``` SELECT MAX(extras) FROM table_name_79 WHERE name = "farveez maharoof" AND wickets > 4 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_98 (team VARCHAR, score VARCHAR) Question: What team has a Score of l 88–94 (ot)? [/INST] Here is the SQLite query to answer to the question: What team has a Score of l 88–94 (ot)?: ``` SELECT team FROM table_name_98 WHERE score = "l 88–94 (ot)" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_94 (competition VARCHAR, club VARCHAR) Question: What is the Competition when the Club was costa rica u-20? [/INST] Here is the SQLite query to answer to the question: What is the Competition when the Club was costa rica u-20?: ``` SELECT competition FROM table_name_94 WHERE club = "costa rica u-20" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_17481974_1 (episode__number VARCHAR, original_airdate VARCHAR) Question: What are the numbers of episodes that were broadcast on September 1, 2003 [/INST] Here is the SQLite query to answer to the question: What are the numbers of episodes that were broadcast on September 1, 2003: ``` SELECT episode__number FROM table_17481974_1 WHERE original_airdate = "September 1, 2003" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_16384648_2 (capacity INTEGER, team_nickname VARCHAR) Question: For the flyers, what's the minimum capacity? [/INST] Here is the SQLite query to answer to the question: For the flyers, what's the minimum capacity? : ``` SELECT MIN(capacity) FROM table_16384648_2 WHERE team_nickname = "Flyers" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_37 (Id VARCHAR) Question: What is 1989, when 1982 is "SF"? [/INST] Here is the SQLite query to answer to the question: What is 1989, when 1982 is "SF"?: ``` SELECT 1989 FROM table_name_37 WHERE 1982 = "sf" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_26 (result VARCHAR, date VARCHAR) Question: Who won that game on 24 July 2010? [/INST] Here is the SQLite query to answer to the question: Who won that game on 24 July 2010?: ``` SELECT result FROM table_name_26 WHERE date = "24 july 2010" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_94 (general_classification VARCHAR, mountains_classification VARCHAR, team_classification VARCHAR) Question: What is the general classification for a mountains value of Christophe Moreau and a Team winner of Team CSC? [/INST] Here is the SQLite query to answer to the question: What is the general classification for a mountains value of Christophe Moreau and a Team winner of Team CSC?: ``` SELECT general_classification FROM table_name_94 WHERE mountains_classification = "christophe moreau" AND team_classification = "team csc" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_56 (hanja VARCHAR, mccune_reischauer VARCHAR) Question: What is the Hanja for McCune-Reischauer of chŏn? [/INST] Here is the SQLite query to answer to the question: What is the Hanja for McCune-Reischauer of chŏn?: ``` SELECT hanja FROM table_name_56 WHERE mccune_reischauer = "chŏn" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_16 (loss VARCHAR, record VARCHAR) Question: Record of 89-67 had what loss? [/INST] Here is the SQLite query to answer to the question: Record of 89-67 had what loss?: ``` SELECT loss FROM table_name_16 WHERE record = "89-67" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_28062822_3 (height VARCHAR, represent VARCHAR) Question: What was the height of representative #6? [/INST] Here is the SQLite query to answer to the question: What was the height of representative #6?: ``` SELECT height FROM table_28062822_3 WHERE represent = 6 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_68 (height_feet___m VARCHAR, floors VARCHAR, name VARCHAR) Question: What is the height of the Tides with less than 34 floors? [/INST] Here is the SQLite query to answer to the question: What is the height of the Tides with less than 34 floors?: ``` SELECT height_feet___m FROM table_name_68 WHERE floors < 34 AND name = "the tides" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_1 (losses INTEGER, wins VARCHAR, runs_allowed VARCHAR) Question: How many losses did the team with 0 wins and more than 72 runs allowed have? [/INST] Here is the SQLite query to answer to the question: How many losses did the team with 0 wins and more than 72 runs allowed have?: ``` SELECT SUM(losses) FROM table_name_1 WHERE wins = 0 AND runs_allowed > 72 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_26 (year VARCHAR, movie_title VARCHAR) Question: What year was Jamboree made? [/INST] Here is the SQLite query to answer to the question: What year was Jamboree made?: ``` SELECT year FROM table_name_26 WHERE movie_title = "jamboree" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_22825679_1 (percentage VARCHAR, team VARCHAR) Question: Name the percentage for georgia [/INST] Here is the SQLite query to answer to the question: Name the percentage for georgia: ``` SELECT percentage FROM table_22825679_1 WHERE team = "Georgia" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_25085059_3 (cfl_team VARCHAR, college VARCHAR) Question: What team got a draft pick player from McGill? [/INST] Here is the SQLite query to answer to the question: What team got a draft pick player from McGill?: ``` SELECT cfl_team FROM table_25085059_3 WHERE college = "McGill" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_36 (years VARCHAR, representative VARCHAR) Question: What years did J. Smith Young serve as a Representative? [/INST] Here is the SQLite query to answer to the question: What years did J. Smith Young serve as a Representative?: ``` SELECT years FROM table_name_36 WHERE representative = "j. smith young" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_29 (winner VARCHAR, year VARCHAR, loser VARCHAR) Question: Who was the winner of the game in 1999 with Kansas City Chiefs as the loser? [/INST] Here is the SQLite query to answer to the question: Who was the winner of the game in 1999 with Kansas City Chiefs as the loser?: ``` SELECT winner FROM table_name_29 WHERE year = 1999 AND loser = "kansas city chiefs" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_23308178_4 (score VARCHAR, date VARCHAR) Question: What was the score on October 29? [/INST] Here is the SQLite query to answer to the question: What was the score on October 29?: ``` SELECT score FROM table_23308178_4 WHERE date = "October 29" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_41 (player VARCHAR, date VARCHAR) Question: Which Player has a Date of 13 july 2007? [/INST] Here is the SQLite query to answer to the question: Which Player has a Date of 13 july 2007?: ``` SELECT player FROM table_name_41 WHERE date = "13 july 2007" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_37 (year INTEGER, weight_class__kg_ VARCHAR, event VARCHAR, venue VARCHAR) Question: What is the highest year that has fila world championships as the event, with toledo, united states as the venue, and a weight class (kg) less than 97? [/INST] Here is the SQLite query to answer to the question: What is the highest year that has fila world championships as the event, with toledo, united states as the venue, and a weight class (kg) less than 97?: ``` SELECT MAX(year) FROM table_name_37 WHERE event = "fila world championships" AND venue = "toledo, united states" AND weight_class__kg_ < 97 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_29920800_1 (us_viewers__million_ VARCHAR, written_by VARCHAR) Question: How many millions of U.S viewers watched the episode written by Liz Feldman? [/INST] Here is the SQLite query to answer to the question: How many millions of U.S viewers watched the episode written by Liz Feldman? : ``` SELECT us_viewers__million_ FROM table_29920800_1 WHERE written_by = "Liz Feldman" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_28 (driver VARCHAR, time_retired VARCHAR, laps VARCHAR, grid VARCHAR) Question: What driver has under 53 laps, a grid smaller than 14, and a time/retired of differential? [/INST] Here is the SQLite query to answer to the question: What driver has under 53 laps, a grid smaller than 14, and a time/retired of differential?: ``` SELECT driver FROM table_name_28 WHERE laps < 53 AND grid < 14 AND time_retired = "differential" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_24 (lane INTEGER, nationality VARCHAR, split__50m_ VARCHAR) Question: What is the total of lane(s) for swimmers from Sweden with a 50m split of faster than 26.25? [/INST] Here is the SQLite query to answer to the question: What is the total of lane(s) for swimmers from Sweden with a 50m split of faster than 26.25?: ``` SELECT SUM(lane) FROM table_name_24 WHERE nationality = "sweden" AND split__50m_ < 26.25 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_88 (opponent VARCHAR, time__et_ VARCHAR, week VARCHAR, game_site VARCHAR) Question: Who did they play at lincoln financial field at 8:30 (ET) after week 14? [/INST] Here is the SQLite query to answer to the question: Who did they play at lincoln financial field at 8:30 (ET) after week 14?: ``` SELECT opponent FROM table_name_88 WHERE week > 14 AND game_site = "lincoln financial field" AND time__et_ = "8:30" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_43 (heat INTEGER, time VARCHAR, lane VARCHAR) Question: What is the average of all Heats of competitors with a Time of 59.11 and a lane higher than 3? [/INST] Here is the SQLite query to answer to the question: What is the average of all Heats of competitors with a Time of 59.11 and a lane higher than 3?: ``` SELECT AVG(heat) FROM table_name_43 WHERE time = "59.11" AND lane > 3 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_21 (high_assists VARCHAR, game VARCHAR, record VARCHAR) Question: Which High assists have a Game larger than 21, and a Record of 18-6? [/INST] Here is the SQLite query to answer to the question: Which High assists have a Game larger than 21, and a Record of 18-6?: ``` SELECT high_assists FROM table_name_21 WHERE game > 21 AND record = "18-6" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_61 (country VARCHAR, label VARCHAR) Question: What is the country for Sony / Sony Bmg? [/INST] Here is the SQLite query to answer to the question: What is the country for Sony / Sony Bmg?: ``` SELECT country FROM table_name_61 WHERE label = "sony / sony bmg" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_45 (outcome VARCHAR, score VARCHAR) Question: What is the Outcome of the game with a Score of 6–4, 6–4? [/INST] Here is the SQLite query to answer to the question: What is the Outcome of the game with a Score of 6–4, 6–4?: ``` SELECT outcome FROM table_name_45 WHERE score = "6–4, 6–4" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_47 (broadcasts__tv__1 INTEGER, series VARCHAR, us_release_date VARCHAR) Question: What is the sum of Broadcasts (TV) 1, when Series is "3 4", and when US Release Date is "27 December 2006"? [/INST] Here is the SQLite query to answer to the question: What is the sum of Broadcasts (TV) 1, when Series is "3 4", and when US Release Date is "27 December 2006"?: ``` SELECT SUM(broadcasts__tv__1) FROM table_name_47 WHERE series = "3 4" AND us_release_date = "27 december 2006" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_99 (record VARCHAR, date VARCHAR) Question: Which Record has a Date of december 17? [/INST] Here is the SQLite query to answer to the question: Which Record has a Date of december 17?: ``` SELECT record FROM table_name_99 WHERE date = "december 17" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_18 (episode VARCHAR, airdate__canada_ VARCHAR) Question: What is the total number of episodes aired in Canada on 22 October 2004? [/INST] Here is the SQLite query to answer to the question: What is the total number of episodes aired in Canada on 22 October 2004?: ``` SELECT COUNT(episode) FROM table_name_18 WHERE airdate__canada_ = "22 october 2004" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_82 (date VARCHAR, label VARCHAR, catalog VARCHAR) Question: What is the date of the item with a label of Sony BMG, Epic and a Catalog number 5187482? [/INST] Here is the SQLite query to answer to the question: What is the date of the item with a label of Sony BMG, Epic and a Catalog number 5187482?: ``` SELECT date FROM table_name_82 WHERE label = "sony bmg, epic" AND catalog = "5187482" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_52 (poles INTEGER, fastest_laps INTEGER) Question: What is the smallest number of poles when the fastest laps are less than 0? [/INST] Here is the SQLite query to answer to the question: What is the smallest number of poles when the fastest laps are less than 0?: ``` SELECT MIN(poles) FROM table_name_52 WHERE fastest_laps < 0 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_39 (home_team VARCHAR, venue VARCHAR) Question: Which team plays at Lake Oval? [/INST] Here is the SQLite query to answer to the question: Which team plays at Lake Oval?: ``` SELECT home_team FROM table_name_39 WHERE venue = "lake oval" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_21093403_1 (locale VARCHAR, shot_pct VARCHAR) Question: Where was the shot pct 78? [/INST] Here is the SQLite query to answer to the question: Where was the shot pct 78?: ``` SELECT locale FROM table_21093403_1 WHERE shot_pct = 78 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_27 (year INTEGER, character VARCHAR) Question: What is the year that has a character named Wu Ji Wei (η„‘ζ₯΅ε¨)? [/INST] Here is the SQLite query to answer to the question: What is the year that has a character named Wu Ji Wei (η„‘ζ₯΅ε¨)?: ``` SELECT AVG(year) FROM table_name_27 WHERE character = "wu ji wei (η„‘ζ₯΅ε¨)" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_1341568_39 (district VARCHAR, incumbent VARCHAR) Question: What districts does incumbent Curt Weldon hold? [/INST] Here is the SQLite query to answer to the question: What districts does incumbent Curt Weldon hold?: ``` SELECT district FROM table_1341568_39 WHERE incumbent = "Curt Weldon" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE Employees (employee_ID VARCHAR, employee_name VARCHAR) Question: What is the id for the employee called Ebba? [/INST] Here is the SQLite query to answer to the question: What is the id for the employee called Ebba?: ``` SELECT employee_ID FROM Employees WHERE employee_name = "Ebba" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_15 (Id VARCHAR) Question: What is the 1993 value of the 1996 atp masters series? [/INST] Here is the SQLite query to answer to the question: What is the 1993 value of the 1996 atp masters series?: ``` SELECT 1993 FROM table_name_15 WHERE 1996 = "atp masters series" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_81 (time VARCHAR, notes VARCHAR, athlete VARCHAR) Question: What is the time of frida svensson's race that had sa/b under the notes? [/INST] Here is the SQLite query to answer to the question: What is the time of frida svensson's race that had sa/b under the notes?: ``` SELECT time FROM table_name_81 WHERE notes = "sa/b" AND athlete = "frida svensson" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_37 (bachelorette VARCHAR, premiered VARCHAR) Question: Who is the bachelorette of the season that premiered on May 24, 2010? [/INST] Here is the SQLite query to answer to the question: Who is the bachelorette of the season that premiered on May 24, 2010?: ``` SELECT bachelorette FROM table_name_37 WHERE premiered = "may 24, 2010" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_3 (opponent VARCHAR, streak VARCHAR, date VARCHAR) Question: who is the opponent when the streak is won 9 on april 13, 1990? [/INST] Here is the SQLite query to answer to the question: who is the opponent when the streak is won 9 on april 13, 1990?: ``` SELECT opponent FROM table_name_3 WHERE streak = "won 9" AND date = "april 13, 1990" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_77 (year VARCHAR, nominated_work VARCHAR, category VARCHAR) Question: what year has general nominated in the category or choice breakthrough artist? [/INST] Here is the SQLite query to answer to the question: what year has general nominated in the category or choice breakthrough artist?: ``` SELECT COUNT(year) FROM table_name_77 WHERE nominated_work = "general" AND category = "choice breakthrough artist" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_69 (fa_cup INTEGER, malaysia_cup INTEGER) Question: What is the lowest number of FA cups associated with 0 malaysia cups? [/INST] Here is the SQLite query to answer to the question: What is the lowest number of FA cups associated with 0 malaysia cups?: ``` SELECT MIN(fa_cup) FROM table_name_69 WHERE malaysia_cup < 0 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_2840500_4 (position VARCHAR, player VARCHAR) Question: How many draft pick positions did Matt Bradley have? [/INST] Here is the SQLite query to answer to the question: How many draft pick positions did Matt Bradley have?: ``` SELECT COUNT(position) FROM table_2840500_4 WHERE player = "Matt Bradley" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_221315_3 (max_mach VARCHAR, max_speed__mph_ VARCHAR) Question: What was the max mach when the maximum speed was 3887? [/INST] Here is the SQLite query to answer to the question: What was the max mach when the maximum speed was 3887?: ``` SELECT max_mach FROM table_221315_3 WHERE max_speed__mph_ = 3887 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_26 (record VARCHAR, home VARCHAR) Question: Can you tell me the Record that has the Home of ny islanders? [/INST] Here is the SQLite query to answer to the question: Can you tell me the Record that has the Home of ny islanders?: ``` SELECT record FROM table_name_26 WHERE home = "ny islanders" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_98 (gold INTEGER, silver VARCHAR, sport VARCHAR) Question: I want the lowest Gold for silver being 2 and electronic sports [/INST] Here is the SQLite query to answer to the question: I want the lowest Gold for silver being 2 and electronic sports: ``` SELECT MIN(gold) FROM table_name_98 WHERE silver = 2 AND sport = "electronic sports" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_43 (result VARCHAR, date VARCHAR) Question: What is the Result with a Date with 22 january 2008? [/INST] Here is the SQLite query to answer to the question: What is the Result with a Date with 22 january 2008?: ``` SELECT result FROM table_name_43 WHERE date = "22 january 2008" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_22546460_4 (best_female_artist VARCHAR, best_male_lyricist VARCHAR) Question: Who won the Best Female Artist where Best R&B Contributor won the Best Male Lyricist? [/INST] Here is the SQLite query to answer to the question: Who won the Best Female Artist where Best R&B Contributor won the Best Male Lyricist?: ``` SELECT best_female_artist FROM table_22546460_4 WHERE best_male_lyricist = "Best R&B Contributor" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_85 (laps VARCHAR, driver VARCHAR) Question: I want the total number of Laps for Rubens Barrichello [/INST] Here is the SQLite query to answer to the question: I want the total number of Laps for Rubens Barrichello: ``` SELECT COUNT(laps) FROM table_name_85 WHERE driver = "rubens barrichello" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_11803648_17 (nationality VARCHAR, player VARCHAR) Question: WHERE IS ANDRE PETERSSON FROM? [/INST] Here is the SQLite query to answer to the question: WHERE IS ANDRE PETERSSON FROM?: ``` SELECT nationality FROM table_11803648_17 WHERE player = "Andre Petersson" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_21 (driver_s_ VARCHAR, primary_sponsor_s_ VARCHAR) Question: Parts Plus sponsors what driver? [/INST] Here is the SQLite query to answer to the question: Parts Plus sponsors what driver?: ``` SELECT driver_s_ FROM table_name_21 WHERE primary_sponsor_s_ = "parts plus" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_78 (year INTEGER, college VARCHAR, pick VARCHAR) Question: What is the earliest year for Alabama with a pick under 26? [/INST] Here is the SQLite query to answer to the question: What is the earliest year for Alabama with a pick under 26?: ``` SELECT MIN(year) FROM table_name_78 WHERE college = "alabama" AND pick < 26 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_6 (score VARCHAR, record VARCHAR) Question: Name the score with record of 17-27 [/INST] Here is the SQLite query to answer to the question: Name the score with record of 17-27: ``` SELECT score FROM table_name_6 WHERE record = "17-27" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_2 (icao VARCHAR, iata VARCHAR) Question: What is the ICAO when the IATA shows mfm? [/INST] Here is the SQLite query to answer to the question: What is the ICAO when the IATA shows mfm?: ``` SELECT icao FROM table_name_2 WHERE iata = "mfm" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_42 (mintage INTEGER, animal VARCHAR, year VARCHAR) Question: How many Red Breasted Nuthatch coins created before 2007 were minted, on average? [/INST] Here is the SQLite query to answer to the question: How many Red Breasted Nuthatch coins created before 2007 were minted, on average?: ``` SELECT AVG(mintage) FROM table_name_42 WHERE animal = "red breasted nuthatch" AND year < 2007 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_72 (result VARCHAR, week VARCHAR) Question: What is Result, when Week is 16? [/INST] Here is the SQLite query to answer to the question: What is Result, when Week is 16?: ``` SELECT result FROM table_name_72 WHERE week = 16 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_38 (historical_references VARCHAR, podcast_date VARCHAR) Question: What is the historical reference of the episode that aired on October 23, 2005? [/INST] Here is the SQLite query to answer to the question: What is the historical reference of the episode that aired on October 23, 2005?: ``` SELECT historical_references FROM table_name_38 WHERE podcast_date = "october 23, 2005" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_11230937_2 (us_viewers__millions_ VARCHAR, no_in_season VARCHAR) Question: How many millions of viewers watched episode 15? [/INST] Here is the SQLite query to answer to the question: How many millions of viewers watched episode 15?: ``` SELECT us_viewers__millions_ FROM table_11230937_2 WHERE no_in_season = 15 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_30 (first_aired VARCHAR, role VARCHAR) Question: What's the first aired date when Professor Hubert Whitehead was the role? [/INST] Here is the SQLite query to answer to the question: What's the first aired date when Professor Hubert Whitehead was the role?: ``` SELECT first_aired FROM table_name_30 WHERE role = "professor hubert whitehead" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_1 (player VARCHAR, round VARCHAR, position VARCHAR) Question: Which Player has a Round larger than 5, and a Position of (g)? [/INST] Here is the SQLite query to answer to the question: Which Player has a Round larger than 5, and a Position of (g)?: ``` SELECT player FROM table_name_1 WHERE round > 5 AND position = "(g)" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_30 (away_team VARCHAR, venue VARCHAR) Question: What did the away team score at Junction oval? [/INST] Here is the SQLite query to answer to the question: What did the away team score at Junction oval?: ``` SELECT away_team AS score FROM table_name_30 WHERE venue = "junction oval" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_13026799_1 (winning_score VARCHAR, championship VARCHAR) Question: What was the winning score of the PGA Championship (3)? [/INST] Here is the SQLite query to answer to the question: What was the winning score of the PGA Championship (3)?: ``` SELECT winning_score FROM table_13026799_1 WHERE championship = "PGA championship (3)" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_84 (hdtv VARCHAR, content VARCHAR) Question: What is the HDTV when documentaries are the content? [/INST] Here is the SQLite query to answer to the question: What is the HDTV when documentaries are the content?: ``` SELECT hdtv FROM table_name_84 WHERE content = "documentaries" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_44 (points_for VARCHAR, losing_bonus VARCHAR, points_against VARCHAR) Question: How many points did the club with a losing bonus of 2 and 300 points against have? [/INST] Here is the SQLite query to answer to the question: How many points did the club with a losing bonus of 2 and 300 points against have?: ``` SELECT points_for FROM table_name_44 WHERE losing_bonus = "2" AND points_against = "300" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_98 (team_1 VARCHAR, team_2 VARCHAR) Question: What is the team 1 when Ulisses is team 2? [/INST] Here is the SQLite query to answer to the question: What is the team 1 when Ulisses is team 2?: ``` SELECT team_1 FROM table_name_98 WHERE team_2 = "ulisses" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_21538523_1 (class VARCHAR, type VARCHAR) Question: Type FJ/RN/SC is associated with what class? [/INST] Here is the SQLite query to answer to the question: Type FJ/RN/SC is associated with what class?: ``` SELECT class FROM table_21538523_1 WHERE type = "FJ/RN/SC" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_40 (to_par VARCHAR, year_s__won VARCHAR) Question: What is the to par number of the person who won in 2003? [/INST] Here is the SQLite query to answer to the question: What is the to par number of the person who won in 2003?: ``` SELECT to_par FROM table_name_40 WHERE year_s__won = "2003" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_22916979_2 (population__2000_census_ VARCHAR, census_designated_place VARCHAR) Question: what is the total number of population where census designated place is westmont? [/INST] Here is the SQLite query to answer to the question: what is the total number of population where census designated place is westmont?: ``` SELECT COUNT(population__2000_census_) FROM table_22916979_2 WHERE census_designated_place = "Westmont" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_14 (venue VARCHAR, away_team VARCHAR) Question: In which venue was North Melbourne the Away team? [/INST] Here is the SQLite query to answer to the question: In which venue was North Melbourne the Away team?: ``` SELECT venue FROM table_name_14 WHERE away_team = "north melbourne" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_33 (status VARCHAR, date VARCHAR) Question: What status has 15/04/1967 as the date? [/INST] Here is the SQLite query to answer to the question: What status has 15/04/1967 as the date?: ``` SELECT status FROM table_name_33 WHERE date = "15/04/1967" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_72 (attendance VARCHAR, week VARCHAR, date VARCHAR) Question: What was the attendance of the game on September 18, 1965 before week 3? [/INST] Here is the SQLite query to answer to the question: What was the attendance of the game on September 18, 1965 before week 3?: ``` SELECT attendance FROM table_name_72 WHERE week < 3 AND date = "september 18, 1965" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_11 (date VARCHAR, attendance VARCHAR) Question: What date has attendance listed as 45,024? [/INST] Here is the SQLite query to answer to the question: What date has attendance listed as 45,024?: ``` SELECT date FROM table_name_11 WHERE attendance = "45,024" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_8 (draws INTEGER, goal_difference VARCHAR, points VARCHAR, wins VARCHAR) Question: What is the highest draws that have 31 for points, wins greater than 12, with a goal difference less than 11? [/INST] Here is the SQLite query to answer to the question: What is the highest draws that have 31 for points, wins greater than 12, with a goal difference less than 11?: ``` SELECT MAX(draws) FROM table_name_8 WHERE points = 31 AND wins > 12 AND goal_difference < 11 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_80 (game INTEGER, record VARCHAR, october VARCHAR) Question: Which Game has a Record of 5–3–1, and an October smaller than 29? [/INST] Here is the SQLite query to answer to the question: Which Game has a Record of 5–3–1, and an October smaller than 29?: ``` SELECT SUM(game) FROM table_name_80 WHERE record = "5–3–1" AND october < 29 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_19047_2 (championship VARCHAR, score_in_the_final VARCHAR) Question: What tournament did she win with a final score of 4–6, 7–5, 6–2? [/INST] Here is the SQLite query to answer to the question: What tournament did she win with a final score of 4–6, 7–5, 6–2?: ``` SELECT championship FROM table_19047_2 WHERE score_in_the_final = "4–6, 7–5, 6–2" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_4 (crowd VARCHAR, venue VARCHAR) Question: How many people watch at Western Oval venue? [/INST] Here is the SQLite query to answer to the question: How many people watch at Western Oval venue?: ``` SELECT COUNT(crowd) FROM table_name_4 WHERE venue = "western oval" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_33 (date VARCHAR, game VARCHAR) Question: What was the date for Game 41? [/INST] Here is the SQLite query to answer to the question: What was the date for Game 41?: ``` SELECT date FROM table_name_33 WHERE game = "41" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_72 (state VARCHAR, current_governor VARCHAR) Question: What state is susana martinez from? [/INST] Here is the SQLite query to answer to the question: What state is susana martinez from?: ``` SELECT state FROM table_name_72 WHERE current_governor = "susana martinez" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_13464416_8 (location_attendance VARCHAR, record VARCHAR) Question: What was the location and attendance when the team's record was 16-44? [/INST] Here is the SQLite query to answer to the question: What was the location and attendance when the team's record was 16-44?: ``` SELECT location_attendance FROM table_13464416_8 WHERE record = "16-44" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_26593762_2 (team VARCHAR, manager VARCHAR) Question: Who is the captain of Neil Warnock's team? [/INST] Here is the SQLite query to answer to the question: Who is the captain of Neil Warnock's team?: ``` SELECT team AS captain FROM table_26593762_2 WHERE manager = "Neil Warnock" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_22824312_1 (hometown VARCHAR, player VARCHAR) Question: What is jim dutcher's hometown? [/INST] Here is the SQLite query to answer to the question: What is jim dutcher's hometown?: ``` SELECT hometown FROM table_22824312_1 WHERE player = "Jim Dutcher" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_27547668_4 (directed_by VARCHAR, written_by VARCHAR) Question: what is the total number of films directy and written by john callaghan? [/INST] Here is the SQLite query to answer to the question: what is the total number of films directy and written by john callaghan?: ``` SELECT COUNT(directed_by) FROM table_27547668_4 WHERE written_by = "John Callaghan" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_2417340_4 (successor VARCHAR, vacator VARCHAR, district VARCHAR) Question: Who was the successor for vacant louisiana 5th [/INST] Here is the SQLite query to answer to the question: Who was the successor for vacant louisiana 5th: ``` SELECT successor FROM table_2417340_4 WHERE vacator = "Vacant" AND district = "Louisiana 5th" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_61 (spanish_voice_actor VARCHAR, french_voice_actor VARCHAR) Question: Which Spanish voice actor does the same character as French voice actor Dennis Boileau? [/INST] Here is the SQLite query to answer to the question: Which Spanish voice actor does the same character as French voice actor Dennis Boileau?: ``` SELECT spanish_voice_actor FROM table_name_61 WHERE french_voice_actor = "dennis boileau" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE customers (customer_id VARCHAR, customer_name VARCHAR); CREATE TABLE customers_policies (customer_id VARCHAR) Question: How many policies are listed for the customer named "Dayana Robel"? [/INST] Here is the SQLite query to answer to the question: How many policies are listed for the customer named "Dayana Robel"?: ``` SELECT COUNT(*) FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name = "Dayana Robel" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_85 (state___territory VARCHAR, building VARCHAR) Question: What state/territory has lovett tower as the building? [/INST] Here is the SQLite query to answer to the question: What state/territory has lovett tower as the building?: ``` SELECT state___territory FROM table_name_85 WHERE building = "lovett tower" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_41 (stadium VARCHAR, date VARCHAR) Question: What is the Stadium held on november 29? [/INST] Here is the SQLite query to answer to the question: What is the Stadium held on november 29?: ``` SELECT stadium FROM table_name_41 WHERE date = "november 29" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_27671835_3 (members_lost INTEGER, net_change VARCHAR) Question: What is the lowest number of members lost when the net change is βˆ’1? [/INST] Here is the SQLite query to answer to the question: What is the lowest number of members lost when the net change is βˆ’1?: ``` SELECT MIN(members_lost) FROM table_27671835_3 WHERE net_change = "βˆ’1" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_2676980_4 (participating_parties VARCHAR, registered_voters VARCHAR) Question: What is the number of participating parties when registered voters totaled 643629? [/INST] Here is the SQLite query to answer to the question: What is the number of participating parties when registered voters totaled 643629?: ``` SELECT COUNT(participating_parties) FROM table_2676980_4 WHERE registered_voters = 643629 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE stadium (name VARCHAR, capacity VARCHAR) Question: Find the name of the stadium that has the maximum capacity. [/INST] Here is the SQLite query to answer to the question: Find the name of the stadium that has the maximum capacity.: ``` SELECT name FROM stadium ORDER BY capacity DESC LIMIT 1 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_70 (high_rebounds VARCHAR, game VARCHAR) Question: What is the High rebounds of a Game with 56? [/INST] Here is the SQLite query to answer to the question: What is the High rebounds of a Game with 56?: ``` SELECT high_rebounds FROM table_name_70 WHERE game = 56 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_95 (school_club_team VARCHAR, player VARCHAR) Question: Which School/Club Team does Vince Carter Play for? [/INST] Here is the SQLite query to answer to the question: Which School/Club Team does Vince Carter Play for?: ``` SELECT school_club_team FROM table_name_95 WHERE player = "vince carter" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_30 (senior_status VARCHAR, chief_judge VARCHAR) Question: Which Senior status has a Chief Judge of 1991–1995? [/INST] Here is the SQLite query to answer to the question: Which Senior status has a Chief Judge of 1991–1995?: ``` SELECT senior_status FROM table_name_30 WHERE chief_judge = "1991–1995" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_36 (competition VARCHAR, result VARCHAR, score VARCHAR) Question: What is the competition type of the event with a result of 3-2 and a score of 2-1? [/INST] Here is the SQLite query to answer to the question: What is the competition type of the event with a result of 3-2 and a score of 2-1?: ``` SELECT competition FROM table_name_36 WHERE result = "3-2" AND score = "2-1" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_19 (year INTEGER, moves VARCHAR, opening VARCHAR, result VARCHAR, black VARCHAR) Question: What year had a black of Kramnik, opening of E05 Catalan Opening, moves greater than 38, and a result of ½–½? [/INST] Here is the SQLite query to answer to the question: What year had a black of Kramnik, opening of E05 Catalan Opening, moves greater than 38, and a result of ½–½?: ``` SELECT MAX(year) FROM table_name_19 WHERE result = "½–½" AND black = "kramnik" AND opening = "e05 catalan opening" AND moves > 38 ```