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 Loss is recorded for the Date June 2? ### Context: CREATE TABLE table_name_56 (loss VARCHAR, date VARCHAR) ### Response: ### Response: SELECT loss FROM table_name_56 WHERE date = "june 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 average Prize fund ( US$ ), when OWGR pts is greater than 20, and when Dates is Nov 6-9? ### Context: CREATE TABLE table_name_56 (prize_fund___us INTEGER, owgr_pts VARCHAR, dates VARCHAR) ### Response: ### Response: SELECT AVG(prize_fund___us) AS $__ FROM table_name_56 WHERE owgr_pts > 20 AND dates = "nov 6-9"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 st kilda score at home? ### Context: CREATE TABLE table_name_95 (home_team VARCHAR) ### Response: ### Response: SELECT home_team AS score FROM table_name_95 WHERE home_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 is the ERP W for the station whose call sign is K248BJ and whose frequency MHz is higher than 97.5? ### Context: CREATE TABLE table_name_59 (erp_w INTEGER, call_sign VARCHAR, frequency_mhz VARCHAR) ### Response: ### Response: SELECT AVG(erp_w) FROM table_name_59 WHERE call_sign = "k248bj" AND frequency_mhz > 97.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: Name the pennant number for completion of 30 october 1934 and launched 29 march 1934 ### Context: CREATE TABLE table_name_43 (pennant_number VARCHAR, launched VARCHAR, completed VARCHAR) ### Response: ### Response: SELECT pennant_number FROM table_name_43 WHERE launched = "29 march 1934" AND completed = "30 october 1934"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 name all districts with city area greater than 10 or population larger than 100000 ### Context: CREATE TABLE district (district_name VARCHAR, city_area VARCHAR, City_Population VARCHAR) ### Response: ### Response: SELECT district_name FROM district WHERE city_area > 10 OR City_Population > 100000</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 most laps with a finish of 10 and qualification of 106.185? ### Context: CREATE TABLE table_name_84 (laps INTEGER, finish VARCHAR, qual VARCHAR) ### Response: ### Response: SELECT MAX(laps) FROM table_name_84 WHERE finish = "10" AND qual = "106.185"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 date was Keiichi Ubukata the mediator and Mitsuko Mori the red team host? ### Context: CREATE TABLE table_1315616_1 (date VARCHAR, mediator VARCHAR, red_team_host VARCHAR) ### Response: ### Response: SELECT date FROM table_1315616_1 WHERE mediator = "Keiichi Ubukata" AND red_team_host = "Mitsuko Mori"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 most Att with a long of 27 with yards longer than 27 ### Context: CREATE TABLE table_name_24 (att INTEGER, long VARCHAR, yards VARCHAR) ### Response: ### Response: SELECT MAX(att) FROM table_name_24 WHERE long = 27 AND yards > 27</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the date that the polls were going on at quinnipiac when john mccain was the republican, barack obama was the democrat and the sample size was bigger than 1427? ### Context: CREATE TABLE table_name_67 (date VARCHAR, sample_size VARCHAR, democrat VARCHAR, republican VARCHAR, poll_source VARCHAR) ### Response: ### Response: SELECT date FROM table_name_67 WHERE republican = "john mccain" AND poll_source = "quinnipiac" AND democrat = "barack obama" AND sample_size > 1427</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 capacity for the arena in Chester? ### Context: CREATE TABLE table_name_97 (capacity VARCHAR, city_area VARCHAR) ### Response: ### Response: SELECT capacity FROM table_name_97 WHERE city_area = "chester"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 candidate for the district Arkansas 2? ### Context: CREATE TABLE table_1342218_5 (candidates VARCHAR, district VARCHAR) ### Response: ### Response: SELECT candidates FROM table_1342218_5 WHERE district = "Arkansas 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: I want the plaid cymru for 4 may 2011 ### Context: CREATE TABLE table_name_9 (plaid_cymru VARCHAR, date_s__conducted VARCHAR) ### Response: ### Response: SELECT plaid_cymru FROM table_name_9 WHERE date_s__conducted = "4 may 2011"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 broadcast date of the episode with 9.65 million viewers? ### Context: CREATE TABLE table_name_39 (broadcast_date VARCHAR, viewership__millions_ VARCHAR) ### Response: ### Response: SELECT broadcast_date FROM table_name_39 WHERE viewership__millions_ = 9.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 player has a Position of infielder, and a Hometown of atlanta, ga? ### Context: CREATE TABLE table_name_48 (player VARCHAR, position VARCHAR, hometown VARCHAR) ### Response: ### Response: SELECT player FROM table_name_48 WHERE position = "infielder" AND hometown = "atlanta, ga"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 award before 2001? ### Context: CREATE TABLE table_name_32 (award VARCHAR, year INTEGER) ### Response: ### Response: SELECT award FROM table_name_32 WHERE year < 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: What is the id, name and nationality of the architect who built most mills? ### Context: CREATE TABLE architect (id VARCHAR, name VARCHAR, nationality VARCHAR); CREATE TABLE mill (architect_id VARCHAR) ### Response: ### Response: SELECT T1.id, T1.name, T1.nationality FROM architect AS T1 JOIN mill AS T2 ON T1.id = T2.architect_id GROUP BY T1.id ORDER BY COUNT(*) DESC LIMIT 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: when was the next coach appointed after niger tornadoes fired their coach? ### Context: CREATE TABLE table_28164986_4 (date_of_appointment VARCHAR, manner_of_departure VARCHAR, team VARCHAR) ### Response: ### Response: SELECT date_of_appointment FROM table_28164986_4 WHERE manner_of_departure = "fired" AND team = "Niger Tornadoes"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 minimum voted yes where percent no is 68.2 ### Context: CREATE TABLE table_120778_2 (voted_yes INTEGER, percent_no VARCHAR) ### Response: ### Response: SELECT MIN(voted_yes) FROM table_120778_2 WHERE percent_no = "68.2"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which aircraft has heavy transport? ### Context: CREATE TABLE table_name_39 (aircraft VARCHAR, type VARCHAR) ### Response: ### Response: SELECT aircraft FROM table_name_39 WHERE type = "heavy transport"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the Grids is less than 2 what are the total laps? ### Context: CREATE TABLE table_name_87 (laps VARCHAR, grid INTEGER) ### Response: ### Response: SELECT COUNT(laps) FROM table_name_87 WHERE grid < 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: For the game with 26,236 attendance, what was the record? ### Context: CREATE TABLE table_name_81 (record VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT record FROM table_name_81 WHERE attendance = "26,236"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 that had the Estudiantes La Plata home for the 2nd leg? ### Context: CREATE TABLE table_name_41 (home__2nd_leg_ VARCHAR) ### Response: ### Response: SELECT 2 AS nd_leg FROM table_name_41 WHERE home__2nd_leg_ = "estudiantes la plata"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Tries For is "correct as of 00:00 11 June 2008"? ### Context: CREATE TABLE table_name_90 (points VARCHAR, tries_for VARCHAR) ### Response: ### Response: SELECT points FROM table_name_90 WHERE tries_for = "correct as of 00:00 11 june 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: How many services has each resident requested? List the resident id, details, and the count in descending order of the count. ### Context: CREATE TABLE Residents_Services (resident_id VARCHAR); CREATE TABLE Residents (resident_id VARCHAR, other_details VARCHAR) ### Response: ### Response: SELECT T1.resident_id, T1.other_details, COUNT(*) FROM Residents AS T1 JOIN Residents_Services AS T2 ON T1.resident_id = T2.resident_id GROUP BY T1.resident_id ORDER BY COUNT(*) DESC</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the score in the August 20, 2007 match? ### Context: CREATE TABLE table_name_2 (score VARCHAR, date VARCHAR) ### Response: ### Response: SELECT score FROM table_name_2 WHERE date = "august 20, 2007"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What were the results for november 25, 1973? ### Context: CREATE TABLE table_name_36 (result VARCHAR, date VARCHAR) ### Response: ### Response: SELECT result FROM table_name_36 WHERE date = "november 25, 1973"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the total attendance when Stourbridge is the home team? ### Context: CREATE TABLE table_name_25 (attendance VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT COUNT(attendance) FROM table_name_25 WHERE home_team = "stourbridge"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who has a length of 71 ft? ### Context: CREATE TABLE table_name_21 (name VARCHAR, length__ft_ VARCHAR) ### Response: ### Response: SELECT name FROM table_name_21 WHERE length__ft_ = 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 the highest Rank of Karen Pickering when she had a time of less than 55.71? ### Context: CREATE TABLE table_name_59 (rank INTEGER, name VARCHAR, time VARCHAR) ### Response: ### Response: SELECT MAX(rank) FROM table_name_59 WHERE name = "karen pickering" AND time < 55.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: How many rounds did Patrick Tambay record the fastest lap? ### Context: CREATE TABLE table_1140073_2 (rnd VARCHAR, fastest_lap VARCHAR) ### Response: ### Response: SELECT COUNT(rnd) FROM table_1140073_2 WHERE fastest_lap = "Patrick Tambay"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 opposing team during a game in the Pontiac Silverdome? ### Context: CREATE TABLE table_name_89 (opponent VARCHAR, location VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_89 WHERE location = "pontiac silverdome"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the position of the player from Sweden? ### Context: CREATE TABLE table_name_93 (position VARCHAR, nationality VARCHAR) ### Response: ### Response: SELECT position FROM table_name_93 WHERE nationality = "sweden"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 shooter had a total of 11 at the WC Munich with a score of 6? ### Context: CREATE TABLE table_name_18 (shooter VARCHAR, score_points VARCHAR, total VARCHAR, event VARCHAR) ### Response: ### Response: SELECT shooter FROM table_name_18 WHERE total = "11" AND event = "wc munich" AND score_points = "6"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which catalog is in cd format? ### Context: CREATE TABLE table_name_54 (catalog VARCHAR, format VARCHAR) ### Response: ### Response: SELECT catalog FROM table_name_54 WHERE format = "cd"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 artist for the theme "Year they were born?" ### Context: CREATE TABLE table_15796100_1 (original_artist VARCHAR, theme VARCHAR) ### Response: ### Response: SELECT original_artist FROM table_15796100_1 WHERE theme = "Year They Were Born"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Round is less than 6, and when Pick is "69"? ### Context: CREATE TABLE table_name_78 (player VARCHAR, round VARCHAR, pick VARCHAR) ### Response: ### Response: SELECT player FROM table_name_78 WHERE round < 6 AND pick = 69</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the sum of October, when Opponent is "Pittsburgh Penguins"? ### Context: CREATE TABLE table_name_19 (october INTEGER, opponent VARCHAR) ### Response: ### Response: SELECT SUM(october) FROM table_name_19 WHERE opponent = "pittsburgh penguins"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 nme of the song performed by billy vaughn? ### Context: CREATE TABLE table_13804825_2 (song_title VARCHAR, artist VARCHAR) ### Response: ### Response: SELECT song_title FROM table_13804825_2 WHERE artist = "Billy Vaughn"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the record for April 22? ### Context: CREATE TABLE table_name_25 (record VARCHAR, date VARCHAR) ### Response: ### Response: SELECT record FROM table_name_25 WHERE date = "april 22"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What's the Time/Retired of Laps of 75? ### Context: CREATE TABLE table_name_59 (time_retired VARCHAR, laps VARCHAR) ### Response: ### Response: SELECT time_retired FROM table_name_59 WHERE laps = 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 players have a height of 2.07? ### Context: CREATE TABLE table_23670057_7 (player VARCHAR, height__m_ VARCHAR) ### Response: ### Response: SELECT COUNT(player) FROM table_23670057_7 WHERE height__m_ = "2.07"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Can you tell me the Place that has the Score of 68, and the Player of christy o'connor jnr? ### Context: CREATE TABLE table_name_70 (place VARCHAR, score VARCHAR, player VARCHAR) ### Response: ### Response: SELECT place FROM table_name_70 WHERE score = 68 AND player = "christy o'connor jnr"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 worst score for the dance that has Apolo Anton Ohno as the best dancer, and where his best score is larger than 30? ### Context: CREATE TABLE table_name_23 (worst_score INTEGER, best_dancer VARCHAR, best_score VARCHAR) ### Response: ### Response: SELECT SUM(worst_score) FROM table_name_23 WHERE best_dancer = "apolo anton ohno" AND best_score > 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: Name the game for record 1-0 ### Context: CREATE TABLE table_21091157_1 (game VARCHAR, record VARCHAR) ### Response: ### Response: SELECT game FROM table_21091157_1 WHERE record = "1-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: Name the location attendance for 10-14 ### Context: CREATE TABLE table_23248940_7 (location_attendance VARCHAR, record VARCHAR) ### Response: ### Response: SELECT location_attendance FROM table_23248940_7 WHERE record = "10-14"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the sport played in Iowa City on February 14, 2009? ### Context: CREATE TABLE table_name_17 (sport VARCHAR, site VARCHAR, date VARCHAR) ### Response: ### Response: SELECT sport FROM table_name_17 WHERE site = "iowa city" AND date = "february 14, 2009"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: In what Season does the Internazionale Club have more than 2 Apps? ### Context: CREATE TABLE table_name_90 (season VARCHAR, apps VARCHAR, club VARCHAR) ### Response: ### Response: SELECT season FROM table_name_90 WHERE apps > 2 AND club = "internazionale"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 incumbent with district being tennessee 5 ### Context: CREATE TABLE table_1341865_44 (incumbent VARCHAR, district VARCHAR) ### Response: ### Response: SELECT incumbent FROM table_1341865_44 WHERE district = "Tennessee 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 bleeding time for the factor x deficiency as seen in amyloid purpura ### Context: CREATE TABLE table_1099080_1 (bleeding_time VARCHAR, condition VARCHAR) ### Response: ### Response: SELECT bleeding_time FROM table_1099080_1 WHERE condition = "Factor X deficiency as seen in amyloid purpura"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 finish had a win percentage that was more than 0.598 and also had less than 53 wins? ### Context: CREATE TABLE table_name_41 (finish VARCHAR, win_percentage VARCHAR, wins VARCHAR) ### Response: ### Response: SELECT finish FROM table_name_41 WHERE win_percentage > 0.598 AND wins < 53</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What team has a title of calder? ### Context: CREATE TABLE table_name_5 (team VARCHAR, race_title VARCHAR) ### Response: ### Response: SELECT team FROM table_name_5 WHERE race_title = "calder"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 3rd participle of the verb whose 2nd participle is band? ### Context: CREATE TABLE table_1745843_5 (part_3 VARCHAR, part_2 VARCHAR) ### Response: ### Response: SELECT part_3 FROM table_1745843_5 WHERE part_2 = "band"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 dogs have an age below the average? ### Context: CREATE TABLE Dogs (age INTEGER) ### Response: ### Response: SELECT COUNT(*) FROM Dogs WHERE age < (SELECT AVG(age) FROM Dogs)</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 passengers (in millions) flew from Seoul in 2012? ### Context: CREATE TABLE table_16066063_1 (city_1 VARCHAR) ### Response: ### Response: SELECT 2012 AS _passengers__in_millions_ FROM table_16066063_1 WHERE city_1 = "Seoul"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the date for a catalog formatted in stereo LP? ### Context: CREATE TABLE table_name_33 (date VARCHAR, format VARCHAR) ### Response: ### Response: SELECT date FROM table_name_33 WHERE format = "stereo lp"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who had the highest rebounds during the game with a record of 23-47? ### Context: CREATE TABLE table_22822559_8 (high_rebounds VARCHAR, record VARCHAR) ### Response: ### Response: SELECT high_rebounds FROM table_22822559_8 WHERE record = "23-47"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 GOAL HAS A TIME OF 39:37? ### Context: CREATE TABLE table_name_45 (goal VARCHAR, time VARCHAR) ### Response: ### Response: SELECT goal FROM table_name_45 WHERE time = "39: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: Who attended the school in 2008, that Deandria Hill attended in 2005? ### Context: CREATE TABLE table_name_15 (Id VARCHAR) ### Response: ### Response: SELECT 2008 FROM table_name_15 WHERE 2005 = "deandria 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: Which bridge is located in Nectar, in Blount County? ### Context: CREATE TABLE table_name_17 (name VARCHAR, county VARCHAR, location VARCHAR) ### Response: ### Response: SELECT name FROM table_name_17 WHERE county = "blount" AND location = "nectar"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 numbered event? ### Context: CREATE TABLE table_30060356_3 (event INTEGER) ### Response: ### Response: SELECT MAX(event) FROM table_30060356_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: Find the names of users who have more than one tweet. ### Context: CREATE TABLE tweets (uid VARCHAR); CREATE TABLE user_profiles (name VARCHAR, uid VARCHAR) ### Response: ### Response: SELECT T1.name FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid = T2.uid GROUP BY T2.uid HAVING COUNT(*) > 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which total number of Week has an Opponent of at new orleans saints, and an Attendance larger than 53,448? ### Context: CREATE TABLE table_name_17 (week VARCHAR, opponent VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT COUNT(week) FROM table_name_17 WHERE opponent = "at new orleans saints" AND attendance > 53 OFFSET 448</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 greek national account when 1997 is 6.1? ### Context: CREATE TABLE table_27146868_1 (greek_national_account VARCHAR) ### Response: ### Response: SELECT greek_national_account FROM table_27146868_1 WHERE 1997 = "6.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 date for the mount panorama circuit? ### Context: CREATE TABLE table_26686908_2 (date VARCHAR, circuit VARCHAR) ### Response: ### Response: SELECT date FROM table_26686908_2 WHERE circuit = "Mount Panorama circuit"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 title was used in the nomination of the Spanish language film Traffic? ### Context: CREATE TABLE table_name_43 (film_title_used_in_nomination VARCHAR, language VARCHAR, original_title VARCHAR) ### Response: ### Response: SELECT film_title_used_in_nomination FROM table_name_43 WHERE language = "spanish" AND original_title = "traffic"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What were the notes for the time 45.74? ### Context: CREATE TABLE table_name_89 (notes VARCHAR, time VARCHAR) ### Response: ### Response: SELECT notes FROM table_name_89 WHERE time = "45.74"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 crowd size of the match featuring Hawthorn as the Away team? ### Context: CREATE TABLE table_name_84 (crowd VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT crowd FROM table_name_84 WHERE away_team = "hawthorn"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 lunar landing site for 19 november 1969 ### Context: CREATE TABLE table_1558077_8 (lunar_landing_site VARCHAR, lunar_landing_date VARCHAR) ### Response: ### Response: SELECT lunar_landing_site FROM table_1558077_8 WHERE lunar_landing_date = "19 November 1969"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 districts have Mac Sweeney as incumbent? ### Context: CREATE TABLE table_1341586_44 (candidates VARCHAR, incumbent VARCHAR) ### Response: ### Response: SELECT COUNT(candidates) FROM table_1341586_44 WHERE incumbent = "Mac Sweeney"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 when the first was November 1966? ### Context: CREATE TABLE table_name_42 (total INTEGER, first VARCHAR) ### Response: ### Response: SELECT SUM(total) FROM table_name_42 WHERE first = "november 1966"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 opponent for the Sutton tournament? ### Context: CREATE TABLE table_name_19 (opponents VARCHAR, tournament VARCHAR) ### Response: ### Response: SELECT opponents FROM table_name_19 WHERE tournament = "sutton"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the total number of assists for players with under 55 games and over 6 assists per game average? ### Context: CREATE TABLE table_name_11 (total_assists INTEGER, ast_avg VARCHAR, games VARCHAR) ### Response: ### Response: SELECT SUM(total_assists) FROM table_name_11 WHERE ast_avg > 6 AND games < 55</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 viewers in millions watched the episode 23:55 minutes long? ### Context: CREATE TABLE table_1849243_1 (viewers__in_millions_ VARCHAR, run_time VARCHAR) ### Response: ### Response: SELECT viewers__in_millions_ FROM table_1849243_1 WHERE run_time = "23:55"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who were the candidates when Barney Frank was the incumbent? ### Context: CREATE TABLE table_1341395_22 (candidates VARCHAR, incumbent VARCHAR) ### Response: ### Response: SELECT candidates FROM table_1341395_22 WHERE incumbent = "Barney Frank"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 number of matches in different competitions. ### Context: CREATE TABLE MATCH (Competition VARCHAR) ### Response: ### Response: SELECT COUNT(*), Competition FROM MATCH GROUP BY Competition</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 actors are from Ukraine? ### Context: CREATE TABLE table_10236830_4 (actors_name VARCHAR, country VARCHAR) ### Response: ### Response: SELECT actors_name FROM table_10236830_4 WHERE country = "Ukraine"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 country does david gilford play for? ### Context: CREATE TABLE table_name_90 (country VARCHAR, player VARCHAR) ### Response: ### Response: SELECT country FROM table_name_90 WHERE player = "david gilford"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 competitions had a final score of 15.650? ### Context: CREATE TABLE table_25143284_1 (competition_description VARCHAR, score_final VARCHAR) ### Response: ### Response: SELECT COUNT(competition_description) FROM table_25143284_1 WHERE score_final = "15.650"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the most points when the entrant was Jaguar racing earlier than 2001? ### Context: CREATE TABLE table_name_25 (points INTEGER, entrant VARCHAR, year VARCHAR) ### Response: ### Response: SELECT MAX(points) FROM table_name_25 WHERE entrant = "jaguar racing" AND year < 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: What venue featured fitzroy as the home squad? ### Context: CREATE TABLE table_name_62 (venue VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_62 WHERE home_team = "fitzroy"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2006 has 0-0 as the 2011? ### Context: CREATE TABLE table_name_29 (Id VARCHAR) ### Response: ### Response: SELECT 2006 FROM table_name_29 WHERE 2011 = "0-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 series number had the production code of 116 ### Context: CREATE TABLE table_15938543_1 (no_in_series VARCHAR, production_code VARCHAR) ### Response: ### Response: SELECT no_in_series FROM table_15938543_1 WHERE production_code = 116</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 round number when Michael Hjalm played? ### Context: CREATE TABLE table_name_27 (round VARCHAR, player VARCHAR) ### Response: ### Response: SELECT round FROM table_name_27 WHERE player = "michael hjalm"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 delay when scientific linux release is 5.10 ### Context: CREATE TABLE table_1500146_1 (delay VARCHAR, scientific_linux_release VARCHAR) ### Response: ### Response: SELECT delay FROM table_1500146_1 WHERE scientific_linux_release = "5.10"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many locations does the team Newcastle Jets come from? ### Context: CREATE TABLE table_1301373_1 (location VARCHAR, team VARCHAR) ### Response: ### Response: SELECT COUNT(location) FROM table_1301373_1 WHERE team = "Newcastle Jets"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 margin of victory when the winning score was –10 (70-72-68-68=278)? ### Context: CREATE TABLE table_name_6 (margin_of_victory VARCHAR, winning_score VARCHAR) ### Response: ### Response: SELECT margin_of_victory FROM table_name_6 WHERE winning_score = –10(70 - 72 - 68 - 68 = 278)</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the date for catalog RCD 10160? ### Context: CREATE TABLE table_name_15 (date VARCHAR, catalog VARCHAR) ### Response: ### Response: SELECT date FROM table_name_15 WHERE catalog = "rcd 10160"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 province with a contestant of tatiana vargas rosales? ### Context: CREATE TABLE table_name_43 (province VARCHAR, _community VARCHAR, contestant VARCHAR) ### Response: ### Response: SELECT province, _community FROM table_name_43 WHERE contestant = "tatiana vargas rosales"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 attended the school in 2006, that Whitney Powell attended in 2007? ### Context: CREATE TABLE table_name_32 (Id VARCHAR) ### Response: ### Response: SELECT 2006 FROM table_name_32 WHERE 2007 = "whitney powell"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 names of the customers who have once bought product "food". ### Context: CREATE TABLE products (product_name VARCHAR, product_id VARCHAR); CREATE TABLE orders (customer_id VARCHAR, order_id VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE order_items (product_id VARCHAR, order_id VARCHAR) ### Response: ### Response: SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 JOIN order_items AS T3 JOIN products AS T4 ON T1.customer_id = T2.customer_id AND T2.order_id = T3.order_id AND T3.product_id = T4.product_id WHERE T4.product_name = "food" GROUP BY T1.customer_id HAVING COUNT(*) >= 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the score when the to par was –5, for Peter Jacobsen? ### Context: CREATE TABLE table_name_9 (score INTEGER, to_par VARCHAR, player VARCHAR) ### Response: ### Response: SELECT SUM(score) FROM table_name_9 WHERE to_par = "–5" AND player = "peter jacobsen"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Wednesday, June 1 practice time for the rider that did 21' 05.87 107.300mph on Thursday, June 2? ### Context: CREATE TABLE table_29218221_3 (wed_1_june VARCHAR, thurs_2_june VARCHAR) ### Response: ### Response: SELECT wed_1_june FROM table_29218221_3 WHERE thurs_2_june = "21' 05.87 107.300mph"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 GAMES WERE TIED AT 76? ### Context: CREATE TABLE table_12807904_3 (drawn VARCHAR, points VARCHAR) ### Response: ### Response: SELECT drawn FROM table_12807904_3 WHERE points = "76"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many accounts does each customer have? List the number and customer id. ### Context: CREATE TABLE Accounts (customer_id VARCHAR) ### Response: ### Response: SELECT COUNT(*), customer_id FROM Accounts GROUP BY customer_id</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Play-Off has Events of –, and a Season of a-6? ### Context: CREATE TABLE table_name_84 (play_off VARCHAR, events VARCHAR, season VARCHAR) ### Response: ### Response: SELECT play_off FROM table_name_84 WHERE events = "–" AND season = "a-6"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Tonnage has a Fate of sunk, and Deaths smaller than 17, and a Date of 16 november 1940? ### Context: CREATE TABLE table_name_11 (tonnage___grt__ VARCHAR, date VARCHAR, fate VARCHAR, deaths VARCHAR) ### Response: ### Response: SELECT tonnage___grt__ FROM table_name_11 WHERE fate = "sunk" AND deaths < 17 AND date = "16 november 1940"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 LOA of Brindabella? ### Context: CREATE TABLE table_25595209_1 (loa__metres_ VARCHAR, yacht VARCHAR) ### Response: ### Response: SELECT loa__metres_ FROM table_25595209_1 WHERE yacht = "Brindabella"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 ids of all employees who have authorized destruction. ### Context: CREATE TABLE Documents_to_be_destroyed (Destruction_Authorised_by_Employee_ID VARCHAR) ### Response: ### Response: SELECT DISTINCT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 dish for resolution of sd 480i and network of bvb ### Context: CREATE TABLE table_name_8 (dish VARCHAR, resolution VARCHAR, network VARCHAR) ### Response: ### Response: SELECT dish FROM table_name_8 WHERE resolution = "sd 480i" AND network = "bvb"</s>