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: Tell me the league for year of 1915/16 ### Context: CREATE TABLE table_name_3 (league VARCHAR, year VARCHAR) ### Response: ### Response: SELECT league FROM table_name_3 WHERE year = "1915/16"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the date of the game with the Rockets as the visitor team? ### Context: CREATE TABLE table_name_3 (date VARCHAR, visitor VARCHAR) ### Response: ### Response: SELECT date FROM table_name_3 WHERE visitor = "rockets"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 start number for a rank 11 race with less than 200 laps? ### Context: CREATE TABLE table_name_36 (start VARCHAR, laps VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT start FROM table_name_36 WHERE laps < 200 AND rank = "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 are the names of people in ascending order of weight? ### Context: CREATE TABLE People (Name VARCHAR, Weight VARCHAR) ### Response: ### Response: SELECT Name FROM People ORDER BY Weight</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 RolePlay actors played the same role as FlatSpin's Tracy Taylor? ### Context: CREATE TABLE table_17827271_1 (roleplay VARCHAR, flatspin VARCHAR) ### Response: ### Response: SELECT COUNT(roleplay) FROM table_17827271_1 WHERE flatspin = "Tracy Taylor"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 wrestlers days held less than 100? ### Context: CREATE TABLE wrestler (Name VARCHAR, Days_held INTEGER) ### Response: ### Response: SELECT Name FROM wrestler WHERE Days_held < 100</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 out 5 customers who most recently purchased something. List customers' first and last name. ### Context: CREATE TABLE customers (first_name VARCHAR, last_name VARCHAR, id VARCHAR); CREATE TABLE invoices (customer_id VARCHAR, invoice_date VARCHAR) ### Response: ### Response: SELECT T1.first_name, T1.last_name FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id ORDER BY T2.invoice_date DESC LIMIT 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 capacity percentage when attendance was 71080? ### Context: CREATE TABLE table_28884858_2 (capacity_percentage VARCHAR, average_attendance VARCHAR) ### Response: ### Response: SELECT capacity_percentage FROM table_28884858_2 WHERE average_attendance = 71080</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 years that an entrant had more than 0 points? ### Context: CREATE TABLE table_name_87 (year VARCHAR, points INTEGER) ### Response: ### Response: SELECT COUNT(year) FROM table_name_87 WHERE points > 0</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Places amount of the United States Ranking 8? ### Context: CREATE TABLE table_name_71 (places INTEGER, nation VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT AVG(places) FROM table_name_71 WHERE nation = "united states" AND rank = 8</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Find the name, population and expected life length of asian country with the largest area? ### Context: CREATE TABLE country (Name VARCHAR, Population VARCHAR, LifeExpectancy VARCHAR, Continent VARCHAR, SurfaceArea VARCHAR) ### Response: ### Response: SELECT Name, Population, LifeExpectancy FROM country WHERE Continent = "Asia" ORDER BY SurfaceArea 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: What was the fate and location of the Ringstad? ### Context: CREATE TABLE table_name_3 (fate_and_location VARCHAR, ship VARCHAR) ### Response: ### Response: SELECT fate_and_location FROM table_name_3 WHERE ship = "ringstad"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What artist shows 2007 and composer of Hayko? ### Context: CREATE TABLE table_name_31 (artist VARCHAR, year VARCHAR, composer VARCHAR) ### Response: ### Response: SELECT artist FROM table_name_31 WHERE year = 2007 AND composer = "hayko"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 value Top-10 that has a Cuts value of 2 and a Wins value smaller than 0? ### Context: CREATE TABLE table_name_26 (top_10 INTEGER, cuts_made VARCHAR, wins VARCHAR) ### Response: ### Response: SELECT SUM(top_10) FROM table_name_26 WHERE cuts_made = 2 AND wins < 0</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the largest round number for Dan Connor, the player? ### Context: CREATE TABLE table_name_87 (round INTEGER, player VARCHAR) ### Response: ### Response: SELECT MAX(round) FROM table_name_87 WHERE player = "dan connor"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Drawn has a Position of 2, and a Lost larger than 2? ### Context: CREATE TABLE table_name_24 (drawn INTEGER, position VARCHAR, lost VARCHAR) ### Response: ### Response: SELECT MIN(drawn) FROM table_name_24 WHERE position = 2 AND lost > 2</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the highest attendance for the game that was before week 6 on October 22, 1967? ### Context: CREATE TABLE table_name_74 (attendance INTEGER, date VARCHAR, week VARCHAR) ### Response: ### Response: SELECT MAX(attendance) FROM table_name_74 WHERE date = "october 22, 1967" AND week < 6</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: In the 2005 season with a score of 0-4 what is the team 1? ### Context: CREATE TABLE table_name_9 (team_1 VARCHAR, season VARCHAR, score VARCHAR) ### Response: ### Response: SELECT team_1 FROM table_name_9 WHERE season = "2005" AND score = "0-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 name of the inductee for the ecw arena? ### Context: CREATE TABLE table_name_56 (inductee_s_ VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT inductee_s_ FROM table_name_56 WHERE venue = "ecw arena"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 length for stage of ss6 ### Context: CREATE TABLE table_name_41 (length VARCHAR, stage VARCHAR) ### Response: ### Response: SELECT length FROM table_name_41 WHERE stage = "ss6"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of customer who has the highest amount of loans. ### Context: CREATE TABLE loan (cust_id VARCHAR, amount INTEGER); CREATE TABLE customer (cust_name VARCHAR, cust_id VARCHAR) ### Response: ### Response: SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_name ORDER BY SUM(T2.amount) 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: What's the island with a summit of Haleakalā? ### Context: CREATE TABLE table_name_74 (island VARCHAR, summit VARCHAR) ### Response: ### Response: SELECT island FROM table_name_74 WHERE summit = "haleakalā"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 common name for the creature with darker colors? ### Context: CREATE TABLE table_name_18 (common_name VARCHAR, color VARCHAR) ### Response: ### Response: SELECT common_name FROM table_name_18 WHERE color = "darker colors"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 and country for the artist with most number of exhibitions? ### Context: CREATE TABLE exhibition (artist_id VARCHAR); CREATE TABLE artist (name VARCHAR, country VARCHAR, artist_id VARCHAR) ### Response: ### Response: SELECT T2.name, T2.country FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id = T2.artist_id GROUP BY T1.artist_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: How many fatalities were there in the crash described as ditched 300 m short of runway? ### Context: CREATE TABLE table_229917_2 (fatalities VARCHAR, brief_description VARCHAR) ### Response: ### Response: SELECT fatalities FROM table_229917_2 WHERE brief_description = "Ditched 300 m short of runway"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 was the game played when the high assists were scored by billups , stuckey (4)? ### Context: CREATE TABLE table_11960944_11 (location_attendance VARCHAR, high_assists VARCHAR) ### Response: ### Response: SELECT location_attendance FROM table_11960944_11 WHERE high_assists = "Billups , Stuckey (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 2006 result of the Canada Masters tournament that is A in 2009 and A in 2010? ### Context: CREATE TABLE table_name_88 (tournament VARCHAR) ### Response: ### Response: SELECT 2006 FROM table_name_88 WHERE 2010 = "a" AND 2009 = "a" AND tournament = "canada masters"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 superfund that was proposed on 06/24/1988? ### Context: CREATE TABLE table_name_99 (name VARCHAR, proposed VARCHAR) ### Response: ### Response: SELECT name FROM table_name_99 WHERE proposed = "06/24/1988"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 contestant was sponsored by Yogurt Vita Slim? ### Context: CREATE TABLE table_28062822_3 (contestant VARCHAR, sponsor VARCHAR) ### Response: ### Response: SELECT contestant FROM table_28062822_3 WHERE sponsor = "Yogurt Vita Slim"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what fleet is associated with the number L4? ### Context: CREATE TABLE table_name_61 (fleet VARCHAR, number VARCHAR) ### Response: ### Response: SELECT fleet FROM table_name_61 WHERE number = "l4"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 during the game with a Score of 113–103? ### Context: CREATE TABLE table_name_16 (record VARCHAR, score VARCHAR) ### Response: ### Response: SELECT record FROM table_name_16 WHERE score = "113–103"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 post code of the county with the Chinese name 潜山县 / 潛山縣? ### Context: CREATE TABLE table_1976898_1 (post_code INTEGER, chinese_name__simplified___traditional_ VARCHAR) ### Response: ### Response: SELECT MIN(post_code) FROM table_1976898_1 WHERE chinese_name__simplified___traditional_ = "潜山县 / 潛山縣"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 total offense when the opponentis Penn State? ### Context: CREATE TABLE table_28697228_4 (total_offense INTEGER, opponent VARCHAR) ### Response: ### Response: SELECT MAX(total_offense) FROM table_28697228_4 WHERE opponent = "Penn State"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What school is in 41 Johnson county? ### Context: CREATE TABLE table_name_56 (school VARCHAR, county VARCHAR) ### Response: ### Response: SELECT school FROM table_name_56 WHERE county = "41 johnson"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the FCC info of the station with a frequency above 95.3 and an ERP W smaller than 27 in Ocala, Florida? ### Context: CREATE TABLE table_name_48 (fcc_info VARCHAR, city_of_license VARCHAR, frequency_mhz VARCHAR, erp_w VARCHAR) ### Response: ### Response: SELECT fcc_info FROM table_name_48 WHERE frequency_mhz > 95.3 AND erp_w < 27 AND city_of_license = "ocala, florida"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 runner ups were there for the cologne , germany carpet – $75,000 – s32/d16 when the champion was matt doyle 1–6, 6–1, 6–2? ### Context: CREATE TABLE table_29296103_10 (runner_up VARCHAR, tournament VARCHAR, champion VARCHAR) ### Response: ### Response: SELECT COUNT(runner_up) FROM table_29296103_10 WHERE tournament = "Cologne , Germany Carpet – $75,000 – S32/D16" AND champion = "Matt Doyle 1–6, 6–1, 6–2"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many episodes ran 24:33? ### Context: CREATE TABLE table_2102898_1 (episode VARCHAR, run_time VARCHAR) ### Response: ### Response: SELECT COUNT(episode) FROM table_2102898_1 WHERE run_time = "24:33"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the original air date of the episode with a production code of 105? ### Context: CREATE TABLE table_22815870_1 (original_air_date VARCHAR, prod_code VARCHAR) ### Response: ### Response: SELECT original_air_date FROM table_22815870_1 WHERE prod_code = 105</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Home Team, when Tie No is Replay, and when Attendance is 2,048? ### Context: CREATE TABLE table_name_44 (home_team VARCHAR, tie_no VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT home_team FROM table_name_44 WHERE tie_no = "replay" AND attendance = "2,048"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Points is the lowest one that has an Extra points of 0, and a Player of curtis redden, and Touchdowns smaller than 2? ### Context: CREATE TABLE table_name_33 (points INTEGER, touchdowns VARCHAR, extra_points VARCHAR, player VARCHAR) ### Response: ### Response: SELECT MIN(points) FROM table_name_33 WHERE extra_points = 0 AND player = "curtis redden" AND touchdowns < 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: If the Venue was princes park, which Date did the game take place on? ### Context: CREATE TABLE table_name_58 (date VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT date FROM table_name_58 WHERE venue = "princes park"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What tournament is listed as A in 1972 and 2R in 1975? ### Context: CREATE TABLE table_name_69 (tournament VARCHAR) ### Response: ### Response: SELECT tournament FROM table_name_69 WHERE 1972 = "a" AND 1975 = "2r"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 report in Buenos Aires? ### Context: CREATE TABLE table_name_98 (report VARCHAR, location VARCHAR) ### Response: ### Response: SELECT report FROM table_name_98 WHERE location = "buenos aires"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Score is less than 69, and when Country is "United States"? ### Context: CREATE TABLE table_name_70 (player VARCHAR, score VARCHAR, country VARCHAR) ### Response: ### Response: SELECT player FROM table_name_70 WHERE score < 69 AND country = "united states"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 SS5 Stage? ### Context: CREATE TABLE table_name_90 (name VARCHAR, stage VARCHAR) ### Response: ### Response: SELECT name FROM table_name_90 WHERE stage = "ss5"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Grade that has Turf 1600m? ### Context: CREATE TABLE table_name_27 (grade VARCHAR, priority_entry_rights_to_derby VARCHAR) ### Response: ### Response: SELECT grade FROM table_name_27 WHERE priority_entry_rights_to_derby = "turf 1600m"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of the events only lasted no more than 0:55? ### Context: CREATE TABLE table_name_66 (event VARCHAR, time VARCHAR) ### Response: ### Response: SELECT event FROM table_name_66 WHERE time = "0: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: When was Leyton Orient an away team? ### Context: CREATE TABLE table_name_68 (date VARCHAR, opponent VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT date FROM table_name_68 WHERE opponent = "leyton orient" AND venue = "away"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 average attendance when the opponents are dundalk? ### Context: CREATE TABLE table_name_85 (attendance INTEGER, opponents VARCHAR) ### Response: ### Response: SELECT AVG(attendance) FROM table_name_85 WHERE opponents = "dundalk"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 season had a trade with the school/club team La Salle? ### Context: CREATE TABLE table_name_5 (season VARCHAR, acquisition_via VARCHAR, school_club_team VARCHAR) ### Response: ### Response: SELECT season FROM table_name_5 WHERE acquisition_via = "trade" AND school_club_team = "la salle"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the result of the dance which had a style of contemporary jazz? ### Context: CREATE TABLE table_name_1 (results VARCHAR, style VARCHAR) ### Response: ### Response: SELECT results FROM table_name_1 WHERE style = "contemporary jazz"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 there a finish of 3? ### Context: CREATE TABLE table_name_27 (year VARCHAR, finish VARCHAR) ### Response: ### Response: SELECT year FROM table_name_27 WHERE finish = "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: Is the Washington Corrections Center for Women (WCCW) a major facility? ### Context: CREATE TABLE table_25346763_1 (Major VARCHAR, facility VARCHAR) ### Response: ### Response: SELECT Major AS facility FROM table_25346763_1 WHERE facility = "Washington Corrections Center for Women (WCCW)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 local mission that has kingstown as a local location? ### Context: CREATE TABLE table_name_18 (Local VARCHAR, local_location VARCHAR) ### Response: ### Response: SELECT Local AS mission FROM table_name_18 WHERE local_location = "kingstown"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 thr type in Aut country? ### Context: CREATE TABLE table_name_81 (type VARCHAR, country VARCHAR) ### Response: ### Response: SELECT type FROM table_name_81 WHERE country = "aut"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 method of resolution when LaVerne Clark's record was 23-16-1? ### Context: CREATE TABLE table_name_84 (method VARCHAR, record VARCHAR) ### Response: ### Response: SELECT method FROM table_name_84 WHERE record = "23-16-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 most amount of stolen ends for a skip with 1 W? ### Context: CREATE TABLE table_29546030_2 (stolen_ends INTEGER, w VARCHAR) ### Response: ### Response: SELECT MAX(stolen_ends) FROM table_29546030_2 WHERE w = 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 most adjusted points for Great Britain? ### Context: CREATE TABLE table_26454128_4 (Adjusted INTEGER, country VARCHAR) ### Response: ### Response: SELECT MAX(Adjusted) AS points FROM table_26454128_4 WHERE country = "Great Britain"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 country won in 1988? ### Context: CREATE TABLE table_name_19 (country VARCHAR, year_s__won VARCHAR) ### Response: ### Response: SELECT country FROM table_name_19 WHERE year_s__won = "1988"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 pick number from round 2? ### Context: CREATE TABLE table_name_60 (pick VARCHAR, round VARCHAR) ### Response: ### Response: SELECT COUNT(pick) FROM table_name_60 WHERE round = "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 Lost has a Position larger than 2, a Name of sg münchen (n), and a Drawn larger than 0? ### Context: CREATE TABLE table_name_48 (lost VARCHAR, drawn VARCHAR, position VARCHAR, name VARCHAR) ### Response: ### Response: SELECT COUNT(lost) FROM table_name_48 WHERE position > 2 AND name = "sg münchen (n)" AND drawn > 0</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the average played for entries with fewer than 65 goals against, points 1 of 19 2, and a position higher than 15? ### Context: CREATE TABLE table_name_89 (played INTEGER, goals_against VARCHAR, position VARCHAR, points_1 VARCHAR) ### Response: ### Response: SELECT AVG(played) FROM table_name_89 WHERE position < 15 AND points_1 = "19 2" AND goals_against < 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 is Player, when Total is greater than 148, and when To Par is "12"? ### Context: CREATE TABLE table_name_83 (player VARCHAR, total VARCHAR, to_par VARCHAR) ### Response: ### Response: SELECT player FROM table_name_83 WHERE total > 148 AND to_par = 12</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what's the comment with model name being 2.4 (2001-2007) ### Context: CREATE TABLE table_1147701_4 (comment VARCHAR, model_name VARCHAR) ### Response: ### Response: SELECT comment FROM table_1147701_4 WHERE model_name = "2.4 (2001-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: The record of 9-4 was against which opponent? ### Context: CREATE TABLE table_10361453_2 (opponent VARCHAR, record VARCHAR) ### Response: ### Response: SELECT opponent FROM table_10361453_2 WHERE record = "9-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 highest sd when the status is second round lost to iveta benešová? ### Context: CREATE TABLE table_26218783_7 (sd INTEGER, status VARCHAR) ### Response: ### Response: SELECT MAX(sd) FROM table_26218783_7 WHERE status = "Second round lost to Iveta Benešová"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 rad number for the dead end in rank 22? ### Context: CREATE TABLE table_name_75 (road_number VARCHAR, type VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT road_number FROM table_name_75 WHERE type = "dead end" AND rank = "22"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who won in 1991? ### Context: CREATE TABLE table_name_89 (player VARCHAR, year_s__won VARCHAR) ### Response: ### Response: SELECT player FROM table_name_89 WHERE year_s__won = "1991"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 results of the incumbent who was first elected in 1996? ### Context: CREATE TABLE table_name_4 (results VARCHAR, first_elected VARCHAR) ### Response: ### Response: SELECT results FROM table_name_4 WHERE first_elected = 1996</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What Competition had a Result of lost 1-2? ### Context: CREATE TABLE table_name_34 (competition VARCHAR, result VARCHAR) ### Response: ### Response: SELECT competition FROM table_name_34 WHERE result = "lost 1-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 player belongs to deerfield academy (Massachusetts) college/junior/club team? ### Context: CREATE TABLE table_21721351_18 (player VARCHAR, college_junior_club_team VARCHAR) ### Response: ### Response: SELECT player FROM table_21721351_18 WHERE college_junior_club_team = "Deerfield Academy (Massachusetts)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 population of maryborough when population of woocoo is 2700 ### Context: CREATE TABLE table_12576536_1 (population__maryborough_ VARCHAR, population__woocoo_ VARCHAR) ### Response: ### Response: SELECT population__maryborough_ FROM table_12576536_1 WHERE population__woocoo_ = 2700</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 login names of the students with family name "Ward"? ### Context: CREATE TABLE Students (login_name VARCHAR, family_name VARCHAR) ### Response: ### Response: SELECT login_name FROM Students WHERE family_name = "Ward"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Album # of 1st was released on what date? ### Context: CREATE TABLE table_name_6 (released VARCHAR, album_number VARCHAR) ### Response: ### Response: SELECT released FROM table_name_6 WHERE album_number = "1st"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Serial Number of the Locomotive that Entered Service October 1989? ### Context: CREATE TABLE table_name_26 (serial_no VARCHAR, entered_service VARCHAR) ### Response: ### Response: SELECT serial_no FROM table_name_26 WHERE entered_service = "october 1989"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which City has a Club of suntracs f.c.? ### Context: CREATE TABLE table_name_38 (city VARCHAR, club VARCHAR) ### Response: ### Response: SELECT city FROM table_name_38 WHERE club = "suntracs f.c."</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 countries that won more than 32 gold medals, what was the highest number of golds? ### Context: CREATE TABLE table_name_81 (gold INTEGER, total INTEGER) ### Response: ### Response: SELECT MAX(gold) FROM table_name_81 WHERE total > 32</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the award for nominated result and year after 2011 ### Context: CREATE TABLE table_name_38 (award VARCHAR, result VARCHAR, year VARCHAR) ### Response: ### Response: SELECT award FROM table_name_38 WHERE result = "nominated" AND year > 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: Name the most number for viewers being 6.95 ### Context: CREATE TABLE table_19834691_4 (_number INTEGER, viewers__millions_ VARCHAR) ### Response: ### Response: SELECT MAX(_number) FROM table_19834691_4 WHERE viewers__millions_ = "6.95"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what is the lowest laps when the grid is smaller than 5 and the driver is juan manuel fangio? ### Context: CREATE TABLE table_name_45 (laps INTEGER, grid VARCHAR, driver VARCHAR) ### Response: ### Response: SELECT MIN(laps) FROM table_name_45 WHERE grid < 5 AND driver = "juan manuel fangio"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the type of disaster that the Arrow Air Flight 1285 categorized in? ### Context: CREATE TABLE table_name_55 (type VARCHAR, disaster VARCHAR) ### Response: ### Response: SELECT type FROM table_name_55 WHERE disaster = "arrow air flight 1285"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 amount for wool for 2001-02? ### Context: CREATE TABLE table_1057262_1 (commodity VARCHAR) ### Response: ### Response: SELECT MIN(2001 AS _02) FROM table_1057262_1 WHERE commodity = "Wool"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What T9 Player had a Score of 70-74-69-70=283? ### Context: CREATE TABLE table_name_93 (player VARCHAR, place VARCHAR, score VARCHAR) ### Response: ### Response: SELECT player FROM table_name_93 WHERE place = "t9" AND score = 70 - 74 - 69 - 70 = 283</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 won promotion for 1987 ### Context: CREATE TABLE table_2119448_3 (won_promotion VARCHAR, season VARCHAR) ### Response: ### Response: SELECT won_promotion FROM table_2119448_3 WHERE season = 1987</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 regions have a capital of matanzas and a 2005 population under 670427? ### Context: CREATE TABLE table_name_85 (area__km²_ VARCHAR, capital VARCHAR, population__2005_ VARCHAR) ### Response: ### Response: SELECT COUNT(area__km²_) FROM table_name_85 WHERE capital = "matanzas" AND population__2005_ < 670427</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Third in the 1993-94 season where Philippe Caux was a lead? ### Context: CREATE TABLE table_name_39 (third VARCHAR, lead VARCHAR, season VARCHAR) ### Response: ### Response: SELECT third FROM table_name_39 WHERE lead = "philippe caux" AND season = "1993-94"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 crowd when the away team is new zealand breakers and the venue is cairns convention centre? ### Context: CREATE TABLE table_name_64 (crowd INTEGER, away_team VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT AVG(crowd) FROM table_name_64 WHERE away_team = "new zealand breakers" AND venue = "cairns convention centre"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Country has a Score of 71-74-70=215? ### Context: CREATE TABLE table_name_37 (country VARCHAR, score VARCHAR) ### Response: ### Response: SELECT country FROM table_name_37 WHERE score = 71 - 74 - 70 = 215</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 POLES WITH POINTS N/A? ### Context: CREATE TABLE table_name_71 (poles INTEGER, points VARCHAR) ### Response: ### Response: SELECT AVG(poles) FROM table_name_71 WHERE points = "n/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: What is the latitude that has a sqmi smaller than 34.401, a Geo ID smaller than 3807157722, and a Longitude of -98.475995? ### Context: CREATE TABLE table_name_18 (latitude VARCHAR, longitude VARCHAR, land___sqmi__ VARCHAR, geo_id VARCHAR) ### Response: ### Response: SELECT latitude FROM table_name_18 WHERE land___sqmi__ < 34.401 AND geo_id < 3807157722 AND longitude = -98.475995</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 leading scorer when they were at home of the Clippers? ### Context: CREATE TABLE table_name_51 (leading_scorer VARCHAR, home VARCHAR) ### Response: ### Response: SELECT leading_scorer FROM table_name_51 WHERE home = "clippers"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 used the toyota rvx-07 2.4 v8 engine ### Context: CREATE TABLE table_name_79 (entrant VARCHAR, engine VARCHAR) ### Response: ### Response: SELECT entrant FROM table_name_79 WHERE engine = "toyota rvx-07 2.4 v8"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 choice of song where the original artist was Stevie Wonder? ### Context: CREATE TABLE table_26250189_1 (song_choice VARCHAR, original_artist VARCHAR) ### Response: ### Response: SELECT song_choice FROM table_26250189_1 WHERE original_artist = "Stevie Wonder"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 venue for Round f? ### Context: CREATE TABLE table_name_8 (venue VARCHAR, round VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_8 WHERE round = "f"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Una Giornata Particolare? ### Context: CREATE TABLE table_name_20 (film_title_used_in_nomination VARCHAR, original_title VARCHAR) ### Response: ### Response: SELECT film_title_used_in_nomination FROM table_name_20 WHERE original_title = "una giornata particolare"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 name, country, age for all singers ordered by age from the oldest to the youngest. ### Context: CREATE TABLE singer (name VARCHAR, country VARCHAR, age VARCHAR) ### Response: ### Response: SELECT name, country, age FROM singer ORDER BY age 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: How many Assists for the Player with a Rank greater than 3 in less than 25 Games? ### Context: CREATE TABLE table_name_66 (assists INTEGER, rank VARCHAR, games VARCHAR) ### Response: ### Response: SELECT AVG(assists) FROM table_name_66 WHERE rank > 3 AND games < 25</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Away Team score of North Melbourne? ### Context: CREATE TABLE table_name_24 (away_team VARCHAR) ### Response: ### Response: SELECT away_team AS score FROM table_name_24 WHERE away_team = "north 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 was the number of episodes whose production code is 7ABB21? ### Context: CREATE TABLE table_28196105_1 (_number VARCHAR, production_code VARCHAR) ### Response: ### Response: SELECT COUNT(_number) FROM table_28196105_1 WHERE production_code = "7ABB21"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 best winning average is 7.3-71, what are the total points? ### Context: CREATE TABLE table_27533947_1 (total_points INTEGER, best_winning_average VARCHAR) ### Response: ### Response: SELECT MIN(total_points) FROM table_27533947_1 WHERE best_winning_average = "7.3-71"</s>