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: Find the average number of followers for the users who had some tweets. ### Context: CREATE TABLE user_profiles (followers INTEGER, UID VARCHAR); CREATE TABLE tweets (followers INTEGER, UID VARCHAR) ### Response: ### Response: SELECT AVG(followers) FROM user_profiles WHERE UID IN (SELECT UID FROM tweets)</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Where is Bluetongue Stadium located? ### Context: CREATE TABLE table_1301373_1 (location VARCHAR, stadium VARCHAR) ### Response: ### Response: SELECT location FROM table_1301373_1 WHERE stadium = "Bluetongue stadium"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 An Egg Scramble? ### Context: CREATE TABLE table_name_53 (director VARCHAR, title VARCHAR) ### Response: ### Response: SELECT director FROM table_name_53 WHERE title = "an egg scramble"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 did the Patriots play in week 4? ### Context: CREATE TABLE table_name_43 (opponent VARCHAR, week VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_43 WHERE week = 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: Tell me the partner for outcome of winner and score of 7-6 (7) 5-7 10-7 ### Context: CREATE TABLE table_name_10 (partner VARCHAR, outcome VARCHAR, score VARCHAR) ### Response: ### Response: SELECT partner FROM table_name_10 WHERE outcome = "winner" AND score = "7-6 (7) 5-7 10-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: When 127 is on June 10th to 11th what is November 3rd? ### Context: CREATE TABLE table_25286976_2 (november_3 VARCHAR, june_10_11 VARCHAR) ### Response: ### Response: SELECT november_3 FROM table_25286976_2 WHERE june_10_11 = "127"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 highest Draw which has a Rank of 14, and a Televotes larger than 908? ### Context: CREATE TABLE table_name_77 (draw INTEGER, rank VARCHAR, televotes VARCHAR) ### Response: ### Response: SELECT MAX(draw) FROM table_name_77 WHERE rank = 14 AND televotes > 908</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 stake has 16 wards/branches in Arkansas? ### Context: CREATE TABLE table_name_97 (stake VARCHAR, wards__branches_in_arkansas VARCHAR) ### Response: ### Response: SELECT stake FROM table_name_97 WHERE wards__branches_in_arkansas = 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: In the game on or before week 9, who was the opponent when the attendance was 61,626? ### Context: CREATE TABLE table_name_49 (opponent VARCHAR, week VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_49 WHERE week < 9 AND attendance = "61,626"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 shows for round when the race was Int. Adac Preis Von Zweibrücken? ### Context: CREATE TABLE table_name_43 (round VARCHAR, race VARCHAR) ### Response: ### Response: SELECT round FROM table_name_43 WHERE race = "int. adac preis von zweibrücken"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 a report not held? ### Context: CREATE TABLE table_name_29 (year VARCHAR, report VARCHAR) ### Response: ### Response: SELECT year FROM table_name_29 WHERE report = "not held"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 date did the show with a series larger than 40, production code smaller than 213, and a season number larger than 11 air? ### Context: CREATE TABLE table_name_14 (original_air_date VARCHAR, season_no VARCHAR, series_no VARCHAR, production_code VARCHAR) ### Response: ### Response: SELECT original_air_date FROM table_name_14 WHERE series_no > 40 AND production_code < 213 AND season_no > 11</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: On what day was the record set at the 2002 Salt Lake City games with a time of 3:57.70? ### Context: CREATE TABLE table_name_49 (date VARCHAR, games VARCHAR, time VARCHAR) ### Response: ### Response: SELECT date FROM table_name_49 WHERE games = "2002 salt lake city" AND time = "3:57.70"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 state has a swimsuit less than 9.277, gown more than 8.944 and preliminary greater than 8.483? ### Context: CREATE TABLE table_name_19 (state VARCHAR, preliminary VARCHAR, swimsuit VARCHAR, evening_gown VARCHAR) ### Response: ### Response: SELECT state FROM table_name_19 WHERE swimsuit < 9.277 AND evening_gown > 8.944 AND preliminary < 8.483</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Find the names of all wines produced in 2008. ### Context: CREATE TABLE WINE (Name VARCHAR, YEAR VARCHAR) ### Response: ### Response: SELECT Name FROM WINE WHERE YEAR = "2008"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the highest number of students for schools in Campbell with pupil to teacher ratios over 25? ### Context: CREATE TABLE table_name_13 (students INTEGER, city VARCHAR, pupil_teacher_ratio VARCHAR) ### Response: ### Response: SELECT MAX(students) FROM table_name_13 WHERE city = "campbell" AND pupil_teacher_ratio > 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: When did Marty Riessen team up with a partner during a match on a carpet surface? ### Context: CREATE TABLE table_name_69 (date VARCHAR, surface VARCHAR, partner VARCHAR) ### Response: ### Response: SELECT date FROM table_name_69 WHERE surface = "carpet" AND partner = "marty riessen"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 rebounds of the game with a 6-14 record? ### Context: CREATE TABLE table_name_53 (high_rebounds VARCHAR, record VARCHAR) ### Response: ### Response: SELECT high_rebounds FROM table_name_53 WHERE record = "6-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 was the party of the first elected candidate in 1954? ### Context: CREATE TABLE table_1341738_36 (party VARCHAR, first_elected VARCHAR) ### Response: ### Response: SELECT party FROM table_1341738_36 WHERE first_elected = 1954</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 language is the movie in that is on SAB network through Sky service? ### Context: CREATE TABLE table_name_97 (language VARCHAR, network VARCHAR, service VARCHAR) ### Response: ### Response: SELECT language FROM table_name_97 WHERE network = "sab" AND service = "sky"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 record of 3-5? ### Context: CREATE TABLE table_name_76 (date VARCHAR, record VARCHAR) ### Response: ### Response: SELECT date FROM table_name_76 WHERE record = "3-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 points for game 32? ### Context: CREATE TABLE table_27539808_5 (points INTEGER, game VARCHAR) ### Response: ### Response: SELECT MIN(points) FROM table_27539808_5 WHERE game = 32</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 away team did Carlton play? ### Context: CREATE TABLE table_name_77 (away_team VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT away_team FROM table_name_77 WHERE home_team = "carlton"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 flight numbers of flights arriving at Airport "APG"? ### Context: CREATE TABLE FLIGHTS (FlightNo VARCHAR, DestAirport VARCHAR) ### Response: ### Response: SELECT FlightNo FROM FLIGHTS WHERE DestAirport = "APG"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 phoneme when the realizationis [ɑ] ### Context: CREATE TABLE table_name_16 (phoneme VARCHAR, realization VARCHAR) ### Response: ### Response: SELECT phoneme FROM table_name_16 WHERE realization = "[ɑ]"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 railroads have the numbers 864-873? ### Context: CREATE TABLE table_2351952_1 (railroad VARCHAR, numbers VARCHAR) ### Response: ### Response: SELECT COUNT(railroad) FROM table_2351952_1 WHERE numbers = "864-873"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 round did Jamie Cooke play in? ### Context: CREATE TABLE table_name_34 (round VARCHAR, player VARCHAR) ### Response: ### Response: SELECT round FROM table_name_34 WHERE player = "jamie cooke"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 is the highest one that has a Malaysia Cup of 0, and a Player of ahmad fouzee masuri, and a Total larger than 0? ### Context: CREATE TABLE table_name_25 (fa_cup INTEGER, total VARCHAR, malaysia_cup VARCHAR, player VARCHAR) ### Response: ### Response: SELECT MAX(fa_cup) FROM table_name_25 WHERE malaysia_cup = 0 AND player = "ahmad fouzee masuri" AND total > 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 lead had a season of 2007-08? ### Context: CREATE TABLE table_name_18 (lead VARCHAR, season VARCHAR) ### Response: ### Response: SELECT lead FROM table_name_18 WHERE season = "2007-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 is the Rank of the player with 362 Matches? ### Context: CREATE TABLE table_name_92 (rank INTEGER, matches VARCHAR) ### Response: ### Response: SELECT MAX(rank) FROM table_name_92 WHERE matches = 362</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 performance length of the 1999 season in bydgoszcz, poland? ### Context: CREATE TABLE table_name_11 (performance VARCHAR, season VARCHAR, place VARCHAR) ### Response: ### Response: SELECT performance FROM table_name_11 WHERE season = 1999 AND place = "bydgoszcz, poland"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 literate males are there that has a district population of 6.65? ### Context: CREATE TABLE table_28939145_2 (Literate VARCHAR, _percentage_of_district_population VARCHAR) ### Response: ### Response: SELECT Literate AS male FROM table_28939145_2 WHERE _percentage_of_district_population = "6.65"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which tournament had a final score of 6–7, 2–6, and a Partner of wayne arthurs? ### Context: CREATE TABLE table_name_7 (tournament VARCHAR, score_in_the_final VARCHAR, partner VARCHAR) ### Response: ### Response: SELECT tournament FROM table_name_7 WHERE score_in_the_final = "6–7, 2–6" AND partner = "wayne arthurs"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How much money has 76-70-68-73=287 as a score? ### Context: CREATE TABLE table_name_86 (money___ INTEGER, score VARCHAR) ### Response: ### Response: SELECT SUM(money___) AS $__ FROM table_name_86 WHERE score = 76 - 70 - 68 - 73 = 287</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 D46 when it has D 44 of ← majority ### Context: CREATE TABLE table_name_50 (d_46 VARCHAR, d_44 VARCHAR) ### Response: ### Response: SELECT d_46 FROM table_name_50 WHERE d_44 = "← majority"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Wins have a Win % smaller than 0.8270000000000001, and a Name of rick mirer, and Ties smaller than 1? ### Context: CREATE TABLE table_name_17 (wins INTEGER, ties VARCHAR, win__percentage VARCHAR, name VARCHAR) ### Response: ### Response: SELECT SUM(wins) FROM table_name_17 WHERE win__percentage < 0.8270000000000001 AND name = "rick mirer" AND ties < 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 player has more than 0 goals and less than 12 tries? ### Context: CREATE TABLE table_name_5 (player VARCHAR, goals VARCHAR, tries VARCHAR) ### Response: ### Response: SELECT player FROM table_name_5 WHERE goals > 0 AND tries < 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 is the driver for team Collé Racing with more than 206 points? ### Context: CREATE TABLE table_name_66 (driver VARCHAR, team VARCHAR, points VARCHAR) ### Response: ### Response: SELECT driver FROM table_name_66 WHERE team = "collé racing" AND points > 206</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 losing pitcher when the winning pitcher is roy oswalt? ### Context: CREATE TABLE table_12125069_2 (losing_pitcher VARCHAR, winning_pitcher VARCHAR) ### Response: ### Response: SELECT losing_pitcher FROM table_12125069_2 WHERE winning_pitcher = "Roy Oswalt"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 outcome of 2–6, 1–6 ### Context: CREATE TABLE table_name_40 (outcome VARCHAR, score VARCHAR) ### Response: ### Response: SELECT outcome FROM table_name_40 WHERE score = "2–6, 1–6"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is listed under part 1 for class 3b? ### Context: CREATE TABLE table_1745843_2 (part_1 VARCHAR, class VARCHAR) ### Response: ### Response: SELECT part_1 FROM table_1745843_2 WHERE class = "3b"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 winning team of the race on 31 August with Audi as the winning manufacturer and Timo Scheider as the winning driver? ### Context: CREATE TABLE table_name_15 (winning_team VARCHAR, date VARCHAR, winning_manufacturer VARCHAR, winning_driver VARCHAR) ### Response: ### Response: SELECT winning_team FROM table_name_15 WHERE winning_manufacturer = "audi" AND winning_driver = "timo scheider" AND date = "31 august"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 nationalities of players who attended duke? ### Context: CREATE TABLE table_16494599_10 (nationality VARCHAR, school_club_team VARCHAR) ### Response: ### Response: SELECT COUNT(nationality) FROM table_16494599_10 WHERE school_club_team = "Duke"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 original performer when the episode is casting? ### Context: CREATE TABLE table_29547777_1 (original_performer VARCHAR, episode VARCHAR) ### Response: ### Response: SELECT original_performer FROM table_29547777_1 WHERE episode = "Casting"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 week number with Phil Collins as the original artist? ### Context: CREATE TABLE table_name_88 (week__number VARCHAR, original_artist VARCHAR) ### Response: ### Response: SELECT week__number FROM table_name_88 WHERE original_artist = "phil collins"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Airing date has a Number of episodes larger than 20, and a Genre of modern drama? ### Context: CREATE TABLE table_name_39 (airing_date VARCHAR, number_of_episodes VARCHAR, genre VARCHAR) ### Response: ### Response: SELECT airing_date FROM table_name_39 WHERE number_of_episodes > 20 AND genre = "modern drama"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: In what place was Tiger Woods of the United States? ### Context: CREATE TABLE table_name_68 (place VARCHAR, country VARCHAR, player VARCHAR) ### Response: ### Response: SELECT place FROM table_name_68 WHERE country = "united states" 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: What's the highest League Cup with an FA Cup thats larger than 2? ### Context: CREATE TABLE table_name_95 (league INTEGER, fa_cup INTEGER) ### Response: ### Response: SELECT MAX(league) AS Cup FROM table_name_95 WHERE fa_cup > 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: List the total number of horses on farms in ascending order. ### Context: CREATE TABLE farm (Total_Horses VARCHAR) ### Response: ### Response: SELECT Total_Horses FROM farm ORDER BY Total_Horses</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Oracle Corporation product has a Java EE compatibility of 1.4? ### Context: CREATE TABLE table_name_80 (product VARCHAR, java_ee_compatibility VARCHAR, vendor VARCHAR) ### Response: ### Response: SELECT product FROM table_name_80 WHERE java_ee_compatibility = "1.4" AND vendor = "oracle corporation"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 rank for a 6:52.70 time and notes of sa/b? ### Context: CREATE TABLE table_name_56 (rank INTEGER, notes VARCHAR, time VARCHAR) ### Response: ### Response: SELECT MAX(rank) FROM table_name_56 WHERE notes = "sa/b" AND time = "6:52.70"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 winning score in 2000? ### Context: CREATE TABLE table_name_30 (score VARCHAR, year VARCHAR) ### Response: ### Response: SELECT score FROM table_name_30 WHERE year = 2000</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is round 1's position? ### Context: CREATE TABLE table_name_13 (position VARCHAR, round VARCHAR) ### Response: ### Response: SELECT position FROM table_name_13 WHERE round = 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 class is after 1973 with 41 points? ### Context: CREATE TABLE table_name_45 (class VARCHAR, year VARCHAR, points VARCHAR) ### Response: ### Response: SELECT class FROM table_name_45 WHERE year > 1973 AND points = 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: What is the biggest roll number of Sylvia Park School, which has a state authority? ### Context: CREATE TABLE table_name_12 (roll INTEGER, authority VARCHAR, name VARCHAR) ### Response: ### Response: SELECT MAX(roll) FROM table_name_12 WHERE authority = "state" AND name = "sylvia park school"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many 2010 estimations have been done in the city of Cremona? ### Context: CREATE TABLE table_10138926_1 (city VARCHAR) ### Response: ### Response: SELECT COUNT(2010 AS _est) FROM table_10138926_1 WHERE city = "Cremona"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: WHAT WEEK HAS A TV TIME OF BYE? ### Context: CREATE TABLE table_name_37 (week VARCHAR, tv_time VARCHAR) ### Response: ### Response: SELECT week FROM table_name_37 WHERE tv_time = "bye"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 HAD SPURS IN 2009-2012? ### Context: CREATE TABLE table_name_75 (position VARCHAR, years_with_spurs VARCHAR) ### Response: ### Response: SELECT position FROM table_name_75 WHERE years_with_spurs = "2009-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 is the score for the game on 21 april 2001? ### Context: CREATE TABLE table_name_25 (score VARCHAR, date VARCHAR) ### Response: ### Response: SELECT score FROM table_name_25 WHERE date = "21 april 2001"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 winning team in the 1989 season? ### Context: CREATE TABLE table_12028543_3 (winningteam VARCHAR, season VARCHAR) ### Response: ### Response: SELECT winningteam FROM table_12028543_3 WHERE season = "1989"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Tell me the 1968 for 1r ### Context: CREATE TABLE table_name_76 (Id VARCHAR) ### Response: ### Response: SELECT 1968 FROM table_name_76 WHERE 1967 = "1r"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the type of turbine having fewer than 17 units and located in County Laois? ### Context: CREATE TABLE table_name_65 (type VARCHAR, turbines VARCHAR, location VARCHAR) ### Response: ### Response: SELECT type FROM table_name_65 WHERE turbines < 17 AND location = "county laois"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the result in the election in the Kentucky 1 district? ### Context: CREATE TABLE table_2668367_7 (result VARCHAR, district VARCHAR) ### Response: ### Response: SELECT result FROM table_2668367_7 WHERE district = "Kentucky 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 original airdate for episode 7-17 (195) from writer Sidney Slon? ### Context: CREATE TABLE table_name_5 (original_airdate VARCHAR, writer_s_ VARCHAR, episode VARCHAR) ### Response: ### Response: SELECT original_airdate FROM table_name_5 WHERE writer_s_ = "sidney slon" AND episode = "7-17 (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 was the score of the home team when the away team was Geelong? ### Context: CREATE TABLE table_name_59 (home_team VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT home_team AS score FROM table_name_59 WHERE away_team = "geelong"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for souderton, pa? ### Context: CREATE TABLE table_27887723_1 (winner VARCHAR, location VARCHAR) ### Response: ### Response: SELECT winner FROM table_27887723_1 WHERE location = "Souderton, PA"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 accession number of the protein with a divergence from human lineage of 937.5? ### Context: CREATE TABLE table_name_74 (accession_number VARCHAR, divergence_from_human_lineage__mya_ VARCHAR) ### Response: ### Response: SELECT accession_number FROM table_name_74 WHERE divergence_from_human_lineage__mya_ = 937.5</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the team that played at Energysolutions Arena 19,911? ### Context: CREATE TABLE table_name_29 (team VARCHAR, location_attendance VARCHAR) ### Response: ### Response: SELECT team FROM table_name_29 WHERE location_attendance = "energysolutions arena 19,911"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 day 3 when day 4 is fr.? ### Context: CREATE TABLE table_name_45 (day_3 VARCHAR, day_4 VARCHAR) ### Response: ### Response: SELECT day_3 FROM table_name_45 WHERE day_4 = "fr."</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2nd leg score for the match with a team 2 of Werder Bremen? ### Context: CREATE TABLE table_name_48 (team_2 VARCHAR) ### Response: ### Response: SELECT 2 AS nd_leg FROM table_name_48 WHERE team_2 = "werder bremen"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 first year to have a Chassis of Jordan 193? ### Context: CREATE TABLE table_name_89 (year INTEGER, chassis VARCHAR) ### Response: ### Response: SELECT MIN(year) FROM table_name_89 WHERE chassis = "jordan 193"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 point categories are there for the 3 mile run? ### Context: CREATE TABLE table_19534874_2 (points VARCHAR, mile_run VARCHAR) ### Response: ### Response: SELECT COUNT(points) FROM table_19534874_2 WHERE mile_run = 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: Name the location of the church for bremanger ### Context: CREATE TABLE table_178408_1 (location_of_the_church VARCHAR, sub_parish__sokn_ VARCHAR) ### Response: ### Response: SELECT location_of_the_church FROM table_178408_1 WHERE sub_parish__sokn_ = "Bremanger"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 born on 1982-01-29? ### Context: CREATE TABLE table_name_7 (name VARCHAR, date_of_birth VARCHAR) ### Response: ### Response: SELECT name FROM table_name_7 WHERE date_of_birth = "1982-01-29"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the result of nominee, Patricia McGourty, for the drama desk award? ### Context: CREATE TABLE table_name_17 (result VARCHAR, award VARCHAR, nominee VARCHAR) ### Response: ### Response: SELECT result FROM table_name_17 WHERE award = "drama desk award" AND nominee = "patricia mcgourty"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Tom Silver's rank? ### Context: CREATE TABLE table_name_86 (rank VARCHAR, rider VARCHAR) ### Response: ### Response: SELECT rank FROM table_name_86 WHERE rider = "tom silver"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Week 2 that has a Week 1 of mandy ashford? ### Context: CREATE TABLE table_name_91 (week_2 VARCHAR, week_1 VARCHAR) ### Response: ### Response: SELECT week_2 FROM table_name_91 WHERE week_1 = "mandy ashford"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 where the date was the 21st? ### Context: CREATE TABLE table_17120964_9 (opponent VARCHAR, date VARCHAR) ### Response: ### Response: SELECT opponent FROM table_17120964_9 WHERE date = "21st"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 codes of countries that have more than 50 players. ### Context: CREATE TABLE players (country_code VARCHAR) ### Response: ### Response: SELECT country_code FROM players GROUP BY country_code HAVING COUNT(*) > 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: For the match in which player David Frost scored a To Par of +7, what was the final score? ### Context: CREATE TABLE table_name_94 (score VARCHAR, to_par VARCHAR, player VARCHAR) ### Response: ### Response: SELECT score FROM table_name_94 WHERE to_par = "+7" AND player = "david frost"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 longitude named zipaltonal fluctus in 1997 with a diameter smaller than 490? ### Context: CREATE TABLE table_name_41 (longitude VARCHAR, name VARCHAR, year_named VARCHAR, diameter__km_ VARCHAR) ### Response: ### Response: SELECT longitude FROM table_name_41 WHERE year_named = 1997 AND diameter__km_ < 490 AND name = "zipaltonal fluctus"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the average amount of field goals Clark has if he has less than 3 touch downs and less than 5 points? ### Context: CREATE TABLE table_name_25 (field_goals INTEGER, points VARCHAR, touchdowns VARCHAR, player VARCHAR) ### Response: ### Response: SELECT AVG(field_goals) FROM table_name_25 WHERE touchdowns < 3 AND player = "clark" AND points < 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 was the total attendance in week 8? ### Context: CREATE TABLE table_name_96 (attendance VARCHAR, week VARCHAR) ### Response: ### Response: SELECT COUNT(attendance) FROM table_name_96 WHERE week = 8</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What are the highest and lowest prices of products, grouped by and alphabetically ordered by product type? ### Context: CREATE TABLE products (product_type_code VARCHAR, product_price INTEGER) ### Response: ### Response: SELECT MAX(product_price), MIN(product_price), product_type_code FROM products GROUP BY product_type_code ORDER BY product_type_code</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 State has an Opened (closing date if defunct) that shows 1960? ### Context: CREATE TABLE table_name_28 (state VARCHAR, opened__closing_date_if_defunct_ VARCHAR) ### Response: ### Response: SELECT state FROM table_name_28 WHERE opened__closing_date_if_defunct_ = "1960"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 lowest league for play-offs more than 0 and total of 25 ### Context: CREATE TABLE table_name_88 (league INTEGER, play_offs VARCHAR, total VARCHAR) ### Response: ### Response: SELECT MIN(league) FROM table_name_88 WHERE play_offs > 0 AND total = 25</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the 2nd leg score when atlético tucumán played at home? ### Context: CREATE TABLE table_name_84 (home__2nd_leg_ VARCHAR) ### Response: ### Response: SELECT 2 AS nd_leg FROM table_name_84 WHERE home__2nd_leg_ = "atlético tucumán"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 loss on September 2? ### Context: CREATE TABLE table_name_16 (loss VARCHAR, date VARCHAR) ### Response: ### Response: SELECT loss FROM table_name_16 WHERE date = "september 2"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the highest score for round 2? ### Context: CREATE TABLE table_16815824_1 (round2 INTEGER) ### Response: ### Response: SELECT MAX(round2) FROM table_16815824_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 years has сенки been nominated? ### Context: CREATE TABLE table_14928423_1 (year__ceremony_ VARCHAR, original_title VARCHAR) ### Response: ### Response: SELECT COUNT(year__ceremony_) FROM table_14928423_1 WHERE original_title = "Сенки"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the tuner for hybrid video recorder and Digital of dvb-t (zl10353), and a Model of hvr-900 ### Context: CREATE TABLE table_name_32 (tuner VARCHAR, model VARCHAR, type VARCHAR, digital VARCHAR) ### Response: ### Response: SELECT tuner FROM table_name_32 WHERE type = "hybrid video recorder" AND digital = "dvb-t (zl10353)" AND model = "hvr-900"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 attendance for week 1? ### Context: CREATE TABLE table_name_63 (attendance INTEGER, week INTEGER) ### Response: ### Response: SELECT MAX(attendance) FROM table_name_63 WHERE week < 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 measure number for the init type? ### Context: CREATE TABLE table_256286_18 (meas_num VARCHAR, type VARCHAR) ### Response: ### Response: SELECT meas_num FROM table_256286_18 WHERE type = "Init"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the ship launched when it was laid down 20 october 1924 and built by fujinagata shipyards, japan? ### Context: CREATE TABLE table_name_36 (launched VARCHAR, builder VARCHAR, laid_down VARCHAR) ### Response: ### Response: SELECT launched FROM table_name_36 WHERE builder = "fujinagata shipyards, japan" AND laid_down = "20 october 1924"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which rank has canada as the country? ### Context: CREATE TABLE table_name_84 (rank VARCHAR, country VARCHAR) ### Response: ### Response: SELECT rank FROM table_name_84 WHERE country = "canada"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 timeslots had viewers of 0.238 million? ### Context: CREATE TABLE table_27987623_3 (timeslot VARCHAR, viewers__millions_ VARCHAR) ### Response: ### Response: SELECT COUNT(timeslot) FROM table_27987623_3 WHERE viewers__millions_ = "0.238"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many years were there albums by heat wave? ### Context: CREATE TABLE table_name_84 (year INTEGER, from_album VARCHAR) ### Response: ### Response: SELECT SUM(year) FROM table_name_84 WHERE from_album = "heat wave"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 English Title of Fanny Och Alexander? ### Context: CREATE TABLE table_name_20 (english_title VARCHAR, original_title VARCHAR) ### Response: ### Response: SELECT english_title FROM table_name_20 WHERE original_title = "fanny och alexander"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 did Fred Couples finish in? ### Context: CREATE TABLE table_name_84 (place VARCHAR, player VARCHAR) ### Response: ### Response: SELECT place FROM table_name_84 WHERE player = "fred couples"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 1972, what was the highest number of points with a Ford engine and an entrant of Brooke Bond Oxo Team Surtees? ### Context: CREATE TABLE table_name_41 (pts INTEGER, year VARCHAR, engine VARCHAR, entrant VARCHAR) ### Response: ### Response: SELECT MAX(pts) FROM table_name_41 WHERE engine = "ford" AND entrant = "brooke bond oxo team surtees" AND year = 1972</s>