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 is the total number of Game, when High Assists is "Rajon Rondo (6)"? ### Context: CREATE TABLE table_name_83 (game VARCHAR, high_assists VARCHAR) ### Response: ### Response: SELECT COUNT(game) FROM table_name_83 WHERE high_assists = "rajon rondo (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 is listed for the 2011 that has a 2005 of 4.2%? ### Context: CREATE TABLE table_name_8 (Id VARCHAR) ### Response: ### Response: SELECT 2011 FROM table_name_8 WHERE 2005 = "4.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: When did series number 65 originally air? ### Context: CREATE TABLE table_21304131_2 (original_air_date VARCHAR, no_in_series VARCHAR) ### Response: ### Response: SELECT original_air_date FROM table_21304131_2 WHERE no_in_series = 65</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 tournament had a margin of victory of 6 strokes? ### Context: CREATE TABLE table_name_34 (tournament VARCHAR, margin_of_victory VARCHAR) ### Response: ### Response: SELECT tournament FROM table_name_34 WHERE margin_of_victory = "6 strokes"</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 Pick # of Saint Vincent College? ### Context: CREATE TABLE table_name_78 (pick__number INTEGER, college VARCHAR) ### Response: ### Response: SELECT MIN(pick__number) FROM table_name_78 WHERE college = "saint vincent college"</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 is the event at lake oval? ### Context: CREATE TABLE table_name_79 (date VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT date FROM table_name_79 WHERE venue = "lake oval"</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 most attendance for october 11 ### Context: CREATE TABLE table_name_75 (attendance INTEGER, date VARCHAR) ### Response: ### Response: SELECT MAX(attendance) FROM table_name_75 WHERE date = "october 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: Which venue closed in 1996? ### Context: CREATE TABLE table_name_86 (venue VARCHAR, closed VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_86 WHERE closed = "1996"</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 top-10 numbers had a top 25 of more than 6 with less than 2 wins? ### Context: CREATE TABLE table_name_61 (top_10 VARCHAR, top_25 VARCHAR, wins VARCHAR) ### Response: ### Response: SELECT COUNT(top_10) FROM table_name_61 WHERE top_25 > 6 AND wins < 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: How many years have a time of 1:42.086? ### Context: CREATE TABLE table_16308030_1 (year VARCHAR, time VARCHAR) ### Response: ### Response: SELECT COUNT(year) FROM table_16308030_1 WHERE time = "1:42.086"</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 played home team at Victoria Park? ### Context: CREATE TABLE table_name_41 (home_team VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT home_team FROM table_name_41 WHERE venue = "victoria park"</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 had the high assists on the date December 12? ### Context: CREATE TABLE table_11960944_4 (high_assists VARCHAR, date VARCHAR) ### Response: ### Response: SELECT high_assists FROM table_11960944_4 WHERE date = "December 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's the score on january 5 with a hasek decision? ### Context: CREATE TABLE table_name_28 (score VARCHAR, decision VARCHAR, date VARCHAR) ### Response: ### Response: SELECT score FROM table_name_28 WHERE decision = "hasek" AND date = "january 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: What is the crowd size of the Away team, Fitzroy? ### Context: CREATE TABLE table_name_95 (crowd VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT crowd FROM table_name_95 WHERE away_team = "fitzroy"</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: On July 17, 2008, what was the total number of lead maragin? ### Context: CREATE TABLE table_16751596_13 (lead_maragin VARCHAR, dates_administered VARCHAR) ### Response: ### Response: SELECT COUNT(lead_maragin) FROM table_16751596_13 WHERE dates_administered = "July 17, 2008"</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 L2 cache for the core i7-2635QM? ### Context: CREATE TABLE table_name_65 (l2_cache VARCHAR, model_number VARCHAR) ### Response: ### Response: SELECT l2_cache FROM table_name_65 WHERE model_number = "core i7-2635qm"</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 crowd size in the match South Melbourne played at home? ### Context: CREATE TABLE table_name_28 (crowd VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT crowd FROM table_name_28 WHERE home_team = "south melbourne"</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 average Laps for a grid smaller than 17, and a Constructor of williams - bmw, driven by jenson button? ### Context: CREATE TABLE table_name_49 (laps INTEGER, driver VARCHAR, grid VARCHAR, constructor VARCHAR) ### Response: ### Response: SELECT AVG(laps) FROM table_name_49 WHERE grid < 17 AND constructor = "williams - bmw" AND driver = "jenson button"</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 time of the driver in grid 2? ### Context: CREATE TABLE table_name_54 (time_retired VARCHAR, grid INTEGER) ### Response: ### Response: SELECT time_retired FROM table_name_54 WHERE grid < 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: The game number of 8 had a record of what? ### Context: CREATE TABLE table_10361453_2 (record VARCHAR, game VARCHAR) ### Response: ### Response: SELECT record FROM table_10361453_2 WHERE game = 8</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 were the investment earnings in a year when other local sources were $2,670,060 after 2001? ### Context: CREATE TABLE table_name_3 (investment_earnings VARCHAR, year VARCHAR, other_local_sources VARCHAR) ### Response: ### Response: SELECT investment_earnings FROM table_name_3 WHERE year > 2001 AND other_local_sources = "$2,670,060"</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 average a contestant from Iowa with a swimsuit smaller than 9.267 has? ### Context: CREATE TABLE table_name_14 (average INTEGER, state VARCHAR, swimsuit VARCHAR) ### Response: ### Response: SELECT MAX(average) FROM table_name_14 WHERE state = "iowa" AND swimsuit < 9.267</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 average lane for china? ### Context: CREATE TABLE table_name_52 (lane INTEGER, nationality VARCHAR) ### Response: ### Response: SELECT AVG(lane) FROM table_name_52 WHERE nationality = "china"</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 mascots for schools with enrollments above the average? ### Context: CREATE TABLE school (mascot VARCHAR, enrollment INTEGER) ### Response: ### Response: SELECT mascot FROM school WHERE enrollment > (SELECT AVG(enrollment) FROM school)</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 chassis has patrick racing as an entrant, with a start greater than 6? ### Context: CREATE TABLE table_name_69 (chassis VARCHAR, entrant VARCHAR, start VARCHAR) ### Response: ### Response: SELECT chassis FROM table_name_69 WHERE entrant = "patrick racing" AND start > 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 Date has a Score of 6–1, 6–2? ### Context: CREATE TABLE table_name_76 (date VARCHAR, score VARCHAR) ### Response: ### Response: SELECT date FROM table_name_76 WHERE score = "6–1, 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 was the highest average for the contestant having an interview score of 8.46? ### Context: CREATE TABLE table_name_84 (average INTEGER, interview VARCHAR) ### Response: ### Response: SELECT MAX(average) FROM table_name_84 WHERE interview = 8.46</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 episode titles have series number 4? ### Context: CREATE TABLE table_28859177_2 (title VARCHAR, series__number VARCHAR) ### Response: ### Response: SELECT COUNT(title) FROM table_28859177_2 WHERE series__number = 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 Score, when Outcome is Loser, and when Edition is 2011? ### Context: CREATE TABLE table_name_32 (score VARCHAR, outcome VARCHAR, edition VARCHAR) ### Response: ### Response: SELECT score FROM table_name_32 WHERE outcome = "loser" AND edition = 2011</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 run 3 of the athlete with a 55.44 run 2? ### Context: CREATE TABLE table_name_86 (run_3 INTEGER, run_2 VARCHAR) ### Response: ### Response: SELECT MAX(run_3) FROM table_name_86 WHERE run_2 = 55.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: Give me the names of customers who have placed orders between 2009-01-01 and 2010-01-01. ### Context: CREATE TABLE orders (customer_id VARCHAR, date_order_placed VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR) ### Response: ### Response: SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.date_order_placed >= "2009-01-01" AND T2.date_order_placed <= "2010-01-01"</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 are the mens doubles and womens singles is wang shixian? ### Context: CREATE TABLE table_13553701_1 (mens_doubles VARCHAR, womens_singles VARCHAR) ### Response: ### Response: SELECT mens_doubles FROM table_13553701_1 WHERE womens_singles = "Wang Shixian"</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 on November 25? ### Context: CREATE TABLE table_13762472_3 (score VARCHAR, date VARCHAR) ### Response: ### Response: SELECT score FROM table_13762472_3 WHERE date = "November 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 is every party with a winner of P. Chidambaram? ### Context: CREATE TABLE table_22753439_1 (party VARCHAR, winner VARCHAR) ### Response: ### Response: SELECT party AS a FROM table_22753439_1 WHERE winner = "P. Chidambaram"</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: On what year was the local government area with a surface of 4563 square kilometers established? ### Context: CREATE TABLE table_23685890_2 (est VARCHAR, land_area__km²_ VARCHAR) ### Response: ### Response: SELECT est FROM table_23685890_2 WHERE land_area__km²_ = "4563"</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 providers use version 2008? ### Context: CREATE TABLE table_14465871_2 (provider VARCHAR, version VARCHAR) ### Response: ### Response: SELECT provider FROM table_14465871_2 WHERE version = "2008"</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 Partizan is Team 2, what is the Agg? ### Context: CREATE TABLE table_name_47 (agg VARCHAR, team_2 VARCHAR) ### Response: ### Response: SELECT agg FROM table_name_47 WHERE team_2 = "partizan"</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 result for director elia schneider's punto y raya? ### Context: CREATE TABLE table_name_25 (result VARCHAR, director VARCHAR, film_title_used_in_nomination VARCHAR) ### Response: ### Response: SELECT result FROM table_name_25 WHERE director = "elia schneider" AND film_title_used_in_nomination = "punto y raya"</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 1985-2007 yamaha v-max honda vfr800 is the example what is the engine is it? ### Context: CREATE TABLE table_22915134_2 (engine VARCHAR, example VARCHAR) ### Response: ### Response: SELECT engine FROM table_22915134_2 WHERE example = "1985-2007 Yamaha V-Max Honda VFR800"</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 Pada 3 has a Pada 2 of चे che? ### Context: CREATE TABLE table_name_27 (pada_3 VARCHAR, pada_2 VARCHAR) ### Response: ### Response: SELECT pada_3 FROM table_name_27 WHERE pada_2 = "चे che"</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 tournament was Dieter Kindlmann a partner? ### Context: CREATE TABLE table_name_51 (tournament VARCHAR, partner VARCHAR) ### Response: ### Response: SELECT tournament FROM table_name_51 WHERE partner = "dieter kindlmann"</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 average rank for players with under 205 matches and under 100 goals? ### Context: CREATE TABLE table_name_92 (rank INTEGER, matches VARCHAR, goals VARCHAR) ### Response: ### Response: SELECT AVG(rank) FROM table_name_92 WHERE matches < 205 AND goals < 100</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 pressure in ultra high vacuum? ### Context: CREATE TABLE table_170097_1 (pressure_in_hpa__mbar_ VARCHAR, vacuum_range VARCHAR) ### Response: ### Response: SELECT pressure_in_hpa__mbar_ FROM table_170097_1 WHERE vacuum_range = "Ultra high vacuum"</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 is the Winning Applicant of Block 10B in Derbyshire Area? ### Context: CREATE TABLE table_name_39 (winning_applicant VARCHAR, block VARCHAR, area VARCHAR) ### Response: ### Response: SELECT winning_applicant FROM table_name_39 WHERE block = "10b" AND area = "derbyshire"</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 Lane, when Mark is "7.93", and when React is less than 0.145? ### Context: CREATE TABLE table_name_8 (lane VARCHAR, mark VARCHAR, react VARCHAR) ### Response: ### Response: SELECT COUNT(lane) FROM table_name_8 WHERE mark = 7.93 AND react < 0.145</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 space crusade when the english is of finnish ### Context: CREATE TABLE table_name_7 (space_crusade VARCHAR, english VARCHAR) ### Response: ### Response: SELECT space_crusade FROM table_name_7 WHERE english = "finnish"</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 positions have Points of 30-8 and more than 25 goals? ### Context: CREATE TABLE table_name_73 (position VARCHAR, points VARCHAR, goals_for VARCHAR) ### Response: ### Response: SELECT COUNT(position) FROM table_name_73 WHERE points = "30-8" AND goals_for > 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 was the record of the team with head coach Steve Spurrier? ### Context: CREATE TABLE table_name_8 (record VARCHAR, head_coach VARCHAR) ### Response: ### Response: SELECT record FROM table_name_8 WHERE head_coach = "steve spurrier"</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 site with game of game 6 ### Context: CREATE TABLE table_name_49 (site VARCHAR, game VARCHAR) ### Response: ### Response: SELECT site FROM table_name_49 WHERE game = "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 did Melbourne score as the home team? ### Context: CREATE TABLE table_name_88 (home_team VARCHAR) ### Response: ### Response: SELECT home_team AS score FROM table_name_88 WHERE home_team = "melbourne"</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 school of Victor Jones, who was picked further than number 225? ### Context: CREATE TABLE table_name_7 (school VARCHAR, pick VARCHAR, player VARCHAR) ### Response: ### Response: SELECT school FROM table_name_7 WHERE pick > 225 AND player = "victor jones"</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 item whose title is "orange". ### Context: CREATE TABLE item (i_id VARCHAR, title VARCHAR) ### Response: ### Response: SELECT i_id FROM item WHERE title = "orange"</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 Date of Country of United States? ### Context: CREATE TABLE table_name_97 (date VARCHAR, country VARCHAR) ### Response: ### Response: SELECT date FROM table_name_97 WHERE country = "united states"</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 team had a 2008-3 2008 draft? ### Context: CREATE TABLE table_name_1 (school_club_team VARCHAR, draft VARCHAR) ### Response: ### Response: SELECT school_club_team FROM table_name_1 WHERE draft = "2008-3 2008"</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 number episode was Week 4, Part 1? ### Context: CREATE TABLE table_25391981_20 (episode_number VARCHAR, episode VARCHAR) ### Response: ### Response: SELECT episode_number FROM table_25391981_20 WHERE episode = "Week 4, Part 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: What is shown for Austria when Croatia shows Ireland? ### Context: CREATE TABLE table_name_13 (austria VARCHAR, croatia VARCHAR) ### Response: ### Response: SELECT austria FROM table_name_13 WHERE croatia = "ireland"</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 were GD Mcgrath's bowling figures? ### Context: CREATE TABLE table_name_42 (bowling_figures_wickets_runs__overs_ VARCHAR, bowler VARCHAR) ### Response: ### Response: SELECT bowling_figures_wickets_runs__overs_ FROM table_name_42 WHERE bowler = "gd mcgrath"</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 year that regular season is 4th, Rocky Mountain? ### Context: CREATE TABLE table_1241987_1 (year INTEGER, regular_season VARCHAR) ### Response: ### Response: SELECT MIN(year) FROM table_1241987_1 WHERE regular_season = "4th, Rocky Mountain"</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 guest when the result was 0:3? ### Context: CREATE TABLE table_name_56 (guest VARCHAR, result VARCHAR) ### Response: ### Response: SELECT guest FROM table_name_56 WHERE result = "0: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 is the highest goals entry with drawn larger than 6 and goals against 85? ### Context: CREATE TABLE table_name_84 (goals_for INTEGER, goals_against VARCHAR, drawn VARCHAR) ### Response: ### Response: SELECT MAX(goals_for) FROM table_name_84 WHERE goals_against = 85 AND drawn > 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 was the finishing position of Hale Irwin, of the United states? ### Context: CREATE TABLE table_name_96 (finish VARCHAR, country VARCHAR, player VARCHAR) ### Response: ### Response: SELECT finish FROM table_name_96 WHERE country = "united states" AND player = "hale irwin"</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 distance in the round where the supporter was champ car world series ( grand prix of cleveland ) and the tc winning car was pierre kleinubing? ### Context: CREATE TABLE table_28490105_1 (distance VARCHAR, supporting VARCHAR, tc_winning_car VARCHAR) ### Response: ### Response: SELECT distance FROM table_28490105_1 WHERE supporting = "Champ Car World Series ( Grand Prix of Cleveland )" AND tc_winning_car = "Pierre Kleinubing"</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 AIDS Orphans as % of Orphans when the Double (AIDS Related) number is 41,000, and the Paternal (Total) is larger than 442,000? ### Context: CREATE TABLE table_name_41 (aids_orphans_as__percentage_of_orphans INTEGER, double__aids_related_ VARCHAR, paternal__total_ VARCHAR) ### Response: ### Response: SELECT SUM(aids_orphans_as__percentage_of_orphans) FROM table_name_41 WHERE double__aids_related_ = "41,000" AND paternal__total_ > 442 OFFSET 000</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 viewed the episode gary gets boundaries? ### Context: CREATE TABLE table_name_47 (viewers VARCHAR, episode VARCHAR) ### Response: ### Response: SELECT COUNT(viewers) FROM table_name_47 WHERE episode = "gary gets boundaries"</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 constructor has a Grid smaller than 18, and a Driver of mika häkkinen? ### Context: CREATE TABLE table_name_14 (constructor VARCHAR, grid VARCHAR, driver VARCHAR) ### Response: ### Response: SELECT constructor FROM table_name_14 WHERE grid < 18 AND driver = "mika häkkinen"</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 bookings do we have? ### Context: CREATE TABLE BOOKINGS (Id VARCHAR) ### Response: ### Response: SELECT COUNT(*) FROM BOOKINGS</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 home team of the game on January 22? ### Context: CREATE TABLE table_name_67 (home VARCHAR, date VARCHAR) ### Response: ### Response: SELECT home FROM table_name_67 WHERE date = "january 22"</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 result of the week 13 game? ### Context: CREATE TABLE table_name_66 (result VARCHAR, week VARCHAR) ### Response: ### Response: SELECT result FROM table_name_66 WHERE week = 13</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 for the Player who won in 1922, 1932? ### Context: CREATE TABLE table_name_44 (total INTEGER, year_s__won VARCHAR) ### Response: ### Response: SELECT AVG(total) FROM table_name_44 WHERE year_s__won = "1922, 1932"</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 best top-10 result when events are fewer than 39, top-5 is 1 and more than 5 cuts are made? ### Context: CREATE TABLE table_name_89 (top_10 INTEGER, cuts_made VARCHAR, events VARCHAR, top_5 VARCHAR) ### Response: ### Response: SELECT MAX(top_10) FROM table_name_89 WHERE events < 39 AND top_5 = 1 AND cuts_made > 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: Find the total budgets of the Marketing or Finance department. ### Context: CREATE TABLE department (budget INTEGER, dept_name VARCHAR) ### Response: ### Response: SELECT SUM(budget) FROM department WHERE dept_name = 'Marketing' OR dept_name = 'Finance'</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 then engine when the notes state srt8? ### Context: CREATE TABLE table_name_91 (engine VARCHAR, notes VARCHAR) ### Response: ### Response: SELECT engine FROM table_name_91 WHERE notes = "srt8"</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 Against has a Drawn smaller than 5, and a Lost smaller than 6, and a Points larger than 36? ### Context: CREATE TABLE table_name_26 (against VARCHAR, points VARCHAR, drawn VARCHAR, lost VARCHAR) ### Response: ### Response: SELECT COUNT(against) FROM table_name_26 WHERE drawn < 5 AND lost < 6 AND points > 36</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: If the amount of rebounds is 0, what is the maximum minutes? ### Context: CREATE TABLE table_23346303_5 (minutes INTEGER, rebounds VARCHAR) ### Response: ### Response: SELECT MAX(minutes) FROM table_23346303_5 WHERE rebounds = 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 were the supersonics record at game 2? ### Context: CREATE TABLE table_28768469_5 (record VARCHAR, game VARCHAR) ### Response: ### Response: SELECT record FROM table_28768469_5 WHERE game = 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 name of the player with more than 0 assists, a position of forward, 19 goals, and more than 84 apps? ### Context: CREATE TABLE table_name_22 (name VARCHAR, goals VARCHAR, apps VARCHAR, assists VARCHAR, position VARCHAR) ### Response: ### Response: SELECT name FROM table_name_22 WHERE assists > 0 AND position = "forward" AND apps > 84 AND goals = 19</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 away team score at VFL Park? ### Context: CREATE TABLE table_name_76 (away_team VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT away_team AS score FROM table_name_76 WHERE venue = "vfl park"</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 years did the Representative from Iowa with a lifespan of 1880–1942 serve? ### Context: CREATE TABLE table_name_20 (years VARCHAR, state VARCHAR, lifespan VARCHAR) ### Response: ### Response: SELECT years FROM table_name_20 WHERE state = "iowa" AND lifespan = "1880–1942"</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 id, name of each festival and the number of artworks it has nominated. ### Context: CREATE TABLE nomination (Festival_ID VARCHAR, Artwork_ID VARCHAR); CREATE TABLE festival_detail (Festival_Name VARCHAR, Festival_ID VARCHAR); CREATE TABLE artwork (Artwork_ID VARCHAR) ### Response: ### Response: SELECT T1.Festival_ID, T3.Festival_Name, COUNT(*) FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID GROUP BY T1.Festival_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 Party, when Results is "Re-Elected", when First Elected is greater than 1990, and when District is "Minnesota 4"? ### Context: CREATE TABLE table_name_10 (party VARCHAR, district VARCHAR, results VARCHAR, first_elected VARCHAR) ### Response: ### Response: SELECT party FROM table_name_10 WHERE results = "re-elected" AND first_elected > 1990 AND district = "minnesota 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 region is inarajan in? ### Context: CREATE TABLE table_2588674_1 (region VARCHAR, village VARCHAR) ### Response: ### Response: SELECT region FROM table_2588674_1 WHERE village = "Inarajan"</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 tries for does the team with a try bonus of 1 and 35 points earned? ### Context: CREATE TABLE table_name_33 (tries_for VARCHAR, points VARCHAR, try_bonus VARCHAR) ### Response: ### Response: SELECT tries_for FROM table_name_33 WHERE points = "35" AND try_bonus = "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: What was the score for an n/a location with the odds of p + 1? ### Context: CREATE TABLE table_name_61 (result VARCHAR, location VARCHAR, odds VARCHAR) ### Response: ### Response: SELECT result FROM table_name_61 WHERE location = "n/a" AND odds = "p + 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: What is the 2013 index of economic freedom of Slovenia? ### Context: CREATE TABLE table_name_22 (country VARCHAR) ### Response: ### Response: SELECT 2013 AS _index_of_economic_freedom FROM table_name_22 WHERE country = "slovenia"</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 serial number of the model made in 1930? ### Context: CREATE TABLE table_name_82 (serial_numbers VARCHAR, year_made VARCHAR) ### Response: ### Response: SELECT serial_numbers FROM table_name_82 WHERE year_made = "1930"</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 S.K. Ho's Country? ### Context: CREATE TABLE table_name_58 (country VARCHAR, player VARCHAR) ### Response: ### Response: SELECT country FROM table_name_58 WHERE player = "s.k. ho"</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 length of the highway with junctions i-35 us 83 and named us 83 bus.? ### Context: CREATE TABLE table_name_25 (length VARCHAR, junctions VARCHAR, route_name VARCHAR) ### Response: ### Response: SELECT length FROM table_name_25 WHERE junctions = "i-35 us 83" AND route_name = "us 83 bus."</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 season was Schädlich the top goalscorer? ### Context: CREATE TABLE table_name_79 (season VARCHAR, top_goalscorer VARCHAR) ### Response: ### Response: SELECT season FROM table_name_79 WHERE top_goalscorer = "schädlich"</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 Part 4, when Part 2 is "batt"? ### Context: CREATE TABLE table_name_51 (part_4 VARCHAR, part_2 VARCHAR) ### Response: ### Response: SELECT part_4 FROM table_name_51 WHERE part_2 = "batt"</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 times is the week # is audition? ### Context: CREATE TABLE table_27075510_1 (original_artist VARCHAR, week__number VARCHAR) ### Response: ### Response: SELECT COUNT(original_artist) FROM table_27075510_1 WHERE week__number = "Audition"</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 athlete for bulgaria with rank less than 22 ### Context: CREATE TABLE table_name_46 (athlete VARCHAR, rank VARCHAR, nation VARCHAR) ### Response: ### Response: SELECT athlete FROM table_name_46 WHERE rank < 22 AND nation = "bulgaria"</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 WERE LOST BY 12 POINTS? ### Context: CREATE TABLE table_12807904_3 (points_for VARCHAR, lost VARCHAR) ### Response: ### Response: SELECT COUNT(points_for) FROM table_12807904_3 WHERE lost = "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 total rank of the airport that has 79,290 passengers? ### Context: CREATE TABLE table_name_63 (rank VARCHAR, passengers VARCHAR) ### Response: ### Response: SELECT COUNT(rank) FROM table_name_63 WHERE passengers = 79 OFFSET 290</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 Time/Retired of 80 laps with a Grid larger than 2? ### Context: CREATE TABLE table_name_51 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR) ### Response: ### Response: SELECT time_retired FROM table_name_51 WHERE laps = 80 AND grid > 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: Name the imperative for गरिस् garis 'you did' ### Context: CREATE TABLE table_16337329_5 (imperative VARCHAR, past_habitual VARCHAR) ### Response: ### Response: SELECT imperative FROM table_16337329_5 WHERE past_habitual = "गरिस् garis 'you did'"</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 2011 value with nms in 2008? ### Context: CREATE TABLE table_name_54 (Id VARCHAR) ### Response: ### Response: SELECT 2011 FROM table_name_54 WHERE 2008 = "nms"</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 result when incumbent John R. Tyson was elected? ### Context: CREATE TABLE table_1342426_3 (result VARCHAR, incumbent VARCHAR) ### Response: ### Response: SELECT result FROM table_1342426_3 WHERE incumbent = "John R. Tyson"</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 appearance maximum if the starts is 18? ### Context: CREATE TABLE table_24807406_1 (appearances INTEGER, starts VARCHAR) ### Response: ### Response: SELECT MAX(appearances) FROM table_24807406_1 WHERE starts = 18</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 opponent in the 2008–09 season, with a final score of 2–3 l? ### Context: CREATE TABLE table_name_58 (opponent VARCHAR, season VARCHAR, final_score VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_58 WHERE season = "2008–09" AND final_score = "2–3 l"</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 number of games with less than 1 loss? ### Context: CREATE TABLE table_name_12 (games INTEGER, lost INTEGER) ### Response: ### Response: SELECT MIN(games) FROM table_name_12 WHERE lost < 1</s>