inputs
stringlengths
400
1.34k
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What studio had the director Peter Lord Nick Park before 2004? ### Context: CREATE TABLE table_name_57 (studio_s_ VARCHAR, year VARCHAR, director VARCHAR) ### Response: ### Response: SELECT studio_s_ FROM table_name_57 WHERE year < 2004 AND director = "peter lord nick 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: Which date was corio oval the venue? ### Context: CREATE TABLE table_name_12 (date VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT date FROM table_name_12 WHERE venue = "corio oval"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: For the group name European Progressive Democrats what is the French abbr? ### Context: CREATE TABLE table_name_23 (french_abbr VARCHAR, group_name VARCHAR) ### Response: ### Response: SELECT french_abbr FROM table_name_23 WHERE group_name = "european progressive democrats"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 had 58 goals scored? ### Context: CREATE TABLE table_18018248_2 (wins VARCHAR, goals_scored VARCHAR) ### Response: ### Response: SELECT wins FROM table_18018248_2 WHERE goals_scored = 58</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 constellation is Gemini, what is the spectral type? ### Context: CREATE TABLE table_1820752_1 (spectral_type VARCHAR, constellation VARCHAR) ### Response: ### Response: SELECT spectral_type FROM table_1820752_1 WHERE constellation = "Gemini"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 gp? ### Context: CREATE TABLE table_26176081_29 (gp INTEGER) ### Response: ### Response: SELECT MIN(gp) FROM table_26176081_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 notes does the film Touch & go have? ### Context: CREATE TABLE table_name_3 (notes VARCHAR, film VARCHAR) ### Response: ### Response: SELECT notes FROM table_name_3 WHERE film = "touch & go"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Can you tell me the Name that has the Goals larger than 98, and the Rank of 7? ### Context: CREATE TABLE table_name_24 (name VARCHAR, goals VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT name FROM table_name_24 WHERE goals > 98 AND rank = 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 was the date of the game when the Lightning had a record of 10–13–2? ### Context: CREATE TABLE table_name_96 (date VARCHAR, record VARCHAR) ### Response: ### Response: SELECT date FROM table_name_96 WHERE record = "10–13–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 college/junior/club team had a player selected in round 6? ### Context: CREATE TABLE table_name_4 (college_junior_club_team__league_ VARCHAR, round VARCHAR) ### Response: ### Response: SELECT college_junior_club_team__league_ FROM table_name_4 WHERE 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: What is the highest year premiered for the TV2 network when main present is øyvind mund? ### Context: CREATE TABLE table_24224647_2 (year_premiered INTEGER, network VARCHAR, main_presenter VARCHAR) ### Response: ### Response: SELECT MAX(year_premiered) FROM table_24224647_2 WHERE network = "TV2" AND main_presenter = "Øyvind Mund"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 points in 1991, for footwork a11c chassis? ### Context: CREATE TABLE table_name_29 (points INTEGER, year VARCHAR, chassis VARCHAR) ### Response: ### Response: SELECT SUM(points) FROM table_name_29 WHERE year = 1991 AND chassis = "footwork a11c"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What municipality is the Harmon Cove station located in? ### Context: CREATE TABLE table_name_58 (municipality VARCHAR, station VARCHAR) ### Response: ### Response: SELECT municipality FROM table_name_58 WHERE station = "harmon cove"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 lesson does customer with first name Ray took? ### Context: CREATE TABLE Customers (customer_id VARCHAR, first_name VARCHAR); CREATE TABLE Lessons (customer_id VARCHAR) ### Response: ### Response: SELECT COUNT(*) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = "Ray"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Record label has an Album of tera roop? ### Context: CREATE TABLE table_name_84 (record_label VARCHAR, album VARCHAR) ### Response: ### Response: SELECT record_label FROM table_name_84 WHERE album = "tera roop"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When the position in 2012-12 is 7th, third division what is the home ground? ### Context: CREATE TABLE table_name_24 (home_ground VARCHAR, position_in_2012_13 VARCHAR) ### Response: ### Response: SELECT home_ground FROM table_name_24 WHERE position_in_2012_13 = "7th, third division"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 TV Time has a Date of december 26, 1999? ### Context: CREATE TABLE table_name_63 (tv_time VARCHAR, date VARCHAR) ### Response: ### Response: SELECT tv_time FROM table_name_63 WHERE date = "december 26, 1999"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 mission name for 21 november 1969 ### Context: CREATE TABLE table_1558077_8 (mission_name VARCHAR, lunar_blastoff_date VARCHAR) ### Response: ### Response: SELECT mission_name FROM table_1558077_8 WHERE lunar_blastoff_date = "21 November 1969"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the pick # of the player who has a hometown/school of Atlanta, GA? ### Context: CREATE TABLE table_name_62 (pick INTEGER, hometown_school VARCHAR) ### Response: ### Response: SELECT AVG(pick) FROM table_name_62 WHERE hometown_school = "atlanta, ga"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the surface for the tournament of manta, ecuador? ### Context: CREATE TABLE table_name_22 (surface VARCHAR, tournament VARCHAR) ### Response: ### Response: SELECT surface FROM table_name_22 WHERE tournament = "manta, ecuador"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Player that has a To standard of –4? ### Context: CREATE TABLE table_name_71 (player VARCHAR, to_par VARCHAR) ### Response: ### Response: SELECT player FROM table_name_71 WHERE to_par = "–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 was the lowest goals ever achieved? ### Context: CREATE TABLE table_24807406_3 (goals INTEGER) ### Response: ### Response: SELECT MIN(goals) FROM table_24807406_3</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the status when sd is 15? ### Context: CREATE TABLE table_26218783_7 (status VARCHAR, sd VARCHAR) ### Response: ### Response: SELECT status FROM table_26218783_7 WHERE sd = 15</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the launch date odds of winning 1 in 4.54? ### Context: CREATE TABLE table_name_2 (launch_date VARCHAR, odds_of_winning VARCHAR) ### Response: ### Response: SELECT launch_date FROM table_name_2 WHERE odds_of_winning = "1 in 4.54"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Bangladeshi citizens are there in the borough ranked at number 7? ### Context: CREATE TABLE table_19149550_9 (bangladeshi_population INTEGER, rank VARCHAR) ### Response: ### Response: SELECT MIN(bangladeshi_population) FROM table_19149550_9 WHERE rank = 7</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the opponent on December 1, before Game 28? ### Context: CREATE TABLE table_name_2 (opponent VARCHAR, game VARCHAR, december VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_2 WHERE game < 28 AND december = 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Score that has a Winning team of wei chuan dragons? ### Context: CREATE TABLE table_name_35 (score VARCHAR, winning_team VARCHAR) ### Response: ### Response: SELECT score FROM table_name_35 WHERE winning_team = "wei chuan dragons"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 did South Warrnambool have that had more than 6 flags and a draw greater than 10? ### Context: CREATE TABLE table_name_77 (wins VARCHAR, club VARCHAR, flags VARCHAR, draws VARCHAR) ### Response: ### Response: SELECT wins FROM table_name_77 WHERE flags > 6 AND draws > 10 AND club = "south warrnambool"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Builder, when Country is "United Kingdom", and when Location is "Chatham, Kent"? ### Context: CREATE TABLE table_name_35 (builder VARCHAR, country VARCHAR, location VARCHAR) ### Response: ### Response: SELECT builder FROM table_name_35 WHERE country = "united kingdom" AND location = "chatham, kent"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Argon which has a Neon of 0.484? ### Context: CREATE TABLE table_name_56 (argon VARCHAR, neon VARCHAR) ### Response: ### Response: SELECT argon FROM table_name_56 WHERE neon = "0.484"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 state has a king named xiang? ### Context: CREATE TABLE table_name_10 (state VARCHAR, title VARCHAR, name VARCHAR) ### Response: ### Response: SELECT state FROM table_name_10 WHERE title = "king" AND name = "xiang"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 goals for a lost of Involuntary suspension of Season (hurricane Rita)? ### Context: CREATE TABLE table_name_44 (goals_for VARCHAR, lost VARCHAR) ### Response: ### Response: SELECT goals_for FROM table_name_44 WHERE lost = "involuntary suspension of season (hurricane rita)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 graduate assistant who was in the 1st year at CU has what experience? ### Context: CREATE TABLE table_name_29 (experience VARCHAR, year_at_cu VARCHAR, position VARCHAR) ### Response: ### Response: SELECT experience FROM table_name_29 WHERE year_at_cu = "1st" AND position = "graduate assistant"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 were helena suková todd woodbridge the opponents in the final ### Context: CREATE TABLE table_1918850_2 (year VARCHAR, opponents_in_the_final VARCHAR) ### Response: ### Response: SELECT year FROM table_1918850_2 WHERE opponents_in_the_final = "Helena Suková Todd Woodbridge"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 round has the scorer of Di Matteo? ### Context: CREATE TABLE table_name_56 (round VARCHAR, scorers VARCHAR) ### Response: ### Response: SELECT round FROM table_name_56 WHERE scorers = "di matteo"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 affiliation for the Cuddalore District? ### Context: CREATE TABLE table_name_18 (affiliation VARCHAR, district VARCHAR) ### Response: ### Response: SELECT affiliation FROM table_name_18 WHERE district = "cuddalore district"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Player from Charlotte, NC? ### Context: CREATE TABLE table_name_91 (name VARCHAR, home_town VARCHAR) ### Response: ### Response: SELECT name FROM table_name_91 WHERE home_town = "charlotte, nc"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of license has a Frequency MHz of 91.5 fm? ### Context: CREATE TABLE table_name_42 (city_of_license VARCHAR, frequency_mhz VARCHAR) ### Response: ### Response: SELECT city_of_license FROM table_name_42 WHERE frequency_mhz = "91.5 fm"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 aircraft which fewest people have its certificate. ### Context: CREATE TABLE Certificate (aid VARCHAR); CREATE TABLE Aircraft (name VARCHAR, aid VARCHAR) ### Response: ### Response: SELECT T2.name FROM Certificate AS T1 JOIN Aircraft AS T2 ON T2.aid = T1.aid GROUP BY T1.aid 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: What's the status for an against below 22 with an opposing team of Australia? ### Context: CREATE TABLE table_name_86 (status VARCHAR, against VARCHAR, opposing_teams VARCHAR) ### Response: ### Response: SELECT status FROM table_name_86 WHERE against < 22 AND opposing_teams = "australia"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Tournament has a Winner and score of goran ivanišević 6–4, 6–2, 7–6(2)? ### Context: CREATE TABLE table_name_33 (tournament VARCHAR, winner_and_score VARCHAR) ### Response: ### Response: SELECT tournament FROM table_name_33 WHERE winner_and_score = "goran ivanišević 6–4, 6–2, 7–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: What's the record for the match when the res was a win and the method was a decision? ### Context: CREATE TABLE table_name_91 (record VARCHAR, method VARCHAR, res VARCHAR) ### Response: ### Response: SELECT record FROM table_name_91 WHERE method = "decision" AND res = "win"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When was the game played in Zagreb? ### Context: CREATE TABLE table_name_79 (date VARCHAR, city VARCHAR) ### Response: ### Response: SELECT date FROM table_name_79 WHERE city = "zagreb"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 firefox % was chrome was 25.08%? ### Context: CREATE TABLE table_name_86 (firefox VARCHAR, chrome VARCHAR) ### Response: ### Response: SELECT firefox FROM table_name_86 WHERE chrome = "25.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 are the names and locations of festivals? ### Context: CREATE TABLE festival_detail (Festival_Name VARCHAR, LOCATION VARCHAR) ### Response: ### Response: SELECT Festival_Name, LOCATION FROM festival_detail</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 lowest attendance figure at Football Park? ### Context: CREATE TABLE table_1161065_28 (lowest VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT lowest FROM table_1161065_28 WHERE venue = "Football 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 is the final score if the partner is Woodforde? ### Context: CREATE TABLE table_22597626_2 (score_in_the_final VARCHAR, partner VARCHAR) ### Response: ### Response: SELECT score_in_the_final FROM table_22597626_2 WHERE partner = "Woodforde"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Drawn for tries against of 36 and points of 66 ### Context: CREATE TABLE table_name_60 (drawn VARCHAR, tries_against VARCHAR, points VARCHAR) ### Response: ### Response: SELECT drawn FROM table_name_60 WHERE tries_against = "36" AND points = "66"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 area where population in 2010 is 38062? ### Context: CREATE TABLE table_255602_1 (area__km²_ VARCHAR, population__2010_ VARCHAR) ### Response: ### Response: SELECT area__km²_ FROM table_255602_1 WHERE population__2010_ = 38062</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 pick played the Defensive End position? ### Context: CREATE TABLE table_name_3 (pick VARCHAR, position VARCHAR) ### Response: ### Response: SELECT pick FROM table_name_3 WHERE position = "defensive end"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 High Points, when Game is "5"? ### Context: CREATE TABLE table_name_5 (high_points VARCHAR, game VARCHAR) ### Response: ### Response: SELECT high_points FROM table_name_5 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: What is the career for the 2006 3r, and the 1999 2r? ### Context: CREATE TABLE table_name_70 (career VARCHAR) ### Response: ### Response: SELECT career FROM table_name_70 WHERE 2006 = "3r" AND 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: What's the service number of the Jammu Duronto train? ### Context: CREATE TABLE table_23477312_1 (service INTEGER, train_name VARCHAR) ### Response: ### Response: SELECT MAX(service) FROM table_23477312_1 WHERE train_name = "Jammu Duronto"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Issue with a Theme with mental health? ### Context: CREATE TABLE table_name_3 (date_of_issue VARCHAR, theme VARCHAR) ### Response: ### Response: SELECT date_of_issue FROM table_name_3 WHERE theme = "mental health"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Can you tell me the Opponent that has the Series of 4-2? ### Context: CREATE TABLE table_name_91 (opponent VARCHAR, series VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_91 WHERE series = "4-2"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the average for the country with the swimsuit score of 9.57? ### Context: CREATE TABLE table_11884814_3 (average VARCHAR, swimsuit VARCHAR) ### Response: ### Response: SELECT average FROM table_11884814_3 WHERE swimsuit = "9.57"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 l (ot/so) is 22 (3/4), what is the season? ### Context: CREATE TABLE table_20833768_4 (season VARCHAR, l__ot_so_ VARCHAR) ### Response: ### Response: SELECT season FROM table_20833768_4 WHERE l__ot_so_ = "22 (3/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 model was released in 2005? ### Context: CREATE TABLE table_name_89 (model VARCHAR, released VARCHAR) ### Response: ### Response: SELECT model FROM table_name_89 WHERE released = 2005</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which College has a Name of hardy brown? ### Context: CREATE TABLE table_name_93 (college VARCHAR, name VARCHAR) ### Response: ### Response: SELECT college FROM table_name_93 WHERE name = "hardy brown"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 party for bensalem ### Context: CREATE TABLE table_1979619_3 (party VARCHAR, residence VARCHAR) ### Response: ### Response: SELECT party FROM table_1979619_3 WHERE residence = "Bensalem"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 foursome's record in 2002? ### Context: CREATE TABLE table_1628607_5 (foursomes_w_l_h VARCHAR, year VARCHAR) ### Response: ### Response: SELECT foursomes_w_l_h FROM table_1628607_5 WHERE year = "2002"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What country was Ernie Els from? ### Context: CREATE TABLE table_name_80 (country VARCHAR, player VARCHAR) ### Response: ### Response: SELECT country FROM table_name_80 WHERE player = "ernie els"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 champions in 1988? ### Context: CREATE TABLE table_name_26 (champion VARCHAR, year VARCHAR) ### Response: ### Response: SELECT champion FROM table_name_26 WHERE year = 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's the total of Year that's got a Team of Porsche Kremer Racing? ### Context: CREATE TABLE table_name_37 (year INTEGER, team VARCHAR) ### Response: ### Response: SELECT SUM(year) FROM table_name_37 WHERE team = "porsche kremer racing"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 times did incumbent ruben hinojosa get elected? ### Context: CREATE TABLE table_1341453_45 (results VARCHAR, incumbent VARCHAR) ### Response: ### Response: SELECT COUNT(results) FROM table_1341453_45 WHERE incumbent = "Ruben Hinojosa"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What round was the nose tackle drafted? ### Context: CREATE TABLE table_name_38 (round INTEGER, position VARCHAR) ### Response: ### Response: SELECT SUM(round) FROM table_name_38 WHERE position = "nose tackle"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Tie no, when Home Team is "Gillingham"? ### Context: CREATE TABLE table_name_96 (tie_no VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT tie_no FROM table_name_96 WHERE home_team = "gillingham"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Venue has an Event of marathon, and a Year larger than 1995, and a Position of 4th? ### Context: CREATE TABLE table_name_94 (venue VARCHAR, position VARCHAR, event VARCHAR, year VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_94 WHERE event = "marathon" AND year > 1995 AND 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: Find the average credit score of the customers who do not have any loan. ### Context: CREATE TABLE loan (credit_score INTEGER, cust_id VARCHAR); CREATE TABLE customer (credit_score INTEGER, cust_id VARCHAR) ### Response: ### Response: SELECT AVG(credit_score) FROM customer WHERE NOT cust_id IN (SELECT cust_id FROM loan)</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What chassis did team lotus use after 1964? ### Context: CREATE TABLE table_name_59 (chassis VARCHAR, entrant VARCHAR, year VARCHAR) ### Response: ### Response: SELECT chassis FROM table_name_59 WHERE entrant = "team lotus" AND year > 1964</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 episode was watched by 11.75 million U.S. viewers? ### Context: CREATE TABLE table_13301516_1 (title VARCHAR, us_viewers__millions_ VARCHAR) ### Response: ### Response: SELECT title FROM table_13301516_1 WHERE us_viewers__millions_ = "11.75"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the number of package/option for sky primafila 24 ### Context: CREATE TABLE table_15887683_6 (package_option VARCHAR, television_service VARCHAR) ### Response: ### Response: SELECT COUNT(package_option) FROM table_15887683_6 WHERE television_service = "Sky Primafila 24"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Points for the Opponent of @ New Jersey Devils and a Game bigger than 7? ### Context: CREATE TABLE table_name_29 (points INTEGER, opponent VARCHAR, game VARCHAR) ### Response: ### Response: SELECT SUM(points) FROM table_name_29 WHERE opponent = "@ new jersey devils" AND game > 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 play for 1976 ### Context: CREATE TABLE table_name_20 (play VARCHAR, year VARCHAR) ### Response: ### Response: SELECT play FROM table_name_20 WHERE year = 1976</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 traditional form for 永城市? ### Context: CREATE TABLE table_2135222_2 (traditional VARCHAR, simplified VARCHAR) ### Response: ### Response: SELECT traditional FROM table_2135222_2 WHERE simplified = "永城市"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 where the round is the second round? ### Context: CREATE TABLE table_name_40 (away VARCHAR, round VARCHAR) ### Response: ### Response: SELECT away FROM table_name_40 WHERE round = "second round"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Game is the highest one that has an Opponent of new york islanders, and a December larger than 10? ### Context: CREATE TABLE table_name_35 (game INTEGER, opponent VARCHAR, december VARCHAR) ### Response: ### Response: SELECT MAX(game) FROM table_name_35 WHERE opponent = "new york islanders" AND december > 10</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who were the rowers for Great britain? ### Context: CREATE TABLE table_name_50 (rowers VARCHAR, country VARCHAR) ### Response: ### Response: SELECT rowers FROM table_name_50 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: When spvgg vohenstrauß is the oberpfalz what is the season? ### Context: CREATE TABLE table_23224961_1 (season VARCHAR, oberpfalz VARCHAR) ### Response: ### Response: SELECT season FROM table_23224961_1 WHERE oberpfalz = "SpVgg Vohenstrauß"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 laps have an average speed (mph) of 140.22? ### Context: CREATE TABLE table_2226343_1 (laps VARCHAR, average_speed__mph_ VARCHAR) ### Response: ### Response: SELECT laps FROM table_2226343_1 WHERE average_speed__mph_ = "140.22"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Finish of the Player with a Total of 273? ### Context: CREATE TABLE table_name_20 (finish VARCHAR, total VARCHAR) ### Response: ### Response: SELECT finish FROM table_name_20 WHERE total = 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: How many results have the two candidates Gene Taylor (r) 67.0% Ken Young (d) 33.0%? ### Context: CREATE TABLE table_1341586_26 (result VARCHAR, candidates VARCHAR) ### Response: ### Response: SELECT COUNT(result) FROM table_1341586_26 WHERE candidates = "Gene Taylor (R) 67.0% Ken Young (D) 33.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 K League classic had less than 10 teams? ### Context: CREATE TABLE table_name_3 (k_league_classic VARCHAR, teams INTEGER) ### Response: ### Response: SELECT k_league_classic FROM table_name_3 WHERE teams < 10</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what is the rating where the rank is 48? ### Context: CREATE TABLE table_15681686_4 (rating VARCHAR, rank__week_ VARCHAR) ### Response: ### Response: SELECT rating / SHARE(18 - 49) FROM table_15681686_4 WHERE rank__week_ = "48"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 different riders are there that won riding Omr Tsunami? ### Context: CREATE TABLE table_27833186_1 (rider_names VARCHAR, horse_name VARCHAR) ### Response: ### Response: SELECT COUNT(rider_names) FROM table_27833186_1 WHERE horse_name = "OMR Tsunami"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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/away of the game at Nickerson Field at July 10? ### Context: CREATE TABLE table_name_68 (home_away VARCHAR, field VARCHAR, date VARCHAR) ### Response: ### Response: SELECT home_away FROM table_name_68 WHERE field = "nickerson field" AND date = "july 10"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the maximum number of people in attendance on 16 August 2008 when the home team was Deportes Savio? ### Context: CREATE TABLE table_name_69 (attendance INTEGER, date VARCHAR, home VARCHAR) ### Response: ### Response: SELECT MAX(attendance) FROM table_name_69 WHERE date = "16 august 2008" AND home = "deportes savio"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 category has 24 nominated work? ### Context: CREATE TABLE table_name_12 (category VARCHAR, nominated_work VARCHAR) ### Response: ### Response: SELECT category FROM table_name_12 WHERE nominated_work = "24"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Debut year has a Player of noel carroll, and Games smaller than 12? ### Context: CREATE TABLE table_name_95 (debut_year INTEGER, player VARCHAR, games VARCHAR) ### Response: ### Response: SELECT MAX(debut_year) FROM table_name_95 WHERE player = "noel carroll" AND games < 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 is the Furtenbacher with a 6 Liscumb, 10 Lawrance, and a 24 Ben-Tahir? ### Context: CREATE TABLE table_name_6 (furtenbacher VARCHAR, ben_tahir VARCHAR, liscumb VARCHAR, lawrance VARCHAR) ### Response: ### Response: SELECT furtenbacher FROM table_name_6 WHERE liscumb = "6" AND lawrance = "10" AND ben_tahir = "24"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 role is most common for the staff? ### Context: CREATE TABLE Project_Staff (role_code VARCHAR) ### Response: ### Response: SELECT role_code FROM Project_Staff GROUP BY role_code 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: Name the date with the record of 1-0 ### Context: CREATE TABLE table_13258823_2 (date VARCHAR, record VARCHAR) ### Response: ### Response: SELECT date FROM table_13258823_2 WHERE record = "1-0"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: William Fadjo Cravens is the only candidate who was first elected in 1939. ### Context: CREATE TABLE table_1342270_5 (first_elected VARCHAR, incumbent VARCHAR) ### Response: ### Response: SELECT COUNT(first_elected) FROM table_1342270_5 WHERE incumbent = "William Fadjo Cravens"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the Score of the Rabat Tournament with Opponent in the final Yannik Reuter? ### Context: CREATE TABLE table_name_20 (score VARCHAR, tournament VARCHAR, opponent_in_the_final VARCHAR) ### Response: ### Response: SELECT score FROM table_name_20 WHERE tournament = "rabat" AND opponent_in_the_final = "yannik reuter"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 touchdowns did the player took which gained 25 points? ### Context: CREATE TABLE table_25711913_2 (touchdowns VARCHAR, points VARCHAR) ### Response: ### Response: SELECT touchdowns FROM table_25711913_2 WHERE points = 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 are the nationalities of the player picked from Thunder Bay Flyers (ushl) ### Context: CREATE TABLE table_1013129_2 (nationality VARCHAR, college_junior_club_team VARCHAR) ### Response: ### Response: SELECT nationality FROM table_1013129_2 WHERE college_junior_club_team = "Thunder Bay Flyers (USHL)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 million viewers watched the episode that had a 2.6/7 rating/share (18-49) ### Context: CREATE TABLE table_23397386_2 (viewers__millions_ VARCHAR, rating VARCHAR) ### Response: ### Response: SELECT viewers__millions_ FROM table_23397386_2 WHERE rating / SHARE(18 AS –49) = 2.6 / 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 home team plays at Princes Park? ### Context: CREATE TABLE table_name_62 (home_team VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT home_team FROM table_name_62 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: Name the number of first elected for kentucky 3 ### Context: CREATE TABLE table_2668378_5 (first_elected VARCHAR, district VARCHAR) ### Response: ### Response: SELECT COUNT(first_elected) FROM table_2668378_5 WHERE district = "Kentucky 3"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What date has a game smaller than 4, and a score of 116-114? ### Context: CREATE TABLE table_name_73 (date VARCHAR, game VARCHAR, score VARCHAR) ### Response: ### Response: SELECT date FROM table_name_73 WHERE game < 4 AND score = "116-114"</s>