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 child sex ration for the population with 37.7% work participation? ### Context: CREATE TABLE table_name_24 (sex_ratio__child_ INTEGER, work_participation___percentage_ VARCHAR) ### Response: ### Response: SELECT MAX(sex_ratio__child_) FROM table_name_24 WHERE work_participation___percentage_ = "37.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 sum of To Par, when Country is "United States", and when Year(s) Won is "1973"? ### Context: CREATE TABLE table_name_23 (to_par INTEGER, country VARCHAR, year_s__won VARCHAR) ### Response: ### Response: SELECT SUM(to_par) FROM table_name_23 WHERE country = "united states" AND year_s__won = "1973"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 enrollment dates of all the tests that have result "Pass"? ### Context: CREATE TABLE Student_Tests_Taken (registration_id VARCHAR, test_result VARCHAR); CREATE TABLE Student_Course_Enrolment (date_of_enrolment VARCHAR, registration_id VARCHAR) ### Response: ### Response: SELECT T1.date_of_enrolment FROM Student_Course_Enrolment AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id = T2.registration_id WHERE T2.test_result = "Pass"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 driver for the winning team Lawson Team Impul? ### Context: CREATE TABLE table_22379931_2 (winning_driver VARCHAR, winning_team VARCHAR) ### Response: ### Response: SELECT winning_driver FROM table_22379931_2 WHERE winning_team = "Lawson Team Impul"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 airport has an ICAO of Birk? ### Context: CREATE TABLE table_name_16 (airport VARCHAR, icao VARCHAR) ### Response: ### Response: SELECT airport FROM table_name_16 WHERE icao = "birk"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Result of 2–2, and a Venue of H? ### Context: CREATE TABLE table_name_3 (date VARCHAR, result VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT date FROM table_name_3 WHERE result = "2–2" AND venue = "h"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 in history have a running time of 24:06? ### Context: CREATE TABLE table_1498589_1 (archive VARCHAR, run_time VARCHAR) ### Response: ### Response: SELECT COUNT(archive) FROM table_1498589_1 WHERE run_time = "24:06"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 different C_{high} values are there for the good category? ### Context: CREATE TABLE table_1942366_9 (high VARCHAR, category VARCHAR) ### Response: ### Response: SELECT STRUCT(high) FROM table_1942366_9 WHERE category = "Good"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 average points for the Project Indy team that has the Ford xb engine? ### Context: CREATE TABLE table_name_42 (points INTEGER, engine VARCHAR, team VARCHAR) ### Response: ### Response: SELECT AVG(points) FROM table_name_42 WHERE engine = "ford xb" AND team = "project indy"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 livery belongs to the steam Locomotive type builder that was building before 1989? ### Context: CREATE TABLE table_name_69 (livery VARCHAR, year_built VARCHAR, locomotive_type VARCHAR) ### Response: ### Response: SELECT livery FROM table_name_69 WHERE year_built < 1989 AND locomotive_type = "steam"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Tiger Woods with a total less than 293 had what To par? ### Context: CREATE TABLE table_name_73 (to_par VARCHAR, total VARCHAR, player VARCHAR) ### Response: ### Response: SELECT to_par FROM table_name_73 WHERE total < 293 AND player = "tiger woods"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the winner in the Tournament of Graz-Seiersberg? ### Context: CREATE TABLE table_name_56 (winner VARCHAR, tournament VARCHAR) ### Response: ### Response: SELECT winner FROM table_name_56 WHERE tournament = "graz-seiersberg"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the rank of Si Sa Ket province with less than 14 bronze medals? ### Context: CREATE TABLE table_name_85 (rank VARCHAR, province VARCHAR, bronze VARCHAR) ### Response: ### Response: SELECT COUNT(rank) FROM table_name_85 WHERE province = "si sa ket" AND bronze < 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 smallest total for a rank below 4, 0 silver medals, and 2 gold medals? ### Context: CREATE TABLE table_name_85 (total INTEGER, gold VARCHAR, rank VARCHAR, silver VARCHAR) ### Response: ### Response: SELECT MIN(total) FROM table_name_85 WHERE rank < 4 AND silver > 0 AND gold < 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: Who played over 46 games and allowed less than 195 goals? ### Context: CREATE TABLE table_name_50 (player VARCHAR, games_played VARCHAR, goals_allowed VARCHAR) ### Response: ### Response: SELECT player FROM table_name_50 WHERE games_played > 46 AND goals_allowed < 195</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Notes of the Mill Built in the 19th Century? ### Context: CREATE TABLE table_name_27 (notes VARCHAR, built VARCHAR) ### Response: ### Response: SELECT notes FROM table_name_27 WHERE built = "19th century"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What player is 2.01 m tall? ### Context: CREATE TABLE table_12962773_2 (player VARCHAR, height VARCHAR) ### Response: ### Response: SELECT player FROM table_12962773_2 WHERE height = "2.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: What is the D 42 √ number when the D 45 √ is r 16? ### Context: CREATE TABLE table_name_6 (d_42_√ VARCHAR, d_45_√ VARCHAR) ### Response: ### Response: SELECT d_42_√ FROM table_name_6 WHERE d_45_√ = "r 16"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 high grid that has a Time/Retired of +6 laps, and under 69 laps? ### Context: CREATE TABLE table_name_4 (grid INTEGER, time_retired VARCHAR, laps VARCHAR) ### Response: ### Response: SELECT MAX(grid) FROM table_name_4 WHERE time_retired = "+6 laps" AND laps < 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: Who got the loss for the game ending in a record of 55-41? ### Context: CREATE TABLE table_name_74 (loss VARCHAR, record VARCHAR) ### Response: ### Response: SELECT loss FROM table_name_74 WHERE record = "55-41"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Make has a Pos of 3? ### Context: CREATE TABLE table_name_58 (make VARCHAR, pos VARCHAR) ### Response: ### Response: SELECT make FROM table_name_58 WHERE pos = 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: Show the season, the player, and the name of the team that players belong to. ### Context: CREATE TABLE team (Name VARCHAR, Team_id VARCHAR); CREATE TABLE match_season (Season VARCHAR, Player VARCHAR, Team VARCHAR) ### Response: ### Response: SELECT T1.Season, T1.Player, T2.Name FROM match_season AS T1 JOIN team AS T2 ON T1.Team = T2.Team_id</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the money won by Frank Nobilo? ### Context: CREATE TABLE table_name_46 (money___ VARCHAR, player VARCHAR) ### Response: ### Response: SELECT COUNT(money___) AS £__ FROM table_name_46 WHERE player = "frank nobilo"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Record has an Opponent of milwaukee bucks? ### Context: CREATE TABLE table_name_93 (record VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT record FROM table_name_93 WHERE opponent = "milwaukee bucks"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 number of wins for years after 1999 with averages over 73.02? ### Context: CREATE TABLE table_name_60 (wins INTEGER, average VARCHAR, year VARCHAR) ### Response: ### Response: SELECT MAX(wins) FROM table_name_60 WHERE average > 73.02 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 was the earliest round with Neil Colzie and a pick smaller than 24? ### Context: CREATE TABLE table_name_26 (round INTEGER, player VARCHAR, pick VARCHAR) ### Response: ### Response: SELECT MIN(round) FROM table_name_26 WHERE player = "neil colzie" AND pick < 24</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 was the show aired on the RTL Televizija network? ### Context: CREATE TABLE table_name_35 (date_aired VARCHAR, network VARCHAR) ### Response: ### Response: SELECT date_aired FROM table_name_35 WHERE network = "rtl televizija"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2006-03-13 in the algarve cup, who won? ### Context: CREATE TABLE table_name_60 (result VARCHAR, competition VARCHAR, date VARCHAR) ### Response: ### Response: SELECT result FROM table_name_60 WHERE competition = "algarve cup" AND date = "2006-03-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 was the attendance when Bournemouth was the away team? ### Context: CREATE TABLE table_name_25 (attendance VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT attendance FROM table_name_25 WHERE away_team = "bournemouth"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Partner for Flavio Cipolla Simone Vagnozzi Opponents in the final? ### Context: CREATE TABLE table_name_7 (partner VARCHAR, opponents_in_the_final VARCHAR) ### Response: ### Response: SELECT partner FROM table_name_7 WHERE opponents_in_the_final = "flavio cipolla simone vagnozzi"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 has a Played larger than 9, and a Points smaller than 11, and a Drawn smaller than 0? ### Context: CREATE TABLE table_name_95 (position INTEGER, drawn VARCHAR, played VARCHAR, points VARCHAR) ### Response: ### Response: SELECT MIN(position) FROM table_name_95 WHERE played > 9 AND points < 11 AND drawn < 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 Nation with 2012 as the year, and a Competition of preseason, and a Result of w 0–3? ### Context: CREATE TABLE table_name_48 (nation VARCHAR, result VARCHAR, year VARCHAR, competition VARCHAR) ### Response: ### Response: SELECT nation FROM table_name_48 WHERE year = 2012 AND competition = "preseason" AND result = "w 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: Which Score has a Year larger than 1980, and a Margin of victory of 2 strokes, and a Country of united states, and a Player of jim furyk? ### Context: CREATE TABLE table_name_68 (score VARCHAR, player VARCHAR, country VARCHAR, year VARCHAR, margin_of_victory VARCHAR) ### Response: ### Response: SELECT score FROM table_name_68 WHERE year > 1980 AND margin_of_victory = "2 strokes" AND country = "united states" AND player = "jim furyk"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many weeks had an attendance at 69,149? ### Context: CREATE TABLE table_name_12 (week VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT COUNT(week) FROM table_name_12 WHERE attendance = "69,149"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 train numbered less than 6 before 1993? ### Context: CREATE TABLE table_name_41 (name VARCHAR, number VARCHAR, date VARCHAR) ### Response: ### Response: SELECT name FROM table_name_41 WHERE number < 6 AND date < 1993</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: how many times is the model ge40lfr? ### Context: CREATE TABLE table_10007452_3 (manufacturer VARCHAR, model VARCHAR) ### Response: ### Response: SELECT COUNT(manufacturer) FROM table_10007452_3 WHERE model = "GE40LFR"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the season located in the Netherlands premier? ### Context: CREATE TABLE table_1949994_7 (premiere_air_dates VARCHAR, country VARCHAR) ### Response: ### Response: SELECT premiere_air_dates FROM table_1949994_7 WHERE country = "The Netherlands"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 FA Cup Apps have Total Goals larger than 6, and an FA Cup Goals smaller than 1? ### Context: CREATE TABLE table_name_90 (fa_cup_apps VARCHAR, total_goals VARCHAR, fa_cup_goals VARCHAR) ### Response: ### Response: SELECT fa_cup_apps FROM table_name_90 WHERE total_goals > 6 AND fa_cup_goals < 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 place was Dave Stockton when he had a to par of +1? ### Context: CREATE TABLE table_name_10 (place VARCHAR, to_par VARCHAR, player VARCHAR) ### Response: ### Response: SELECT place FROM table_name_10 WHERE to_par = "+1" AND player = "dave stockton"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: From what county was the team that left the conference in 1993? ### Context: CREATE TABLE table_name_3 (county VARCHAR, year_left VARCHAR) ### Response: ### Response: SELECT county FROM table_name_3 WHERE year_left = "1993"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many players are there for mens singles when chen qi ma lin played mens doubles? ### Context: CREATE TABLE table_28138035_20 (mens_singles VARCHAR, mens_doubles VARCHAR) ### Response: ### Response: SELECT COUNT(mens_singles) FROM table_28138035_20 WHERE mens_doubles = "Chen Qi Ma Lin"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: At which restaurant did the students spend the least amount of time? List restaurant and the time students spent on in total. ### Context: CREATE TABLE Visits_Restaurant (Id VARCHAR); CREATE TABLE Restaurant (Id VARCHAR) ### Response: ### Response: SELECT Restaurant.ResName, SUM(Visits_Restaurant.Spent) FROM Visits_Restaurant JOIN Restaurant ON Visits_Restaurant.ResID = Restaurant.ResID GROUP BY Restaurant.ResID ORDER BY SUM(Visits_Restaurant.Spent) 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: What is the earliest Year commissioned wiht an Average annual output greater than 58 and Installed capacity of 20? ### Context: CREATE TABLE table_name_64 (year_commissioned INTEGER, average_annual_output__million_kwh_ VARCHAR, installed_capacity__megawatts_ VARCHAR) ### Response: ### Response: SELECT MIN(year_commissioned) FROM table_name_64 WHERE average_annual_output__million_kwh_ > 58 AND installed_capacity__megawatts_ = 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: What is the score for the Tie no. 12? ### Context: CREATE TABLE table_name_71 (score VARCHAR, tie_no VARCHAR) ### Response: ### Response: SELECT score FROM table_name_71 WHERE tie_no = "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: Who was the opponent at the game with a result of l 27–3? ### Context: CREATE TABLE table_name_52 (opponent VARCHAR, result VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_52 WHERE result = "l 27–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 record of the game where the visitor team is the Edmonton Oilers? ### Context: CREATE TABLE table_name_50 (record VARCHAR, visitor VARCHAR) ### Response: ### Response: SELECT record FROM table_name_50 WHERE visitor = "edmonton 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: How many assists per game have 4.2 rebounds per game? ### Context: CREATE TABLE table_2387461_1 (assists_per_game VARCHAR, rebounds_per_game VARCHAR) ### Response: ### Response: SELECT assists_per_game FROM table_2387461_1 WHERE rebounds_per_game = "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: What is the highest 4 hoops, 2 clubs of Belarus, which has a total less than 38.25? ### Context: CREATE TABLE table_name_14 (_2_clubs VARCHAR, nation VARCHAR, total VARCHAR) ### Response: ### Response: SELECT MAX(4 AS _hoops), _2_clubs FROM table_name_14 WHERE nation = "belarus" AND total < 38.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: On what day was the record 30-31? ### Context: CREATE TABLE table_name_88 (date VARCHAR, record VARCHAR) ### Response: ### Response: SELECT date FROM table_name_88 WHERE record = "30-31"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which player was drafted by the Saskatchewan Roughriders? ### Context: CREATE TABLE table_name_5 (player VARCHAR, cfl_team VARCHAR) ### Response: ### Response: SELECT player FROM table_name_5 WHERE cfl_team = "saskatchewan roughriders"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the sum of the total for a routine score of 26.6? ### Context: CREATE TABLE table_name_69 (total INTEGER, routine_score VARCHAR) ### Response: ### Response: SELECT SUM(total) FROM table_name_69 WHERE routine_score = 26.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 Position of the Level 3 winner from Saint Kitts and Nevis? ### Context: CREATE TABLE table_name_51 (position VARCHAR, level VARCHAR, nationality VARCHAR) ### Response: ### Response: SELECT position FROM table_name_51 WHERE level = 3 AND nationality = "saint kitts and nevis"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 percentage of the people in Bonneville voted for Bush? ### Context: CREATE TABLE table_2401326_1 (bush_percentage VARCHAR, county VARCHAR) ### Response: ### Response: SELECT bush_percentage FROM table_2401326_1 WHERE county = "Bonneville"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of the game played with Birmingham City as the away team? ### Context: CREATE TABLE table_24887326_7 (date VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT date FROM table_24887326_7 WHERE away_team = "Birmingham City"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 on 2 October 2006? ### Context: CREATE TABLE table_name_98 (tournament VARCHAR, date VARCHAR) ### Response: ### Response: SELECT tournament FROM table_name_98 WHERE date = "2 october 2006"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of week 17? ### Context: CREATE TABLE table_name_35 (date VARCHAR, week VARCHAR) ### Response: ### Response: SELECT date FROM table_name_35 WHERE week = 17</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 cougars record during the game where Boston were the visitors? ### Context: CREATE TABLE table_name_88 (record VARCHAR, visitor VARCHAR) ### Response: ### Response: SELECT record FROM table_name_88 WHERE visitor = "boston"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 bridge is Colton's Crossing Bridge? ### Context: CREATE TABLE table_name_46 (type VARCHAR, name VARCHAR) ### Response: ### Response: SELECT type FROM table_name_46 WHERE name = "colton's crossing bridge"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 partner with a runner-up outcome on April 6, 1992? ### Context: CREATE TABLE table_name_26 (partner VARCHAR, outcome VARCHAR, date VARCHAR) ### Response: ### Response: SELECT partner FROM table_name_26 WHERE outcome = "runner-up" AND date = "april 6, 1992"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 object type had an NGC number greater than 6357 and a declination (J2000) of °45′34″? ### Context: CREATE TABLE table_name_53 (object_type VARCHAR, ngc_number VARCHAR, declination___j2000__ VARCHAR) ### Response: ### Response: SELECT object_type FROM table_name_53 WHERE ngc_number > 6357 AND declination___j2000__ = "°45′34″"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 brand and name for each camera lens, and sort in descending order of maximum aperture. ### Context: CREATE TABLE camera_lens (brand VARCHAR, name VARCHAR, max_aperture VARCHAR) ### Response: ### Response: SELECT brand, name FROM camera_lens ORDER BY max_aperture 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: Who is the opponent of the game with a game number larger than 5 on June 22? ### Context: CREATE TABLE table_name_85 (opponent VARCHAR, game VARCHAR, date VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_85 WHERE game > 5 AND date = "june 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: Who was the lead when Jamie Meikle was the skip? ### Context: CREATE TABLE table_name_11 (lead VARCHAR, skip VARCHAR) ### Response: ### Response: SELECT lead FROM table_name_11 WHERE skip = "jamie meikle"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 percent of the vote went to Meg Whitman in the poll taken on October 21, 2010. ### Context: CREATE TABLE table_name_51 (meg_whitman__r_ VARCHAR, date_s__administered VARCHAR) ### Response: ### Response: SELECT meg_whitman__r_ FROM table_name_51 WHERE date_s__administered = "october 21, 2010"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 films participated when the category was Best Newcomer? ### Context: CREATE TABLE table_29644931_1 (participants_recipients VARCHAR, category VARCHAR) ### Response: ### Response: SELECT participants_recipients FROM table_29644931_1 WHERE category = "Best Newcomer"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 61 is the entries what is the winning boat? ### Context: CREATE TABLE table_24673710_1 (winning_boat VARCHAR, entries VARCHAR) ### Response: ### Response: SELECT winning_boat FROM table_24673710_1 WHERE entries = 61</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 production code for the episode that debuted October 1, 1993? ### Context: CREATE TABLE table_2468961_4 (production_code INTEGER, original_air_date VARCHAR) ### Response: ### Response: SELECT MAX(production_code) FROM table_2468961_4 WHERE original_air_date = "October 1, 1993"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the score on the 1st leg if the team 2 is botafogo? ### Context: CREATE TABLE table_17282875_2 (team__number2 VARCHAR) ### Response: ### Response: SELECT COUNT(1 AS st_leg) FROM table_17282875_2 WHERE team__number2 = "Botafogo"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 away team when the attendance was 76? ### Context: CREATE TABLE table_name_16 (away_team VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT away_team FROM table_name_16 WHERE attendance = "76"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the most wins ### Context: CREATE TABLE table_15327489_1 (wins INTEGER) ### Response: ### Response: SELECT MIN(wins) FROM table_15327489_1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many fourth places were there in 2003? ### Context: CREATE TABLE table_1149495_1 (fourth_place VARCHAR, year VARCHAR) ### Response: ### Response: SELECT COUNT(fourth_place) FROM table_1149495_1 WHERE year = "2003"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what team scored 5–5–1–1? ### Context: CREATE TABLE table_name_71 (home VARCHAR, record VARCHAR) ### Response: ### Response: SELECT home FROM table_name_71 WHERE record = "5–5–1–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 Source has an Attack of 9,77%? ### Context: CREATE TABLE table_name_8 (source VARCHAR, attack VARCHAR) ### Response: ### Response: SELECT source FROM table_name_8 WHERE attack = "9,77%"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many settlements are there in total? ### Context: CREATE TABLE Settlements (Id VARCHAR) ### Response: ### Response: SELECT COUNT(*) FROM Settlements</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: List all the subject names. ### Context: CREATE TABLE SUBJECTS (subject_name VARCHAR) ### Response: ### Response: SELECT subject_name FROM SUBJECTS</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 game site for week 6 ### Context: CREATE TABLE table_14984103_1 (game_site VARCHAR, week VARCHAR) ### Response: ### Response: SELECT game_site FROM table_14984103_1 WHERE 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: which Vacator has a Reason for change of resigned november 10, 1965? ### Context: CREATE TABLE table_name_6 (vacator VARCHAR, reason_for_change VARCHAR) ### Response: ### Response: SELECT vacator FROM table_name_6 WHERE reason_for_change = "resigned november 10, 1965"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 points when the chassis is focus rs wrc 08 and 09 and the stage wins is more than 91? ### Context: CREATE TABLE table_name_42 (points INTEGER, chassis VARCHAR, stage_wins VARCHAR) ### Response: ### Response: SELECT MAX(points) FROM table_name_42 WHERE chassis = "focus rs wrc 08 and 09" AND stage_wins > 91</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many directors were in Season 2? ### Context: CREATE TABLE table_20704243_3 (directed_by VARCHAR, season__number VARCHAR) ### Response: ### Response: SELECT COUNT(directed_by) FROM table_20704243_3 WHERE season__number = 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 method when the location is Auckland, New Zealand, Darren Berry as the opponent, and resulted in a win? ### Context: CREATE TABLE table_name_33 (method VARCHAR, opponent VARCHAR, location VARCHAR, result VARCHAR) ### Response: ### Response: SELECT method FROM table_name_33 WHERE location = "auckland, new zealand" AND result = "win" AND opponent = "darren berry"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: With a date of 8/3/08, what was the length of the victory margin? ### Context: CREATE TABLE table_16689920_1 (victory_margin__in_lengths_ VARCHAR, date VARCHAR) ### Response: ### Response: SELECT COUNT(victory_margin__in_lengths_) FROM table_16689920_1 WHERE date = "8/3/08"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 largest attendance at the Telstra Dome, when the home team was the Western Bulldogs? ### Context: CREATE TABLE table_name_30 (crowd INTEGER, ground VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT MAX(crowd) FROM table_name_30 WHERE ground = "telstra dome" AND home_team = "western bulldogs"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the Score of the Semifinal 1? ### Context: CREATE TABLE table_name_31 (score VARCHAR, round VARCHAR) ### Response: ### Response: SELECT score FROM table_name_31 WHERE round = "semifinal 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 directed with original air date being november18,1995 ### Context: CREATE TABLE table_14637853_3 (directed_by VARCHAR, original_air_date VARCHAR) ### Response: ### Response: SELECT directed_by FROM table_14637853_3 WHERE original_air_date = "November18,1995"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Played is the highest one that has an Against smaller than 18, and Points smaller than 10? ### Context: CREATE TABLE table_name_92 (played INTEGER, against VARCHAR, points VARCHAR) ### Response: ### Response: SELECT MAX(played) FROM table_name_92 WHERE against < 18 AND points < 10</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Production Number with a Director of friz freleng, and a Title of wacky worm, the? ### Context: CREATE TABLE table_name_52 (production_number VARCHAR, director VARCHAR, title VARCHAR) ### Response: ### Response: SELECT production_number FROM table_name_52 WHERE director = "friz freleng" AND title = "wacky worm, the"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 nationality of Shayne Wright? ### Context: CREATE TABLE table_1013129_11 (nationality VARCHAR, player VARCHAR) ### Response: ### Response: SELECT nationality FROM table_1013129_11 WHERE player = "Shayne Wright"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 different carriers of phones together with the number of phones with each carrier. ### Context: CREATE TABLE phone (Carrier VARCHAR) ### Response: ### Response: SELECT Carrier, COUNT(*) FROM phone GROUP BY Carrier</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 original titles were listed as "If the Sun Never Returns"? ### Context: CREATE TABLE table_22034853_1 (original_title VARCHAR, film_title_used_in_nomination VARCHAR) ### Response: ### Response: SELECT COUNT(original_title) FROM table_22034853_1 WHERE film_title_used_in_nomination = "If the Sun Never Returns"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the final score at Heinz Field? ### Context: CREATE TABLE table_name_25 (final_score VARCHAR, stadium VARCHAR) ### Response: ### Response: SELECT final_score FROM table_name_25 WHERE stadium = "heinz field"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the sum of Yellow, when Category is Bugre (Indian), and when Amerindian is less than 50,00? ### Context: CREATE TABLE table_name_76 (yellow INTEGER, category VARCHAR, amerindian VARCHAR) ### Response: ### Response: SELECT SUM(yellow) FROM table_name_76 WHERE category = "bugre (indian)" AND amerindian < 50 OFFSET 00</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 socket is on the microprocessor with a part number of 80526pz533256? ### Context: CREATE TABLE table_name_28 (socket VARCHAR, part_number_s_ VARCHAR) ### Response: ### Response: SELECT socket FROM table_name_28 WHERE part_number_s_ = "80526pz533256"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 with a Score of 3–2? ### Context: CREATE TABLE table_name_59 (attendance VARCHAR, score VARCHAR) ### Response: ### Response: SELECT COUNT(attendance) FROM table_name_59 WHERE score = "3–2"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who were the candidates in district Wisconsin 1? ### Context: CREATE TABLE table_1341472_51 (candidates VARCHAR, district VARCHAR) ### Response: ### Response: SELECT candidates FROM table_1341472_51 WHERE district = "Wisconsin 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 were the guests that aired on 7 June 2010? ### Context: CREATE TABLE table_26733129_1 (guests VARCHAR, air_date VARCHAR) ### Response: ### Response: SELECT guests FROM table_26733129_1 WHERE air_date = "7 June 2010"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Western Division of Wins with a 4th Finish? ### Context: CREATE TABLE table_name_95 (wins VARCHAR, division VARCHAR, finish VARCHAR) ### Response: ### Response: SELECT wins FROM table_name_95 WHERE division = "western" AND finish = "4th"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 location of the tournament with more than 6 OWGR points and Ryu Hyun-Woo as the winner? ### Context: CREATE TABLE table_name_74 (location VARCHAR, owgr_points VARCHAR, winner VARCHAR) ### Response: ### Response: SELECT location FROM table_name_74 WHERE owgr_points > 6 AND winner = "ryu hyun-woo"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 #1 played again chalkida ### Context: CREATE TABLE table_21434618_1 (team__number1 VARCHAR, team__number2 VARCHAR) ### Response: ### Response: SELECT team__number1 FROM table_21434618_1 WHERE team__number2 = "Chalkida"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 has a Round larger than 4, and a Player of patrick johnson? ### Context: CREATE TABLE table_name_45 (position VARCHAR, round VARCHAR, player VARCHAR) ### Response: ### Response: SELECT position FROM table_name_45 WHERE round > 4 AND player = "patrick johnson"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 athlete when the time is less than 11.13 and the country is belgium? ### Context: CREATE TABLE table_name_51 (athlete VARCHAR, time VARCHAR, country VARCHAR) ### Response: ### Response: SELECT athlete FROM table_name_51 WHERE time < 11.13 AND country = "belgium"</s>