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: Who has the Winning score of –10 (66-71-62-71=270) ? ### Context: CREATE TABLE table_name_21 (runner_s__up VARCHAR, winning_score VARCHAR) ### Response: ### Response: SELECT runner_s__up FROM table_name_21 WHERE winning_score = –10(66 - 71 - 62 - 71 = 270)</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 polling areas are there with John Taber as the sitting Representative? ### Context: CREATE TABLE table_1342256_32 (district VARCHAR, incumbent VARCHAR) ### Response: ### Response: SELECT COUNT(district) FROM table_1342256_32 WHERE incumbent = "John Taber"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 name for henley manchester ### Context: CREATE TABLE table_22977424_8 (name VARCHAR, promoted_to_league VARCHAR) ### Response: ### Response: SELECT name FROM table_22977424_8 WHERE promoted_to_league = "Henley Manchester"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 1st leg with Team 2 Lyon? ### Context: CREATE TABLE table_name_98 (team_2 VARCHAR) ### Response: ### Response: SELECT 1 AS st_leg FROM table_name_98 WHERE team_2 = "lyon"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 calling for the 18.42 arrival time? ### Context: CREATE TABLE table_18332845_2 (calling_at VARCHAR, arrival VARCHAR) ### Response: ### Response: SELECT calling_at FROM table_18332845_2 WHERE arrival = "18.42"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What county is associated with ansi code 1759686? ### Context: CREATE TABLE table_18600760_13 (county VARCHAR, ansi_code VARCHAR) ### Response: ### Response: SELECT county FROM table_18600760_13 WHERE ansi_code = 1759686</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 countries do not have a stadium that was opened after 2006? ### Context: CREATE TABLE stadium (country VARCHAR, opening_year INTEGER) ### Response: ### Response: SELECT country FROM stadium EXCEPT SELECT country FROM stadium WHERE opening_year > 2006</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 title of course that is provided by both Statistics and Psychology departments. ### Context: CREATE TABLE course (title VARCHAR, dept_name VARCHAR) ### Response: ### Response: SELECT title FROM course WHERE dept_name = 'Statistics' INTERSECT SELECT title FROM course WHERE dept_name = 'Psychology'</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the 2nd leg that Team 1 is Union Berlin? ### Context: CREATE TABLE table_name_46 (team_1 VARCHAR) ### Response: ### Response: SELECT 2 AS nd_leg FROM table_name_46 WHERE team_1 = "union berlin"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What frame size corresponds the selection with a max fps of 120, a width of 2048, and height of 1024? ### Context: CREATE TABLE table_name_74 (frame_size VARCHAR, height VARCHAR, max_fps VARCHAR, width VARCHAR) ### Response: ### Response: SELECT frame_size FROM table_name_74 WHERE max_fps = 120 AND width = 2048 AND height = 1024</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 competition was ranked 9? ### Context: CREATE TABLE table_name_53 (competition VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT competition FROM table_name_53 WHERE rank = 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 was the rank# of the opponent when there was 93,829 in attendance? ### Context: CREATE TABLE table_name_57 (rank__number VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT rank__number FROM table_name_57 WHERE attendance = "93,829"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 try bonus when there are 492 points? ### Context: CREATE TABLE table_name_90 (try_bonus VARCHAR, points_against VARCHAR) ### Response: ### Response: SELECT try_bonus FROM table_name_90 WHERE points_against = "492"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What city has march 30 as the date? ### Context: CREATE TABLE table_name_82 (city VARCHAR, date VARCHAR) ### Response: ### Response: SELECT city FROM table_name_82 WHERE date = "march 30"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Open 1st VIII for the 2012 crew? ### Context: CREATE TABLE table_name_76 (open_1st_viii VARCHAR, crew VARCHAR) ### Response: ### Response: SELECT open_1st_viii FROM table_name_76 WHERE crew = 2012</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which driver has 62 laps? ### Context: CREATE TABLE table_name_17 (driver VARCHAR, laps VARCHAR) ### Response: ### Response: SELECT driver FROM table_name_17 WHERE laps = 62</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 is David Toms from? ### Context: CREATE TABLE table_name_84 (country VARCHAR, player VARCHAR) ### Response: ### Response: SELECT country FROM table_name_84 WHERE player = "david toms"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Driver and passenger have a bike number of less than 4 with zabel -vmc equipment? ### Context: CREATE TABLE table_name_9 (driver___passenger VARCHAR, bike_no VARCHAR, equipment VARCHAR) ### Response: ### Response: SELECT driver___passenger FROM table_name_9 WHERE bike_no < 4 AND equipment = "zabel -vmc"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Hazmat, when the Type is Rural, and when the number of Tankers is 1? ### Context: CREATE TABLE table_name_98 (hazmat VARCHAR, type VARCHAR, tankers VARCHAR) ### Response: ### Response: SELECT hazmat FROM table_name_98 WHERE type = "rural" AND tankers = 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: if the peak is 9, how many weeks was it in the top 10? ### Context: CREATE TABLE table_26400041_2 (weeks_in_top_10 INTEGER, peak VARCHAR) ### Response: ### Response: SELECT MAX(weeks_in_top_10) FROM table_26400041_2 WHERE peak = 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 is Opponent, when Result is Win, and when Date is Aug 7? ### Context: CREATE TABLE table_name_67 (opponent VARCHAR, result VARCHAR, date VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_67 WHERE result = "win" AND date = "aug 7"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the segment d for combination locks ### Context: CREATE TABLE table_15187735_3 (segment_d VARCHAR, segment_a VARCHAR) ### Response: ### Response: SELECT segment_d FROM table_15187735_3 WHERE segment_a = "Combination Locks"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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, when the Opponent is Gisela Dulko? ### Context: CREATE TABLE table_name_74 (date VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT date FROM table_name_74 WHERE opponent = "gisela dulko"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 of the Game after 40 with New York Rangers as Opponent? ### Context: CREATE TABLE table_name_5 (record VARCHAR, game VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT record FROM table_name_5 WHERE game > 40 AND opponent = "new york rangers"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Losses that Melton had when they had fewer Draws than 0? ### Context: CREATE TABLE table_name_35 (losses INTEGER, ballarat_fl VARCHAR, draws VARCHAR) ### Response: ### Response: SELECT SUM(losses) FROM table_name_35 WHERE ballarat_fl = "melton" AND draws < 0</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: display the employee number and name( first name and last name ) for all employees who work in a department with any employee whose name contains a ’T’. ### Context: CREATE TABLE employees (employee_id VARCHAR, first_name VARCHAR, last_name VARCHAR, department_id VARCHAR) ### Response: ### Response: SELECT employee_id, first_name, last_name FROM employees WHERE department_id IN (SELECT department_id FROM employees WHERE first_name LIKE '%T%')</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 status where the notes are possible jr synonym of sapeornis? ### Context: CREATE TABLE table_name_60 (status VARCHAR, notes VARCHAR) ### Response: ### Response: SELECT status FROM table_name_60 WHERE notes = "possible jr synonym of sapeornis"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 miles (km) for the race that had an average speed of 136.117 MPH? ### Context: CREATE TABLE table_2220432_1 (miles__km_ VARCHAR, average_speed__mph_ VARCHAR) ### Response: ### Response: SELECT miles__km_ FROM table_2220432_1 WHERE average_speed__mph_ = "136.117"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Pick, when Nationality is "United States", when College is "New Mexico State", and when Round is greater than 6? ### Context: CREATE TABLE table_name_35 (pick INTEGER, round VARCHAR, nationality VARCHAR, college VARCHAR) ### Response: ### Response: SELECT MAX(pick) FROM table_name_35 WHERE nationality = "united states" AND college = "new mexico state" AND round > 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: When did the Rockies play the Giants with an attendance over 24,100? ### Context: CREATE TABLE table_name_35 (date VARCHAR, opponent VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT date FROM table_name_35 WHERE opponent = "giants" AND attendance > 24 OFFSET 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: How many parties are named the Center Alliance ### Context: CREATE TABLE table_203802_2 (english_party_name VARCHAR) ### Response: ### Response: SELECT COUNT(2013 AS _parliamentary_election) FROM table_203802_2 WHERE english_party_name = "Center Alliance"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 September 5? ### Context: CREATE TABLE table_name_25 (location VARCHAR, date VARCHAR) ### Response: ### Response: SELECT location FROM table_name_25 WHERE date = "september 5"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the nickname of the school located in Manchester, New Hampshire? ### Context: CREATE TABLE table_name_54 (nickname VARCHAR, location VARCHAR) ### Response: ### Response: SELECT nickname FROM table_name_54 WHERE location = "manchester, new hampshire"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 incumbent(s) in the election featuring john murray (dr) 50.4% george denison (dr) 49.6% with a result of a retired democratic-republican hold? ### Context: CREATE TABLE table_2668336_19 (incumbent VARCHAR, candidates VARCHAR, result VARCHAR) ### Response: ### Response: SELECT incumbent FROM table_2668336_19 WHERE candidates = "John Murray (DR) 50.4% George Denison (DR) 49.6%" AND result = "Retired Democratic-Republican hold"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 byes when the draws are less than 0? ### Context: CREATE TABLE table_name_22 (byes VARCHAR, draws INTEGER) ### Response: ### Response: SELECT COUNT(byes) FROM table_name_22 WHERE draws < 0</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Did the name change for the program last aired in 1958? ### Context: CREATE TABLE table_169766_13 (retitled_as_same VARCHAR, last_aired VARCHAR) ### Response: ### Response: SELECT retitled_as_same FROM table_169766_13 WHERE last_aired = 1958</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 semi-final dual television commentator status of the year with Pierre Tchernia as the grand final television commentator and an unknown spokesperson? ### Context: CREATE TABLE table_name_96 (semi_final_dual_television_commentator VARCHAR, grand_final_television_commentator VARCHAR, spokesperson VARCHAR) ### Response: ### Response: SELECT semi_final_dual_television_commentator FROM table_name_96 WHERE grand_final_television_commentator = "pierre tchernia" AND spokesperson = "unknown"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 for the brandon wheat kings (wchl)? ### Context: CREATE TABLE table_name_92 (position VARCHAR, college_junior_club_team VARCHAR) ### Response: ### Response: SELECT position FROM table_name_92 WHERE college_junior_club_team = "brandon wheat kings (wchl)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who directed episode number 179 in the series? ### Context: CREATE TABLE table_2409041_9 (directed_by VARCHAR, no_in_series VARCHAR) ### Response: ### Response: SELECT directed_by FROM table_2409041_9 WHERE no_in_series = 179</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: List the name of actors whose age is not 20. ### Context: CREATE TABLE actor (Name VARCHAR, Age VARCHAR) ### Response: ### Response: SELECT Name FROM actor WHERE Age <> 20</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 position has a time of 1:45:53:00? ### Context: CREATE TABLE table_name_41 (position VARCHAR, time VARCHAR) ### Response: ### Response: SELECT position FROM table_name_41 WHERE time = "1:45:53:00"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 times where the play is 5 ### Context: CREATE TABLE table_27733909_1 (date VARCHAR, game VARCHAR) ### Response: ### Response: SELECT date FROM table_27733909_1 WHERE game = 5</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who is the driver when the grid is 18? ### Context: CREATE TABLE table_name_18 (driver VARCHAR, grid VARCHAR) ### Response: ### Response: SELECT driver FROM table_name_18 WHERE grid = "18"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Music if the Dance is Jive? ### Context: CREATE TABLE table_name_75 (music VARCHAR, dance VARCHAR) ### Response: ### Response: SELECT music FROM table_name_75 WHERE dance = "jive"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What stage (winner) has quick step as the team classification, and trent lowe as the young rider classification? ### Context: CREATE TABLE table_name_69 (stage__winner_ VARCHAR, team_classification VARCHAR, young_rider_classification VARCHAR) ### Response: ### Response: SELECT stage__winner_ FROM table_name_69 WHERE team_classification = "quick step" AND young_rider_classification = "trent lowe"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 final score of the game that was at raymond james stadium? ### Context: CREATE TABLE table_name_42 (final_score VARCHAR, game_site VARCHAR) ### Response: ### Response: SELECT final_score FROM table_name_42 WHERE game_site = "raymond james stadium"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the highest attendance for the game where the record was 0-5 and the opponents scored more than 20 points? ### Context: CREATE TABLE table_name_85 (attendance INTEGER, record VARCHAR, opponents VARCHAR) ### Response: ### Response: SELECT MAX(attendance) FROM table_name_85 WHERE record = "0-5" AND opponents > 20</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 in Shah Alam Stadium have a Result of 2–0 (w)? ### Context: CREATE TABLE table_name_60 (competition VARCHAR, result VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT competition FROM table_name_60 WHERE result = "2–0 (w)" AND venue = "shah alam stadium"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What candidates were featured in the 1974 election? ### Context: CREATE TABLE table_1341640_14 (candidates VARCHAR, first_elected VARCHAR) ### Response: ### Response: SELECT candidates FROM table_1341640_14 WHERE first_elected = 1974</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many candidates ran in the race where the incumbent is J. L. Pilcher? ### Context: CREATE TABLE table_1342013_10 (candidates VARCHAR, incumbent VARCHAR) ### Response: ### Response: SELECT COUNT(candidates) FROM table_1342013_10 WHERE incumbent = "J. L. Pilcher"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 phones for each accreditation type. ### Context: CREATE TABLE phone (Accreditation_type VARCHAR) ### Response: ### Response: SELECT Accreditation_type, COUNT(*) FROM phone GROUP BY Accreditation_type</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the opponent with an outcome runner-up on November 15, 2010? ### Context: CREATE TABLE table_name_79 (opponent VARCHAR, outcome VARCHAR, date VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_79 WHERE outcome = "runner-up" AND date = "november 15, 2010"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 wins in the 4th position? ### Context: CREATE TABLE table_2012187_3 (wins INTEGER, position VARCHAR) ### Response: ### Response: SELECT MIN(wins) FROM table_2012187_3 WHERE position = "4th"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What date did episode 258 in the series originally air? ### Context: CREATE TABLE table_2221484_2 (original_air_date VARCHAR, series__number VARCHAR) ### Response: ### Response: SELECT original_air_date FROM table_2221484_2 WHERE series__number = 258</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 level of Earnings($) to have a Wins value of 22 and a Rank lower than 2? ### Context: CREATE TABLE table_name_78 (earnings__ INTEGER, wins VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT MIN(earnings__) AS $__ FROM table_name_78 WHERE wins = 22 AND rank < 2</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many players have the hometown Pennsauken, NJ? ### Context: CREATE TABLE table_11677100_12 (player VARCHAR, hometown VARCHAR) ### Response: ### Response: SELECT COUNT(player) FROM table_11677100_12 WHERE hometown = "Pennsauken, NJ"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 nominees won before year 2005? ### Context: CREATE TABLE table_name_69 (nominee_s_ VARCHAR, year VARCHAR, result VARCHAR) ### Response: ### Response: SELECT nominee_s_ FROM table_name_69 WHERE year < 2005 AND result = "won"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What kind of League has a Venue of billesley common? ### Context: CREATE TABLE table_name_48 (league VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT league FROM table_name_48 WHERE venue = "billesley common"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 minister with a term end on 10 March 1974? ### Context: CREATE TABLE table_name_71 (minister VARCHAR, term_end VARCHAR) ### Response: ### Response: SELECT minister FROM table_name_71 WHERE term_end = "10 march 1974"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What's the l1 cache of the model with sspec number sl2z3, sl28q (mya0)? ### Context: CREATE TABLE table_24096813_15 (l1_cache VARCHAR, sspec_number VARCHAR) ### Response: ### Response: SELECT l1_cache FROM table_24096813_15 WHERE sspec_number = "SL2Z3, SL28Q (myA0)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 average with tally of 0-29 and total more than 29 ### Context: CREATE TABLE table_name_40 (average INTEGER, tally VARCHAR, total VARCHAR) ### Response: ### Response: SELECT AVG(average) FROM table_name_40 WHERE tally = "0-29" AND total > 29</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What institution(s) are located in wilkes-barre, pennsylvania? ### Context: CREATE TABLE table_261906_2 (institution VARCHAR, location VARCHAR) ### Response: ### Response: SELECT institution FROM table_261906_2 WHERE location = "Wilkes-Barre, Pennsylvania"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 H/A in the semi-final round where oldham athletic were the opponents? ### Context: CREATE TABLE table_name_90 (h___a VARCHAR, opponents VARCHAR, round VARCHAR) ### Response: ### Response: SELECT h___a FROM table_name_90 WHERE opponents = "oldham athletic" AND round = "semi-final"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What Population has a Median family income of $38,044? ### Context: CREATE TABLE table_name_18 (population VARCHAR, median_family_income VARCHAR) ### Response: ### Response: SELECT population FROM table_name_18 WHERE median_family_income = "$38,044"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 E. Greenberg has a T. Wyka of 10,793 (70%)? ### Context: CREATE TABLE table_name_34 (e_greenberg VARCHAR, t_wyka VARCHAR) ### Response: ### Response: SELECT e_greenberg FROM table_name_34 WHERE t_wyka = "10,793 (70%)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the player with a 36.74 average? ### Context: CREATE TABLE table_26041144_11 (player VARCHAR, average VARCHAR) ### Response: ### Response: SELECT player FROM table_26041144_11 WHERE average = "36.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 is the home team for the Princes Park venue? ### Context: CREATE TABLE table_name_87 (home_team VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT home_team FROM table_name_87 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: Who was the developer for Vigilance? ### Context: CREATE TABLE table_name_71 (developer VARCHAR, title VARCHAR) ### Response: ### Response: SELECT developer FROM table_name_71 WHERE title = "vigilance"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the lowest number of silver medals received by Austria when they receive more than 3 total medals, more than 22 bronze medals, and fewer than 395 gold medals? ### Context: CREATE TABLE table_name_72 (silver INTEGER, nation VARCHAR, gold VARCHAR, total VARCHAR, bronze VARCHAR) ### Response: ### Response: SELECT MIN(silver) FROM table_name_72 WHERE total > 3 AND bronze > 22 AND gold < 395 AND nation = "austria"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 venue of the match with more than 8 against and ireland as the opposing team? ### Context: CREATE TABLE table_name_33 (venue VARCHAR, against VARCHAR, opposing_teams VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_33 WHERE against > 8 AND opposing_teams = "ireland"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is every category wise when the multi lane is 677? ### Context: CREATE TABLE table_28723146_2 (category_wise VARCHAR, multi_lane VARCHAR) ### Response: ### Response: SELECT category_wise FROM table_28723146_2 WHERE multi_lane = 677</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 year that the oldest church was built in Jostedal? ### Context: CREATE TABLE table_178398_1 (year_built INTEGER, location_of_the_church VARCHAR) ### Response: ### Response: SELECT MIN(year_built) FROM table_178398_1 WHERE location_of_the_church = "Jostedal"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Class for a year later than 1958, with 4 points? ### Context: CREATE TABLE table_name_30 (class VARCHAR, year VARCHAR, points VARCHAR) ### Response: ### Response: SELECT class FROM table_name_30 WHERE year > 1958 AND points = 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: How many grids had more than 61 laps? ### Context: CREATE TABLE table_name_9 (grid INTEGER, laps INTEGER) ### Response: ### Response: SELECT SUM(grid) FROM table_name_9 WHERE laps > 61</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 name of cities in the county that has the largest number of police officers. ### Context: CREATE TABLE city (name VARCHAR, county_ID VARCHAR, Police_officers VARCHAR); CREATE TABLE county_public_safety (name VARCHAR, county_ID VARCHAR, Police_officers VARCHAR) ### Response: ### Response: SELECT name FROM city WHERE county_ID = (SELECT county_ID FROM county_public_safety ORDER BY Police_officers 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 frequency is First Nations Community? ### Context: CREATE TABLE table_name_78 (frequency VARCHAR, format VARCHAR) ### Response: ### Response: SELECT frequency FROM table_name_78 WHERE format = "first nations community"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When did the season start that ended with the top record of Lindenwood (20–0–0)? ### Context: CREATE TABLE table_22383603_1 (start__reg_season_ VARCHAR, top_record VARCHAR) ### Response: ### Response: SELECT start__reg_season_ FROM table_22383603_1 WHERE top_record = "Lindenwood (20–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: What is the Season with an Acquisition via of rookie draft, and the number is 15? ### Context: CREATE TABLE table_name_50 (season VARCHAR, acquisition_via VARCHAR, number VARCHAR) ### Response: ### Response: SELECT season FROM table_name_50 WHERE acquisition_via = "rookie draft" AND number = "15"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Return all detention summaries. ### Context: CREATE TABLE Detention (detention_summary VARCHAR) ### Response: ### Response: SELECT detention_summary FROM Detention</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 call sign for ERP W of 4 ### Context: CREATE TABLE table_name_20 (call_sign VARCHAR, erp_w VARCHAR) ### Response: ### Response: SELECT call_sign FROM table_name_20 WHERE erp_w = 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: Which Score has a Date of 13 april 1997? ### Context: CREATE TABLE table_name_50 (score VARCHAR, date VARCHAR) ### Response: ### Response: SELECT score FROM table_name_50 WHERE date = "13 april 1997"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 time/retired of car number 6. ### Context: CREATE TABLE table_name_93 (time_retired VARCHAR, car_no VARCHAR) ### Response: ### Response: SELECT time_retired FROM table_name_93 WHERE car_no = "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: Give me the start station and end station for the trips with the three oldest id. ### Context: CREATE TABLE trip (start_station_name VARCHAR, end_station_name VARCHAR, id VARCHAR) ### Response: ### Response: SELECT start_station_name, end_station_name FROM trip ORDER BY id LIMIT 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: How many total gold medals did India receive? ### Context: CREATE TABLE table_name_10 (gold VARCHAR, nation VARCHAR) ### Response: ### Response: SELECT gold FROM table_name_10 WHERE nation = "india"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What Player's Score is 69-68-66-70=273? ### Context: CREATE TABLE table_name_40 (player VARCHAR, score VARCHAR) ### Response: ### Response: SELECT player FROM table_name_40 WHERE score = 69 - 68 - 66 - 70 = 273</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Time has a Round of 3, and a Record of 2–0? ### Context: CREATE TABLE table_name_12 (time VARCHAR, round VARCHAR, record VARCHAR) ### Response: ### Response: SELECT time FROM table_name_12 WHERE round = 3 AND record = "2–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 total Decile with Waikanae Area? ### Context: CREATE TABLE table_name_6 (decile INTEGER, area VARCHAR) ### Response: ### Response: SELECT SUM(decile) FROM table_name_6 WHERE area = "waikanae"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who did the Cubs play when they had a record of 4-4? ### Context: CREATE TABLE table_name_56 (opponent VARCHAR, record VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_56 WHERE record = "4-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 1991 for 2R 1999? ### Context: CREATE TABLE table_name_92 (Id VARCHAR) ### Response: ### Response: SELECT 1991 FROM table_name_92 WHERE 1999 = "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: Show the names of customers having an order with shipping method FedEx and order status Paid. ### Context: CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE customer_orders (customer_id VARCHAR) ### Response: ### Response: SELECT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id WHERE shipping_method_code = 'FedEx' AND order_status_code = 'Paid'</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Result of the game with an Attendance of 55,353? ### Context: CREATE TABLE table_name_53 (result VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT result FROM table_name_53 WHERE attendance = "55,353"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What player had the high assists when the Score was l 107–112 (ot)? ### Context: CREATE TABLE table_name_27 (high_assists VARCHAR, score VARCHAR) ### Response: ### Response: SELECT high_assists FROM table_name_27 WHERE score = "l 107–112 (ot)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What day in february was game 53? ### Context: CREATE TABLE table_name_96 (february INTEGER, game VARCHAR) ### Response: ### Response: SELECT AVG(february) FROM table_name_96 WHERE game = 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: Which race was the winning team mathiasen motorsports and the pole belonged to jonathan bomarito ### Context: CREATE TABLE table_15511178_3 (race VARCHAR, winning_team VARCHAR, pole_position VARCHAR) ### Response: ### Response: SELECT race FROM table_15511178_3 WHERE winning_team = "Mathiasen Motorsports" AND pole_position = "Jonathan Bomarito"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 attendance on September 4, 1983? ### Context: CREATE TABLE table_name_19 (attendance INTEGER, date VARCHAR) ### Response: ### Response: SELECT MIN(attendance) FROM table_name_19 WHERE date = "september 4, 1983"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 7.08 is the amount of viewers how many directors are there? ### Context: CREATE TABLE table_24781886_3 (director VARCHAR, viewers VARCHAR) ### Response: ### Response: SELECT COUNT(director) FROM table_24781886_3 WHERE viewers = "7.08"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the rank of tris speaker when BB/SO was 7? ### Context: CREATE TABLE table_name_20 (rank VARCHAR, player VARCHAR, bb_so VARCHAR) ### Response: ### Response: SELECT rank FROM table_name_20 WHERE player = "tris speaker" AND bb_so = 7</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the lowest year for an engine of ford zetec-r v8, and points greater than 0? ### Context: CREATE TABLE table_name_47 (year INTEGER, engine VARCHAR, points VARCHAR) ### Response: ### Response: SELECT MIN(year) FROM table_name_47 WHERE engine = "ford zetec-r v8" AND 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: In what conflicts was the Italian Navy Combatants B? ### Context: CREATE TABLE table_26977890_1 (conflict VARCHAR, combatants_b VARCHAR) ### Response: ### Response: SELECT conflict FROM table_26977890_1 WHERE combatants_b = "Italian Navy"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 different colleges along with the number of authors of submission from each college. ### Context: CREATE TABLE submission (College VARCHAR) ### Response: ### Response: SELECT College, COUNT(*) FROM submission GROUP BY College</s>