inputs
stringlengths
400
1.34k
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What rank is the team that has a player named Isco Alarcón? ### Context: CREATE TABLE table_name_34 (rank VARCHAR, player VARCHAR) ### Response: ### Response: SELECT rank FROM table_name_34 WHERE player = "isco alarcón"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 jockey for the winning horse Helioptic? ### Context: CREATE TABLE table_name_41 (jockey VARCHAR, winner VARCHAR) ### Response: ### Response: SELECT jockey FROM table_name_41 WHERE winner = "helioptic"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 athletes were in round of 64 was llagostera Vives ( esp ) l 6–2, 3–6, 5–7? ### Context: CREATE TABLE table_17289604_38 (athlete VARCHAR, round_of_64 VARCHAR) ### Response: ### Response: SELECT COUNT(athlete) FROM table_17289604_38 WHERE round_of_64 = "Llagostera Vives ( ESP ) L 6–2, 3–6, 5–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 Home has an Attendance larger than 1,858? ### Context: CREATE TABLE table_name_5 (home VARCHAR, attendance INTEGER) ### Response: ### Response: SELECT home FROM table_name_5 WHERE attendance > 1 OFFSET 858</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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's record when they played the Twins on September 25? ### Context: CREATE TABLE table_name_57 (record VARCHAR, opponent VARCHAR, date VARCHAR) ### Response: ### Response: SELECT record FROM table_name_57 WHERE opponent = "twins" AND date = "september 25"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the zone of the game played against Estonia? ### Context: CREATE TABLE table_name_64 (zone VARCHAR, against VARCHAR) ### Response: ### Response: SELECT zone FROM table_name_64 WHERE against = "estonia"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 nationality is tom hilde ### Context: CREATE TABLE table_14407512_23 (nationality VARCHAR, name VARCHAR) ### Response: ### Response: SELECT COUNT(nationality) FROM table_14407512_23 WHERE 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: Find the names of the customers who have an deputy policy. ### Context: CREATE TABLE policies (customer_id VARCHAR, policy_type_code VARCHAR); CREATE TABLE customers (customer_details VARCHAR, customer_id VARCHAR) ### Response: ### Response: SELECT DISTINCT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id WHERE t1.policy_type_code = "Deputy"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who were the partners in 2012? ### Context: CREATE TABLE table_2259502_2 (partner VARCHAR, year VARCHAR) ### Response: ### Response: SELECT partner FROM table_2259502_2 WHERE year = 2012</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was nominated for best female performer? ### Context: CREATE TABLE table_name_38 (nominee VARCHAR, category VARCHAR) ### Response: ### Response: SELECT nominee FROM table_name_38 WHERE category = "best female performer"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 owners 2009 for south side indianapolis ### Context: CREATE TABLE table_23958917_1 (owner_s___2009_ VARCHAR, location VARCHAR) ### Response: ### Response: SELECT owner_s___2009_ FROM table_23958917_1 WHERE location = "South Side Indianapolis"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What home team played the away team of Richmond? ### Context: CREATE TABLE table_name_75 (home_team VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT home_team FROM table_name_75 WHERE away_team = "richmond"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 years had a Venue of eindhoven? ### Context: CREATE TABLE table_name_88 (year VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT COUNT(year) FROM table_name_88 WHERE venue = "eindhoven"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 lifespan of Stefanie Rabatsch? ### Context: CREATE TABLE table_name_93 (life VARCHAR, name VARCHAR) ### Response: ### Response: SELECT life FROM table_name_93 WHERE name = "stefanie rabatsch"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What position is Philadelphia Fury? ### Context: CREATE TABLE table_237757_9 (position VARCHAR, nasl_club_s_ VARCHAR) ### Response: ### Response: SELECT position FROM table_237757_9 WHERE nasl_club_s_ = "Philadelphia Fury"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 placed highest with a time of 1:47.70? ### Context: CREATE TABLE table_name_22 (rank INTEGER, time VARCHAR) ### Response: ### Response: SELECT MIN(rank) FROM table_name_22 WHERE time = "1:47.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: On what date was the streak at lost 7? ### Context: CREATE TABLE table_name_67 (date VARCHAR, streak VARCHAR) ### Response: ### Response: SELECT date FROM table_name_67 WHERE streak = "lost 7"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the location that had an accident by the F-27-600RF aircraft with tail number 6O-SAZ? ### Context: CREATE TABLE table_name_42 (location VARCHAR, aircraft VARCHAR, tail_number VARCHAR) ### Response: ### Response: SELECT location FROM table_name_42 WHERE aircraft = "f-27-600rf" AND tail_number = "6o-saz"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 polyunsaturated fat with total fat of 100g and saturated fat of 7g ### Context: CREATE TABLE table_name_39 (polyunsaturated_fat VARCHAR, total_fat VARCHAR, saturated_fat VARCHAR) ### Response: ### Response: SELECT polyunsaturated_fat FROM table_name_39 WHERE total_fat = "100g" AND saturated_fat = "7g"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 percentages (2006) are there for the population whose mother tongue is French? ### Context: CREATE TABLE table_2328113_1 (percentage__2006_ VARCHAR, mother_tongue VARCHAR) ### Response: ### Response: SELECT COUNT(percentage__2006_) FROM table_2328113_1 WHERE mother_tongue = "French"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 is from Australia? ### Context: CREATE TABLE table_name_88 (player VARCHAR, country VARCHAR) ### Response: ### Response: SELECT player FROM table_name_88 WHERE country = "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: What is the average episode # located in Tanzania and whose # in season is larger than 5? ### Context: CREATE TABLE table_name_65 (episode__number INTEGER, location VARCHAR, _number_in_season VARCHAR) ### Response: ### Response: SELECT AVG(episode__number) FROM table_name_65 WHERE location = "tanzania" AND _number_in_season > 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: Which Away team plays at the Venue vfl park? ### Context: CREATE TABLE table_name_91 (away_team VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT away_team FROM table_name_91 WHERE venue = "vfl park"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is Team, when Location Attendance is "Madison Square Garden Unknown", and when High Points is "Alonzo Mourning (24)"? ### Context: CREATE TABLE table_name_69 (team VARCHAR, location_attendance VARCHAR, high_points VARCHAR) ### Response: ### Response: SELECT team FROM table_name_69 WHERE location_attendance = "madison square garden unknown" AND high_points = "alonzo mourning (24)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which category had an orange finish? ### Context: CREATE TABLE table_name_4 (category VARCHAR, finish VARCHAR) ### Response: ### Response: SELECT category FROM table_name_4 WHERE finish = "orange"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 propulsion when the vessel is marianarray? ### Context: CREATE TABLE table_28132970_5 (propulsion VARCHAR, vessel VARCHAR) ### Response: ### Response: SELECT propulsion FROM table_28132970_5 WHERE vessel = "Marianarray"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 played on March 20? ### Context: CREATE TABLE table_17102076_9 (team VARCHAR, date VARCHAR) ### Response: ### Response: SELECT team FROM table_17102076_9 WHERE date = "March 20"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What segment d is associated with an episode number above 16 and a segment c of laser eye surgery? ### Context: CREATE TABLE table_name_33 (segment_d VARCHAR, episode VARCHAR, segment_c VARCHAR) ### Response: ### Response: SELECT segment_d FROM table_name_33 WHERE episode > 16 AND segment_c = "laser eye surgery"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 the school opened that has a size of 10 acres and students of na? ### Context: CREATE TABLE table_name_76 (year_opened VARCHAR, students VARCHAR, size VARCHAR) ### Response: ### Response: SELECT year_opened FROM table_name_76 WHERE students = "na" AND size = "10 acres"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Record in Week 2? ### Context: CREATE TABLE table_name_50 (record VARCHAR, week VARCHAR) ### Response: ### Response: SELECT record FROM table_name_50 WHERE week = 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: Who is the main contestant with a total score/week of 42/60 and a co-contestant (Yaar vs. Pyaa) of Tina Sachdev? ### Context: CREATE TABLE table_name_29 (main_contestant VARCHAR, total_score_week VARCHAR, co_contestant__yaar_vs_pyaar_ VARCHAR) ### Response: ### Response: SELECT main_contestant FROM table_name_29 WHERE total_score_week = "42/60" AND co_contestant__yaar_vs_pyaar_ = "tina sachdev"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 attendance number for the Timberwolves game? ### Context: CREATE TABLE table_name_69 (location_attendance INTEGER, team VARCHAR) ### Response: ### Response: SELECT SUM(location_attendance) FROM table_name_69 WHERE team = "timberwolves"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Line has a Stopping pattern of all stations, A, b, p? ### Context: CREATE TABLE table_name_59 (line VARCHAR, stopping_pattern VARCHAR) ### Response: ### Response: SELECT line FROM table_name_59 WHERE stopping_pattern = "all stations, a, b, p"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Visiting Team has a Stadium of servus centre on march 7? ### Context: CREATE TABLE table_name_56 (visiting_team VARCHAR, stadium VARCHAR, date VARCHAR) ### Response: ### Response: SELECT visiting_team FROM table_name_56 WHERE stadium = "servus centre" AND date = "march 7"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the total pick number of the los angeles dodgers, which has a lhp position before 1979? ### Context: CREATE TABLE table_name_36 (pick VARCHAR, year VARCHAR, team VARCHAR, position VARCHAR) ### Response: ### Response: SELECT COUNT(pick) FROM table_name_36 WHERE team = "los angeles dodgers" AND position = "lhp" AND year < 1979</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 highest losses that have points agaisnt less than 956, high park demons as the club, and points less than 16? ### Context: CREATE TABLE table_name_93 (loses INTEGER, points VARCHAR, points_against VARCHAR, club VARCHAR) ### Response: ### Response: SELECT MAX(loses) FROM table_name_93 WHERE points_against < 956 AND club = "high park demons" AND points < 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: How many days is the Monaco Grand Prix? ### Context: CREATE TABLE table_1140083_2 (date VARCHAR, race VARCHAR) ### Response: ### Response: SELECT COUNT(date) FROM table_1140083_2 WHERE race = "Monaco Grand Prix"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Stephen Ames from with a place value of t9? ### Context: CREATE TABLE table_name_20 (country VARCHAR, place VARCHAR, player VARCHAR) ### Response: ### Response: SELECT country FROM table_name_20 WHERE place = "t9" AND player = "stephen 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: What was the date when Geelong was the home team? ### Context: CREATE TABLE table_name_49 (date VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT date FROM table_name_49 WHERE home_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: Name the city with july of 88 °f / 31.1 °c ### Context: CREATE TABLE table_name_74 (city VARCHAR, jul VARCHAR) ### Response: ### Response: SELECT city FROM table_name_74 WHERE jul = "88 °f / 31.1 °c"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: In 2005-06 what was the disaster? ### Context: CREATE TABLE table_11649123_1 (disaster VARCHAR, year VARCHAR) ### Response: ### Response: SELECT disaster FROM table_11649123_1 WHERE year = "2005-06"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 to par of the player with a 72-71-65-69=277 score? ### Context: CREATE TABLE table_name_55 (to_par VARCHAR, score VARCHAR) ### Response: ### Response: SELECT to_par FROM table_name_55 WHERE score = 72 - 71 - 65 - 69 = 277</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 earliest Year the Linto Team had less than 15 Points with more than 0 Wins? ### Context: CREATE TABLE table_name_86 (year INTEGER, points VARCHAR, wins VARCHAR, team VARCHAR) ### Response: ### Response: SELECT MIN(year) FROM table_name_86 WHERE wins > 0 AND team = "linto" AND points < 15</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: In what year did the United States win To par greater than 14 ### Context: CREATE TABLE table_name_7 (year_s__won VARCHAR, country VARCHAR, to_par VARCHAR) ### Response: ### Response: SELECT year_s__won FROM table_name_7 WHERE country = "united states" AND to_par > 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 time/retired when the grid is 19? ### Context: CREATE TABLE table_name_42 (time_retired VARCHAR, grid VARCHAR) ### Response: ### Response: SELECT time_retired FROM table_name_42 WHERE grid = "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: Where did fitzroy play as the home team? ### Context: CREATE TABLE table_name_21 (venue VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_21 WHERE home_team = "fitzroy"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 a record of 3-2, what team was home? ### Context: CREATE TABLE table_name_31 (home VARCHAR, record VARCHAR) ### Response: ### Response: SELECT home FROM table_name_31 WHERE record = "3-2"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What's the overall average that has a round less than 7, and a Pick # of 4? ### Context: CREATE TABLE table_name_63 (overall INTEGER, round VARCHAR, pick__number VARCHAR) ### Response: ### Response: SELECT AVG(overall) FROM table_name_63 WHERE round < 7 AND pick__number = 4</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which years have a Decile smaller than 6, an Area of te kuiti, and an Authority of state integrated? ### Context: CREATE TABLE table_name_41 (years VARCHAR, authority VARCHAR, decile VARCHAR, area VARCHAR) ### Response: ### Response: SELECT years FROM table_name_41 WHERE decile < 6 AND area = "te kuiti" AND authority = "state integrated"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 acreage of the Maghereen in the civil parish of Macroom? ### Context: CREATE TABLE table_30120761_1 (area__acres__ VARCHAR, civil_parish VARCHAR, townland VARCHAR) ### Response: ### Response: SELECT COUNT(area__acres__) FROM table_30120761_1 WHERE civil_parish = "Macroom" AND townland = "Maghereen"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 all the distinct last names of all the engineers? ### Context: CREATE TABLE Maintenance_Engineers (last_name VARCHAR) ### Response: ### Response: SELECT DISTINCT last_name FROM Maintenance_Engineers</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 for the game in which the Edmonton Oilers were visitors? ### Context: CREATE TABLE table_name_4 (score VARCHAR, visitor VARCHAR) ### Response: ### Response: SELECT score FROM table_name_4 WHERE visitor = "edmonton oilers"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What shows for ICAO when the IATA is sin? ### Context: CREATE TABLE table_name_83 (icao VARCHAR, iata VARCHAR) ### Response: ### Response: SELECT icao FROM table_name_83 WHERE iata = "sin"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 a run 2 of 50.67? ### Context: CREATE TABLE table_name_67 (athlete VARCHAR, run_2 VARCHAR) ### Response: ### Response: SELECT athlete FROM table_name_67 WHERE run_2 = 50.67</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 overall score when the score of set 3 was 29–27? ### Context: CREATE TABLE table_name_63 (score VARCHAR, set_3 VARCHAR) ### Response: ### Response: SELECT score FROM table_name_63 WHERE set_3 = "29–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 team did they lose to when they had a 28-22 record? ### Context: CREATE TABLE table_name_71 (loss VARCHAR, record VARCHAR) ### Response: ### Response: SELECT loss FROM table_name_71 WHERE record = "28-22"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the sockets associated with a brand name of Core i3-3xx0m? ### Context: CREATE TABLE table_24538587_11 (socket VARCHAR, brand_name__list_ VARCHAR) ### Response: ### Response: SELECT socket FROM table_24538587_11 WHERE brand_name__list_ = "Core i3-3xx0M"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 region is identified as 38xa-3 in the catalog? ### Context: CREATE TABLE table_name_7 (region VARCHAR, catalog VARCHAR) ### Response: ### Response: SELECT region FROM table_name_7 WHERE catalog = "38xa-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 times did Australasia received a program if the Americas received 115 program? ### Context: CREATE TABLE table_27184837_1 (australasia VARCHAR, americas VARCHAR) ### Response: ### Response: SELECT COUNT(australasia) FROM table_27184837_1 WHERE americas = 115</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 opponent after march 21 and the game is 75? ### Context: CREATE TABLE table_name_93 (opponent VARCHAR, march VARCHAR, game VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_93 WHERE march > 21 AND game = 75</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What seasons had a finale on May 25, 2004? ### Context: CREATE TABLE table_175980_2 (season VARCHAR, finale VARCHAR) ### Response: ### Response: SELECT season FROM table_175980_2 WHERE finale = "May 25, 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 is the lower turnout that has a byut of 50.7 and an ou psd smaller than 36.8? ### Context: CREATE TABLE table_name_62 (voter_turnout INTEGER, byut VARCHAR, ou_psd VARCHAR) ### Response: ### Response: SELECT MIN(voter_turnout) FROM table_name_62 WHERE byut = 50.7 AND ou_psd < 36.8</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When Jean Alesi had laps less than 24, what was his highest grid? ### Context: CREATE TABLE table_name_75 (grid INTEGER, driver VARCHAR, laps VARCHAR) ### Response: ### Response: SELECT MAX(grid) FROM table_name_75 WHERE driver = "jean alesi" AND laps < 24</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which song has a U.S. R&B 100 in 2010? ### Context: CREATE TABLE table_name_53 (song VARCHAR, year VARCHAR, us_r VARCHAR, b VARCHAR) ### Response: ### Response: SELECT song FROM table_name_53 WHERE year = 2010 AND us_r & b = "100"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Qual 1 has a Qual 2 of 59.822? ### Context: CREATE TABLE table_name_76 (qual_1 VARCHAR, qual_2 VARCHAR) ### Response: ### Response: SELECT qual_1 FROM table_name_76 WHERE qual_2 = "59.822"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 positions are for creighton? ### Context: CREATE TABLE table_11545282_11 (position VARCHAR, school_club_team VARCHAR) ### Response: ### Response: SELECT COUNT(position) FROM table_11545282_11 WHERE school_club_team = "Creighton"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 launched for 13 september 1934 completion ### Context: CREATE TABLE table_name_91 (launched VARCHAR, completed VARCHAR) ### Response: ### Response: SELECT launched FROM table_name_91 WHERE completed = "13 september 1934"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 man of the match when they lost 2-4? ### Context: CREATE TABLE table_17120964_7 (man_of_the_match VARCHAR, result VARCHAR) ### Response: ### Response: SELECT man_of_the_match FROM table_17120964_7 WHERE result = "Lost 2-4"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which record has a time of 0:13? ### Context: CREATE TABLE table_name_87 (record VARCHAR, time VARCHAR) ### Response: ### Response: SELECT record FROM table_name_87 WHERE time = "0: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: How many times are listed for 31 May for the rider ranked 5? ### Context: CREATE TABLE table_25220821_4 (mon_31_may VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT COUNT(mon_31_may) FROM table_25220821_4 WHERE rank = 5</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What tournament had a runner(s)-up of Scott Hoch & Kenny Perry? ### Context: CREATE TABLE table_name_12 (tournament VARCHAR, runner_s__up VARCHAR) ### Response: ### Response: SELECT tournament FROM table_name_12 WHERE runner_s__up = "scott hoch & kenny perry"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 pupil to teacher ratio for Saratoga schools with smaller than 1213 students? ### Context: CREATE TABLE table_name_13 (pupil_teacher_ratio INTEGER, city VARCHAR, students VARCHAR) ### Response: ### Response: SELECT MIN(pupil_teacher_ratio) FROM table_name_13 WHERE city = "saratoga" AND students < 1213</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 numbers were listed under area with a population of 240075 as of 2009? ### Context: CREATE TABLE table_16278894_1 (area__km_2__ VARCHAR, population_census_2009 VARCHAR) ### Response: ### Response: SELECT COUNT(area__km_2__) FROM table_16278894_1 WHERE population_census_2009 = 240075</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the score of the game when the record was 68-39? ### Context: CREATE TABLE table_name_8 (score VARCHAR, record VARCHAR) ### Response: ### Response: SELECT score FROM table_name_8 WHERE record = "68-39"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Rank is the highest one that has a Change smaller than 44, and a Centre of buenos aires, and a Rating larger than 628? ### Context: CREATE TABLE table_name_2 (rank INTEGER, rating VARCHAR, change VARCHAR, centre VARCHAR) ### Response: ### Response: SELECT MAX(rank) FROM table_name_2 WHERE change < 44 AND centre = "buenos aires" AND rating > 628</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 aggressive rider when the winner was luis león sánchez? ### Context: CREATE TABLE table_25580292_13 (aggressive_rider VARCHAR, winner VARCHAR) ### Response: ### Response: SELECT aggressive_rider FROM table_25580292_13 WHERE winner = "Luis León Sánchez"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What dates were the games after game 6 played? ### Context: CREATE TABLE table_name_56 (date VARCHAR, game INTEGER) ### Response: ### Response: SELECT date FROM table_name_56 WHERE game > 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 years have 9 (3) as the finals? ### Context: CREATE TABLE table_name_77 (years VARCHAR, finals VARCHAR) ### Response: ### Response: SELECT years FROM table_name_77 WHERE finals = "9 (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: List all cities of addresses in alphabetical order. ### Context: CREATE TABLE Addresses (city VARCHAR) ### Response: ### Response: SELECT city FROM Addresses ORDER BY city</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Where is the peak Pico Basilé located? ### Context: CREATE TABLE table_name_15 (location VARCHAR, peak VARCHAR) ### Response: ### Response: SELECT location FROM table_name_15 WHERE peak = "pico basilé"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which round was Joe Taylor selected in? ### Context: CREATE TABLE table_name_40 (round INTEGER, player VARCHAR) ### Response: ### Response: SELECT SUM(round) FROM table_name_40 WHERE player = "joe taylor"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What Opponent has a Results¹ of 1:3? ### Context: CREATE TABLE table_name_28 (opponent VARCHAR, results¹ VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_28 WHERE results¹ = "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 Billy Casper's to par? ### Context: CREATE TABLE table_name_51 (to_par VARCHAR, player VARCHAR) ### Response: ### Response: SELECT to_par FROM table_name_51 WHERE player = "billy casper"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 surface for cara black rennae stubbs ### Context: CREATE TABLE table_23944006_4 (surface VARCHAR, opponents VARCHAR) ### Response: ### Response: SELECT surface FROM table_23944006_4 WHERE opponents = "Cara Black Rennae Stubbs"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 year is later than 1939 and the Runner-up is Tanunda, who is the Captain? ### Context: CREATE TABLE table_name_57 (captain VARCHAR, runner_up VARCHAR, year VARCHAR) ### Response: ### Response: SELECT captain FROM table_name_57 WHERE runner_up = "tanunda" AND year > 1939</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the number of Mike Thomas? ### Context: CREATE TABLE table_20860739_1 (position VARCHAR, player VARCHAR) ### Response: ### Response: SELECT COUNT(position) FROM table_20860739_1 WHERE player = "Mike 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: What is the church name for the church located in Kyrkjebø? ### Context: CREATE TABLE table_178389_1 (church_name VARCHAR, location_of_the_church VARCHAR) ### Response: ### Response: SELECT church_name FROM table_178389_1 WHERE location_of_the_church = "Kyrkjebø"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Party, when Results is "Re-Elected", and when District is "Louisiana 5"? ### Context: CREATE TABLE table_name_76 (party VARCHAR, results VARCHAR, district VARCHAR) ### Response: ### Response: SELECT party FROM table_name_76 WHERE results = "re-elected" AND district = "louisiana 5"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the format in the region of Europe with an XLCD369 and a label of XL? ### Context: CREATE TABLE table_name_36 (format VARCHAR, region VARCHAR, label VARCHAR, catalog VARCHAR) ### Response: ### Response: SELECT format FROM table_name_36 WHERE label = "xl" AND catalog = "xlcd369" AND region = "europe"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 constructor of the car that went 56 laps and had a grid of 15? ### Context: CREATE TABLE table_name_31 (constructor VARCHAR, laps VARCHAR, grid VARCHAR) ### Response: ### Response: SELECT constructor FROM table_name_31 WHERE laps = "56" AND grid = "15"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What are the main places for the streymoy region with an area of larger than 6.1? ### Context: CREATE TABLE table_name_91 (main_places VARCHAR, regions VARCHAR, area VARCHAR) ### Response: ### Response: SELECT main_places FROM table_name_91 WHERE regions = "streymoy" AND area > 6.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: With which association did estribillo ii run as Horse 1? ### Context: CREATE TABLE table_name_30 (association VARCHAR, horse_1 VARCHAR) ### Response: ### Response: SELECT association FROM table_name_30 WHERE horse_1 = "estribillo ii"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2010 has a 2006 of w? ### Context: CREATE TABLE table_name_51 (Id VARCHAR) ### Response: ### Response: SELECT 2010 FROM table_name_51 WHERE 2006 = "w"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Record, when Home is "New York Rangers", and when Date is "April 17"? ### Context: CREATE TABLE table_name_4 (record VARCHAR, home VARCHAR, date VARCHAR) ### Response: ### Response: SELECT record FROM table_name_4 WHERE home = "new york rangers" AND date = "april 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: Show the colleges that have both authors with submission score larger than 90 and authors with submission score smaller than 80. ### Context: CREATE TABLE submission (College VARCHAR, Scores INTEGER) ### Response: ### Response: SELECT College FROM submission WHERE Scores > 90 INTERSECT SELECT College FROM submission WHERE Scores < 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 nation has the lowest gold average that has a rank over 9? ### Context: CREATE TABLE table_name_56 (gold INTEGER, rank INTEGER) ### Response: ### Response: SELECT MIN(gold) FROM table_name_56 WHERE rank > 9</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which tournament has a Runner(s)-up of Gary McCord? ### Context: CREATE TABLE table_name_47 (tournament VARCHAR, runner_s__up VARCHAR) ### Response: ### Response: SELECT tournament FROM table_name_47 WHERE runner_s__up = "gary mccord"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 all the section titles of the document named "David CV"? ### Context: CREATE TABLE documents (document_code VARCHAR, document_name VARCHAR); CREATE TABLE document_sections (section_title VARCHAR, document_code VARCHAR) ### Response: ### Response: SELECT t2.section_title FROM documents AS t1 JOIN document_sections AS t2 ON t1.document_code = t2.document_code WHERE t1.document_name = "David CV"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 saif saaeed shaheen ( qat ) is the saif saaeed shaheen ( qat ) what is the date on September 3rd, 2004? ### Context: CREATE TABLE table_23988726_2 (Id VARCHAR) ### Response: ### Response: SELECT 3 AS _september_2004 FROM table_23988726_2 WHERE "saif_saaeed_shaheen___qat__" = "saif_saaeed_shaheen___qat__"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 driver, when the constructor was Renault, and when the Time/Retired was +38.600? ### Context: CREATE TABLE table_name_1 (driver VARCHAR, constructor VARCHAR, time_retired VARCHAR) ### Response: ### Response: SELECT driver FROM table_name_1 WHERE constructor = "renault" AND time_retired = "+38.600"</s>