inputs
stringlengths
400
1.34k
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the value for 2007 when 2008 is Q1? ### Context: CREATE TABLE table_name_68 (Id VARCHAR) ### Response: ### Response: SELECT 2007 FROM table_name_68 WHERE 2008 = "q1"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the score when the away team was Footscray? ### Context: CREATE TABLE table_name_25 (away_team VARCHAR) ### Response: ### Response: SELECT away_team AS score FROM table_name_25 WHERE away_team = "footscray"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 format for UK catalog S 63795? ### Context: CREATE TABLE table_name_90 (format VARCHAR, country VARCHAR, catalog VARCHAR) ### Response: ### Response: SELECT format FROM table_name_90 WHERE country = "uk" AND catalog = "s 63795"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 from the Rip Curl Pro Search? ### Context: CREATE TABLE table_name_71 (winner VARCHAR, event VARCHAR) ### Response: ### Response: SELECT winner FROM table_name_71 WHERE event = "rip curl pro search"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 EL places have a Rank 2013 of 15? ### Context: CREATE TABLE table_name_4 (el_places INTEGER, rank_2013 VARCHAR) ### Response: ### Response: SELECT MAX(el_places) FROM table_name_4 WHERE rank_2013 = "15"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 played with a position of 6 and less than 1 draw? ### Context: CREATE TABLE table_name_89 (played INTEGER, position VARCHAR, drawn VARCHAR) ### Response: ### Response: SELECT MIN(played) FROM table_name_89 WHERE position = 6 AND drawn < 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 virtue is acedia(Latin)? ### Context: CREATE TABLE table_name_13 (virtue VARCHAR, acedia VARCHAR, latin VARCHAR) ### Response: ### Response: SELECT virtue FROM table_name_13 WHERE (latin) = acedia</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 from England finished in T41? ### Context: CREATE TABLE table_name_43 (player VARCHAR, finish VARCHAR, country VARCHAR) ### Response: ### Response: SELECT player FROM table_name_43 WHERE finish = "t41" AND country = "england"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 race name for ferrari on 25 april ### Context: CREATE TABLE table_name_17 (race_name VARCHAR, constructor VARCHAR, date VARCHAR) ### Response: ### Response: SELECT race_name FROM table_name_17 WHERE constructor = "ferrari" AND date = "25 april"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the record when the high rebounds was from Nick Collison (11)? ### Context: CREATE TABLE table_11964154_11 (record VARCHAR, high_rebounds VARCHAR) ### Response: ### Response: SELECT record FROM table_11964154_11 WHERE high_rebounds = "Nick Collison (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: Name the title that aired for november 08, 1985 ### Context: CREATE TABLE table_20967430_2 (title VARCHAR, original_air_date VARCHAR) ### Response: ### Response: SELECT title FROM table_20967430_2 WHERE original_air_date = "November 08, 1985"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 titles of papers published by "Jeremy Gibbons"? ### Context: CREATE TABLE authorship (authid VARCHAR, paperid VARCHAR); CREATE TABLE papers (title VARCHAR, paperid VARCHAR); CREATE TABLE authors (authid VARCHAR, fname VARCHAR, lname VARCHAR) ### Response: ### Response: SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = "Jeremy" AND t1.lname = "Gibbons"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 game 34 Curtis Borchardt played on which team with less than 275 rebounds? ### Context: CREATE TABLE table_name_70 (team VARCHAR, name VARCHAR, rebounds VARCHAR, games VARCHAR) ### Response: ### Response: SELECT team FROM table_name_70 WHERE rebounds < 275 AND games < 34 AND name = "curtis borchardt"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 swimsuit with an evening gown of 9.773 and average larger than 9.674? ### Context: CREATE TABLE table_name_82 (swimsuit INTEGER, evening_gown VARCHAR, average VARCHAR) ### Response: ### Response: SELECT SUM(swimsuit) FROM table_name_82 WHERE evening_gown = 9.773 AND average > 9.674</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 lowest week for attedance less thaan 32,738 ### Context: CREATE TABLE table_name_77 (week INTEGER, attendance INTEGER) ### Response: ### Response: SELECT MIN(week) FROM table_name_77 WHERE attendance < 32 OFFSET 738</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Opponent is on 17 november 2002? ### Context: CREATE TABLE table_name_64 (opponent VARCHAR, date VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_64 WHERE date = "17 november 2002"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Avg/G with a Long less than 0? ### Context: CREATE TABLE table_name_99 (avg_g INTEGER, long INTEGER) ### Response: ### Response: SELECT MIN(avg_g) FROM table_name_99 WHERE long < 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: Who did the most assists when Matt Barnes (11) got the most rebounds? ### Context: CREATE TABLE table_17340355_10 (high_assists VARCHAR, high_rebounds VARCHAR) ### Response: ### Response: SELECT high_assists FROM table_17340355_10 WHERE high_rebounds = "Matt Barnes (11)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is listed in game when the location attendance is listed as Keyarena 16,841? ### Context: CREATE TABLE table_28768469_7 (game INTEGER, location_attendance VARCHAR) ### Response: ### Response: SELECT MAX(game) FROM table_28768469_7 WHERE location_attendance = "KeyArena 16,841"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What final was ranked 4? ### Context: CREATE TABLE table_name_96 (final VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT final FROM table_name_96 WHERE rank = "4"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the number of distinct cities the stations are located at? ### Context: CREATE TABLE station (city VARCHAR) ### Response: ### Response: SELECT COUNT(DISTINCT city) FROM station</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the name of the episode # 11 in the season? ### Context: CREATE TABLE table_25277262_2 (title VARCHAR, no_in_season VARCHAR) ### Response: ### Response: SELECT title FROM table_25277262_2 WHERE no_in_season = 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: Tell me the fossil record for name of 1994/2003 ### Context: CREATE TABLE table_name_33 (fossil_record VARCHAR, discovery___publication_of_name VARCHAR) ### Response: ### Response: SELECT fossil_record FROM table_name_33 WHERE discovery___publication_of_name = "1994/2003"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the smallest population with an Area (km²) of 1115.4? ### Context: CREATE TABLE table_name_72 (population INTEGER, area__km²_ VARCHAR) ### Response: ### Response: SELECT MIN(population) FROM table_name_72 WHERE area__km²_ = 1115.4</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is Competition, when Date is 30 December 2005? ### Context: CREATE TABLE table_name_96 (competition VARCHAR, date VARCHAR) ### Response: ### Response: SELECT competition FROM table_name_96 WHERE date = "30 december 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: Who holds third place in the tournament with a score of 2–6, 7–6(3), [10–5]? ### Context: CREATE TABLE table_name_16 (third_place VARCHAR, score VARCHAR) ### Response: ### Response: SELECT third_place FROM table_name_16 WHERE score = "2–6, 7–6(3), [10–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 is the coach for the Northamptonshire Steelbacks? ### Context: CREATE TABLE table_name_36 (coach VARCHAR, team VARCHAR) ### Response: ### Response: SELECT coach FROM table_name_36 WHERE team = "northamptonshire steelbacks"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Silver, when the Nation is Japan (JPN), and when the Total is greater than 37? ### Context: CREATE TABLE table_name_50 (silver INTEGER, nation VARCHAR, total VARCHAR) ### Response: ### Response: SELECT MAX(silver) FROM table_name_50 WHERE nation = "japan (jpn)" AND total > 37</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 game's points against Team 2 Deportivo Anzoátegui? ### Context: CREATE TABLE table_17282875_2 (points VARCHAR, team__number2 VARCHAR) ### Response: ### Response: SELECT points FROM table_17282875_2 WHERE team__number2 = "Deportivo Anzoátegui"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 monetary sum with a score of 75-71-75-72=293? ### Context: CREATE TABLE table_name_12 (money___ INTEGER, score VARCHAR) ### Response: ### Response: SELECT SUM(money___) AS $__ FROM table_name_12 WHERE score = 75 - 71 - 75 - 72 = 293</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 names of gymnasts whose hometown is not "Santo Domingo"? ### Context: CREATE TABLE gymnast (Gymnast_ID VARCHAR); CREATE TABLE people (Name VARCHAR, People_ID VARCHAR, Hometown VARCHAR) ### Response: ### Response: SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID WHERE T2.Hometown <> "Santo Domingo"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 swimsuit that has an evening gown bigger than 8.794 for illinois? ### Context: CREATE TABLE table_name_47 (swimsuit INTEGER, evening_gown VARCHAR, state VARCHAR) ### Response: ### Response: SELECT MIN(swimsuit) FROM table_name_47 WHERE evening_gown > 8.794 AND state = "illinois"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 dollars is the purse when the margin of victory is 8 strokes? ### Context: CREATE TABLE table_1529260_2 (purse___us VARCHAR, margin_of_victory VARCHAR) ### Response: ### Response: SELECT COUNT(purse___us) AS $__ FROM table_1529260_2 WHERE margin_of_victory = "8 strokes"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who is the Winnning driver in which lorenzo bandini has the fastest lap as well as the Pole position? ### Context: CREATE TABLE table_name_21 (winning_driver VARCHAR, fastest_lap VARCHAR, pole_position VARCHAR) ### Response: ### Response: SELECT winning_driver FROM table_name_21 WHERE fastest_lap = "lorenzo bandini" AND pole_position = "lorenzo bandini"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What did the Melbourne Tigers score when they were the away team? ### Context: CREATE TABLE table_name_73 (score VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT score FROM table_name_73 WHERE away_team = "melbourne tigers"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Prijedor tournament? ### Context: CREATE TABLE table_name_68 (date VARCHAR, tournament VARCHAR) ### Response: ### Response: SELECT date FROM table_name_68 WHERE tournament = "prijedor"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 does the judge whose court is in Groton reside? ### Context: CREATE TABLE table_26758262_1 (judges_residence VARCHAR, location_of_court VARCHAR) ### Response: ### Response: SELECT judges_residence FROM table_26758262_1 WHERE location_of_court = "Groton"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 can sit 65,000 and opens 2016? ### Context: CREATE TABLE table_name_63 (location VARCHAR, capacity VARCHAR, opening VARCHAR) ### Response: ### Response: SELECT location FROM table_name_63 WHERE capacity = "65,000" AND opening = "2016"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 maximum average of the episode with a Chinese title 古靈精探b? ### Context: CREATE TABLE table_19210674_1 (average INTEGER, chinese_title VARCHAR) ### Response: ### Response: SELECT MAX(average) FROM table_19210674_1 WHERE chinese_title = "古靈精探B"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 scored 71? ### Context: CREATE TABLE table_name_4 (player VARCHAR, score VARCHAR) ### Response: ### Response: SELECT player FROM table_name_4 WHERE score = 71</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Player, when Total is "154"? ### Context: CREATE TABLE table_name_73 (player VARCHAR, total VARCHAR) ### Response: ### Response: SELECT player FROM table_name_73 WHERE total = "154"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 game date for week 7? ### Context: CREATE TABLE table_name_32 (date VARCHAR, week VARCHAR) ### Response: ### Response: SELECT date FROM table_name_32 WHERE week = 7</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What year weas John McEnroe the champion? ### Context: CREATE TABLE table_name_64 (year INTEGER, champion VARCHAR) ### Response: ### Response: SELECT AVG(year) FROM table_name_64 WHERE champion = "john mcenroe"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the attendance of the South Melbourne away game? ### Context: CREATE TABLE table_name_5 (crowd VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT COUNT(crowd) FROM table_name_5 WHERE away_team = "south melbourne"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the vote number when immunity listed as David and reward is listed as none? ### Context: CREATE TABLE table_28742659_2 (vote VARCHAR, immunity VARCHAR, reward VARCHAR) ### Response: ### Response: SELECT vote FROM table_28742659_2 WHERE immunity = "David" AND reward = "None"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Tie no when then home team was Stoke City for the game played on 9 February 1946? ### Context: CREATE TABLE table_name_19 (tie_no VARCHAR, home_team VARCHAR, date VARCHAR) ### Response: ### Response: SELECT tie_no FROM table_name_19 WHERE home_team = "stoke city" AND date = "9 february 1946"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 total when the nation is canada (can) and bronze is less than 0? ### Context: CREATE TABLE table_name_78 (total INTEGER, nation VARCHAR, bronze VARCHAR) ### Response: ### Response: SELECT MIN(total) FROM table_name_78 WHERE nation = "canada (can)" AND bronze < 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 Team that has Points against of 43? ### Context: CREATE TABLE table_name_17 (team VARCHAR, points_against VARCHAR) ### Response: ### Response: SELECT team FROM table_name_17 WHERE points_against = 43</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: On May 29 which team had the loss? ### Context: CREATE TABLE table_name_85 (loss VARCHAR, date VARCHAR) ### Response: ### Response: SELECT loss FROM table_name_85 WHERE date = "may 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: Which road team has a result of 117-114? ### Context: CREATE TABLE table_name_61 (road_team VARCHAR, result VARCHAR) ### Response: ### Response: SELECT road_team FROM table_name_61 WHERE result = "117-114"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: who got the first position when fujieda city government got the fourth position? ### Context: CREATE TABLE table_21632864_1 (champions VARCHAR, fourth_place VARCHAR) ### Response: ### Response: SELECT champions FROM table_21632864_1 WHERE fourth_place = "Fujieda City Government"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 points when try diff is +23? ### Context: CREATE TABLE table_name_7 (points_for VARCHAR, try_diff VARCHAR) ### Response: ### Response: SELECT points_for FROM table_name_7 WHERE try_diff = "+23"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 assists for the Team of Florida and the total points of 75? ### Context: CREATE TABLE table_name_29 (assists VARCHAR, team VARCHAR, total_points VARCHAR) ### Response: ### Response: SELECT assists FROM table_name_29 WHERE team = "florida" AND total_points = "75"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 book clubs are there? ### Context: CREATE TABLE book_club (Id VARCHAR) ### Response: ### Response: SELECT COUNT(*) FROM book_club</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 value for Croats when value for Romanians is 16.65%? ### Context: CREATE TABLE table_2374338_2 (croats VARCHAR, romanians VARCHAR) ### Response: ### Response: SELECT croats FROM table_2374338_2 WHERE romanians = "16.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: What pick number was the rhp with a hometown/school of university of hawaii? ### Context: CREATE TABLE table_name_42 (pick INTEGER, position VARCHAR, hometown_school VARCHAR) ### Response: ### Response: SELECT MIN(pick) FROM table_name_42 WHERE position = "rhp" AND hometown_school = "university of hawaii"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the earliest year that has a Bristol engine? ### Context: CREATE TABLE table_name_98 (year INTEGER, engine VARCHAR) ### Response: ### Response: SELECT MIN(year) FROM table_name_98 WHERE engine = "bristol"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 where the team 2 was budoni (sardinia)? ### Context: CREATE TABLE table_name_4 (team_2 VARCHAR) ### Response: ### Response: SELECT 2 AS nd_leg FROM table_name_4 WHERE team_2 = "budoni (sardinia)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 home team when the venue was Junction Oval? ### Context: CREATE TABLE table_name_82 (home_team VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT home_team FROM table_name_82 WHERE venue = "junction oval"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the average Wins, when Played is less than 30? ### Context: CREATE TABLE table_name_96 (wins INTEGER, played INTEGER) ### Response: ### Response: SELECT AVG(wins) FROM table_name_96 WHERE played < 30</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What year did the winnings equal $281,945? ### Context: CREATE TABLE table_2182562_1 (year VARCHAR, winnings VARCHAR) ### Response: ### Response: SELECT year FROM table_2182562_1 WHERE winnings = "$281,945"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the highest Points in Position 2 with more than 3 Drawn games? ### Context: CREATE TABLE table_name_75 (points INTEGER, position VARCHAR, drawn VARCHAR) ### Response: ### Response: SELECT MAX(points) FROM table_name_75 WHERE position = 2 AND drawn > 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 average number of wins of the year with less than 5 top 10s, a winning of $39,190 and less than 2 starts? ### Context: CREATE TABLE table_name_17 (wins INTEGER, starts VARCHAR, top_10 VARCHAR, winnings VARCHAR) ### Response: ### Response: SELECT AVG(wins) FROM table_name_17 WHERE top_10 < 5 AND winnings = "$39,190" AND starts < 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 sum of gold with a rank that is 3 and a silver larger than 7? ### Context: CREATE TABLE table_name_98 (gold INTEGER, rank VARCHAR, silver VARCHAR) ### Response: ### Response: SELECT SUM(gold) FROM table_name_98 WHERE rank = "3" AND silver > 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: Who is the friday presenter for each show, when the monday presenter is Emma Willis Jamie East? ### Context: CREATE TABLE table_11748792_2 (friday VARCHAR, monday VARCHAR) ### Response: ### Response: SELECT friday FROM table_11748792_2 WHERE monday = "Emma Willis Jamie East"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: If the building is Costanera Center Torre 1, what is the height? ### Context: CREATE TABLE table_27067379_1 (height VARCHAR, building VARCHAR) ### Response: ### Response: SELECT height FROM table_27067379_1 WHERE building = "Costanera Center Torre 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 date did the episode with a production code of 60072 originally air? ### Context: CREATE TABLE table_28140590_1 (original_air_date VARCHAR, production_code VARCHAR) ### Response: ### Response: SELECT original_air_date FROM table_28140590_1 WHERE production_code = 60072</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 game 2 played? ### Context: CREATE TABLE table_name_56 (date VARCHAR, game VARCHAR) ### Response: ### Response: SELECT date FROM table_name_56 WHERE game = 2</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the label of the album titled 與你相逢 and released in 1994? ### Context: CREATE TABLE table_name_63 (label_s_ VARCHAR, year_of_release VARCHAR, title VARCHAR) ### Response: ### Response: SELECT label_s_ FROM table_name_63 WHERE year_of_release = 1994 AND 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: What is the grid value which has Time/Retired value of accident? ### Context: CREATE TABLE table_name_57 (grid VARCHAR, time_retired VARCHAR) ### Response: ### Response: SELECT grid FROM table_name_57 WHERE time_retired = "accident"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 "series" were in the 12th "position? ### Context: CREATE TABLE table_26473176_1 (series VARCHAR, position VARCHAR) ### Response: ### Response: SELECT COUNT(series) FROM table_26473176_1 WHERE position = "12th"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Round 1 of 70, and a Money ($) larger than 500,000 has the highest year? ### Context: CREATE TABLE table_name_72 (year INTEGER, round_1 VARCHAR, money__$_ VARCHAR) ### Response: ### Response: SELECT MAX(year) FROM table_name_72 WHERE round_1 = "70" AND money__$_ > 500 OFFSET 000</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the sum of the scottish cup of the forward player with less than 2 league cups and a total greater than 6? ### Context: CREATE TABLE table_name_47 (scottish_cup INTEGER, position VARCHAR, league_cup VARCHAR, total VARCHAR) ### Response: ### Response: SELECT SUM(scottish_cup) FROM table_name_47 WHERE league_cup < 2 AND total > 6 AND position = "forward"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 lowest laps of Graham Hill? ### Context: CREATE TABLE table_name_68 (laps INTEGER, driver VARCHAR) ### Response: ### Response: SELECT MIN(laps) FROM table_name_68 WHERE driver = "graham hill"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 engine configuration & notes 0-100km/h with a model with 2.3 t5? ### Context: CREATE TABLE table_name_65 (engine_configuration_ VARCHAR, _notes_0_100km_h VARCHAR, model VARCHAR) ### Response: ### Response: SELECT engine_configuration_ & _notes_0_100km_h FROM table_name_65 WHERE model = "2.3 t5"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 venue for 8 june 1931 for st kilda away team ### Context: CREATE TABLE table_name_6 (venue VARCHAR, date VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_6 WHERE date = "8 june 1931" AND away_team = "st kilda"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 episode number veiwed by 7.43 million viewers? ### Context: CREATE TABLE table_27987623_1 (series_episode INTEGER, us_viewers__in_million_ VARCHAR) ### Response: ### Response: SELECT MAX(series_episode) FROM table_27987623_1 WHERE us_viewers__in_million_ = "7.43"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Worldwide Gross of the Film with a Rank of 16? ### Context: CREATE TABLE table_name_68 (worldwide_gross VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT worldwide_gross FROM table_name_68 WHERE rank = 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: When marcus camby (15) has the highest amount of rebounds what is the date? ### Context: CREATE TABLE table_23286158_10 (date VARCHAR, high_rebounds VARCHAR) ### Response: ### Response: SELECT date FROM table_23286158_10 WHERE high_rebounds = "Marcus Camby (15)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Test Standard has a Usage of secondary filters, and a Class of f5? Question 4 ### Context: CREATE TABLE table_name_28 (test_standard VARCHAR, usage VARCHAR, class VARCHAR) ### Response: ### Response: SELECT test_standard FROM table_name_28 WHERE usage = "secondary filters" AND class = "f5"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 arena was founded in 2000? ### Context: CREATE TABLE table_name_5 (arena VARCHAR, founded VARCHAR) ### Response: ### Response: SELECT arena FROM table_name_5 WHERE founded = 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: How many weeks did the single that entered the charts 14 september 2002 stay on the charts ? ### Context: CREATE TABLE table_name_30 (weeks_on_chart__uk_ VARCHAR, entered_chart__uk_ VARCHAR) ### Response: ### Response: SELECT COUNT(weeks_on_chart__uk_) FROM table_name_30 WHERE entered_chart__uk_ = "14 september 2002"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 name of the county with the largest population. ### Context: CREATE TABLE county_public_safety (Name VARCHAR, Population VARCHAR) ### Response: ### Response: SELECT Name FROM county_public_safety ORDER BY Population DESC LIMIT 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which venue had a nationality of Belgium? ### Context: CREATE TABLE table_name_44 (venue VARCHAR, nationality VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_44 WHERE nationality = "belgium"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 the game played at Jinan? ### Context: CREATE TABLE table_name_26 (result VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT result FROM table_name_26 WHERE venue = "jinan"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 money for pádraig harrington ### Context: CREATE TABLE table_name_56 (money___£__ VARCHAR, player VARCHAR) ### Response: ### Response: SELECT money___£__ FROM table_name_56 WHERE player = "pádraig harrington"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 far to par did ed furgol from the United States get when he scored less than 72 and was placed at t3? ### Context: CREATE TABLE table_name_93 (to_par VARCHAR, player VARCHAR, place VARCHAR, country VARCHAR, score VARCHAR) ### Response: ### Response: SELECT to_par FROM table_name_93 WHERE country = "united states" AND score < 72 AND place = "t3" AND player = "ed furgol"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 program where duration (years) is 1.5 and teaching language is german/english? ### Context: CREATE TABLE table_12591022_2 (program VARCHAR, duration__years_ VARCHAR, teaching_language VARCHAR) ### Response: ### Response: SELECT program FROM table_12591022_2 WHERE duration__years_ = "1.5" AND teaching_language = "German/English"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 invoice number and the number of transactions for each invoice. ### Context: CREATE TABLE Financial_transactions (invoice_number VARCHAR) ### Response: ### Response: SELECT invoice_number, COUNT(*) FROM Financial_transactions GROUP BY invoice_number</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: WHAT YEAR WAS AT GIANTS STADIUM, WITH WINNER OF NEW YORK GIANTS? ### Context: CREATE TABLE table_name_54 (year INTEGER, location VARCHAR, winner VARCHAR) ### Response: ### Response: SELECT MIN(year) FROM table_name_54 WHERE location = "giants stadium" AND winner = "new york giants"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 second qualifying time for the dale coyne racing team with a first qualifying time of 1:00.081? ### Context: CREATE TABLE table_name_31 (qual_2 VARCHAR, team VARCHAR, qual_1 VARCHAR) ### Response: ### Response: SELECT qual_2 FROM table_name_31 WHERE team = "dale coyne racing" AND qual_1 = "1:00.081"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 papers published under the institution "Indiana University"? ### Context: CREATE TABLE inst (instid VARCHAR, name VARCHAR); CREATE TABLE authorship (paperid VARCHAR, instid VARCHAR); CREATE TABLE papers (title VARCHAR, paperid VARCHAR) ### Response: ### Response: SELECT DISTINCT t1.title FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = "Indiana University"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 1977 value that has a 1974 a value? ### Context: CREATE TABLE table_name_65 (Id VARCHAR) ### Response: ### Response: SELECT 1977 FROM table_name_65 WHERE 1974 = "a"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Team Rusport has the best of 59.654 and what qual 1? ### Context: CREATE TABLE table_name_15 (qual_1 VARCHAR, team VARCHAR, best VARCHAR) ### Response: ### Response: SELECT qual_1 FROM table_name_15 WHERE team = "rusport" AND best = "59.654"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 who was the opponent on May 6 ### Context: CREATE TABLE table_name_33 (opponent VARCHAR, date VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_33 WHERE date = "may 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 name of the customer that has purchased the most items? ### Context: CREATE TABLE order_items (order_id VARCHAR, order_quantity INTEGER); CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE customer_orders (customer_id VARCHAR, order_id VARCHAR) ### Response: ### Response: SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id GROUP BY t1.customer_name ORDER BY SUM(t3.order_quantity) DESC LIMIT 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which date has a Result of l 25-13? ### Context: CREATE TABLE table_name_18 (date VARCHAR, result VARCHAR) ### Response: ### Response: SELECT date FROM table_name_18 WHERE result = "l 25-13"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When was Maat born? ### Context: CREATE TABLE table_name_44 (dob VARCHAR, surname VARCHAR) ### Response: ### Response: SELECT dob FROM table_name_44 WHERE surname = "maat"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What location and it's attendance was the game against the Nets? ### Context: CREATE TABLE table_23248910_6 (location_attendance VARCHAR, team VARCHAR) ### Response: ### Response: SELECT location_attendance FROM table_23248910_6 WHERE team = "Nets"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 year was the player whose highlights were 35 career INTs from? ### Context: CREATE TABLE table_22982552_9 (class_year INTEGER, highlight_s_ VARCHAR) ### Response: ### Response: SELECT MIN(class_year) FROM table_22982552_9 WHERE highlight_s_ = "35 career INTs"</s>