inputs
stringlengths
400
1.34k
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the data on January 15-16 if the data recorded June 10-11 is June 10, 1964? ### Context: CREATE TABLE table_25216791_3 (january_15_16 VARCHAR, june_10_11 VARCHAR) ### Response: ### Response: SELECT january_15_16 FROM table_25216791_3 WHERE june_10_11 = "June 10, 1964"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the opponent in Game 44? ### Context: CREATE TABLE table_name_98 (opponent VARCHAR, game VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_98 WHERE game = "44"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many high points were there in the game 67? ### Context: CREATE TABLE table_11960944_7 (high_points VARCHAR, game VARCHAR) ### Response: ### Response: SELECT COUNT(high_points) FROM table_11960944_7 WHERE game = 67</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the sum of gold medals won by teams that won fewer than 3 silver medals, more than 1 total medal, and rank 10? ### Context: CREATE TABLE table_name_51 (gold INTEGER, total VARCHAR, silver VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT SUM(gold) FROM table_name_51 WHERE silver < 3 AND rank = "10" AND total > 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Overall has a Round larger than 7, a Pick larger than 13, and a Name of tony hall? ### Context: CREATE TABLE table_name_88 (overall INTEGER, name VARCHAR, round VARCHAR, pick VARCHAR) ### Response: ### Response: SELECT AVG(overall) FROM table_name_88 WHERE round > 7 AND pick > 13 AND name = "tony hall"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How much money does the player with a score of 74-71-76-76=297 have? ### Context: CREATE TABLE table_name_5 (money___$__ VARCHAR, score VARCHAR) ### Response: ### Response: SELECT money___$__ FROM table_name_5 WHERE score = 74 - 71 - 76 - 76 = 297</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who made the decision when toronto was the home team? ### Context: CREATE TABLE table_name_21 (decision VARCHAR, home VARCHAR) ### Response: ### Response: SELECT decision FROM table_name_21 WHERE home = "toronto"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the total number of points when draw is 4? ### Context: CREATE TABLE table_name_71 (points VARCHAR, draw VARCHAR) ### Response: ### Response: SELECT COUNT(points) FROM table_name_71 WHERE draw = 4</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the highest taijijian with a 9.87 taijiquan and a total less than 19.77? ### Context: CREATE TABLE table_name_20 (taijijian INTEGER, taijiquan VARCHAR, total VARCHAR) ### Response: ### Response: SELECT MAX(taijijian) FROM table_name_20 WHERE taijiquan = 9.87 AND total < 19.77</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the opponent at the game when the record was 54-58? ### Context: CREATE TABLE table_name_13 (opponent VARCHAR, record VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_13 WHERE record = "54-58"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What Venue has a Past Season of 2nd? ### Context: CREATE TABLE table_name_89 (venue VARCHAR, past_season VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_89 WHERE past_season = "2nd"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many points did piritas klaipėda get? ### Context: CREATE TABLE table_16034882_4 (points VARCHAR, club VARCHAR) ### Response: ### Response: SELECT points FROM table_16034882_4 WHERE club = "Piritas Klaipėda"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the smallest total from Japan with a rank larger than 3? ### Context: CREATE TABLE table_name_95 (total INTEGER, nation VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT MIN(total) FROM table_name_95 WHERE nation = "japan" AND rank > 3</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What tournament has q2 as the 2004? ### Context: CREATE TABLE table_name_66 (tournament VARCHAR) ### Response: ### Response: SELECT tournament FROM table_name_66 WHERE 2004 = "q2"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Runner-up with the tier was tier ii, and a Winner of gigi fernández natalia zvereva 5–7, 6–1, 6–4? ### Context: CREATE TABLE table_name_43 (runner_up VARCHAR, tier VARCHAR, winner VARCHAR) ### Response: ### Response: SELECT runner_up FROM table_name_43 WHERE tier = "tier ii" AND winner = "gigi fernández natalia zvereva 5–7, 6–1, 6–4"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Outcome has a Score of 4–6 3–6? ### Context: CREATE TABLE table_name_30 (outcome VARCHAR, score VARCHAR) ### Response: ### Response: SELECT outcome FROM table_name_30 WHERE score = "4–6 3–6"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: In what time period were 354 built? ### Context: CREATE TABLE table_name_13 (period VARCHAR, built VARCHAR) ### Response: ### Response: SELECT period FROM table_name_13 WHERE built = "354"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Spoofed title is from February 1998? ### Context: CREATE TABLE table_name_47 (spoofed_title VARCHAR, date VARCHAR) ### Response: ### Response: SELECT spoofed_title FROM table_name_47 WHERE date = "february 1998"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who made the decision on the game where the record was 29-28-12? ### Context: CREATE TABLE table_27537518_9 (decision VARCHAR, record VARCHAR) ### Response: ### Response: SELECT decision FROM table_27537518_9 WHERE record = "29-28-12"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the rank of the team having 3 bronzes and 0 silver? ### Context: CREATE TABLE table_name_79 (rank VARCHAR, bronze VARCHAR, silver VARCHAR) ### Response: ### Response: SELECT rank FROM table_name_79 WHERE bronze = 3 AND silver = 0</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What season was Freiburger FC the RL Süd (2nd) team? ### Context: CREATE TABLE table_20217456_7 (season VARCHAR, rl_süd__2nd_ VARCHAR) ### Response: ### Response: SELECT season FROM table_20217456_7 WHERE rl_süd__2nd_ = "Freiburger FC"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Find the id of the order which is shipped most recently. ### Context: CREATE TABLE shipments (order_id VARCHAR, shipment_date INTEGER) ### Response: ### Response: SELECT order_id FROM shipments WHERE shipment_date = (SELECT MAX(shipment_date) FROM shipments)</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What are the titles of segment c when segment d is motorcycle brake locks? ### Context: CREATE TABLE table_15187735_21 (segment_c VARCHAR, segment_d VARCHAR) ### Response: ### Response: SELECT segment_c FROM table_15187735_21 WHERE segment_d = "Motorcycle Brake Locks"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Tie number for the match that had away team of Scunthorpe & Lindsey United? ### Context: CREATE TABLE table_name_61 (tie_no VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT tie_no FROM table_name_61 WHERE away_team = "scunthorpe & lindsey united"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the number of top-25s in events under 13, cuts made under 3, and 1 top-10? ### Context: CREATE TABLE table_name_47 (top_25 VARCHAR, top_10 VARCHAR, events VARCHAR, cuts_made VARCHAR) ### Response: ### Response: SELECT top_25 FROM table_name_47 WHERE events < 13 AND cuts_made < 3 AND top_10 = 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many millions of U.S. viewers watched the episode with the production code of 3AJN01? ### Context: CREATE TABLE table_23242958_1 (us_viewers__millions_ VARCHAR, production_code VARCHAR) ### Response: ### Response: SELECT us_viewers__millions_ FROM table_23242958_1 WHERE production_code = "3AJN01"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the highest game with a 3-2 record? ### Context: CREATE TABLE table_name_79 (game INTEGER, record VARCHAR) ### Response: ### Response: SELECT MAX(game) FROM table_name_79 WHERE record = "3-2"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what is the state for reason for change is resigned may 15, 1820? ### Context: CREATE TABLE table_225099_3 (state__class_ VARCHAR, reason_for_change VARCHAR) ### Response: ### Response: SELECT state__class_ FROM table_225099_3 WHERE reason_for_change = "Resigned May 15, 1820"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the smallest pick for the player, brett lindros? ### Context: CREATE TABLE table_1013129_1 (pick INTEGER, player VARCHAR) ### Response: ### Response: SELECT MIN(pick) FROM table_1013129_1 WHERE player = "Brett Lindros"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: From what country is the player with a score of 68-71-76=215? ### Context: CREATE TABLE table_name_70 (country VARCHAR, score VARCHAR) ### Response: ### Response: SELECT country FROM table_name_70 WHERE score = 68 - 71 - 76 = 215</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Novelty of the dinosaur, whose naming Author was Galton? ### Context: CREATE TABLE table_name_37 (novelty VARCHAR, authors VARCHAR) ### Response: ### Response: SELECT novelty FROM table_name_37 WHERE authors = "galton"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many places named asan-maina? ### Context: CREATE TABLE table_2588674_1 (region VARCHAR, village VARCHAR) ### Response: ### Response: SELECT COUNT(region) FROM table_2588674_1 WHERE village = "Asan-Maina"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the official rating 16-39 of episode 9? ### Context: CREATE TABLE table_29773532_21 (official_rating_16_39 VARCHAR, episode VARCHAR) ### Response: ### Response: SELECT official_rating_16_39 FROM table_29773532_21 WHERE episode = 9</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Score of the competition on October 25? ### Context: CREATE TABLE table_name_47 (score VARCHAR, date VARCHAR) ### Response: ### Response: SELECT score FROM table_name_47 WHERE date = "october 25"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What country submitted the movie the orphanage? ### Context: CREATE TABLE table_12842068_1 (submitting_country VARCHAR, film_title_used_in_nomination VARCHAR) ### Response: ### Response: SELECT submitting_country FROM table_12842068_1 WHERE film_title_used_in_nomination = "The Orphanage"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What's the try bonus that had 423 points? ### Context: CREATE TABLE table_name_38 (try_bonus VARCHAR, points_for VARCHAR) ### Response: ### Response: SELECT try_bonus FROM table_name_38 WHERE points_for = "423"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When Alinna D Penta was the cyber girl in week 3, who was the cyber girl in week 1? ### Context: CREATE TABLE table_name_69 (week_1 VARCHAR, week_3 VARCHAR) ### Response: ### Response: SELECT week_1 FROM table_name_69 WHERE week_3 = "alinna d penta"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which outcomes have a final score of 6–3, 6–2? ### Context: CREATE TABLE table_22834834_3 (outcome VARCHAR, score_in_the_final VARCHAR) ### Response: ### Response: SELECT outcome FROM table_22834834_3 WHERE score_in_the_final = "6–3, 6–2"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the pole position of the belgian grand prix? ### Context: CREATE TABLE table_1140078_2 (pole_position VARCHAR, race VARCHAR) ### Response: ### Response: SELECT pole_position FROM table_1140078_2 WHERE race = "Belgian Grand Prix"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which winning driver is located in Imola? ### Context: CREATE TABLE table_name_48 (winning_driver VARCHAR, location VARCHAR) ### Response: ### Response: SELECT winning_driver FROM table_name_48 WHERE location = "imola"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: For the team whose shirt sponsor is Evonik, who is the kitmaker? ### Context: CREATE TABLE table_name_54 (kitmaker VARCHAR, shirt_sponsor VARCHAR) ### Response: ### Response: SELECT kitmaker FROM table_name_54 WHERE shirt_sponsor = "evonik"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many points were scored on pole services? ### Context: CREATE TABLE table_26124171_1 (points VARCHAR, team VARCHAR) ### Response: ### Response: SELECT points FROM table_26124171_1 WHERE team = "Pole Services"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the earliest year for a car with 3 points and Cooper t20 chassis? ### Context: CREATE TABLE table_name_36 (year INTEGER, points VARCHAR, chassis VARCHAR) ### Response: ### Response: SELECT MIN(year) FROM table_name_36 WHERE points = 3 AND chassis = "cooper t20"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Competition has a Year of 1993? ### Context: CREATE TABLE table_name_30 (competition VARCHAR, year VARCHAR) ### Response: ### Response: SELECT competition FROM table_name_30 WHERE year = 1993</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many class AA in the year 2002-03 ### Context: CREATE TABLE table_14747043_1 (class_aA VARCHAR, school_year VARCHAR) ### Response: ### Response: SELECT COUNT(class_aA) FROM table_14747043_1 WHERE school_year = "2002-03"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What did the United States score in the T5? ### Context: CREATE TABLE table_name_88 (score VARCHAR, country VARCHAR, place VARCHAR) ### Response: ### Response: SELECT score FROM table_name_88 WHERE country = "united states" AND place = "t5"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many weeks have an Opponent of at new york giants? ### Context: CREATE TABLE table_name_81 (week VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT COUNT(week) FROM table_name_81 WHERE opponent = "at new york giants"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the winner when the runner-up was Guangzhou Apollo? ### Context: CREATE TABLE table_name_34 (winners VARCHAR, runners_up VARCHAR) ### Response: ### Response: SELECT winners FROM table_name_34 WHERE runners_up = "guangzhou apollo"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the total grid number that has 14 laps and a time of +29.483? ### Context: CREATE TABLE table_name_6 (grid VARCHAR, laps VARCHAR, time VARCHAR) ### Response: ### Response: SELECT COUNT(grid) FROM table_name_6 WHERE laps = 14 AND time = "+29.483"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what is the record for date december 11? ### Context: CREATE TABLE table_27756314_7 (record VARCHAR, date VARCHAR) ### Response: ### Response: SELECT record FROM table_27756314_7 WHERE date = "December 11"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the final score of the Paul Goldstein match? ### Context: CREATE TABLE table_name_96 (score VARCHAR, opponent_in_the_final VARCHAR) ### Response: ### Response: SELECT score FROM table_name_96 WHERE opponent_in_the_final = "paul goldstein"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: In what round did Mike Newton Thomas Erdos Ben Collins won the LMP2? ### Context: CREATE TABLE table_24865763_2 (rnd VARCHAR, lmp2_winning_team VARCHAR) ### Response: ### Response: SELECT rnd FROM table_24865763_2 WHERE lmp2_winning_team = "Mike Newton Thomas Erdos Ben Collins"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the lowest total that has a rank less than 8, a silver greater than 6, and 20 as the bronze? ### Context: CREATE TABLE table_name_70 (total INTEGER, bronze VARCHAR, rank VARCHAR, silver VARCHAR) ### Response: ### Response: SELECT MIN(total) FROM table_name_70 WHERE rank < 8 AND silver > 6 AND bronze = 20</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Richard Crump picked after the 114 pick was drafted in what round? ### Context: CREATE TABLE table_name_99 (round VARCHAR, pick__number VARCHAR, player VARCHAR) ### Response: ### Response: SELECT round FROM table_name_99 WHERE pick__number > 114 AND player = "richard crump"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many runner-ups were there when the show went to Japan? ### Context: CREATE TABLE table_178242_7 (runner_up VARCHAR, international_destination VARCHAR) ### Response: ### Response: SELECT COUNT(runner_up) FROM table_178242_7 WHERE international_destination = "Japan"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Year that has Notes of dnf? ### Context: CREATE TABLE table_name_17 (year INTEGER, notes VARCHAR) ### Response: ### Response: SELECT MIN(year) FROM table_name_17 WHERE notes = "dnf"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Find the male friend of Alice whose job is a doctor? ### Context: CREATE TABLE PersonFriend (friend VARCHAR, name VARCHAR); CREATE TABLE Person (name VARCHAR, job VARCHAR, gender VARCHAR) ### Response: ### Response: SELECT T2.friend FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T2.name = 'Alice' AND T1.gender = 'male' AND T1.job = 'doctor'</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many points were earned with a Chassis of a Ferrari 156? ### Context: CREATE TABLE table_name_78 (points VARCHAR, chassis VARCHAR) ### Response: ### Response: SELECT COUNT(points) FROM table_name_78 WHERE chassis = "ferrari 156"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the opponent for astrodome ### Context: CREATE TABLE table_14418812_1 (opponent VARCHAR, game_site VARCHAR) ### Response: ### Response: SELECT opponent FROM table_14418812_1 WHERE game_site = "Astrodome"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which To par has a Country of australia, and a Year(s) won of 1990? ### Context: CREATE TABLE table_name_42 (to_par INTEGER, country VARCHAR, year_s__won VARCHAR) ### Response: ### Response: SELECT MIN(to_par) FROM table_name_42 WHERE country = "australia" AND year_s__won = "1990"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What type of release was Napisten Hava? ### Context: CREATE TABLE table_name_81 (release_type VARCHAR, album VARCHAR) ### Response: ### Response: SELECT release_type FROM table_name_81 WHERE album = "napisten hava"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the vacator for the district of Nebraska at-large? ### Context: CREATE TABLE table_2417390_4 (vacator VARCHAR, district VARCHAR) ### Response: ### Response: SELECT vacator FROM table_2417390_4 WHERE district = "Nebraska At-large"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Show the guest first names, start dates, and end dates of all the apartment bookings. ### Context: CREATE TABLE Apartment_Bookings (booking_start_date VARCHAR, guest_id VARCHAR); CREATE TABLE Guests (guest_first_name VARCHAR, guest_id VARCHAR) ### Response: ### Response: SELECT T2.guest_first_name, T1.booking_start_date, T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id = T2.guest_id</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the lowest played for the entry with position of 2 and fewer than 9 losses? ### Context: CREATE TABLE table_name_61 (played INTEGER, position VARCHAR, losses VARCHAR) ### Response: ### Response: SELECT MIN(played) FROM table_name_61 WHERE position = 2 AND losses < 9</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the finish with 51 laps? ### Context: CREATE TABLE table_name_98 (finish VARCHAR, laps VARCHAR) ### Response: ### Response: SELECT finish FROM table_name_98 WHERE laps = 51</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which 1st Party has an election in 1847? ### Context: CREATE TABLE table_name_28 (election VARCHAR) ### Response: ### Response: SELECT 1 AS st_party FROM table_name_28 WHERE election = "1847"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the school/club team for 9 ### Context: CREATE TABLE table_15463188_16 (school_club_team VARCHAR, number VARCHAR) ### Response: ### Response: SELECT school_club_team FROM table_15463188_16 WHERE number = "9"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Deloria & Boas of ų, and a Dakota Mission of un had what Buechel & Manhart spelling (pronunciation)? ### Context: CREATE TABLE table_name_27 (buechel_ VARCHAR, _manhart_spelling__pronunciation_ VARCHAR, dakota_mission VARCHAR, deloria_ VARCHAR, _boas VARCHAR) ### Response: ### Response: SELECT buechel_ & _manhart_spelling__pronunciation_ FROM table_name_27 WHERE deloria_ & _boas = "ų" AND dakota_mission = "un"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the total Crowd number for the Away team of Hawthorn? ### Context: CREATE TABLE table_name_15 (crowd VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT COUNT(crowd) FROM table_name_15 WHERE away_team = "hawthorn"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what is the total number o production code where us viewers is 2.76? ### Context: CREATE TABLE table_21726793_1 (production_code VARCHAR, us_viewers__million_ VARCHAR) ### Response: ### Response: SELECT COUNT(production_code) FROM table_21726793_1 WHERE us_viewers__million_ = "2.76"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the segment A for the episode with Children's Ride-on Cars for segment D? ### Context: CREATE TABLE table_name_10 (segment_a VARCHAR, segment_d VARCHAR) ### Response: ### Response: SELECT segment_a FROM table_name_10 WHERE segment_d = "children's ride-on cars"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: The deputy that left office in 2003 took office in which year? ### Context: CREATE TABLE table_name_90 (took_office VARCHAR, left_office VARCHAR) ### Response: ### Response: SELECT took_office FROM table_name_90 WHERE left_office = "2003"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Find the first name and gpa of the students whose gpa is lower than the average gpa of all students. ### Context: CREATE TABLE student (stu_fname VARCHAR, stu_gpa INTEGER) ### Response: ### Response: SELECT stu_fname, stu_gpa FROM student WHERE stu_gpa < (SELECT AVG(stu_gpa) FROM student)</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What player from the United States had a total of 297? ### Context: CREATE TABLE table_name_33 (player VARCHAR, country VARCHAR, total VARCHAR) ### Response: ### Response: SELECT player FROM table_name_33 WHERE country = "united states" AND total = 297</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the number of people who attended the game later than game 6? ### Context: CREATE TABLE table_name_68 (attendance VARCHAR, game INTEGER) ### Response: ### Response: SELECT COUNT(attendance) FROM table_name_68 WHERE game > 6</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What's the track for 1978? ### Context: CREATE TABLE table_name_47 (track VARCHAR, year VARCHAR) ### Response: ### Response: SELECT track FROM table_name_47 WHERE year = 1978</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the score of the match in which Portsmouth was the Away team? ### Context: CREATE TABLE table_name_23 (score_1 VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT score_1 FROM table_name_23 WHERE away_team = "portsmouth"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is Paul Tracy's best time racing on the Forsythe Racing team? ### Context: CREATE TABLE table_name_62 (best VARCHAR, team VARCHAR, name VARCHAR) ### Response: ### Response: SELECT best FROM table_name_62 WHERE team = "forsythe racing" AND name = "paul tracy"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many Drawn did Coach Francis Cummins have with less than 4 Lost? ### Context: CREATE TABLE table_name_99 (drawn INTEGER, lost VARCHAR, coach VARCHAR) ### Response: ### Response: SELECT SUM(drawn) FROM table_name_99 WHERE lost < 4 AND coach = "francis cummins"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the maximum fastest lap speed in race named 'Monaco Grand Prix' in 2008 ? ### Context: CREATE TABLE results (fastestlapspeed INTEGER, raceid VARCHAR); CREATE TABLE races (raceid VARCHAR, year VARCHAR, name VARCHAR) ### Response: ### Response: SELECT MAX(T2.fastestlapspeed) FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year = 2008 AND T1.name = "Monaco Grand Prix"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many people attended on december 26, 1982? ### Context: CREATE TABLE table_name_78 (attendance VARCHAR, date VARCHAR) ### Response: ### Response: SELECT attendance FROM table_name_78 WHERE date = "december 26, 1982"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the opponent when Brown (9-5) took the loss? ### Context: CREATE TABLE table_name_62 (opponent VARCHAR, loss VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_62 WHERE loss = "brown (9-5)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which club had football at Mitchel Athletic Field? ### Context: CREATE TABLE table_name_43 (club VARCHAR, sport VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT club FROM table_name_43 WHERE sport = "football" AND venue = "mitchel athletic field"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the 1991 when 1992 and 1990 are 1R? ### Context: CREATE TABLE table_name_69 (Id VARCHAR) ### Response: ### Response: SELECT 1991 FROM table_name_69 WHERE 1992 = "1r" AND 1990 = "1r"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many goal differences have Played larger than 44? ### Context: CREATE TABLE table_name_99 (goal_difference INTEGER, played INTEGER) ### Response: ### Response: SELECT SUM(goal_difference) FROM table_name_99 WHERE played > 44</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What label released a CD in 1988? ### Context: CREATE TABLE table_name_37 (label VARCHAR, date VARCHAR, format VARCHAR) ### Response: ### Response: SELECT label FROM table_name_37 WHERE date = "1988" AND format = "cd"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Player has a Score of 67-72-71-75=285? ### Context: CREATE TABLE table_name_22 (player VARCHAR, score VARCHAR) ### Response: ### Response: SELECT player FROM table_name_22 WHERE score = 67 - 72 - 71 - 75 = 285</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many directors have vietnamese titles of Gate, Gate, Paragate? ### Context: CREATE TABLE table_22128871_1 (director VARCHAR, vietnamese_title VARCHAR) ### Response: ### Response: SELECT COUNT(director) FROM table_22128871_1 WHERE vietnamese_title = "Gate, gate, paragate"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What event has the result of 7th (5-6)? ### Context: CREATE TABLE table_name_82 (event VARCHAR, result VARCHAR) ### Response: ### Response: SELECT event FROM table_name_82 WHERE result = "7th (5-6)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Year has a Quarter-Finalists of £1,000, and Semi-Finalists of £1,500? ### Context: CREATE TABLE table_name_16 (year VARCHAR, quarter_finalists VARCHAR, semi_finalists VARCHAR) ### Response: ### Response: SELECT year FROM table_name_16 WHERE quarter_finalists = "£1,000" AND semi_finalists = "£1,500"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Tell me the bullet tip color of headstamp id of h1z ### Context: CREATE TABLE table_name_54 (bullet_tip_color VARCHAR, headstamp_id VARCHAR) ### Response: ### Response: SELECT bullet_tip_color FROM table_name_54 WHERE headstamp_id = "h1z"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the highest grid for rider Fonsi Nieto? ### Context: CREATE TABLE table_name_7 (grid INTEGER, rider VARCHAR) ### Response: ### Response: SELECT MAX(grid) FROM table_name_7 WHERE rider = "fonsi nieto"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which score has a record of 18-21-7? ### Context: CREATE TABLE table_name_36 (score VARCHAR, record VARCHAR) ### Response: ### Response: SELECT score FROM table_name_36 WHERE record = "18-21-7"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which podiums did the Williams team have with a margin of defeat of 2? ### Context: CREATE TABLE table_10753917_1 (podiums VARCHAR, team VARCHAR, margin_of_defeat VARCHAR) ### Response: ### Response: SELECT podiums FROM table_10753917_1 WHERE team = "Williams" AND margin_of_defeat = "2"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What city is the housemate who entered the house on day 1 and whose profession was a tv presenter from? ### Context: CREATE TABLE table_name_84 (city VARCHAR, entered_the_house VARCHAR, profession VARCHAR) ### Response: ### Response: SELECT city FROM table_name_84 WHERE entered_the_house = "day 1" AND profession = "tv presenter"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the (M) Finishe position when ray kaduck was president and corey bowen was coach? ### Context: CREATE TABLE table_name_44 (_m__finishing_position VARCHAR, president VARCHAR, _m__coach VARCHAR) ### Response: ### Response: SELECT _m__finishing_position FROM table_name_44 WHERE president = "ray kaduck" AND _m__coach = "corey bowen"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: list all female (sex is F) candidate names in the alphabetical order. ### Context: CREATE TABLE candidate (people_id VARCHAR); CREATE TABLE people (name VARCHAR, people_id VARCHAR, sex VARCHAR) ### Response: ### Response: SELECT t1.name FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id WHERE t1.sex = 'F' ORDER BY t1.name</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which circuit was located in st. petersburg, florida? ### Context: CREATE TABLE table_30134667_2 (circuit VARCHAR, location VARCHAR) ### Response: ### Response: SELECT circuit FROM table_30134667_2 WHERE location = "St. Petersburg, Florida"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which mountain range includes Mount Hubbard? ### Context: CREATE TABLE table_name_64 (mountain_range VARCHAR, mountain_peak VARCHAR) ### Response: ### Response: SELECT mountain_range FROM table_name_64 WHERE mountain_peak = "mount hubbard"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many games are shown when the is location attendance is phog allen fieldhouse , lawrence, ks (16,300)? ### Context: CREATE TABLE table_30054758_3 (game VARCHAR, location_attendance VARCHAR) ### Response: ### Response: SELECT COUNT(game) FROM table_30054758_3 WHERE location_attendance = "Phog Allen Fieldhouse , Lawrence, KS (16,300)"</s>