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 is the to par of the player from the United States with a t5 place? ### Context: CREATE TABLE table_name_38 (to_par VARCHAR, country VARCHAR, place VARCHAR) ### Response: ### Response: SELECT to_par FROM table_name_38 WHERE country = "united states" AND place = "t5"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 at the West Ham United home game? ### Context: CREATE TABLE table_name_69 (attendance VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT attendance FROM table_name_69 WHERE home_team = "west ham united"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Find the name and total checking and savings balance of the accounts whose savings balance is lower than corresponding checking balance. ### Context: CREATE TABLE checking (balance INTEGER, custid VARCHAR); CREATE TABLE savings (balance INTEGER, custid VARCHAR); CREATE TABLE accounts (name VARCHAR, custid VARCHAR) ### Response: ### Response: SELECT T1.name, T3.balance + T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid WHERE T3.balance < T2.balance</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 episodes had a production code 120? ### Context: CREATE TABLE table_27720737_1 (series__number VARCHAR, production_code VARCHAR) ### Response: ### Response: SELECT COUNT(series__number) FROM table_27720737_1 WHERE production_code = 120</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 large a crowd did the Fitzroy Away team draw? ### Context: CREATE TABLE table_name_15 (crowd INTEGER, away_team VARCHAR) ### Response: ### Response: SELECT SUM(crowd) FROM table_name_15 WHERE away_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: What is the area for the province having Hangul of 경기도? ### Context: CREATE TABLE table_name_60 (area VARCHAR, hangul_chosongul VARCHAR) ### Response: ### Response: SELECT area FROM table_name_60 WHERE hangul_chosongul = "경기도"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Domari word has the same meaning as the Hindi word pāñc? ### Context: CREATE TABLE table_name_40 (domari VARCHAR, hindi VARCHAR) ### Response: ### Response: SELECT domari FROM table_name_40 WHERE hindi = "pāñ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: What is the duration of the flight with end time of 21:06? ### Context: CREATE TABLE table_name_61 (duration VARCHAR, end_time VARCHAR) ### Response: ### Response: SELECT duration FROM table_name_61 WHERE end_time = "21: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: Where is the German Grand Prix? ### Context: CREATE TABLE table_1140082_2 (location VARCHAR, race VARCHAR) ### Response: ### Response: SELECT location FROM table_1140082_2 WHERE race = "German 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: Name the realization for phoneme of /i/ and example of /idːa/ ### Context: CREATE TABLE table_name_5 (realization VARCHAR, phoneme VARCHAR, example VARCHAR) ### Response: ### Response: SELECT realization FROM table_name_5 WHERE phoneme = "/i/" AND example = "/idːa/"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 tie number when Bournemouth was the home team? ### Context: CREATE TABLE table_name_79 (tie_no VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT tie_no FROM table_name_79 WHERE home_team = "bournemouth"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 did he win with a time of 0:38? ### Context: CREATE TABLE table_name_41 (method VARCHAR, time VARCHAR) ### Response: ### Response: SELECT method FROM table_name_41 WHERE time = "0:38"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 model has the most version(make) of cars? ### Context: CREATE TABLE CAR_NAMES (Model VARCHAR) ### Response: ### Response: SELECT Model FROM CAR_NAMES GROUP BY Model ORDER BY COUNT(*) DESC LIMIT 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What day did Collingwood play as the home team? ### Context: CREATE TABLE table_name_64 (date VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT date FROM table_name_64 WHERE home_team = "collingwood"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the score in the match against Sergi Bruguera? ### Context: CREATE TABLE table_name_70 (score VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT score FROM table_name_70 WHERE opponent = "sergi bruguera"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 number was the game against Kansas State? ### Context: CREATE TABLE table_21034801_1 (game VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT game FROM table_21034801_1 WHERE opponent = "Kansas State"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 currency has a central rate of 3.45280? ### Context: CREATE TABLE table_name_45 (currency VARCHAR, central_rate VARCHAR) ### Response: ### Response: SELECT currency FROM table_name_45 WHERE central_rate = "3.45280"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 poles for 64 points ### Context: CREATE TABLE table_25794532_1 (poles INTEGER, points VARCHAR) ### Response: ### Response: SELECT MAX(poles) FROM table_25794532_1 WHERE points = "64"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 wrote the lyrics when Jeevankala co-starred? ### Context: CREATE TABLE table_2528382_5 (lyricist VARCHAR, co_stars VARCHAR) ### Response: ### Response: SELECT lyricist FROM table_2528382_5 WHERE co_stars = "Jeevankala"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 round of the s position player from the college of Mississippi and has an overall less than 214? ### Context: CREATE TABLE table_name_79 (round INTEGER, overall VARCHAR, position VARCHAR, college VARCHAR) ### Response: ### Response: SELECT AVG(round) FROM table_name_79 WHERE position = "s" AND college = "mississippi" AND overall < 214</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 away team at the the glenferrie oval? ### Context: CREATE TABLE table_name_67 (away_team VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT away_team AS score FROM table_name_67 WHERE venue = "glenferrie 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 is Date (Opening), when Year is less than 2010, and when Date (Closing) is "September 28"? ### Context: CREATE TABLE table_name_5 (date__opening_ VARCHAR, year VARCHAR, date__closing_ VARCHAR) ### Response: ### Response: SELECT date__opening_ FROM table_name_5 WHERE year < 2010 AND date__closing_ = "september 28"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: If the games won are 5, what is the best winning average? ### Context: CREATE TABLE table_27533947_1 (best_winning_average VARCHAR, games_won VARCHAR) ### Response: ### Response: SELECT best_winning_average FROM table_27533947_1 WHERE games_won = 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 home team has 27 as the tie no.? ### Context: CREATE TABLE table_name_64 (home_team VARCHAR, tie_no VARCHAR) ### Response: ### Response: SELECT home_team FROM table_name_64 WHERE tie_no = "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: How many figures are there for No votes for the Forest Rehabilitation Debt Limit Amendment? ### Context: CREATE TABLE table_256286_45 (no_votes VARCHAR, description VARCHAR) ### Response: ### Response: SELECT COUNT(no_votes) FROM table_256286_45 WHERE description = "Forest Rehabilitation Debt Limit Amendment"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 competition of panathinaikos ### Context: CREATE TABLE table_17594659_1 (competition VARCHAR, opposition VARCHAR) ### Response: ### Response: SELECT competition FROM table_17594659_1 WHERE opposition = "Panathinaikos"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 number against on 12/04/1969? ### Context: CREATE TABLE table_name_19 (against INTEGER, date VARCHAR) ### Response: ### Response: SELECT MAX(against) FROM table_name_19 WHERE date = "12/04/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 province does the Ruhuna Royals team come from? ### Context: CREATE TABLE table_19905183_1 (province VARCHAR, team VARCHAR) ### Response: ### Response: SELECT province FROM table_19905183_1 WHERE team = "Ruhuna Royals"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 number of runners up for Royal School Dungannon? ### Context: CREATE TABLE table_2869837_1 (runners_up VARCHAR, school VARCHAR) ### Response: ### Response: SELECT runners_up FROM table_2869837_1 WHERE school = "Royal school Dungannon"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the player who came from Virginia? ### Context: CREATE TABLE table_name_29 (no_s_ VARCHAR, school_club_team_country VARCHAR) ### Response: ### Response: SELECT no_s_ FROM table_name_29 WHERE school_club_team_country = "virginia"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the Indianapolis Sweepstakes race session, what is the championship? ### Context: CREATE TABLE table_name_72 (championship VARCHAR, session VARCHAR, event VARCHAR) ### Response: ### Response: SELECT championship FROM table_name_72 WHERE session = "race" AND event = "indianapolis sweepstakes"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many players hometown was Cincinnati, Ohio? ### Context: CREATE TABLE table_11677691_4 (player VARCHAR, hometown VARCHAR) ### Response: ### Response: SELECT COUNT(player) FROM table_11677691_4 WHERE hometown = "Cincinnati, Ohio"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 original artist for week number Top 16 (8 women)? ### Context: CREATE TABLE table_15796072_1 (original_artist VARCHAR, week__number VARCHAR) ### Response: ### Response: SELECT original_artist FROM table_15796072_1 WHERE week__number = "Top 16 (8 Women)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What's the location of the 1197khz frequency? ### Context: CREATE TABLE table_name_22 (location VARCHAR, frequency VARCHAR) ### Response: ### Response: SELECT location FROM table_name_22 WHERE frequency = "1197khz"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 German Open have Yoo Sang-Hee as Partner? ### Context: CREATE TABLE table_name_8 (year VARCHAR, partner VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT year FROM table_name_8 WHERE partner = "yoo sang-hee" AND venue = "german open"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 400m h Event with 54.86 in Notes? ### Context: CREATE TABLE table_name_55 (year INTEGER, event VARCHAR, notes VARCHAR) ### Response: ### Response: SELECT MIN(year) FROM table_name_55 WHERE event = "400m h" AND notes = "54.86"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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's the writer of the episode seen by 3.25 million people in the US? ### Context: CREATE TABLE table_18268826_1 (written_by VARCHAR, us_viewers__million_ VARCHAR) ### Response: ### Response: SELECT written_by FROM table_18268826_1 WHERE us_viewers__million_ = "3.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: Name the record for august 28 ### Context: CREATE TABLE table_name_24 (record VARCHAR, date VARCHAR) ### Response: ### Response: SELECT record FROM table_name_24 WHERE date = "august 28"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 opponents in the final in which the score was 6–1, 1–6, 4–6? ### Context: CREATE TABLE table_name_54 (opponents_in_the_final VARCHAR, score_in_the_final VARCHAR) ### Response: ### Response: SELECT opponents_in_the_final FROM table_name_54 WHERE score_in_the_final = "6–1, 1–6, 4–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: Find the number of funiture types produced by each manufacturer as well as the company names. ### Context: CREATE TABLE furniture_manufacte (manufacturer_id VARCHAR); CREATE TABLE manufacturer (name VARCHAR, manufacturer_id VARCHAR) ### Response: ### Response: SELECT COUNT(*), t1.name FROM manufacturer AS t1 JOIN furniture_manufacte AS t2 ON t1.manufacturer_id = t2.manufacturer_id GROUP BY t1.manufacturer_id</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is Played, when Tries Against is "63"? ### Context: CREATE TABLE table_name_81 (played VARCHAR, tries_against VARCHAR) ### Response: ### Response: SELECT played FROM table_name_81 WHERE tries_against = "63"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 ends won for blank ends for 0 ### Context: CREATE TABLE table_25107064_2 (Ends VARCHAR, blank_ends VARCHAR) ### Response: ### Response: SELECT Ends AS won FROM table_25107064_2 WHERE blank_ends = 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: Which Away team has a Ground of gabba? ### Context: CREATE TABLE table_name_65 (away_team VARCHAR, ground VARCHAR) ### Response: ### Response: SELECT away_team FROM table_name_65 WHERE ground = "gabba"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 school or club team has a pick of 139? ### Context: CREATE TABLE table_name_60 (school_club_team VARCHAR, pick VARCHAR) ### Response: ### Response: SELECT school_club_team FROM table_name_60 WHERE pick = 139</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Round has a School/Club Team of north carolina, and a Pick larger than 131? ### Context: CREATE TABLE table_name_84 (round VARCHAR, school_club_team VARCHAR, pick VARCHAR) ### Response: ### Response: SELECT COUNT(round) FROM table_name_84 WHERE school_club_team = "north carolina" AND pick > 131</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 DOB has Bats of s, and a Position of inf? ### Context: CREATE TABLE table_name_8 (dob VARCHAR, bats VARCHAR, position VARCHAR) ### Response: ### Response: SELECT dob FROM table_name_8 WHERE bats = "s" AND position = "inf"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 sport was in the 1992 Barcelona games? ### Context: CREATE TABLE table_name_92 (sport VARCHAR, games VARCHAR) ### Response: ### Response: SELECT sport FROM table_name_92 WHERE games = "1992 barcelona"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 time/retired has a Grid larger than 3, and a Driver of kimi räikkönen? ### Context: CREATE TABLE table_name_65 (time_retired VARCHAR, grid VARCHAR, driver VARCHAR) ### Response: ### Response: SELECT time_retired FROM table_name_65 WHERE grid > 3 AND driver = "kimi räikkönen"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 3'utr sequence with a variant id of acd'6a 3? ### Context: CREATE TABLE table_14332822_1 (variant_id VARCHAR) ### Response: ### Response: SELECT 3 AS ’utr_sequence FROM table_14332822_1 WHERE variant_id = "ACD'6A 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 film did ian mackinnon direct that was in the short film 2007 prix uip category? ### Context: CREATE TABLE table_name_55 (film VARCHAR, category VARCHAR, director_s_ VARCHAR) ### Response: ### Response: SELECT film FROM table_name_55 WHERE category = "short film 2007 prix uip" AND director_s_ = "ian mackinnon"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Can you tell me the average Total that has the To par smaller than 10, and the Country of south korea? ### Context: CREATE TABLE table_name_60 (total INTEGER, to_par VARCHAR, country VARCHAR) ### Response: ### Response: SELECT AVG(total) FROM table_name_60 WHERE to_par < 10 AND country = "south korea"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the date of the game that had a goal of 3? ### Context: CREATE TABLE table_name_48 (date VARCHAR, goal VARCHAR) ### Response: ### Response: SELECT date FROM table_name_48 WHERE goal = 3</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the population for County Mayo with the English Name Carrowteige? ### Context: CREATE TABLE table_101196_1 (population VARCHAR, county VARCHAR, english_name VARCHAR) ### Response: ### Response: SELECT population FROM table_101196_1 WHERE county = "county Mayo" AND english_name = "Carrowteige"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 home of Nashville? ### Context: CREATE TABLE table_name_72 (record VARCHAR, home VARCHAR) ### Response: ### Response: SELECT record FROM table_name_72 WHERE home = "nashville"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Where was the event Kage Kombat 16? ### Context: CREATE TABLE table_name_76 (location VARCHAR, event VARCHAR) ### Response: ### Response: SELECT location FROM table_name_76 WHERE event = "kage kombat 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: What years have a total of 139? ### Context: CREATE TABLE table_14962287_2 (years VARCHAR, total VARCHAR) ### Response: ### Response: SELECT years FROM table_14962287_2 WHERE total = "139"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many events have each participants attended? List the participant id, type and the number. ### Context: CREATE TABLE Participants (Participant_ID VARCHAR, Participant_Type_Code VARCHAR); CREATE TABLE Participants_in_Events (Participant_ID VARCHAR) ### Response: ### Response: SELECT T1.Participant_ID, T1.Participant_Type_Code, COUNT(*) FROM Participants AS T1 JOIN Participants_in_Events AS T2 ON T1.Participant_ID = T2.Participant_ID GROUP BY T1.Participant_ID</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What conference has the Wichita State school? ### Context: CREATE TABLE table_name_26 (conference VARCHAR, school VARCHAR) ### Response: ### Response: SELECT conference FROM table_name_26 WHERE school = "wichita state"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 engine for the Machinists Union Racing team? ### Context: CREATE TABLE table_name_79 (engine VARCHAR, team VARCHAR) ### Response: ### Response: SELECT engine FROM table_name_79 WHERE team = "machinists union racing"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Where was the game against Detroit played? ### Context: CREATE TABLE table_27704187_7 (location_attendance VARCHAR, team VARCHAR) ### Response: ### Response: SELECT location_attendance FROM table_27704187_7 WHERE team = "Detroit"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Episode title has a Doctor Who episode of episodes 1–12? ### Context: CREATE TABLE table_name_83 (episode_title VARCHAR, doctor_who_episode VARCHAR) ### Response: ### Response: SELECT episode_title FROM table_name_83 WHERE doctor_who_episode = "episodes 1–12"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What player has a To Par of +1 with a score of 71-67-73=211? ### Context: CREATE TABLE table_name_89 (player VARCHAR, to_par VARCHAR, score VARCHAR) ### Response: ### Response: SELECT player FROM table_name_89 WHERE to_par = "+1" AND score = 71 - 67 - 73 = 211</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 sec wins for .357 percentage and 4-3 home record ### Context: CREATE TABLE table_22825679_1 (sec_wins VARCHAR, percentage VARCHAR, home_record VARCHAR) ### Response: ### Response: SELECT sec_wins FROM table_22825679_1 WHERE percentage = ".357" AND home_record = "4-3"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the broadcast date when 8.3 million viewers watched? ### Context: CREATE TABLE table_1785117_1 (broadcast_date VARCHAR, viewers__in_millions_ VARCHAR) ### Response: ### Response: SELECT broadcast_date FROM table_1785117_1 WHERE viewers__in_millions_ = "8.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 year has 2 wins? ### Context: CREATE TABLE table_name_59 (year VARCHAR, wins VARCHAR) ### Response: ### Response: SELECT year FROM table_name_59 WHERE wins = "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 is the purse total for the royal caribbean golf classic? ### Context: CREATE TABLE table_name_5 (purse__ INTEGER, tournament VARCHAR) ### Response: ### Response: SELECT SUM(purse__) AS $__ FROM table_name_5 WHERE tournament = "royal caribbean golf classic"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for the game where the away team was Stockport County? ### Context: CREATE TABLE table_name_1 (attendance VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT attendance FROM table_name_1 WHERE away_team = "stockport county"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 turquoise is the map colour how many avg. trips per mile (×1000) are there? ### Context: CREATE TABLE table_17839_1 (avg_trips_per_mile__ VARCHAR, map_colour VARCHAR) ### Response: ### Response: SELECT COUNT(avg_trips_per_mile__) AS ×1000_ FROM table_17839_1 WHERE map_colour = "Turquoise"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 which country are there 1,278.13 exports? ### Context: CREATE TABLE table_26160007_1 (country VARCHAR, exports VARCHAR) ### Response: ### Response: SELECT country FROM table_26160007_1 WHERE exports = "1,278.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: Which Capacity is the lowest one that has a Rank smaller than 15, and a City of belgrade? ### Context: CREATE TABLE table_name_76 (capacity INTEGER, rank VARCHAR, city VARCHAR) ### Response: ### Response: SELECT MIN(capacity) FROM table_name_76 WHERE rank < 15 AND city = "belgrade"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Total smaller than 10, and a Gold larger than 1 then what is the lowest silver? ### Context: CREATE TABLE table_name_86 (silver INTEGER, total VARCHAR, gold VARCHAR) ### Response: ### Response: SELECT MIN(silver) FROM table_name_86 WHERE total < 10 AND gold > 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 Took Office has a Party of democratic, a Home Town of victoria, and a District smaller than 18? ### Context: CREATE TABLE table_name_81 (took_office VARCHAR, district VARCHAR, party VARCHAR, home_town VARCHAR) ### Response: ### Response: SELECT COUNT(took_office) FROM table_name_81 WHERE party = "democratic" AND home_town = "victoria" AND district < 18</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the run 3 for the team in rank 12? ### Context: CREATE TABLE table_name_4 (run_3 VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT run_3 FROM table_name_4 WHERE rank = "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: Name the children together for 9 years of marriage ### Context: CREATE TABLE table_24143253_1 (children_together VARCHAR, length_of_marriage VARCHAR) ### Response: ### Response: SELECT children_together FROM table_24143253_1 WHERE length_of_marriage = "9 years"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many Games for the player with Rebounds from Efes Pilsen? ### Context: CREATE TABLE table_name_3 (games VARCHAR, team VARCHAR) ### Response: ### Response: SELECT games FROM table_name_3 WHERE team = "efes pilsen"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 right ascension (j2000) with the ngc number less than 3384, the constellation is hydra and the object type is spiral galaxy? ### Context: CREATE TABLE table_name_58 (right_ascension___j2000__ VARCHAR, object_type VARCHAR, ngc_number VARCHAR, constellation VARCHAR) ### Response: ### Response: SELECT right_ascension___j2000__ FROM table_name_58 WHERE ngc_number < 3384 AND constellation = "hydra" AND object_type = "spiral galaxy"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 county has the mascot of Bruins? ### Context: CREATE TABLE table_name_81 (county VARCHAR, mascot VARCHAR) ### Response: ### Response: SELECT county FROM table_name_81 WHERE mascot = "bruins"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: State pensions of 7%, and a Self employed of 7%, and a Other income sources of 2% has what investment income? ### Context: CREATE TABLE table_name_67 (investment_income VARCHAR, other_income_sources VARCHAR, state_pensions VARCHAR, self_employed VARCHAR) ### Response: ### Response: SELECT investment_income FROM table_name_67 WHERE state_pensions = "7%" AND self_employed = "7%" AND other_income_sources = "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 is the reason the Chief Judge of 1971–1977 was terminated? ### Context: CREATE TABLE table_name_33 (reason_for_termination VARCHAR, chief_judge VARCHAR) ### Response: ### Response: SELECT reason_for_termination FROM table_name_33 WHERE chief_judge = "1971–1977"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 portsmouth is the city of license who is the licensee? ### Context: CREATE TABLE table_1949746_1 (licensee VARCHAR, city_of_license VARCHAR) ### Response: ### Response: SELECT licensee FROM table_1949746_1 WHERE city_of_license = "Portsmouth"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 an Attendance of 57,013? ### Context: CREATE TABLE table_name_36 (date VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT date FROM table_name_36 WHERE attendance = "57,013"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 much does Jonathan Bender weigh? ### Context: CREATE TABLE table_name_2 (weight VARCHAR, player VARCHAR) ### Response: ### Response: SELECT weight FROM table_name_2 WHERE player = "jonathan bender"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What date has w 14-10 as the result? ### Context: CREATE TABLE table_name_94 (date VARCHAR, result VARCHAR) ### Response: ### Response: SELECT date FROM table_name_94 WHERE result = "w 14-10"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who wrote episode that had 1.97 million u.s. viewers? ### Context: CREATE TABLE table_27892955_1 (written_by VARCHAR, us_viewers__million_ VARCHAR) ### Response: ### Response: SELECT written_by FROM table_27892955_1 WHERE us_viewers__million_ = "1.97"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 team play againt the New Orleans Saints? ### Context: CREATE TABLE table_name_6 (date VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT date FROM table_name_6 WHERE opponent = "new orleans saints"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Artist had a Percentage of 17.14%? ### Context: CREATE TABLE table_name_5 (artist VARCHAR, percentage VARCHAR) ### Response: ### Response: SELECT artist FROM table_name_5 WHERE percentage = "17.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 lowest number of the player with a hometown of Bellwood, IL? ### Context: CREATE TABLE table_name_90 (number INTEGER, hometown VARCHAR) ### Response: ### Response: SELECT MIN(number) FROM table_name_90 WHERE hometown = "bellwood, il"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the date of vacancy for fabio brini ### Context: CREATE TABLE table_17275810_7 (date_of_vacancy VARCHAR, replaced_by VARCHAR) ### Response: ### Response: SELECT date_of_vacancy FROM table_17275810_7 WHERE replaced_by = "Fabio Brini"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 charity for the celebrity with an occupation title of actor and singer? ### Context: CREATE TABLE table_28730873_2 (charity VARCHAR, occupation VARCHAR) ### Response: ### Response: SELECT charity FROM table_28730873_2 WHERE occupation = "Actor and Singer"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Find the name of the campuses opened before 1800. ### Context: CREATE TABLE campuses (campus VARCHAR, YEAR INTEGER) ### Response: ### Response: SELECT campus FROM campuses WHERE YEAR < 1800</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 were the years active of the player from New Zealand with more than 11 caps? ### Context: CREATE TABLE table_name_1 (years_active VARCHAR, caps VARCHAR, country VARCHAR) ### Response: ### Response: SELECT years_active FROM table_name_1 WHERE caps > 11 AND country = "new zealand"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who has a round of 3 with a method of decision? ### Context: CREATE TABLE table_name_68 (opponent VARCHAR, round VARCHAR, method VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_68 WHERE round = "3" AND method = "decision"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 listed under chister tornell when karianne gulliksen is 7? ### Context: CREATE TABLE table_28677723_10 (christer_tornell INTEGER, karianne_gulliksen VARCHAR) ### Response: ### Response: SELECT MIN(christer_tornell) FROM table_28677723_10 WHERE karianne_gulliksen = 7</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the loss with record of 14-19 ### Context: CREATE TABLE table_name_68 (loss VARCHAR, record VARCHAR) ### Response: ### Response: SELECT loss FROM table_name_68 WHERE record = "14-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 debut album for the artist with the winning song kemenangan hati? ### Context: CREATE TABLE table_1646960_3 (debut_album VARCHAR, winning_song VARCHAR) ### Response: ### Response: SELECT debut_album FROM table_1646960_3 WHERE winning_song = "Kemenangan Hati"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 to par has a total less than 296? ### Context: CREATE TABLE table_name_5 (to_par VARCHAR, total INTEGER) ### Response: ### Response: SELECT to_par FROM table_name_5 WHERE total < 296</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the name of the Tournament with Jade Curtis as the opponent? ### Context: CREATE TABLE table_name_59 (tournament VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT tournament FROM table_name_59 WHERE opponent = "jade curtis"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the name of the body builder with the greatest body weight? ### Context: CREATE TABLE body_builder (People_ID VARCHAR); CREATE TABLE people (Name VARCHAR, People_ID VARCHAR, Weight VARCHAR) ### Response: ### Response: SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Weight DESC LIMIT 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the population that has an area of 715.58? ### Context: CREATE TABLE table_171250_2 (population VARCHAR, area_km_2 VARCHAR) ### Response: ### Response: SELECT population FROM table_171250_2 WHERE area_km_2 = "715.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: Which score has an Opponent of @ athletics, and a Record of 76-57? ### Context: CREATE TABLE table_name_19 (score VARCHAR, opponent VARCHAR, record VARCHAR) ### Response: ### Response: SELECT score FROM table_name_19 WHERE opponent = "@ athletics" AND record = "76-57"</s>