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: Which position is round 7? ### Context: CREATE TABLE table_name_27 (position VARCHAR, round VARCHAR) ### Response: ### Response: SELECT position FROM table_name_27 WHERE round = 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: What is the Hangul of the Province with a Kana of へいあんなんどう? ### Context: CREATE TABLE table_name_48 (hangul VARCHAR, kana VARCHAR) ### Response: ### Response: SELECT hangul FROM table_name_48 WHERE kana = "へいあんなんどう"</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 First has a Uni # larger than 34, and Throws of r, and a Position of rhp, and a Surname of stockman? ### Context: CREATE TABLE table_name_12 (first VARCHAR, surname VARCHAR, position VARCHAR, uni_number VARCHAR, throws VARCHAR) ### Response: ### Response: SELECT first FROM table_name_12 WHERE uni_number > 34 AND throws = "r" AND position = "rhp" AND surname = "stockman"</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 most rebounds in the game against the team with a 5-2 record against the Hawks? ### Context: CREATE TABLE table_23248910_5 (high_rebounds VARCHAR, record VARCHAR) ### Response: ### Response: SELECT high_rebounds FROM table_23248910_5 WHERE record = "5-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: Which manufacturer has a year made of 4-6-0 — ooooo — ten-wheeler? ### Context: CREATE TABLE table_name_22 (manufacturer VARCHAR, year_made VARCHAR) ### Response: ### Response: SELECT manufacturer FROM table_name_22 WHERE year_made = "4-6-0 — ooooo — ten-wheeler"</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 main use of the structure that was in redfield, arkansas before 2004? ### Context: CREATE TABLE table_name_77 (main_use VARCHAR, year VARCHAR, town VARCHAR) ### Response: ### Response: SELECT main_use FROM table_name_77 WHERE year < 2004 AND town = "redfield, arkansas"</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 award did Charlie Productions Ltd receive? ### Context: CREATE TABLE table_name_14 (award VARCHAR, recipient VARCHAR) ### Response: ### Response: SELECT award FROM table_name_14 WHERE recipient = "charlie productions ltd"</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 grid did the team racing professionals race on? ### Context: CREATE TABLE table_name_84 (grid VARCHAR, team VARCHAR) ### Response: ### Response: SELECT grid FROM table_name_84 WHERE team = "racing professionals"</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 build date for PRR Class gf30a? ### Context: CREATE TABLE table_name_80 (build_date VARCHAR, prr_class VARCHAR) ### Response: ### Response: SELECT build_date FROM table_name_80 WHERE prr_class = "gf30a"</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 episodes have the production code 8.04 ### Context: CREATE TABLE table_2226817_9 (directed_by VARCHAR, production_code VARCHAR) ### Response: ### Response: SELECT COUNT(directed_by) FROM table_2226817_9 WHERE production_code = "8.04"</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 Performance has a Usage of hepa and a Class of h14? ### Context: CREATE TABLE table_name_38 (performance VARCHAR, usage VARCHAR, class VARCHAR) ### Response: ### Response: SELECT performance FROM table_name_38 WHERE usage = "hepa" AND class = "h14"</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 expiring term for Daryl Hecht when the appointing governor is Tom Vilsack? ### Context: CREATE TABLE table_name_27 (term_expires VARCHAR, appointing_governor VARCHAR, name VARCHAR) ### Response: ### Response: SELECT term_expires FROM table_name_27 WHERE appointing_governor = "tom vilsack" AND name = "daryl hecht"</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 jews and others 1 for the localities 11? ### Context: CREATE TABLE table_25947046_1 (jews_and_others_1 INTEGER, localities VARCHAR) ### Response: ### Response: SELECT MIN(jews_and_others_1) FROM table_25947046_1 WHERE localities = 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 is the 2010 value in the Australian Open? ### Context: CREATE TABLE table_name_60 (tournament VARCHAR) ### Response: ### Response: SELECT 2010 FROM table_name_60 WHERE tournament = "australian open"</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 Lost has Seasons of 2, and Goals against larger than 43? ### Context: CREATE TABLE table_name_75 (lost INTEGER, seasons VARCHAR, goals_against VARCHAR) ### Response: ### Response: SELECT MAX(lost) FROM table_name_75 WHERE seasons = 2 AND goals_against > 43</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 sum of place with ties larger than 0 and point sof 7 qc and losses more than 2 ### Context: CREATE TABLE table_name_58 (place INTEGER, losses VARCHAR, ties VARCHAR, points VARCHAR) ### Response: ### Response: SELECT SUM(place) FROM table_name_58 WHERE ties > 0 AND points = "7 qc" AND losses > 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 data were given on 2010/2011 in Brazil? ### Context: CREATE TABLE table_27712_2 (country VARCHAR) ### Response: ### Response: SELECT COUNT(2010 AS _11) FROM table_27712_2 WHERE country = "Brazil"</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 circuit did Luigi Villoresi win the Lausanne Grand Prix? ### Context: CREATE TABLE table_name_58 (circuit VARCHAR, winning_driver VARCHAR, name VARCHAR) ### Response: ### Response: SELECT circuit FROM table_name_58 WHERE winning_driver = "luigi villoresi" AND name = "lausanne 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: What is the t o par for Ralph Guldahl? ### Context: CREATE TABLE table_name_89 (to_par VARCHAR, player VARCHAR) ### Response: ### Response: SELECT to_par FROM table_name_89 WHERE player = "ralph guldahl"</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 Attendance for Opponent Boston Patriots and Week is greater than 14? ### Context: CREATE TABLE table_name_1 (attendance VARCHAR, opponent VARCHAR, week VARCHAR) ### Response: ### Response: SELECT COUNT(attendance) FROM table_name_1 WHERE opponent = "boston patriots" AND week > 14</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 points per race of the driver with less than 969 points and an average pre-2010 less than 0? ### Context: CREATE TABLE table_name_75 (average_points_per_race_entered INTEGER, points VARCHAR, average_pre_2010 VARCHAR) ### Response: ### Response: SELECT MAX(average_points_per_race_entered) FROM table_name_75 WHERE points < 969 AND average_pre_2010 < 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 is the smallest week 3 score? ### Context: CREATE TABLE table_28946565_2 (week_3 INTEGER) ### Response: ### Response: SELECT MIN(week_3) FROM table_28946565_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 kind of free practice is there with a Ford RS2 engine +? ### Context: CREATE TABLE table_name_8 (free_practice_driver_s_ VARCHAR, engine_† VARCHAR) ### Response: ### Response: SELECT free_practice_driver_s_ FROM table_name_8 WHERE engine_† = "ford rs2"</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: Where was the match located when the odds were p + 1 and the score was 1/3? ### Context: CREATE TABLE table_name_98 (location VARCHAR, odds VARCHAR, score VARCHAR) ### Response: ### Response: SELECT location FROM table_name_98 WHERE odds = "p + 1" AND score = "1/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: Which Rank has a Name of john curry, and Points larger than 338.43? ### Context: CREATE TABLE table_name_8 (rank INTEGER, name VARCHAR, points VARCHAR) ### Response: ### Response: SELECT MAX(rank) FROM table_name_8 WHERE name = "john curry" AND points > 338.43</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 Country has a Winter Olympics of 1948? ### Context: CREATE TABLE table_name_28 (country VARCHAR, winter_olympics VARCHAR) ### Response: ### Response: SELECT country FROM table_name_28 WHERE winter_olympics = "1948"</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 rebounds were there on April 7? ### Context: CREATE TABLE table_22879323_10 (high_rebounds VARCHAR, date VARCHAR) ### Response: ### Response: SELECT COUNT(high_rebounds) FROM table_22879323_10 WHERE date = "April 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: How many Seasons that has Years of 1976–1977? ### Context: CREATE TABLE table_name_1 (seasons VARCHAR, years VARCHAR) ### Response: ### Response: SELECT COUNT(seasons) FROM table_name_1 WHERE years = "1976–1977"</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 co-driver in 1999 with more than 32 laps? ### Context: CREATE TABLE table_name_51 (co_driver VARCHAR, laps VARCHAR, year VARCHAR) ### Response: ### Response: SELECT co_driver FROM table_name_51 WHERE laps > 32 AND year = 1999</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 attendance of the game that has the opponent of The Nationals with a record of 68-51? ### Context: CREATE TABLE table_name_42 (attendance INTEGER, opponent VARCHAR, record VARCHAR) ### Response: ### Response: SELECT SUM(attendance) FROM table_name_42 WHERE opponent = "nationals" AND record = "68-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: Against what team did the Islanders have a 5-18-5 record? ### Context: CREATE TABLE table_27539535_5 (opponent VARCHAR, record VARCHAR) ### Response: ### Response: SELECT opponent FROM table_27539535_5 WHERE record = "5-18-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: Who has less than 3 lanes for France? ### Context: CREATE TABLE table_name_88 (name VARCHAR, nationality VARCHAR, lane VARCHAR) ### Response: ### Response: SELECT name FROM table_name_88 WHERE nationality = "france" AND lane < 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 tyre on the race where Bruce Mclaren had the fastest lap? ### Context: CREATE TABLE table_name_58 (tyre VARCHAR, fastest_lap VARCHAR) ### Response: ### Response: SELECT tyre FROM table_name_58 WHERE fastest_lap = "bruce mclaren"</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 which day and in which zip code was the min dew point lower than any day in zip code 94107? ### Context: CREATE TABLE weather (date VARCHAR, zip_code VARCHAR, min_dew_point_f INTEGER) ### Response: ### Response: SELECT date, zip_code FROM weather WHERE min_dew_point_f < (SELECT MIN(min_dew_point_f) FROM weather WHERE zip_code = 94107)</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 were Dürr's opponents in the final on year 1968? ### Context: CREATE TABLE table_2112025_3 (opponents_in_the_final VARCHAR, year VARCHAR) ### Response: ### Response: SELECT opponents_in_the_final FROM table_2112025_3 WHERE year = 1968</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 round2 when round5 is 71 and round4 is more than 64? ### Context: CREATE TABLE table_name_88 (round2 INTEGER, round5 VARCHAR, round4 VARCHAR) ### Response: ### Response: SELECT MIN(round2) FROM table_name_88 WHERE round5 = 71 AND round4 > 64</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 when the 2010 is 8–4? ### Context: CREATE TABLE table_name_56 (Id VARCHAR) ### Response: ### Response: SELECT 2011 FROM table_name_56 WHERE 2010 = "8–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 was the date of the game when their record was 84-69? ### Context: CREATE TABLE table_name_56 (date VARCHAR, record VARCHAR) ### Response: ### Response: SELECT date FROM table_name_56 WHERE record = "84-69"</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 high rebounds in the 45 game? ### Context: CREATE TABLE table_27734577_8 (high_rebounds VARCHAR, game VARCHAR) ### Response: ### Response: SELECT high_rebounds FROM table_27734577_8 WHERE game = 45</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 visitors below age 30 are there? ### Context: CREATE TABLE visitor (age INTEGER) ### Response: ### Response: SELECT COUNT(*) FROM visitor WHERE age < 30</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 Sport had an Event of men's 400 m hurdles? ### Context: CREATE TABLE table_name_21 (sport VARCHAR, event VARCHAR) ### Response: ### Response: SELECT sport FROM table_name_21 WHERE event = "men's 400 m hurdles"</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 year did Miyoshi Umeki make a film? ### Context: CREATE TABLE table_name_25 (year VARCHAR, name VARCHAR) ### Response: ### Response: SELECT year FROM table_name_25 WHERE name = "miyoshi umeki"</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 subdivision name (BE) where subdivision name (RU) (BGN) is Grodnenskaya Oblast'? ### Context: CREATE TABLE table_290017_1 (subdivision_name___be____bgn_pcgn_ VARCHAR, subdivision_name___ru____bgn_pcgn_ VARCHAR) ### Response: ### Response: SELECT subdivision_name___be____bgn_pcgn_ FROM table_290017_1 WHERE subdivision_name___ru____bgn_pcgn_ = "Grodnenskaya oblast'"</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 FA Cup goals for players with 12 League goals and 14 total goals? ### Context: CREATE TABLE table_name_46 (fa_cup_goals INTEGER, league_goals VARCHAR, total VARCHAR) ### Response: ### Response: SELECT MIN(fa_cup_goals) FROM table_name_46 WHERE league_goals = "12" AND total = 14</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 Round of the event with a Record of 5-4? ### Context: CREATE TABLE table_name_61 (round VARCHAR, record VARCHAR) ### Response: ### Response: SELECT round FROM table_name_61 WHERE record = "5-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: Name the least points for number 6 ### Context: CREATE TABLE table_24108789_6 (points INTEGER, _number VARCHAR) ### Response: ### Response: SELECT MIN(points) FROM table_24108789_6 WHERE _number = 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 the lowest overall money list rank? ### Context: CREATE TABLE table_24330912_1 (money_list_rank INTEGER) ### Response: ### Response: SELECT MIN(money_list_rank) FROM table_24330912_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: Who placed t7 with a score of 70-71=141? ### Context: CREATE TABLE table_name_16 (player VARCHAR, place VARCHAR, score VARCHAR) ### Response: ### Response: SELECT player FROM table_name_16 WHERE place = "t7" AND score = 70 - 71 = 141</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 how many events was Puma 20 and abu dhabi 30? ### Context: CREATE TABLE table_26894949_2 (event VARCHAR, puma VARCHAR, abu_dhabi VARCHAR) ### Response: ### Response: SELECT COUNT(event) FROM table_26894949_2 WHERE puma = "20" AND abu_dhabi = "30"</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 was it commissioned when the destroyer was built by scotts, greenock? ### Context: CREATE TABLE table_name_88 (commissioned VARCHAR, builder VARCHAR) ### Response: ### Response: SELECT commissioned FROM table_name_88 WHERE builder = "scotts, greenock"</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 placed fourth when the winner was Greg Hancock? ### Context: CREATE TABLE table_21808535_1 (winner VARCHAR) ### Response: ### Response: SELECT 4 AS th_placed FROM table_21808535_1 WHERE winner = "Greg Hancock"</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 group stage were 177.2 points awarded? ### Context: CREATE TABLE table_1059743_2 (group_stage VARCHAR, points VARCHAR) ### Response: ### Response: SELECT COUNT(group_stage) FROM table_1059743_2 WHERE points = "177.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 total number of drawn matches from first game years before 2006 and fewer than 2 matches played? ### Context: CREATE TABLE table_name_42 (drawn INTEGER, first_game VARCHAR, played VARCHAR) ### Response: ### Response: SELECT SUM(drawn) FROM table_name_42 WHERE first_game < 2006 AND played < 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: On December 5 what team played their home game? ### Context: CREATE TABLE table_name_20 (home VARCHAR, date VARCHAR) ### Response: ### Response: SELECT home FROM table_name_20 WHERE date = "december 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: How many incoming managers did Burnley have? ### Context: CREATE TABLE table_26593762_3 (incoming_manager VARCHAR, team VARCHAR) ### Response: ### Response: SELECT COUNT(incoming_manager) FROM table_26593762_3 WHERE team = "Burnley"</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 most popular room in the hotel. The most popular room is the room that had seen the largest number of reservations. ### Context: CREATE TABLE Reservations (Room VARCHAR); CREATE TABLE Rooms (roomName VARCHAR, RoomId VARCHAR) ### Response: ### Response: SELECT T2.roomName FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId GROUP BY T1.Room ORDER BY COUNT(*) DESC LIMIT 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: Who are the contenders In the New York 29 polling area race? ### Context: CREATE TABLE table_1342256_32 (candidates VARCHAR, district VARCHAR) ### Response: ### Response: SELECT candidates FROM table_1342256_32 WHERE district = "New York 29"</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 leader in Points when Al Jefferson (7) was the leader in Rebounds? ### Context: CREATE TABLE table_name_12 (points VARCHAR, rebounds VARCHAR) ### Response: ### Response: SELECT points FROM table_name_12 WHERE rebounds = "al jefferson (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: Lost of 18 had what sum of win %? ### Context: CREATE TABLE table_name_52 (win__percentage INTEGER, lost VARCHAR) ### Response: ### Response: SELECT SUM(win__percentage) FROM table_name_52 WHERE lost = 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 is the first name and last name of the student who have most number of sports? ### Context: CREATE TABLE Student (Fname VARCHAR, Lname VARCHAR, StuID VARCHAR); CREATE TABLE Sportsinfo (StuID VARCHAR) ### Response: ### Response: SELECT T2.Fname, T2.Lname FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID GROUP BY T1.StuID ORDER BY COUNT(*) DESC LIMIT 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 province has the partido Socialista del Pueblo Extremeño party? ### Context: CREATE TABLE table_name_31 (province VARCHAR, party VARCHAR) ### Response: ### Response: SELECT province FROM table_name_31 WHERE party = "partido socialista del pueblo extremeño"</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 Partner has a Date of june 18, 1989? ### Context: CREATE TABLE table_name_87 (partner VARCHAR, date VARCHAR) ### Response: ### Response: SELECT partner FROM table_name_87 WHERE date = "june 18, 1989"</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 NHL team of dave murphy? ### Context: CREATE TABLE table_name_29 (nhl_team VARCHAR, player VARCHAR) ### Response: ### Response: SELECT nhl_team FROM table_name_29 WHERE player = "dave murphy"</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 points with a year higher than 1989, and a rank of 7th? ### Context: CREATE TABLE table_name_60 (points INTEGER, year VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT AVG(points) FROM table_name_60 WHERE year > 1989 AND rank = "7th"</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 part of Club Munster with 1 try? ### Context: CREATE TABLE table_name_38 (name VARCHAR, tries VARCHAR, club VARCHAR) ### Response: ### Response: SELECT name FROM table_name_38 WHERE tries = 1 AND club = "munster"</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 Opposition in the First Round of the UEFA Cup with a Score of 3–1 (h), 2–0 (a)? ### Context: CREATE TABLE table_name_66 (opposition VARCHAR, score VARCHAR, round VARCHAR, competition VARCHAR) ### Response: ### Response: SELECT opposition FROM table_name_66 WHERE round = "first round" AND competition = "uefa cup" AND score = "3–1 (h), 2–0 (a)"</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 commenced operations that has a nouvelair callsign? ### Context: CREATE TABLE table_name_90 (commenced_operations INTEGER, callsign VARCHAR) ### Response: ### Response: SELECT MIN(commenced_operations) FROM table_name_90 WHERE callsign = "nouvelair"</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 date when tie number is 6? ### Context: CREATE TABLE table_name_98 (date VARCHAR, tie_no VARCHAR) ### Response: ### Response: SELECT date FROM table_name_98 WHERE tie_no = "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: Show all main industry for all companies. ### Context: CREATE TABLE company (main_industry VARCHAR) ### Response: ### Response: SELECT DISTINCT main_industry FROM company</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 time when the opponent is stephanie palmer? ### Context: CREATE TABLE table_name_27 (time VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT time FROM table_name_27 WHERE opponent = "stephanie palmer"</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 language where Wednesday is برھ وار budh'var, what is Saturday? ### Context: CREATE TABLE table_1277350_3 (saturday_shani__saturn_ VARCHAR, wednesday_budha__mercury_ VARCHAR) ### Response: ### Response: SELECT saturday_shani__saturn_ FROM table_1277350_3 WHERE wednesday_budha__mercury_ = "برھ وار Budh'var"</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: Can you tell me the Time that has the Opponent of phil baroni? ### Context: CREATE TABLE table_name_75 (time VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT time FROM table_name_75 WHERE opponent = "phil baroni"</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 location has a time of 9:30pm? ### Context: CREATE TABLE table_21330550_2 (location VARCHAR, time VARCHAR) ### Response: ### Response: SELECT location FROM table_21330550_2 WHERE time = "9:30PM"</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 when the away team was West Ham United? ### Context: CREATE TABLE table_name_4 (score VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT score FROM table_name_4 WHERE away_team = "west ham 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: Return the name, location and district of all shops in descending order of number of products. ### Context: CREATE TABLE shop (name VARCHAR, LOCATION VARCHAR, district VARCHAR, number_products VARCHAR) ### Response: ### Response: SELECT name, LOCATION, district FROM shop ORDER BY number_products DESC</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 which jockey was the weight in kg 53.5? ### Context: CREATE TABLE table_24915874_1 (jockey VARCHAR, weight__kg_ VARCHAR) ### Response: ### Response: SELECT jockey FROM table_24915874_1 WHERE weight__kg_ = "53.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: Where was the game played that had a record of 19-6? ### Context: CREATE TABLE table_18904831_7 (location VARCHAR, record VARCHAR) ### Response: ### Response: SELECT location FROM table_18904831_7 WHERE record = "19-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: The displacement(s) 466 cubic inches (7.6L), has what engine family? ### Context: CREATE TABLE table_26352332_4 (engine_family VARCHAR, displacement_s_ VARCHAR) ### Response: ### Response: SELECT engine_family FROM table_26352332_4 WHERE displacement_s_ = "466 cubic inches (7.6L)"</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 date for Bron 535 Catalog? ### Context: CREATE TABLE table_name_89 (date VARCHAR, catalogue VARCHAR) ### Response: ### Response: SELECT date FROM table_name_89 WHERE catalogue = "bron 535"</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 population where the median household income is $87,832 and there are fewer than 64,886 households? ### Context: CREATE TABLE table_name_83 (population INTEGER, median_household_income VARCHAR, number_of_households VARCHAR) ### Response: ### Response: SELECT AVG(population) FROM table_name_83 WHERE median_household_income = "$87,832" AND number_of_households < 64 OFFSET 886</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 Year for Supplier Kooga? ### Context: CREATE TABLE table_name_97 (year VARCHAR, supplier VARCHAR) ### Response: ### Response: SELECT year FROM table_name_97 WHERE supplier = "kooga"</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 Bronze has a Total smaller than 1? ### Context: CREATE TABLE table_name_15 (bronze INTEGER, total INTEGER) ### Response: ### Response: SELECT AVG(bronze) FROM table_name_15 WHERE 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: What's the rank average when the gold medals are less than 0? ### Context: CREATE TABLE table_name_41 (rank INTEGER, gold INTEGER) ### Response: ### Response: SELECT AVG(rank) FROM table_name_41 WHERE gold < 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 was the opposition where the field is waldstadion during time 6 ### Context: CREATE TABLE table_27893892_2 (opponent VARCHAR, game_site VARCHAR, week VARCHAR) ### Response: ### Response: SELECT opponent FROM table_27893892_2 WHERE game_site = "Waldstadion" AND week = 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 type of school has the nickname the Oilers? ### Context: CREATE TABLE table_262560_2 (type VARCHAR, nickname VARCHAR) ### Response: ### Response: SELECT type FROM table_262560_2 WHERE nickname = "Oilers"</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 team did the Wizards play against when their record was 2-5? ### Context: CREATE TABLE table_23274514_4 (team VARCHAR, record VARCHAR) ### Response: ### Response: SELECT team FROM table_23274514_4 WHERE record = "2-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: Who performed all the high rebounds when craig smith (4) was the lead for high assists? ### Context: CREATE TABLE table_17058226_5 (high_rebounds VARCHAR, high_assists VARCHAR) ### Response: ### Response: SELECT high_rebounds FROM table_17058226_5 WHERE high_assists = "Craig Smith (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 most laps with a grid of 20? ### Context: CREATE TABLE table_name_71 (laps INTEGER, grid VARCHAR) ### Response: ### Response: SELECT MAX(laps) FROM table_name_71 WHERE grid = 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: Which score was associated with an attendance of 275? ### Context: CREATE TABLE table_name_66 (score VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT score FROM table_name_66 WHERE attendance = 275</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 was there a game against the Indianapolis colts? ### Context: CREATE TABLE table_name_72 (date VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT date FROM table_name_72 WHERE opponent = "indianapolis colts"</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 Country will Dennis Blömke play the Germany F13 Futures Tournament? ### Context: CREATE TABLE table_name_9 (country VARCHAR, singles_champions VARCHAR, tournament VARCHAR) ### Response: ### Response: SELECT country FROM table_name_9 WHERE singles_champions = "dennis blömke" AND tournament = "germany f13 futures"</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 Co-contestant (Yaar vs. Pyaar) has a Total score/week of 48/60, and a Date performed of august 14? ### Context: CREATE TABLE table_name_40 (co_contestant__yaar_vs_pyaar_ VARCHAR, total_score_week VARCHAR, date_performed VARCHAR) ### Response: ### Response: SELECT co_contestant__yaar_vs_pyaar_ FROM table_name_40 WHERE total_score_week = "48/60" AND date_performed = "august 14"</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 Away captain that played on 11,12,13 Aug 1902? ### Context: CREATE TABLE table_name_95 (away_captain VARCHAR, date VARCHAR) ### Response: ### Response: SELECT away_captain FROM table_name_95 WHERE date = "11,12,13 aug 1902"</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 college for keenan robinson when overall is more than 102? ### Context: CREATE TABLE table_name_55 (college VARCHAR, overall VARCHAR, name VARCHAR) ### Response: ### Response: SELECT college FROM table_name_55 WHERE overall > 102 AND name = "keenan robinson"</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 week has a date of September 3, 2000? ### Context: CREATE TABLE table_name_98 (week INTEGER, date VARCHAR) ### Response: ### Response: SELECT AVG(week) FROM table_name_98 WHERE date = "september 3, 2000"</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 couple danced a jive and received a score of 21 (6, 7, 8)? ### Context: CREATE TABLE table_name_98 (couple VARCHAR, dance VARCHAR, score VARCHAR) ### Response: ### Response: SELECT couple FROM table_name_98 WHERE dance = "jive" AND score = "21 (6, 7, 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: Which players have made a total of 12 extra points? ### Context: CREATE TABLE table_14342592_5 (player VARCHAR, extra_points VARCHAR) ### Response: ### Response: SELECT player FROM table_14342592_5 WHERE extra_points = 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: Sort all captain names by their ages from old to young. ### Context: CREATE TABLE captain (name VARCHAR, age VARCHAR) ### Response: ### Response: SELECT name FROM captain ORDER BY age DESC</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: display the full name (first and last name ) of employee with ID and name of the country presently where (s)he is working. ### Context: CREATE TABLE countries (country_name VARCHAR, country_id VARCHAR); CREATE TABLE departments (department_id VARCHAR, location_id VARCHAR); CREATE TABLE locations (location_id VARCHAR, country_id VARCHAR); CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, employee_id VARCHAR, department_id VARCHAR) ### Response: ### Response: SELECT T1.first_name, T1.last_name, T1.employee_id, T4.country_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id JOIN countries AS T4 ON T3.country_id = T4.country_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's the call sign of The Q? ### Context: CREATE TABLE table_name_43 (call_sign VARCHAR, branding VARCHAR) ### Response: ### Response: SELECT call_sign FROM table_name_43 WHERE branding = "the q"</s>