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: Team of elgin city, and a Highest smaller than 537 had what total number of average? ### Context: CREATE TABLE table_name_20 (average VARCHAR, team VARCHAR, highest VARCHAR) ### Response: ### Response: SELECT COUNT(average) FROM table_name_20 WHERE team = "elgin city" AND highest < 537</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 season above 241.0 that was handled by brad tanenbaum. ### Context: CREATE TABLE table_27437601_2 (no_in_season VARCHAR, directed_by VARCHAR, no_in_series VARCHAR) ### Response: ### Response: SELECT no_in_season FROM table_27437601_2 WHERE directed_by = "Brad Tanenbaum" AND no_in_series > 241.0</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the hdtv when number is 378 ### Context: CREATE TABLE table_15887683_6 (hdtv VARCHAR, n° VARCHAR) ### Response: ### Response: SELECT hdtv FROM table_15887683_6 WHERE n° = 378</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 distinct region of clubs in ascending alphabetical order. ### Context: CREATE TABLE club (Region VARCHAR) ### Response: ### Response: SELECT DISTINCT Region FROM club ORDER BY Region</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What year did a school leave that was founded in 1880? ### Context: CREATE TABLE table_11658094_3 (left VARCHAR, founded VARCHAR) ### Response: ### Response: SELECT left FROM table_11658094_3 WHERE founded = 1880</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 when Woking was the opponent, and the round was less than 29? ### Context: CREATE TABLE table_name_28 (venue VARCHAR, opponent VARCHAR, round VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_28 WHERE opponent = "woking" AND round < 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 is the average Top-25 that has a Top-10 less than 7, and the Tournament is the open championship, with a Top-5more than 1? ### Context: CREATE TABLE table_name_58 (top_25 INTEGER, top_5 VARCHAR, top_10 VARCHAR, tournament VARCHAR) ### Response: ### Response: SELECT AVG(top_25) FROM table_name_58 WHERE top_10 < 7 AND tournament = "the open championship" AND top_5 > 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the province if the electorate was Collingwood? ### Context: CREATE TABLE table_27592654_2 (province VARCHAR, electorate VARCHAR) ### Response: ### Response: SELECT province FROM table_27592654_2 WHERE electorate = "Collingwood"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 episode with the original airdate December22,1996 has what title? ### Context: CREATE TABLE table_26866233_1 (title VARCHAR, original_airdate VARCHAR) ### Response: ### Response: SELECT title FROM table_26866233_1 WHERE original_airdate = "December22,1996"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many furniture components are there in total? ### Context: CREATE TABLE furniture (num_of_component INTEGER) ### Response: ### Response: SELECT SUM(num_of_component) FROM furniture</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 losses does Toronto Downtown Dingos have? ### Context: CREATE TABLE table_26200568_16 (losses VARCHAR, club VARCHAR) ### Response: ### Response: SELECT losses FROM table_26200568_16 WHERE club = "Toronto Downtown Dingos"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 the ERP W with a call sign of w242ak? ### Context: CREATE TABLE table_name_81 (erp_w VARCHAR, call_sign VARCHAR) ### Response: ### Response: SELECT COUNT(erp_w) FROM table_name_81 WHERE call_sign = "w242ak"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 place when the national final is 4th and the points is less than 139? ### Context: CREATE TABLE table_name_37 (place INTEGER, national_final VARCHAR, points VARCHAR) ### Response: ### Response: SELECT MAX(place) FROM table_name_37 WHERE national_final = "4th" AND points < 139</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 location of the school having the panthers as a mascot with an AAA for the IHSAA Class? ### Context: CREATE TABLE table_name_28 (location VARCHAR, ihsaa_class VARCHAR, mascot VARCHAR) ### Response: ### Response: SELECT location FROM table_name_28 WHERE ihsaa_class = "aaa" AND mascot = "panthers"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Zimbabwe's total with a to par higher than 5? ### Context: CREATE TABLE table_name_34 (total INTEGER, country VARCHAR, to_par VARCHAR) ### Response: ### Response: SELECT AVG(total) FROM table_name_34 WHERE country = "zimbabwe" AND to_par > 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: How many games played catagories are there for Lauren McGee? ### Context: CREATE TABLE table_25401874_1 (games_played VARCHAR, name VARCHAR) ### Response: ### Response: SELECT COUNT(games_played) FROM table_25401874_1 WHERE name = "Lauren McGee"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the highest rank that has fao as a source and an out greater than 50, with dietary calorie intake as the name? ### Context: CREATE TABLE table_name_98 (rank INTEGER, name VARCHAR, source VARCHAR, out_of VARCHAR) ### Response: ### Response: SELECT MAX(rank) FROM table_name_98 WHERE source = "fao" AND out_of > 50 AND name = "dietary calorie intake"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What years for the rockets did player ford, alton alton ford play? ### Context: CREATE TABLE table_11734041_6 (years_for_rockets VARCHAR, player VARCHAR) ### Response: ### Response: SELECT years_for_rockets FROM table_11734041_6 WHERE player = "Ford, Alton Alton Ford"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 final score when the attendance was 25598? ### Context: CREATE TABLE table_21761882_4 (final_score VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT final_score FROM table_21761882_4 WHERE attendance = 25598</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 total number of years for a 39-31 record ### Context: CREATE TABLE table_name_18 (year VARCHAR, record VARCHAR) ### Response: ### Response: SELECT COUNT(year) FROM table_name_18 WHERE record = "39-31"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 player Les Ames, what was the venue? ### Context: CREATE TABLE table_name_29 (venue VARCHAR, player VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_29 WHERE player = "les ames"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the Spartans founded? ### Context: CREATE TABLE table_28211213_1 (founded INTEGER, team_nickname VARCHAR) ### Response: ### Response: SELECT MAX(founded) FROM table_28211213_1 WHERE team_nickname = "Spartans"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Year(s) of manufacture has a Quantity of 2, and a Type of b n2t? ### Context: CREATE TABLE table_name_13 (year_s__of_manufacture VARCHAR, quantity VARCHAR, type VARCHAR) ### Response: ### Response: SELECT year_s__of_manufacture FROM table_name_13 WHERE quantity = 2 AND type = "b n2t"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 City, when ASTC Member is No, when State is California, and when AAM Member is Yes? ### Context: CREATE TABLE table_name_62 (city VARCHAR, aam_member VARCHAR, astc_member VARCHAR, state VARCHAR) ### Response: ### Response: SELECT city FROM table_name_62 WHERE astc_member = "no" AND state = "california" AND aam_member = "yes"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Cardinalatial order and title that Pedro Martínez de Luna y Gotor elevated? ### Context: CREATE TABLE table_name_84 (cardinalatial_order_and_title VARCHAR, elector VARCHAR) ### Response: ### Response: SELECT cardinalatial_order_and_title FROM table_name_84 WHERE elector = "pedro martínez de luna y gotor"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the names of cities that have a population between 160000 and 900000 . ### Context: CREATE TABLE city (name VARCHAR, population INTEGER) ### Response: ### Response: SELECT name FROM city WHERE population BETWEEN 160000 AND 900000</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 driver for 3 rounds ### Context: CREATE TABLE table_name_24 (driver VARCHAR, rounds VARCHAR) ### Response: ### Response: SELECT driver FROM table_name_24 WHERE rounds = "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: Which club has the most members majoring in "600"? ### Context: CREATE TABLE student (stuid VARCHAR, major VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE club (clubname VARCHAR, clubid VARCHAR) ### Response: ### Response: SELECT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.major = "600" GROUP BY t1.clubname 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: Which catalogue has essential, castle music as it's label? ### Context: CREATE TABLE table_name_46 (catalogue VARCHAR, label VARCHAR) ### Response: ### Response: SELECT catalogue FROM table_name_46 WHERE label = "essential, castle music"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 golds for the nation with 14 total? ### Context: CREATE TABLE table_name_56 (gold VARCHAR, total VARCHAR) ### Response: ### Response: SELECT gold FROM table_name_56 WHERE total = 14</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the original air date of the episode with production code is 319? ### Context: CREATE TABLE table_29436059_1 (original_air_date VARCHAR, production_code VARCHAR) ### Response: ### Response: SELECT original_air_date FROM table_29436059_1 WHERE production_code = 319</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 lanes have a Nationality of united states, and a Name of aaron peirsol? ### Context: CREATE TABLE table_name_28 (lane VARCHAR, nationality VARCHAR, name VARCHAR) ### Response: ### Response: SELECT COUNT(lane) FROM table_name_28 WHERE nationality = "united states" AND name = "aaron peirsol"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 played hte home team when the score was 2:1? ### Context: CREATE TABLE table_name_45 (home VARCHAR, score VARCHAR) ### Response: ### Response: SELECT home FROM table_name_45 WHERE score = "2:1"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the lowest Score, when Place is "1"? ### Context: CREATE TABLE table_name_32 (score INTEGER, place VARCHAR) ### Response: ### Response: SELECT MIN(score) FROM table_name_32 WHERE place = "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 player had a To par of 13? ### Context: CREATE TABLE table_name_78 (player VARCHAR, to_par VARCHAR) ### Response: ### Response: SELECT player FROM table_name_78 WHERE to_par = 13</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the most recent built year when the year of entering service was more recent than 2003, and the knots is less than 27? ### Context: CREATE TABLE table_name_44 (built INTEGER, entered_service VARCHAR, knots VARCHAR) ### Response: ### Response: SELECT MAX(built) FROM table_name_44 WHERE entered_service > 2003 AND knots < 27</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the total number of Points with less than 1 tries, and more than 0 goals? ### Context: CREATE TABLE table_name_60 (points VARCHAR, tries VARCHAR, goals VARCHAR) ### Response: ### Response: SELECT COUNT(points) FROM table_name_60 WHERE tries < 1 AND goals > 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: When was the home team Essendon? ### Context: CREATE TABLE table_29126507_1 (date VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT date FROM table_29126507_1 WHERE home_team = "Essendon"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 year is the lowest for genre of action-adventure? ### Context: CREATE TABLE table_name_36 (year INTEGER, genre VARCHAR) ### Response: ### Response: SELECT MIN(year) FROM table_name_36 WHERE genre = "action-adventure"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Score of the Rangers' Runner-ups and Hibernian Winners in Hampden Park? ### Context: CREATE TABLE table_name_17 (score VARCHAR, winners VARCHAR, venue VARCHAR, runners_up VARCHAR) ### Response: ### Response: SELECT score FROM table_name_17 WHERE venue = "hampden park" AND runners_up = "rangers" AND winners = "hibernian"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 title of the program that was originally aired on June 13, 1999? ### Context: CREATE TABLE table_name_8 (title VARCHAR, original_airdate VARCHAR) ### Response: ### Response: SELECT title FROM table_name_8 WHERE original_airdate = "june 13, 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: What is Esperance pipeline co total diameter? ### Context: CREATE TABLE table_17918238_1 (maximum_diameter VARCHAR, owner_operator VARCHAR) ### Response: ### Response: SELECT maximum_diameter FROM table_17918238_1 WHERE owner_operator = "Esperance Pipeline Co"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 number of picks for the player Matt Murton? ### Context: CREATE TABLE table_name_25 (pick INTEGER, player VARCHAR) ### Response: ### Response: SELECT SUM(pick) FROM table_name_25 WHERE player = "matt murton"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 candidates Charles Fisher (DR) 65.1% W. Jones (F) 34.9% is for what incumbent? ### Context: CREATE TABLE table_2668336_17 (incumbent VARCHAR, candidates VARCHAR) ### Response: ### Response: SELECT incumbent FROM table_2668336_17 WHERE candidates = "Charles Fisher (DR) 65.1% W. Jones (F) 34.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: Tell me the number of gold for albania with a silver of 1 and total less than 1 ### Context: CREATE TABLE table_name_12 (gold VARCHAR, total VARCHAR, silver VARCHAR, nation VARCHAR) ### Response: ### Response: SELECT COUNT(gold) FROM table_name_12 WHERE silver = 1 AND nation = "albania" AND total < 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When did the Browns play the Pittsburgh Steelers? ### Context: CREATE TABLE table_name_80 (date VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT date FROM table_name_80 WHERE opponent = "pittsburgh steelers"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 title of the episode with a production code 136? ### Context: CREATE TABLE table_12226390_6 (title VARCHAR, production_code VARCHAR) ### Response: ### Response: SELECT title FROM table_12226390_6 WHERE production_code = 136</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the most number of rounds that the Team from RBR Enterprises and having a Chevrolet Silverado ran? ### Context: CREATE TABLE table_name_40 (rounds INTEGER, truck_s_ VARCHAR, team VARCHAR) ### Response: ### Response: SELECT MAX(rounds) FROM table_name_40 WHERE truck_s_ = "chevrolet silverado" AND team = "rbr enterprises"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 was the game played when it was located at bells beach? ### Context: CREATE TABLE table_name_8 (date VARCHAR, location VARCHAR) ### Response: ### Response: SELECT date FROM table_name_8 WHERE location = "bells beach"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 is the formula tl 2 ba 2 cuo 6? ### Context: CREATE TABLE table_101336_1 (no_of_cu_o_planes_in_unit_cell VARCHAR, formula VARCHAR) ### Response: ### Response: SELECT no_of_cu_o_planes_in_unit_cell FROM table_101336_1 WHERE formula = "Tl 2 Ba 2 CuO 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 horse is in the 6th position? ### Context: CREATE TABLE table_25429986_1 (horse VARCHAR, position VARCHAR) ### Response: ### Response: SELECT horse FROM table_25429986_1 WHERE position = "6th"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 city of license for when founded is october 2010 ### Context: CREATE TABLE table_name_3 (city_of_license VARCHAR, founded VARCHAR) ### Response: ### Response: SELECT city_of_license FROM table_name_3 WHERE founded = "october 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: What is the most silver medals? ### Context: CREATE TABLE table_1305623_18 (silver_medals INTEGER) ### Response: ### Response: SELECT MAX(silver_medals) FROM table_1305623_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 mean number of caps for Ryota Asano? ### Context: CREATE TABLE table_name_36 (caps INTEGER, player VARCHAR) ### Response: ### Response: SELECT AVG(caps) FROM table_name_36 WHERE player = "ryota asano"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the most founded for bison ### Context: CREATE TABLE table_27378582_1 (founded INTEGER, nickname VARCHAR) ### Response: ### Response: SELECT MAX(founded) FROM table_27378582_1 WHERE nickname = "Bison"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 largest attended game? ### Context: CREATE TABLE table_23486853_5 (attendance INTEGER) ### Response: ### Response: SELECT MAX(attendance) FROM table_23486853_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: When the phillies 1:15 pm played on April 9, what was the attendance? ### Context: CREATE TABLE table_name_21 (attendance VARCHAR, opponent VARCHAR, date VARCHAR) ### Response: ### Response: SELECT attendance FROM table_name_21 WHERE opponent = "phillies 1:15 pm" AND date = "april 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: Who is in November where February is willy rey? ### Context: CREATE TABLE table_name_48 (november VARCHAR, february VARCHAR) ### Response: ### Response: SELECT november FROM table_name_48 WHERE february = "willy rey"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 guest stars did the episode that was broadcasted 11september2012 have ### Context: CREATE TABLE table_29135051_3 (guest_s_ VARCHAR, broadcast_date VARCHAR) ### Response: ### Response: SELECT COUNT(guest_s_) FROM table_29135051_3 WHERE broadcast_date = "11September2012"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the winner on a hard surface on the week of November 13? ### Context: CREATE TABLE table_name_30 (winner VARCHAR, surface VARCHAR, week VARCHAR) ### Response: ### Response: SELECT winner FROM table_name_30 WHERE surface = "hard" AND week = "november 13"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Find the name of the department that has the biggest number of students minored in? ### Context: CREATE TABLE DEPARTMENT (DName VARCHAR, DNO VARCHAR); CREATE TABLE MINOR_IN (DNO VARCHAR) ### Response: ### Response: SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MINOR_IN AS T2 ON T1.DNO = T2.DNO GROUP BY T2.DNO 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 event had the 1500m freestyle? ### Context: CREATE TABLE table_name_4 (meet VARCHAR, event VARCHAR) ### Response: ### Response: SELECT meet FROM table_name_4 WHERE event = "1500m freestyle"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Result has a Round of 5, and an Event of mt one? ### Context: CREATE TABLE table_name_92 (result VARCHAR, round VARCHAR, event VARCHAR) ### Response: ### Response: SELECT result FROM table_name_92 WHERE round = 5 AND event = "mt one"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 third-place with less than 5 total wins with china b as the winners? ### Context: CREATE TABLE table_name_89 (third_place VARCHAR, total_wins VARCHAR, winners VARCHAR) ### Response: ### Response: SELECT third_place FROM table_name_89 WHERE total_wins < 5 AND winners = "china b"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Show all branch names with the number of members in each branch registered after 2015. ### Context: CREATE TABLE branch (name VARCHAR, branch_id VARCHAR); CREATE TABLE membership_register_branch (branch_id VARCHAR, register_year INTEGER) ### Response: ### Response: SELECT T2.name, COUNT(*) FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id WHERE T1.register_year > 2015 GROUP BY T2.branch_id</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what is the total tackles when the games is 16 and solo is 88? ### Context: CREATE TABLE table_name_9 (total_tackles VARCHAR, games VARCHAR, solo VARCHAR) ### Response: ### Response: SELECT total_tackles FROM table_name_9 WHERE games = "16" AND solo = "88"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 listing for 2012 when 2004 is more than 0, 2008 is more than 1 1994 is 8 and 2005 is less than 11? ### Context: CREATE TABLE table_name_8 (Id VARCHAR) ### Response: ### Response: SELECT MIN(2012) FROM table_name_8 WHERE 2004 > 0 AND 2008 > 1 AND 1994 = 8 AND 2005 < 11</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the release date of vhs super callanetics? ### Context: CREATE TABLE table_name_96 (release_date VARCHAR, format VARCHAR, title VARCHAR) ### Response: ### Response: SELECT release_date FROM table_name_96 WHERE format = "vhs" AND title = "super callanetics"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 people attended the game against the pittsburgh steelers? ### Context: CREATE TABLE table_name_21 (attendance VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT attendance FROM table_name_21 WHERE opponent = "pittsburgh steelers"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 number for the WR position? ### Context: CREATE TABLE table_name_59 (pick__number VARCHAR, position VARCHAR) ### Response: ### Response: SELECT pick__number FROM table_name_59 WHERE position = "wr"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 bloggers was the poll winner, who was the root of all evil? ### Context: CREATE TABLE table_15781170_3 (root_of_all_evil VARCHAR, poll_winner VARCHAR) ### Response: ### Response: SELECT root_of_all_evil FROM table_15781170_3 WHERE poll_winner = "Bloggers"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 different parties of representative? Show the party name and the number of representatives in each party. ### Context: CREATE TABLE representative (Party VARCHAR) ### Response: ### Response: SELECT Party, COUNT(*) FROM representative GROUP BY Party</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 was parliament assembled when John rudhale was first member? ### Context: CREATE TABLE table_15451122_2 (assembled VARCHAR, first_member VARCHAR) ### Response: ### Response: SELECT assembled FROM table_15451122_2 WHERE first_member = "John Rudhale"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Wins, when Against is less than 1033, when Golden Rivers is "Nullawil", and when Byes is less than 2? ### Context: CREATE TABLE table_name_85 (wins INTEGER, byes VARCHAR, against VARCHAR, golden_rivers VARCHAR) ### Response: ### Response: SELECT SUM(wins) FROM table_name_85 WHERE against < 1033 AND golden_rivers = "nullawil" AND byes < 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 Gold medals did Australia receive? ### Context: CREATE TABLE table_name_59 (gold INTEGER, nation VARCHAR) ### Response: ### Response: SELECT AVG(gold) FROM table_name_59 WHERE nation = "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: On July 25 what is the lowest attendance with the Brewers as the opponent? ### Context: CREATE TABLE table_name_26 (attendance INTEGER, opponent VARCHAR, date VARCHAR) ### Response: ### Response: SELECT MIN(attendance) FROM table_name_26 WHERE opponent = "brewers" AND date = "july 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: How many clubs had 29 points? ### Context: CREATE TABLE table_18018248_2 (club VARCHAR, points VARCHAR) ### Response: ### Response: SELECT COUNT(club) FROM table_18018248_2 WHERE points = 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 is the Club during the Years 1995–1996? ### Context: CREATE TABLE table_name_28 (club VARCHAR, years VARCHAR) ### Response: ### Response: SELECT club FROM table_name_28 WHERE years = "1995–1996"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which title has a length of 4:22? ### Context: CREATE TABLE table_name_1 (title VARCHAR, time VARCHAR) ### Response: ### Response: SELECT title FROM table_name_1 WHERE time = "4: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 ship size had a cargo value of $46,000 in 2006? ### Context: CREATE TABLE table_name_89 (ship_size VARCHAR) ### Response: ### Response: SELECT ship_size FROM table_name_89 WHERE 2006 = "$46,000"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Tell me the average Laps for grid larger than 22 ### Context: CREATE TABLE table_name_39 (laps INTEGER, grid INTEGER) ### Response: ### Response: SELECT AVG(laps) FROM table_name_39 WHERE grid > 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: When the kilometers from kingston is 105.4 what is the minimum amount of length in feet? ### Context: CREATE TABLE table_16226584_1 (length_feet INTEGER, km_from_kingston VARCHAR) ### Response: ### Response: SELECT MIN(length_feet) FROM table_16226584_1 WHERE km_from_kingston = "105.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 total attendance for Detroit on hasek? ### Context: CREATE TABLE table_name_50 (attendance VARCHAR, home VARCHAR, decision VARCHAR) ### Response: ### Response: SELECT COUNT(attendance) FROM table_name_50 WHERE home = "detroit" AND decision = "hasek"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Country has a Finish of t32, and a Year(s) won of 1996? ### Context: CREATE TABLE table_name_19 (country VARCHAR, finish VARCHAR, year_s__won VARCHAR) ### Response: ### Response: SELECT country FROM table_name_19 WHERE finish = "t32" AND year_s__won = "1996"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what was the game number where the record was 46–24? ### Context: CREATE TABLE table_27712702_11 (game INTEGER, record VARCHAR) ### Response: ### Response: SELECT MIN(game) FROM table_27712702_11 WHERE record = "46–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 1986, when 1978 is "A", when 1979 is "A", and when 1980 is "1R"? ### Context: CREATE TABLE table_name_99 (Id VARCHAR) ### Response: ### Response: SELECT 1986 FROM table_name_99 WHERE 1978 = "a" AND 1979 = "a" AND 1980 = "1r"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 is the money list rank 221 and cuts more than 2? ### Context: CREATE TABLE table_name_97 (tournaments_played VARCHAR, money_list_rank VARCHAR, cuts_made VARCHAR) ### Response: ### Response: SELECT COUNT(tournaments_played) FROM table_name_97 WHERE money_list_rank = "221" AND cuts_made > 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: Show each premise type and the number of premises in that type. ### Context: CREATE TABLE premises (premises_type VARCHAR) ### Response: ### Response: SELECT premises_type, COUNT(*) FROM premises GROUP BY premises_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: What is the destination of the rail with Dhanbad as the origin? ### Context: CREATE TABLE table_name_76 (destination VARCHAR, origin VARCHAR) ### Response: ### Response: SELECT destination FROM table_name_76 WHERE origin = "dhanbad"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the most stolen ends? ### Context: CREATE TABLE table_29704430_1 (stolen_ends INTEGER) ### Response: ### Response: SELECT MAX(stolen_ends) FROM table_29704430_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 episode had Hoagy carmichael safe with an order of 5? ### Context: CREATE TABLE table_name_10 (episode VARCHAR, original_artist VARCHAR, result VARCHAR, order__number VARCHAR) ### Response: ### Response: SELECT episode FROM table_name_10 WHERE result = "safe" AND order__number = "5" AND original_artist = "hoagy carmichael"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 plays g position for the st. louis bombers? ### Context: CREATE TABLE table_name_69 (player VARCHAR, team VARCHAR, position VARCHAR) ### Response: ### Response: SELECT player FROM table_name_69 WHERE team = "st. louis bombers" AND position = "g"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 To Par, when Year(s) Won is "1962 , 1967"? ### Context: CREATE TABLE table_name_66 (to_par INTEGER, year_s__won VARCHAR) ### Response: ### Response: SELECT MAX(to_par) FROM table_name_66 WHERE year_s__won = "1962 , 1967"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What females have males of 1 234? ### Context: CREATE TABLE table_name_21 (females VARCHAR, males VARCHAR) ### Response: ### Response: SELECT females FROM table_name_21 WHERE males = "1 234"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 cyrillic name for lazarevo ### Context: CREATE TABLE table_2562572_35 (cyrillic_name_other_names VARCHAR, settlement VARCHAR) ### Response: ### Response: SELECT cyrillic_name_other_names FROM table_2562572_35 WHERE settlement = "Lazarevo"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 legs has the player with high checkout of 80 won? ### Context: CREATE TABLE table_20351295_2 (legs_won VARCHAR, high_checkout VARCHAR) ### Response: ### Response: SELECT legs_won FROM table_20351295_2 WHERE high_checkout = 80</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Notes when the fleet size is 3? ### Context: CREATE TABLE table_name_39 (notes VARCHAR, fleet_size VARCHAR) ### Response: ### Response: SELECT notes FROM table_name_39 WHERE fleet_size = 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: Name the Weight which has a Name of balázs hárai category:articles with hcards? ### Context: CREATE TABLE table_name_10 (weight VARCHAR, name VARCHAR) ### Response: ### Response: SELECT weight FROM table_name_10 WHERE name = "balázs hárai category:articles with hcards"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Stockholm's score when Malmo scored 2? ### Context: CREATE TABLE table_name_54 (stockholm VARCHAR, malmö VARCHAR) ### Response: ### Response: SELECT stockholm FROM table_name_54 WHERE malmö = "2"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which episode had 16.38 million U.S. viewers? ### Context: CREATE TABLE table_10935548_1 (title VARCHAR, us_viewers__millions_ VARCHAR) ### Response: ### Response: SELECT title FROM table_10935548_1 WHERE us_viewers__millions_ = "16.38"</s>