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: how many number of english when kunrei-shiki is otya ### Context: CREATE TABLE table_26263954_1 (english VARCHAR, kunrei_shiki VARCHAR) ### Response: ### Response: SELECT COUNT(english) FROM table_26263954_1 WHERE kunrei_shiki = "otya"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Studio has the Year of 2012 listed and the Movie, Dabangg? ### Context: CREATE TABLE table_name_22 (studio_s_ VARCHAR, year VARCHAR, movie VARCHAR) ### Response: ### Response: SELECT studio_s_ FROM table_name_22 WHERE year = 2012 AND movie = "dabangg"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who is the shirt sponsor for Captain Geoff Thomas' team? ### Context: CREATE TABLE table_name_10 (shirt_sponsor VARCHAR, captain VARCHAR) ### Response: ### Response: SELECT shirt_sponsor FROM table_name_10 WHERE captain = "geoff thomas"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many locations featured the Webb Family? ### Context: CREATE TABLE table_19897294_11 (location_s_ VARCHAR, family_families VARCHAR) ### Response: ### Response: SELECT COUNT(location_s_) FROM table_19897294_11 WHERE family_families = "The Webb Family"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 in third place that's going 1-0? ### Context: CREATE TABLE table_name_39 (score VARCHAR) ### Response: ### Response: SELECT 3 AS rd_place FROM table_name_39 WHERE score = "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: What is the earliest year for ordinary people to appear in the notes? ### Context: CREATE TABLE table_name_83 (year INTEGER, notes VARCHAR) ### Response: ### Response: SELECT MIN(year) FROM table_name_83 WHERE notes = "ordinary people"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the sum of the runs when the wkts were bigger than 0 and ovrs were smaller than 2? ### Context: CREATE TABLE table_name_65 (runs INTEGER, ovrs VARCHAR, wkts VARCHAR) ### Response: ### Response: SELECT SUM(runs) FROM table_name_65 WHERE ovrs < 2 AND wkts > 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's the county of Eastern Pekin school with fewer than 774 enrolled? ### Context: CREATE TABLE table_name_54 (_number___county VARCHAR, enrollment VARCHAR, school VARCHAR) ### Response: ### Response: SELECT _number___county FROM table_name_54 WHERE enrollment < 774 AND school = "eastern pekin"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 mosst finals apps ### Context: CREATE TABLE table_21220720_1 (finals_apps INTEGER) ### Response: ### Response: SELECT MAX(finals_apps) FROM table_21220720_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 Location Attendance has a Date of february 27? ### Context: CREATE TABLE table_name_46 (location_attendance VARCHAR, date VARCHAR) ### Response: ### Response: SELECT location_attendance FROM table_name_46 WHERE date = "february 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: who is featuring when the title is energy of the daleks? ### Context: CREATE TABLE table_name_18 (featuring VARCHAR, title VARCHAR) ### Response: ### Response: SELECT featuring FROM table_name_18 WHERE title = "energy of the daleks"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Nationality has a Rank larger than 3, and a Name of tom hilde? ### Context: CREATE TABLE table_name_71 (nationality VARCHAR, rank VARCHAR, name VARCHAR) ### Response: ### Response: SELECT nationality FROM table_name_71 WHERE rank > 3 AND name = "tom hilde"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 height in feet for the player from valparaiso ### Context: CREATE TABLE table_name_80 (height_in_ft VARCHAR, school_club_team_country VARCHAR) ### Response: ### Response: SELECT height_in_ft FROM table_name_80 WHERE school_club_team_country = "valparaiso"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 has a Time of 13:23:43? ### Context: CREATE TABLE table_name_50 (year VARCHAR, time VARCHAR) ### Response: ### Response: SELECT year FROM table_name_50 WHERE time = "13:23:43"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the result at dakar , senegal, on 3 september 2011, and with a Score of 2–0? ### Context: CREATE TABLE table_name_17 (result VARCHAR, score VARCHAR, venue VARCHAR, date VARCHAR) ### Response: ### Response: SELECT result FROM table_name_17 WHERE venue = "dakar , senegal" AND date = "3 september 2011" AND score = "2–0"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who won when Elon was the runner-up? ### Context: CREATE TABLE table_name_53 (champion VARCHAR, runner_up VARCHAR) ### Response: ### Response: SELECT champion FROM table_name_53 WHERE runner_up = "elon"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 foundeds have sousse as the city, with a capacity greater than 25,000? ### Context: CREATE TABLE table_name_25 (founded VARCHAR, city VARCHAR, capacity VARCHAR) ### Response: ### Response: SELECT COUNT(founded) FROM table_name_25 WHERE city = "sousse" AND capacity > 25 OFFSET 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: Who is/are the Composer(s), when the Arranger(s) is Banana Boat, and when the Length is 4:25? ### Context: CREATE TABLE table_name_44 (composer_s_ VARCHAR, arranger_s_ VARCHAR, length VARCHAR) ### Response: ### Response: SELECT composer_s_ FROM table_name_44 WHERE arranger_s_ = "banana boat" AND length = "4: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: Which Opponent has a February larger than 7 and Record of 37-16-4? ### Context: CREATE TABLE table_name_3 (opponent VARCHAR, february VARCHAR, record VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_3 WHERE february > 7 AND record = "37-16-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: Name the minister for end date of 31 july 2004 ### Context: CREATE TABLE table_name_12 (minister VARCHAR, end_date VARCHAR) ### Response: ### Response: SELECT minister FROM table_name_12 WHERE end_date = "31 july 2004"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What did the home team score when the away team was South Melbourne? ### Context: CREATE TABLE table_name_31 (home_team VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT home_team AS score FROM table_name_31 WHERE away_team = "south melbourne"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What year was Robert Skibniewski born? ### Context: CREATE TABLE table_12962773_16 (year_born VARCHAR, player VARCHAR) ### Response: ### Response: SELECT year_born FROM table_12962773_16 WHERE player = "Robert Skibniewski"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 competition held in 2003? ### Context: CREATE TABLE table_name_17 (competition VARCHAR, year VARCHAR) ### Response: ### Response: SELECT competition FROM table_name_17 WHERE year = 2003</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 table when the team is slovan bratislava? ### Context: CREATE TABLE table_27683516_3 (table VARCHAR, team VARCHAR) ### Response: ### Response: SELECT table FROM table_27683516_3 WHERE team = "Slovan Bratislava"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 golds for ranks of 6 and totals over 3? ### Context: CREATE TABLE table_name_36 (gold INTEGER, rank VARCHAR, total VARCHAR) ### Response: ### Response: SELECT SUM(gold) FROM table_name_36 WHERE rank = "6" AND total > 3</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many tries for were scored by the team that had exactly 396 points for? ### Context: CREATE TABLE table_27293285_6 (tries_for VARCHAR, points_for VARCHAR) ### Response: ### Response: SELECT tries_for FROM table_27293285_6 WHERE points_for = "396"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What days is greenock morton vacant? ### Context: CREATE TABLE table_11207040_6 (date_of_vacancy VARCHAR, team VARCHAR) ### Response: ### Response: SELECT date_of_vacancy FROM table_11207040_6 WHERE team = "Greenock Morton"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 loss of the game that had an attendance of 18,769? ### Context: CREATE TABLE table_name_22 (loss VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT loss FROM table_name_22 WHERE attendance = "18,769"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the most recent year that a team located in Highland Township and a member of the West Division joined the Kensington Lakes Activities Association? ### Context: CREATE TABLE table_name_43 (joined INTEGER, division VARCHAR, location VARCHAR) ### Response: ### Response: SELECT MAX(joined) FROM table_name_43 WHERE division = "west" AND location = "highland township"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 dust for star being hd 69830 ### Context: CREATE TABLE table_2296507_1 (dust__or_debris__location__au_ VARCHAR, star VARCHAR) ### Response: ### Response: SELECT dust__or_debris__location__au_ FROM table_2296507_1 WHERE star = "HD 69830"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 total of picks for drake players from the tri-cities blackhawks? ### Context: CREATE TABLE table_name_24 (pick INTEGER, team VARCHAR, college VARCHAR) ### Response: ### Response: SELECT SUM(pick) FROM table_name_24 WHERE team = "tri-cities blackhawks" AND college = "drake"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What country is player ed sneed, who has a to par of +3, from? ### Context: CREATE TABLE table_name_70 (country VARCHAR, to_par VARCHAR, player VARCHAR) ### Response: ### Response: SELECT country FROM table_name_70 WHERE to_par = "+3" AND player = "ed sneed"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: On what date did the away team Fremantle play? ### Context: CREATE TABLE table_16388478_3 (date VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT date FROM table_16388478_3 WHERE away_team = "Fremantle"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the largest ethnic group in мале пијаце (hungarian: kispiac)? ### Context: CREATE TABLE table_2562572_33 (largest_ethnic_group__2002_ VARCHAR, cyrillic_name_other_names VARCHAR) ### Response: ### Response: SELECT largest_ethnic_group__2002_ FROM table_2562572_33 WHERE cyrillic_name_other_names = "Мале Пијаце (Hungarian: Kispiac)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Date of the game with a Record of 12–7–6? ### Context: CREATE TABLE table_name_20 (date VARCHAR, record VARCHAR) ### Response: ### Response: SELECT date FROM table_name_20 WHERE record = "12–7–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 group C region with Illinois as group B? ### Context: CREATE TABLE table_name_53 (group_c VARCHAR, group_b VARCHAR) ### Response: ### Response: SELECT group_c FROM table_name_53 WHERE group_b = "illinois"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What district is bill thomas from? ### Context: CREATE TABLE table_1341453_7 (district VARCHAR, incumbent VARCHAR) ### Response: ### Response: SELECT district FROM table_1341453_7 WHERE incumbent = "Bill Thomas"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 ReFS has yes v3.0 for NTFS? ### Context: CREATE TABLE table_name_43 (refs VARCHAR, ntfs VARCHAR) ### Response: ### Response: SELECT refs FROM table_name_43 WHERE ntfs = "yes v3.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 was the home team when geelong was the away team? ### Context: CREATE TABLE table_name_74 (home_team VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT home_team FROM table_name_74 WHERE away_team = "geelong"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 decile value with a roll greater than 301 in Hauraki? ### Context: CREATE TABLE table_name_46 (decile INTEGER, roll VARCHAR, area VARCHAR) ### Response: ### Response: SELECT MAX(decile) FROM table_name_46 WHERE roll > 301 AND area = "hauraki"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 time for result msst 29–24 ### Context: CREATE TABLE table_26842217_18 (time VARCHAR, result VARCHAR) ### Response: ### Response: SELECT time FROM table_26842217_18 WHERE result = "MSST 29–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 largest number of DVDs? ### Context: CREATE TABLE table_1467951_4 (dvd_no INTEGER) ### Response: ### Response: SELECT MAX(dvd_no) FROM table_1467951_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 Finish, when Country is "South Africa"? ### Context: CREATE TABLE table_name_54 (finish VARCHAR, country VARCHAR) ### Response: ### Response: SELECT finish FROM table_name_54 WHERE country = "south africa"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 team has a class of 500cc and rank of 16th? ### Context: CREATE TABLE table_name_88 (team VARCHAR, class VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT team FROM table_name_88 WHERE class = "500cc" AND rank = "16th"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 all the zip codes in which the max dew point have never reached 70. ### Context: CREATE TABLE weather (zip_code VARCHAR, max_dew_point_f VARCHAR) ### Response: ### Response: SELECT DISTINCT zip_code FROM weather EXCEPT SELECT DISTINCT zip_code FROM weather WHERE max_dew_point_f >= 70</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What actor was nominted for an award in the film Anastasiya Slutskaya? ### Context: CREATE TABLE table_10236830_6 (actors_name VARCHAR, film_name VARCHAR) ### Response: ### Response: SELECT actors_name FROM table_10236830_6 WHERE film_name = "Anastasiya Slutskaya"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Written by has a Code of 1.2 1.3? ### Context: CREATE TABLE table_name_57 (written_by VARCHAR, code VARCHAR) ### Response: ### Response: SELECT written_by FROM table_name_57 WHERE code = "1.2 1.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 was the role in 2001? ### Context: CREATE TABLE table_name_91 (role VARCHAR, year VARCHAR) ### Response: ### Response: SELECT role FROM table_name_91 WHERE year = "2001"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the name of the opponent that having a TV time of Bye? ### Context: CREATE TABLE table_name_19 (opponent VARCHAR, tv_time VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_19 WHERE tv_time = "bye"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 1994 when QF is 1999? ### Context: CREATE TABLE table_name_4 (Id VARCHAR) ### Response: ### Response: SELECT 1994 FROM table_name_4 WHERE 1999 = "qf"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What season had 1st position, 33 pld, and 58 points? ### Context: CREATE TABLE table_name_21 (season VARCHAR, pts VARCHAR, pos VARCHAR, pld VARCHAR) ### Response: ### Response: SELECT season FROM table_name_21 WHERE pos = "1st" AND pld = "33" AND pts = "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: What is the date of creation for the locomotive having a type of 0-4-2 ### Context: CREATE TABLE table_name_9 (date_made VARCHAR, type VARCHAR) ### Response: ### Response: SELECT date_made FROM table_name_9 WHERE type = "0-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 department has an m.phil (physics) qualification? ### Context: CREATE TABLE table_name_25 (department VARCHAR, qualification VARCHAR) ### Response: ### Response: SELECT department FROM table_name_25 WHERE qualification = "m.phil (physics)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 when Walsall was the away team? ### Context: CREATE TABLE table_name_91 (score VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT score FROM table_name_91 WHERE away_team = "walsall"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Surface has an Opponent in the final of don mcneill, and a Year of 1940? ### Context: CREATE TABLE table_name_52 (surface VARCHAR, opponent_in_the_final VARCHAR, year VARCHAR) ### Response: ### Response: SELECT surface FROM table_name_52 WHERE opponent_in_the_final = "don mcneill" AND year = 1940</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many silver medals did spain have when they had more than 0 bronze medals and less than 54 total medals? ### Context: CREATE TABLE table_name_7 (silver VARCHAR, nation VARCHAR, bronze VARCHAR, total VARCHAR) ### Response: ### Response: SELECT silver FROM table_name_7 WHERE bronze > 0 AND total < 54 AND nation = "spain"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who won the mens doubles the year Alison Humby won the womens singles? ### Context: CREATE TABLE table_12163387_1 (mens_doubles VARCHAR, womens_singles VARCHAR) ### Response: ### Response: SELECT mens_doubles FROM table_12163387_1 WHERE womens_singles = "Alison Humby"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the result for Rank 2 on December 6, 1969? ### Context: CREATE TABLE table_name_23 (result VARCHAR, rank_number VARCHAR, date VARCHAR) ### Response: ### Response: SELECT result FROM table_name_23 WHERE rank_number = "2" AND date = "december 6, 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 year did Naushad Direct the Music? ### Context: CREATE TABLE table_2528382_5 (year INTEGER, music_director VARCHAR) ### Response: ### Response: SELECT MAX(year) FROM table_2528382_5 WHERE music_director = "Naushad"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 home team Essendon's opponents score? ### Context: CREATE TABLE table_name_9 (away_team VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT away_team AS score FROM table_name_9 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: What Committee has the First Elected of 1993? ### Context: CREATE TABLE table_name_98 (committee VARCHAR, first_elected VARCHAR) ### Response: ### Response: SELECT committee FROM table_name_98 WHERE first_elected = 1993</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 of the player from Inglewood, California? ### Context: CREATE TABLE table_name_14 (score VARCHAR, city VARCHAR) ### Response: ### Response: SELECT score FROM table_name_14 WHERE city = "inglewood, california"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 interview for minnesota and average more than 7.901 ### Context: CREATE TABLE table_name_7 (interview INTEGER, state VARCHAR, average VARCHAR) ### Response: ### Response: SELECT MAX(interview) FROM table_name_7 WHERE state = "minnesota" AND average > 7.901</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the result of the April 16 game? ### Context: CREATE TABLE table_name_94 (result VARCHAR, date VARCHAR) ### Response: ### Response: SELECT result FROM table_name_94 WHERE date = "april 16"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: who had the high rebounds when the team was @ toronto? ### Context: CREATE TABLE table_name_9 (high_rebounds VARCHAR, team VARCHAR) ### Response: ### Response: SELECT high_rebounds FROM table_name_9 WHERE team = "@ toronto"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 opponent with arrowhead stadium ### Context: CREATE TABLE table_13258823_2 (opponent VARCHAR, game_site VARCHAR) ### Response: ### Response: SELECT COUNT(opponent) FROM table_13258823_2 WHERE game_site = "Arrowhead Stadium"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which album had a release of heavenly (hvn95)? ### Context: CREATE TABLE table_name_56 (album VARCHAR, release_info VARCHAR) ### Response: ### Response: SELECT album FROM table_name_56 WHERE release_info = "heavenly (hvn95)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 line of Mangalore station? ### Context: CREATE TABLE table_name_54 (line VARCHAR, name VARCHAR) ### Response: ### Response: SELECT line FROM table_name_54 WHERE name = "mangalore"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 constructor for 9 May? ### Context: CREATE TABLE table_1140076_2 (constructor VARCHAR, date VARCHAR) ### Response: ### Response: SELECT constructor FROM table_1140076_2 WHERE date = "9 May"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the crowd size at the moorabbin oval venue? ### Context: CREATE TABLE table_name_86 (crowd VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT COUNT(crowd) FROM table_name_86 WHERE venue = "moorabbin 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: What date was georgie stoop emily webley-smith the opponent? ### Context: CREATE TABLE table_name_33 (date VARCHAR, opponents VARCHAR) ### Response: ### Response: SELECT date FROM table_name_33 WHERE opponents = "georgie stoop emily webley-smith"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the nickname of the team whose 2013/2014 enrollment is 436? ### Context: CREATE TABLE table_18304058_2 (nickname_s_ VARCHAR, enrollment__2013_14_ VARCHAR) ### Response: ### Response: SELECT nickname_s_ FROM table_18304058_2 WHERE enrollment__2013_14_ = 436</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 enrollment at delaware valley college? ### Context: CREATE TABLE table_261906_2 (joined_mac INTEGER, institution VARCHAR) ### Response: ### Response: SELECT MAX(joined_mac) FROM table_261906_2 WHERE institution = "Delaware Valley College"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 nationality of the player who played for the Peterborough Petes (OHL)? ### Context: CREATE TABLE table_name_6 (nationality VARCHAR, college_junior_club_team__league_ VARCHAR) ### Response: ### Response: SELECT nationality FROM table_name_6 WHERE college_junior_club_team__league_ = "peterborough petes (ohl)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 has a Location Attendance of madison square garden 19,763, and a High rebounds of david lee (12)? ### Context: CREATE TABLE table_name_99 (date VARCHAR, location_attendance VARCHAR, high_rebounds VARCHAR) ### Response: ### Response: SELECT date FROM table_name_99 WHERE location_attendance = "madison square garden 19,763" AND high_rebounds = "david lee (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: with a record of 66-78 what was the loss? ### Context: CREATE TABLE table_name_3 (loss VARCHAR, record VARCHAR) ### Response: ### Response: SELECT loss FROM table_name_3 WHERE record = "66-78"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Find the title, credit, and department name of courses that have more than one prerequisites? ### Context: CREATE TABLE prereq (course_id VARCHAR); CREATE TABLE course (title VARCHAR, credits VARCHAR, dept_name VARCHAR, course_id VARCHAR) ### Response: ### Response: SELECT T1.title, T1.credits, T1.dept_name FROM course AS T1 JOIN prereq AS T2 ON T1.course_id = T2.course_id GROUP BY T2.course_id HAVING COUNT(*) > 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the peletier for systematics being million 1 ### Context: CREATE TABLE table_260938_1 (peletier VARCHAR, systematics VARCHAR) ### Response: ### Response: SELECT peletier FROM table_260938_1 WHERE systematics = "Million 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: High points earned by Josh Howard (19) resulted in how many high rebounds? ### Context: CREATE TABLE table_17288869_7 (high_rebounds VARCHAR, high_points VARCHAR) ### Response: ### Response: SELECT COUNT(high_rebounds) FROM table_17288869_7 WHERE high_points = "Josh Howard (19)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 round when the overall is less than 17? ### Context: CREATE TABLE table_name_32 (round INTEGER, overall INTEGER) ### Response: ### Response: SELECT MAX(round) FROM table_name_32 WHERE overall < 17</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 teams are located in highland township? ### Context: CREATE TABLE table_11094950_1 (team VARCHAR, location VARCHAR) ### Response: ### Response: SELECT team FROM table_11094950_1 WHERE location = "Highland Township"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 sub-parish of the church located in Fortun? ### Context: CREATE TABLE table_178398_1 (sub_parish__sogn_ VARCHAR, location_of_the_church VARCHAR) ### Response: ### Response: SELECT sub_parish__sogn_ FROM table_178398_1 WHERE location_of_the_church = "Fortun"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 guido bontempi's general classification when he has a stage of 6? ### Context: CREATE TABLE table_name_51 (general_classification VARCHAR, winner VARCHAR, stage VARCHAR) ### Response: ### Response: SELECT general_classification FROM table_name_51 WHERE winner = "guido bontempi" AND stage = "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: Name the regular season record for standing 11th ### Context: CREATE TABLE table_20774360_2 (regular_season_record__w_l_ VARCHAR, standing VARCHAR) ### Response: ### Response: SELECT regular_season_record__w_l_ FROM table_20774360_2 WHERE standing = "11th"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what team's score is 101? ### Context: CREATE TABLE table_name_42 (team VARCHAR, score VARCHAR) ### Response: ### Response: SELECT team FROM table_name_42 WHERE score = "101"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 meet when the event is flying 200 m time trial? ### Context: CREATE TABLE table_name_99 (meet VARCHAR, event VARCHAR) ### Response: ### Response: SELECT meet FROM table_name_99 WHERE event = "flying 200 m time trial"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 revenues for ōoka tadayoshi (2nd) (大岡忠愛)? ### Context: CREATE TABLE table_name_15 (revenues VARCHAR, name VARCHAR) ### Response: ### Response: SELECT revenues FROM table_name_15 WHERE name = "ōoka tadayoshi (2nd) (大岡忠愛)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Bronze when silver is more than 2, and rank is 2, and gold more than 2 ### Context: CREATE TABLE table_name_62 (bronze INTEGER, gold VARCHAR, silver VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT AVG(bronze) FROM table_name_62 WHERE silver > "2" AND rank = "2" AND gold > 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 highest number of points in 1966? ### Context: CREATE TABLE table_name_99 (points INTEGER, year VARCHAR) ### Response: ### Response: SELECT MAX(points) FROM table_name_99 WHERE year = 1966</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What's the series number of the episode written by Dan Vebber? ### Context: CREATE TABLE table_23242933_2 (no_in_series INTEGER, written_by VARCHAR) ### Response: ### Response: SELECT MAX(no_in_series) FROM table_23242933_2 WHERE written_by = "Dan Vebber"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Green-Communist percentage in the poll in which the Socialist Party earned 41.0%? ### Context: CREATE TABLE table_name_59 (green_communist VARCHAR, socialist VARCHAR) ### Response: ### Response: SELECT green_communist FROM table_name_59 WHERE socialist = "41.0%"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the total number of sunk by U-boats with less than 2 German submarines lost, 56328 sunk by aircrafts, and more than 8269 sunk by mines? ### Context: CREATE TABLE table_name_4 (sunk_by_u_boat VARCHAR, sunk_by_mines VARCHAR, german_submarines_lost VARCHAR, sunk_by_aircraft VARCHAR) ### Response: ### Response: SELECT COUNT(sunk_by_u_boat) FROM table_name_4 WHERE german_submarines_lost < 2 AND sunk_by_aircraft = 56328 AND sunk_by_mines > 8269</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 muzzle devices are on the Colt 603? ### Context: CREATE TABLE table_19901_1 (muzzle_device VARCHAR, colt_model_no VARCHAR) ### Response: ### Response: SELECT muzzle_device FROM table_19901_1 WHERE colt_model_no = "603"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What team(s) did they play on april 23? ### Context: CREATE TABLE table_17140608_11 (team VARCHAR, date VARCHAR) ### Response: ### Response: SELECT team FROM table_17140608_11 WHERE date = "April 23"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 HDTV of the Music Content Channel? ### Context: CREATE TABLE table_name_60 (hdtv VARCHAR, content VARCHAR) ### Response: ### Response: SELECT hdtv FROM table_name_60 WHERE content = "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: Which Overall has a Round of 7? ### Context: CREATE TABLE table_name_99 (overall INTEGER, round VARCHAR) ### Response: ### Response: SELECT MIN(overall) FROM table_name_99 WHERE round = 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: Which tourist attractions does the visitor with detail 'Vincent' visit? ### Context: CREATE TABLE VISITS (Tourist_Attraction_ID VARCHAR, Tourist_ID VARCHAR); CREATE TABLE VISITORS (Tourist_ID VARCHAR, Tourist_Details VARCHAR); CREATE TABLE Tourist_Attractions (Name VARCHAR, Tourist_Attraction_ID VARCHAR) ### Response: ### Response: SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID JOIN VISITORS AS T3 ON T2.Tourist_ID = T3.Tourist_ID WHERE T3.Tourist_Details = "Vincent"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 the bonus interview with Peter Purves? ### Context: CREATE TABLE table_1681535_1 (release_date VARCHAR, notes VARCHAR) ### Response: ### Response: SELECT release_date FROM table_1681535_1 WHERE notes = "Bonus interview with Peter Purves"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Princeton was the regular season winner, who was the tournament winner? ### Context: CREATE TABLE table_22733636_1 (tournament_winner VARCHAR, regular_season_winner VARCHAR) ### Response: ### Response: SELECT tournament_winner FROM table_22733636_1 WHERE regular_season_winner = "Princeton"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: On what date did Fleetcenter have a game lower than 9 with a score of 104-94? ### Context: CREATE TABLE table_name_59 (date VARCHAR, score VARCHAR, location VARCHAR, game VARCHAR) ### Response: ### Response: SELECT date FROM table_name_59 WHERE location = "fleetcenter" AND game < 9 AND score = "104-94"</s>