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 every code and location where the launch site condition and owner is obliterated? ### Context: CREATE TABLE table_22282917_26 (code_ VARCHAR, _location VARCHAR, launch_site_condition_owner VARCHAR) ### Response: ### Response: SELECT code_ & _location FROM table_22282917_26 WHERE launch_site_condition_owner = "Obliterated"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2007 has a Country or territory of china, and a 2002 smaller than 670,099? ### Context: CREATE TABLE table_name_96 (country_or_territory VARCHAR) ### Response: ### Response: SELECT MIN(2007) FROM table_name_96 WHERE country_or_territory = "china" AND 2002 < 670 OFFSET 099</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 byes with more than 0 losses and 1526 against? ### Context: CREATE TABLE table_name_31 (byes VARCHAR, losses VARCHAR, against VARCHAR) ### Response: ### Response: SELECT COUNT(byes) FROM table_name_31 WHERE losses > 0 AND against = 1526</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Partner of daniella dominikovic? ### Context: CREATE TABLE table_name_33 (date VARCHAR, partner VARCHAR) ### Response: ### Response: SELECT date FROM table_name_33 WHERE partner = "daniella dominikovic"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the episode that had a run time of 24:57, how many million viewers were there? ### Context: CREATE TABLE table_name_5 (viewers__in_millions_ VARCHAR, run_time VARCHAR) ### Response: ### Response: SELECT viewers__in_millions_ FROM table_name_5 WHERE run_time = "24:57"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 IEF 2011 of the country with an FSI 2012 of 99.2? ### Context: CREATE TABLE table_name_96 (ief_2011 VARCHAR, fsi_2012 VARCHAR) ### Response: ### Response: SELECT ief_2011 FROM table_name_96 WHERE fsi_2012 = "99.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 School/Club Team played in Toronto during 2012? ### Context: CREATE TABLE table_name_43 (school_club_team VARCHAR, years_in_toronto VARCHAR) ### Response: ### Response: SELECT school_club_team FROM table_name_43 WHERE years_in_toronto = "2012"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Position has a Time of 20.66? ### Context: CREATE TABLE table_name_52 (position VARCHAR, time VARCHAR) ### Response: ### Response: SELECT position FROM table_name_52 WHERE time = 20.66</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Type has a Transfer fee of free, and a Name of kapetanos? ### Context: CREATE TABLE table_name_63 (type VARCHAR, transfer_fee VARCHAR, name VARCHAR) ### Response: ### Response: SELECT type FROM table_name_63 WHERE transfer_fee = "free" AND name = "kapetanos"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 a rank under 17 with a total of 119? ### Context: CREATE TABLE table_name_30 (athlete VARCHAR, rank VARCHAR, total VARCHAR) ### Response: ### Response: SELECT athlete FROM table_name_30 WHERE rank < 17 AND total = "119"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 a 59 cap? ### Context: CREATE TABLE table_name_9 (name VARCHAR, caps VARCHAR) ### Response: ### Response: SELECT name FROM table_name_9 WHERE caps = 59</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 gold medals for countries with more than 0 bronze, more than 0 silver, rank over 2 and total over 3? ### Context: CREATE TABLE table_name_56 (gold INTEGER, total VARCHAR, rank VARCHAR, bronze VARCHAR, silver VARCHAR) ### Response: ### Response: SELECT AVG(gold) FROM table_name_56 WHERE bronze > 0 AND silver > 0 AND rank > 2 AND total > 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: Can you tell me the TV Time that has the Date of november 22, 1998? ### Context: CREATE TABLE table_name_35 (tv_time VARCHAR, date VARCHAR) ### Response: ### Response: SELECT tv_time FROM table_name_35 WHERE date = "november 22, 1998"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What To par scored 72-71-68=211? ### Context: CREATE TABLE table_name_29 (to_par VARCHAR, score VARCHAR) ### Response: ### Response: SELECT to_par FROM table_name_29 WHERE score = 72 - 71 - 68 = 211</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 round has a position that is cornerback? ### Context: CREATE TABLE table_name_19 (round VARCHAR, position VARCHAR) ### Response: ### Response: SELECT round FROM table_name_19 WHERE position = "cornerback"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the event with a 1:51.51 time? ### Context: CREATE TABLE table_name_66 (nationality VARCHAR, time VARCHAR) ### Response: ### Response: SELECT nationality FROM table_name_66 WHERE time = "1:51.51"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Transfer fee has Ends larger than 2011, and a Moving from of psv? ### Context: CREATE TABLE table_name_27 (transfer_fee VARCHAR, ends VARCHAR, moving_from VARCHAR) ### Response: ### Response: SELECT transfer_fee FROM table_name_27 WHERE ends > 2011 AND moving_from = "psv"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Southern Vermont College founded? ### Context: CREATE TABLE table_2076595_1 (founded INTEGER, school VARCHAR) ### Response: ### Response: SELECT MAX(founded) FROM table_2076595_1 WHERE school = "Southern Vermont College"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is Position, when Class is Sophomore, and when Player is Shaquille O'Neal Category:Articles With hCards? ### Context: CREATE TABLE table_name_93 (position VARCHAR, class VARCHAR, player VARCHAR) ### Response: ### Response: SELECT position FROM table_name_93 WHERE class = "sophomore" AND player = "shaquille o'neal category:articles with hcards"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 last title for 2012 ### Context: CREATE TABLE table_2454589_1 (last_title VARCHAR, first_season_in_current_spell VARCHAR) ### Response: ### Response: SELECT last_title FROM table_2454589_1 WHERE first_season_in_current_spell = 2012</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Derik Fury plays for which college? ### Context: CREATE TABLE table_21321804_5 (college VARCHAR, player VARCHAR) ### Response: ### Response: SELECT college FROM table_21321804_5 WHERE player = "Derik Fury"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How much was paid to the player whose score was 70-71-77-76=294? ### Context: CREATE TABLE table_name_23 (money___ INTEGER, score VARCHAR) ### Response: ### Response: SELECT SUM(money___) AS $__ FROM table_name_23 WHERE score = 70 - 71 - 77 - 76 = 294</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is Score, when Place is "T8", and when Player is "Orville Moody"? ### Context: CREATE TABLE table_name_40 (score VARCHAR, place VARCHAR, player VARCHAR) ### Response: ### Response: SELECT score FROM table_name_40 WHERE place = "t8" AND player = "orville moody"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 attended the game on april 14? ### Context: CREATE TABLE table_name_28 (attendance VARCHAR, date VARCHAR) ### Response: ### Response: SELECT COUNT(attendance) FROM table_name_28 WHERE date = "april 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 are the numbers for lc models built in 2009? ### Context: CREATE TABLE table_name_34 (numbers VARCHAR, model VARCHAR, year_built VARCHAR) ### Response: ### Response: SELECT numbers FROM table_name_34 WHERE model = "lc" AND year_built = 2009</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 has a total of 158/ ### Context: CREATE TABLE table_name_54 (player VARCHAR, total VARCHAR) ### Response: ### Response: SELECT player FROM table_name_54 WHERE total = "158"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 championship before 2012 that had Stephane Houdet Michael Jeremiasz as opponents? ### Context: CREATE TABLE table_name_23 (championship VARCHAR, year VARCHAR, opponents_in_final VARCHAR) ### Response: ### Response: SELECT championship FROM table_name_23 WHERE year < 2012 AND opponents_in_final = "stephane houdet michael jeremiasz"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Tell me the year built for number built of 10 ### Context: CREATE TABLE table_name_14 (year_built__converted VARCHAR, _ VARCHAR, no_built__converted VARCHAR) ### Response: ### Response: SELECT year_built__converted * _ FROM table_name_14 WHERE no_built__converted * _ = "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: What is the average amount due for all the payments? ### Context: CREATE TABLE payments (amount_due INTEGER) ### Response: ### Response: SELECT AVG(amount_due) FROM payments</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 TAMIL HAS Kannada of budhavara? ### Context: CREATE TABLE table_name_91 (tamil VARCHAR, kannada VARCHAR) ### Response: ### Response: SELECT tamil FROM table_name_91 WHERE kannada = "budhavara"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 was team 1 in the match where team 2 was olympique lyonnais (d2)? ### Context: CREATE TABLE table_name_20 (team_1 VARCHAR, team_2 VARCHAR) ### Response: ### Response: SELECT team_1 FROM table_name_20 WHERE team_2 = "olympique lyonnais (d2)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 value for Byes, when Against is less than 1794, when Losses is "6", and when Draws is less than 0? ### Context: CREATE TABLE table_name_61 (byes INTEGER, draws VARCHAR, against VARCHAR, losses VARCHAR) ### Response: ### Response: SELECT MAX(byes) FROM table_name_61 WHERE against < 1794 AND losses = 6 AND draws < 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: Which Bronze has a Gold larger than 1, and a Silver smaller than 3, and a Rank smaller than 5? ### Context: CREATE TABLE table_name_69 (bronze VARCHAR, rank VARCHAR, gold VARCHAR, silver VARCHAR) ### Response: ### Response: SELECT bronze FROM table_name_69 WHERE gold > 1 AND silver < 3 AND rank < 5</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the lowest number of participants in 2010 when there were 0 participants in 2012? ### Context: CREATE TABLE table_name_76 (Id VARCHAR) ### Response: ### Response: SELECT MIN(2010) FROM table_name_76 WHERE 2012 < 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 earliest year for the Ligier Gitanes? ### Context: CREATE TABLE table_name_46 (year INTEGER, entrant VARCHAR) ### Response: ### Response: SELECT MIN(year) FROM table_name_46 WHERE entrant = "ligier gitanes"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 club having less than 22 apps and ranked less than 2? ### Context: CREATE TABLE table_name_72 (club VARCHAR, apps VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT club FROM table_name_72 WHERE apps < 22 AND rank < 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 Sydney's Melbourne was no, when Auckland was yes? ### Context: CREATE TABLE table_name_94 (sydney VARCHAR, melbourne VARCHAR, auckland VARCHAR) ### Response: ### Response: SELECT sydney FROM table_name_94 WHERE melbourne = "no" AND auckland = "yes"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Intermediate Sprints Classification Red Jersey that has a Green Jersey of Murilo Antonio Fischer, and Jose Joaquin Rojas Gil? ### Context: CREATE TABLE table_name_34 (intermediate_sprints_classification_red_jersey VARCHAR, mountains_classification_green_jersey VARCHAR, points_classification_navy_blue_jersey VARCHAR) ### Response: ### Response: SELECT intermediate_sprints_classification_red_jersey FROM table_name_34 WHERE mountains_classification_green_jersey = "murilo antonio fischer" AND points_classification_navy_blue_jersey = "jose joaquin rojas gil"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 away team's score when Collingwood was the home team? ### Context: CREATE TABLE table_name_17 (away_team VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT away_team AS score FROM table_name_17 WHERE home_team = "collingwood"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 runners-up did Espartanos de Margarita have? ### Context: CREATE TABLE table_name_84 (runners_up VARCHAR, team VARCHAR) ### Response: ### Response: SELECT runners_up FROM table_name_84 WHERE team = "espartanos de margarita"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 ties does Walsall have? ### Context: CREATE TABLE table_name_97 (tie_no VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT tie_no FROM table_name_97 WHERE away_team = "walsall"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 did LINKE get in Tyrol? ### Context: CREATE TABLE table_name_99 (linke VARCHAR, state VARCHAR) ### Response: ### Response: SELECT linke FROM table_name_99 WHERE state = "tyrol"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Tell me the time/retired for Laps of 42 and Grids of 4 ### Context: CREATE TABLE table_name_74 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR) ### Response: ### Response: SELECT time_retired FROM table_name_74 WHERE laps = 42 AND grid = 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: I want to know the home team for mcg venue ### Context: CREATE TABLE table_name_71 (home_team VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT home_team FROM table_name_71 WHERE venue = "mcg"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 5 is the number what is the japanese title? ### Context: CREATE TABLE table_2144389_9 (japanese_title VARCHAR, _number VARCHAR) ### Response: ### Response: SELECT japanese_title FROM table_2144389_9 WHERE _number = 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: In italy, when the stolen ends were 10 and blank ends were under 14, what's the lowest ends won? ### Context: CREATE TABLE table_name_45 (ends_won INTEGER, blank_ends VARCHAR, stolen_ends VARCHAR, locale VARCHAR) ### Response: ### Response: SELECT MIN(ends_won) FROM table_name_45 WHERE stolen_ends = 10 AND locale = "italy" AND blank_ends < 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 lowest block for director Graeme Harper? ### Context: CREATE TABLE table_name_79 (block INTEGER, director VARCHAR) ### Response: ### Response: SELECT MIN(block) FROM table_name_79 WHERE director = "graeme harper"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Segment A of heather gems is what netflix episode? ### Context: CREATE TABLE table_name_97 (netflix VARCHAR, segment_a VARCHAR) ### Response: ### Response: SELECT netflix FROM table_name_97 WHERE segment_a = "heather gems"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Distance, when Athlete is "Irving Saladino"? ### Context: CREATE TABLE table_name_57 (distance VARCHAR, athlete VARCHAR) ### Response: ### Response: SELECT distance FROM table_name_57 WHERE athlete = "irving saladino"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Find the first names of students who took exactly one class. ### Context: CREATE TABLE enroll (stu_num VARCHAR); CREATE TABLE student (stu_fname VARCHAR, stu_num VARCHAR) ### Response: ### Response: SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num GROUP BY T2.stu_num HAVING COUNT(*) = 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 December has Points of 38, and a Record of 18–6–2? ### Context: CREATE TABLE table_name_49 (december INTEGER, points VARCHAR, record VARCHAR) ### Response: ### Response: SELECT AVG(december) FROM table_name_49 WHERE points = 38 AND record = "18–6–2"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the make of the vehicle for driver Hisashi Wada? ### Context: CREATE TABLE table_name_24 (make VARCHAR, drivers VARCHAR) ### Response: ### Response: SELECT make FROM table_name_24 WHERE drivers = "hisashi wada"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many points in 87/88 for racing de córdoba? ### Context: CREATE TABLE table_14460085_3 (team VARCHAR) ### Response: ### Response: SELECT 1987 AS _88 FROM table_14460085_3 WHERE team = "Racing de Córdoba"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 smallest area in Russia that is ranked 23 with a population more than 522,800? ### Context: CREATE TABLE table_name_21 (area__km²_ INTEGER, population VARCHAR, country VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT MIN(area__km²_) FROM table_name_21 WHERE country = "russia" AND rank = 23 AND population > 522 OFFSET 800</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the lowest number of games played by the player with 50 steals? ### Context: CREATE TABLE table_22993636_5 (games_played INTEGER, steals VARCHAR) ### Response: ### Response: SELECT MIN(games_played) FROM table_22993636_5 WHERE steals = 50</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What tournament did Thomaz Bellucci become runner-up on a clay surface? ### Context: CREATE TABLE table_name_82 (tournament VARCHAR, outcome VARCHAR, surface VARCHAR) ### Response: ### Response: SELECT tournament FROM table_name_82 WHERE outcome = "runner-up" AND surface = "clay"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 verb for Khola? ### Context: CREATE TABLE table_name_1 (verb VARCHAR) ### Response: ### Response: SELECT 3 AS __f_ FROM table_name_1 WHERE verb = "khola"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 eliminated on the air date of November 3, 2005? ### Context: CREATE TABLE table_1893276_2 (eliminated VARCHAR, air_date VARCHAR) ### Response: ### Response: SELECT eliminated FROM table_1893276_2 WHERE air_date = "November 3, 2005"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 pole position for belgian grand prix ### Context: CREATE TABLE table_name_75 (pole_position VARCHAR, grand_prix VARCHAR) ### Response: ### Response: SELECT pole_position FROM table_name_75 WHERE grand_prix = "belgian grand prix"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which format is released on May 27, 2009? ### Context: CREATE TABLE table_name_31 (format VARCHAR, date VARCHAR) ### Response: ### Response: SELECT format FROM table_name_31 WHERE date = "may 27, 2009"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 route for the destination of guruvayur? ### Context: CREATE TABLE table_29770377_1 (route_via VARCHAR, destination VARCHAR) ### Response: ### Response: SELECT route_via FROM table_29770377_1 WHERE destination = "Guruvayur"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What Venue has a Year smaller than 1991, Time larger than 10.29, Competition of mediterranean games, and Event of 4x100 m relay? ### Context: CREATE TABLE table_name_10 (venue VARCHAR, event VARCHAR, competition VARCHAR, year VARCHAR, time VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_10 WHERE year < 1991 AND time > 10.29 AND competition = "mediterranean games" AND event = "4x100 m relay"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 building is in Shenzhen, have less than 115 floors, and was completed before 2017? ### Context: CREATE TABLE table_name_79 (name VARCHAR, floors VARCHAR, city VARCHAR, completion VARCHAR) ### Response: ### Response: SELECT name FROM table_name_79 WHERE city = "shenzhen" AND completion < 2017 AND floors < 115</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 format is released on May 27, 2009? ### Context: CREATE TABLE table_name_77 (format VARCHAR, date VARCHAR) ### Response: ### Response: SELECT format FROM table_name_77 WHERE date = "may 27, 2009"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 cyrillic name for orthodox christianity village and bačko dobro polje ### Context: CREATE TABLE table_2562572_20 (cyrillic_name_other_names VARCHAR, settlement VARCHAR, dominant_religion__2002_ VARCHAR, type VARCHAR) ### Response: ### Response: SELECT cyrillic_name_other_names FROM table_2562572_20 WHERE dominant_religion__2002_ = "Orthodox Christianity" AND type = "village" AND settlement = "Bačko Dobro Polje"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 ream played later than 1958 in the kellogg's tour? ### Context: CREATE TABLE table_name_54 (team_country VARCHAR, year VARCHAR, race_name VARCHAR) ### Response: ### Response: SELECT team_country FROM table_name_54 WHERE year > 1958 AND race_name = "kellogg's tour"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 celebrity finished 6th? ### Context: CREATE TABLE table_name_79 (celebrity VARCHAR, finished VARCHAR) ### Response: ### Response: SELECT celebrity FROM table_name_79 WHERE finished = "6th"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 institution when the team nickname is lakers? ### Context: CREATE TABLE table_name_22 (institution VARCHAR, team_nickname VARCHAR) ### Response: ### Response: SELECT institution FROM table_name_22 WHERE team_nickname = "lakers"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 winner has the sanremo to cuneo as the course? ### Context: CREATE TABLE table_name_51 (winner VARCHAR, course VARCHAR) ### Response: ### Response: SELECT winner FROM table_name_51 WHERE course = "sanremo to cuneo"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 grid when the driver was Mark Webber? ### Context: CREATE TABLE table_name_96 (grid VARCHAR, driver VARCHAR) ### Response: ### Response: SELECT grid FROM table_name_96 WHERE driver = "mark webber"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 vacancy for 10 december 2007 when quit? ### Context: CREATE TABLE table_11713303_2 (date_of_vacancy VARCHAR, date_of_appointment VARCHAR, manner_of_departure VARCHAR) ### Response: ### Response: SELECT date_of_vacancy FROM table_11713303_2 WHERE date_of_appointment = "10 December 2007" AND manner_of_departure = "Quit"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for the game played against @ Milwaukee? ### Context: CREATE TABLE table_name_39 (score VARCHAR, team VARCHAR) ### Response: ### Response: SELECT score FROM table_name_39 WHERE team = "@ milwaukee"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: March of 26 has what lowest game? ### Context: CREATE TABLE table_name_24 (game INTEGER, march VARCHAR) ### Response: ### Response: SELECT MIN(game) FROM table_name_24 WHERE march = 26</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 latest season with a nick production number of 942? ### Context: CREATE TABLE table_2655016_10 (season__number INTEGER, nick_prod__number VARCHAR) ### Response: ### Response: SELECT MAX(season__number) FROM table_2655016_10 WHERE nick_prod__number = 942</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 captains when the shirt sponsor is toshiba? ### Context: CREATE TABLE table_27631756_2 (captain VARCHAR, shirt_sponsor VARCHAR) ### Response: ### Response: SELECT COUNT(captain) FROM table_27631756_2 WHERE shirt_sponsor = "Toshiba"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 company built the ship named excellent in 1998? ### Context: CREATE TABLE table_name_59 (company VARCHAR, built VARCHAR, ship VARCHAR) ### Response: ### Response: SELECT company FROM table_name_59 WHERE built = 1998 AND ship = "excellent"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Laps, when Rider is Sylvain Guintoli, and when Grid is less than 16? ### Context: CREATE TABLE table_name_68 (laps INTEGER, rider VARCHAR, grid VARCHAR) ### Response: ### Response: SELECT MIN(laps) FROM table_name_68 WHERE rider = "sylvain guintoli" AND grid < 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: Name the Place which has To par of –5, in united states? ### Context: CREATE TABLE table_name_95 (place VARCHAR, country VARCHAR, to_par VARCHAR) ### Response: ### Response: SELECT place FROM table_name_95 WHERE country = "united states" AND to_par = "–5"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What tournament had Alberta Brianti as an opponent with a score of 6-4 2-6 6-2? ### Context: CREATE TABLE table_name_96 (tournament VARCHAR, opponent VARCHAR, score VARCHAR) ### Response: ### Response: SELECT tournament FROM table_name_96 WHERE opponent = "alberta brianti" AND score = "6-4 2-6 6-2"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What bran is the callsign dytc-fm? ### Context: CREATE TABLE table_2610582_7 (branding VARCHAR, callsign VARCHAR) ### Response: ### Response: SELECT branding FROM table_2610582_7 WHERE callsign = "DYTC-FM"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 wed 25 aug when mon 23 aug is 26' 57.82 89.957mph? ### Context: CREATE TABLE table_26986076_2 (wed_25_aug VARCHAR, mon_23_aug VARCHAR) ### Response: ### Response: SELECT wed_25_aug FROM table_26986076_2 WHERE mon_23_aug = "26' 57.82 89.957mph"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When is the earliest year opened for huff hall that was established after 1974? ### Context: CREATE TABLE table_name_20 (opened INTEGER, venue VARCHAR, established VARCHAR) ### Response: ### Response: SELECT MIN(opened) FROM table_name_20 WHERE venue = "huff hall" AND established > 1974</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 took the loss on the April 6 game? ### Context: CREATE TABLE table_name_84 (loss VARCHAR, date VARCHAR) ### Response: ### Response: SELECT loss FROM table_name_84 WHERE date = "april 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 average base price of different bed type? List bed type and average base price. ### Context: CREATE TABLE Rooms (bedType VARCHAR, basePrice INTEGER) ### Response: ### Response: SELECT bedType, AVG(basePrice) FROM Rooms GROUP BY bedType</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 winner's share in the wegmans lpga championship? ### Context: CREATE TABLE table_17335602_1 (winners_share___ INTEGER, tournament VARCHAR) ### Response: ### Response: SELECT MAX(winners_share___) AS $__ FROM table_17335602_1 WHERE tournament = "Wegmans LPGA Championship"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Year opened when steel was the material with a Span feet of 1476? ### Context: CREATE TABLE table_name_75 (year_opened INTEGER, material VARCHAR, span_feet VARCHAR) ### Response: ### Response: SELECT SUM(year_opened) FROM table_name_75 WHERE material = "steel" AND span_feet = 1476</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 stadium for alloa athletic? ### Context: CREATE TABLE table_11206787_5 (stadium VARCHAR, team VARCHAR) ### Response: ### Response: SELECT stadium FROM table_11206787_5 WHERE team = "Alloa Athletic"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 label's year is 1993? ### Context: CREATE TABLE table_name_45 (label VARCHAR, year VARCHAR) ### Response: ### Response: SELECT label FROM table_name_45 WHERE year = "1993"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the average laps for lorenzo bandini with a grid under 3? ### Context: CREATE TABLE table_name_91 (laps INTEGER, driver VARCHAR, grid VARCHAR) ### Response: ### Response: SELECT AVG(laps) FROM table_name_91 WHERE driver = "lorenzo bandini" AND grid < 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 least gold when the rank is 10 and silver is less than 0? ### Context: CREATE TABLE table_name_71 (gold INTEGER, rank VARCHAR, silver VARCHAR) ### Response: ### Response: SELECT MIN(gold) FROM table_name_71 WHERE rank = "10" AND silver < 0</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the average Top-5 finishes with 2 as the Top-10 and a greater than 4 Top-25? ### Context: CREATE TABLE table_name_74 (top_5 INTEGER, top_10 VARCHAR, top_25 VARCHAR) ### Response: ### Response: SELECT AVG(top_5) FROM table_name_74 WHERE top_10 = 2 AND top_25 > 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: Show the premise type and address type code for all customer addresses. ### Context: CREATE TABLE premises (premises_type VARCHAR, premise_id VARCHAR); CREATE TABLE customer_addresses (address_type_code VARCHAR, premise_id VARCHAR) ### Response: ### Response: SELECT T2.premises_type, T1.address_type_code FROM customer_addresses AS T1 JOIN premises AS T2 ON T1.premise_id = T2.premise_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 was the score of the game on June 10? ### Context: CREATE TABLE table_name_10 (score_time VARCHAR, date VARCHAR) ### Response: ### Response: SELECT score_time FROM table_name_10 WHERE date = "june 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: What is the averaged scored number of team guaraní, which has less than 6 draws and less than 5 losses? ### Context: CREATE TABLE table_name_30 (scored INTEGER, losses VARCHAR, draws VARCHAR, team VARCHAR) ### Response: ### Response: SELECT AVG(scored) FROM table_name_30 WHERE draws < 6 AND team = "guaraní" AND losses < 5</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what is the to par for $242,813 with score 68-72-74-66=280 ### Context: CREATE TABLE table_name_83 (to_par VARCHAR, money___$__ VARCHAR, score VARCHAR) ### Response: ### Response: SELECT to_par FROM table_name_83 WHERE money___$__ = "242,813" AND score = 68 - 72 - 74 - 66 = 280</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many people attended the green bay packers game? ### Context: CREATE TABLE table_name_14 (attendance INTEGER, opponent VARCHAR) ### Response: ### Response: SELECT SUM(attendance) FROM table_name_14 WHERE opponent = "green bay packers"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 runners-up in the game that was won by Cork City F.C. on 10/05/1998? ### Context: CREATE TABLE table_name_48 (runners_up VARCHAR, winners VARCHAR, date VARCHAR) ### Response: ### Response: SELECT runners_up FROM table_name_48 WHERE winners = "cork city f.c." AND date = "10/05/1998"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Tell me the country for ICAO of tjig ### Context: CREATE TABLE table_name_84 (country VARCHAR, icao VARCHAR) ### Response: ### Response: SELECT country FROM table_name_84 WHERE icao = "tjig"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 position does Wayne Ellington play? ### Context: CREATE TABLE table_name_24 (position VARCHAR, player VARCHAR) ### Response: ### Response: SELECT position FROM table_name_24 WHERE player = "wayne ellington"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 district has an IUCN of iii and was established in 1998? ### Context: CREATE TABLE table_name_44 (district VARCHAR, iucn VARCHAR, est VARCHAR) ### Response: ### Response: SELECT district FROM table_name_44 WHERE iucn = "iii" AND est = 1998</s>