text
stringlengths
380
1.33k
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: which tournament was the champion pat cash 4–6, 6–4, 6–3? ### Context: CREATE TABLE table_29296103_10 (tournament VARCHAR, champion VARCHAR) [/INST] ### Response: SELECT tournament FROM table_29296103_10 WHERE champion = "Pat Cash 4–6, 6–4, 6–3" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which tournament was on the week of 24 october and champion is matt doyle 1–6, 6–1, 6–2? ### Context: CREATE TABLE table_29296103_10 (tournament VARCHAR, week_of VARCHAR, champion VARCHAR) [/INST] ### Response: SELECT tournament FROM table_29296103_10 WHERE week_of = "24 October" AND champion = "Matt Doyle 1–6, 6–1, 6–2" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many runner ups were there for the cologne , germany carpet – $75,000 – s32/d16 when the champion was matt doyle 1–6, 6–1, 6–2? ### Context: CREATE TABLE table_29296103_10 (runner_up VARCHAR, tournament VARCHAR, champion VARCHAR) [/INST] ### Response: SELECT COUNT(runner_up) FROM table_29296103_10 WHERE tournament = "Cologne , Germany Carpet – $75,000 – S32/D16" AND champion = "Matt Doyle 1–6, 6–1, 6–2" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: which train number departs pune at 13:00 ### Context: CREATE TABLE table_29301050_1 (train_number VARCHAR, departure_pune VARCHAR) [/INST] ### Response: SELECT train_number FROM table_29301050_1 WHERE departure_pune = "13:00" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: which train number arrives in lonavla at 17:45 ### Context: CREATE TABLE table_29301050_1 (train_number VARCHAR, arrival_lonavla VARCHAR) [/INST] ### Response: SELECT train_number FROM table_29301050_1 WHERE arrival_lonavla = "17:45" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: which train name arrives in lonavla at 17:45 ### Context: CREATE TABLE table_29301050_1 (train_name VARCHAR, arrival_lonavla VARCHAR) [/INST] ### Response: SELECT train_name FROM table_29301050_1 WHERE arrival_lonavla = "17:45" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: how many trains run daily to lonavla and arrive at 12:25 ### Context: CREATE TABLE table_29301050_1 (train_number VARCHAR, frequency VARCHAR, arrival_lonavla VARCHAR) [/INST] ### Response: SELECT COUNT(train_number) FROM table_29301050_1 WHERE frequency = "Daily" AND arrival_lonavla = "12:25" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: how many trains have the number 99808 ### Context: CREATE TABLE table_29301050_1 (train_name VARCHAR, train_number VARCHAR) [/INST] ### Response: SELECT COUNT(train_name) FROM table_29301050_1 WHERE train_number = 99808 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what time does the train that arrives in lonavla at 22:22 depart pune ### Context: CREATE TABLE table_29301050_1 (departure_pune VARCHAR, arrival_lonavla VARCHAR) [/INST] ### Response: SELECT departure_pune FROM table_29301050_1 WHERE arrival_lonavla = "22:22" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who became the champion for the 1984 Grand Prix where Marty Davis was the runner-up? ### Context: CREATE TABLE table_29295463_9 (champion VARCHAR, runner_up VARCHAR) [/INST] ### Response: SELECT champion FROM table_29295463_9 WHERE runner_up = "Marty Davis" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who were the quarter-finalists in the event where the champion was Terry Moor 3-6, 7-6, 6-2? ### Context: CREATE TABLE table_29295463_9 (quarterfinalists VARCHAR, champion VARCHAR) [/INST] ### Response: SELECT quarterfinalists FROM table_29295463_9 WHERE champion = "Terry Moor 3-6, 7-6, 6-2" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the champion in the tournament where Scott Davis Chris Dunk was the runner up? ### Context: CREATE TABLE table_29295463_9 (champion VARCHAR, runner_up VARCHAR) [/INST] ### Response: SELECT champion FROM table_29295463_9 WHERE runner_up = "Scott Davis Chris Dunk" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who were the semifinalists in the tournament where Mats Wilander 7-6, 6-3 was declared the champion? ### Context: CREATE TABLE table_29295463_9 (semifinalists VARCHAR, champion VARCHAR) [/INST] ### Response: SELECT semifinalists FROM table_29295463_9 WHERE champion = "Mats Wilander 7-6, 6-3" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many years saw 3 hurricanes wherein the strongest storm was level three? ### Context: CREATE TABLE table_2930244_2 (year VARCHAR, number_of_hurricanes VARCHAR, strongest_storm VARCHAR) [/INST] ### Response: SELECT COUNT(year) FROM table_2930244_2 WHERE number_of_hurricanes = 3 AND strongest_storm = "Three" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the largest overall number of major hurricanes? ### Context: CREATE TABLE table_2930244_3 (number_of_major_hurricanes INTEGER) [/INST] ### Response: SELECT MAX(number_of_major_hurricanes) FROM table_2930244_3 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: When the death is none what is the number of major hurricanes? ### Context: CREATE TABLE table_2930244_3 (number_of_major_hurricanes VARCHAR, deaths VARCHAR) [/INST] ### Response: SELECT COUNT(number_of_major_hurricanes) FROM table_2930244_3 WHERE deaths = "None" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the lowest overall number of hurricanes? ### Context: CREATE TABLE table_2930244_3 (number_of_hurricanes INTEGER) [/INST] ### Response: SELECT MIN(number_of_hurricanes) FROM table_2930244_3 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What country offered a prize of 66400 US dollars? ### Context: CREATE TABLE table_29302711_13 (country VARCHAR, prize_money__usd_ VARCHAR) [/INST] ### Response: SELECT country FROM table_29302711_13 WHERE prize_money__usd_ = 66400 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What country does the player named Mark Cox play for? ### Context: CREATE TABLE table_29302711_13 (country VARCHAR, name VARCHAR) [/INST] ### Response: SELECT country FROM table_29302711_13 WHERE name = "Mark Cox" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many deaths did the eyar with exactly 6 hurricanes have? ### Context: CREATE TABLE table_2930244_4 (deaths VARCHAR, number_of_hurricanes VARCHAR) [/INST] ### Response: SELECT COUNT(deaths) FROM table_2930244_4 WHERE number_of_hurricanes = 6 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the maximum number of tropical storms in the year that had exactly 34 deaths? ### Context: CREATE TABLE table_2930244_4 (number_of_tropical_storms INTEGER, deaths VARCHAR) [/INST] ### Response: SELECT MAX(number_of_tropical_storms) FROM table_2930244_4 WHERE deaths = "34" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many deaths did the year with 10 hurricanes and exactly 1 major hurricane have? ### Context: CREATE TABLE table_2930244_4 (deaths VARCHAR, number_of_hurricanes VARCHAR, number_of_major_hurricanes VARCHAR) [/INST] ### Response: SELECT deaths FROM table_2930244_4 WHERE number_of_hurricanes = 10 AND number_of_major_hurricanes = 1 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the number of episodes that jim barnes wrote for 1.82 million viewers ### Context: CREATE TABLE table_29329432_1 (no VARCHAR, written_by VARCHAR, us_viewers__million_ VARCHAR) [/INST] ### Response: SELECT COUNT(no) FROM table_29329432_1 WHERE written_by = "Jim Barnes" AND us_viewers__million_ = "1.82" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the least number for production code 3x6266 ### Context: CREATE TABLE table_29329432_1 (no INTEGER, production_code VARCHAR) [/INST] ### Response: SELECT MIN(no) FROM table_29329432_1 WHERE production_code = "3X6266" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many characters does Maurice Dean Wint play in the movie Cube? ### Context: CREATE TABLE table_2933761_1 (status VARCHAR, played_by VARCHAR) [/INST] ### Response: SELECT COUNT(status) FROM table_2933761_1 WHERE played_by = "Maurice Dean Wint" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is Joan Leaven's occupation? ### Context: CREATE TABLE table_2933761_1 (occupation VARCHAR, name VARCHAR) [/INST] ### Response: SELECT occupation FROM table_2933761_1 WHERE name = "Joan Leaven" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What gender is Quentin? ### Context: CREATE TABLE table_2933761_1 (gender VARCHAR, name VARCHAR) [/INST] ### Response: SELECT gender FROM table_2933761_1 WHERE name = "Quentin" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who played the mathematics student? ### Context: CREATE TABLE table_2933761_1 (played_by VARCHAR, occupation VARCHAR) [/INST] ### Response: SELECT played_by FROM table_2933761_1 WHERE occupation = "Mathematics Student" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many prisons is Joan Leaven connected with? ### Context: CREATE TABLE table_2933761_1 (prison_connection VARCHAR, name VARCHAR) [/INST] ### Response: SELECT COUNT(prison_connection) FROM table_2933761_1 WHERE name = "Joan Leaven" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is aggressive rider Richie Porte's team classifaction? ### Context: CREATE TABLE table_29332810_14 (team_classification VARCHAR, aggressive_rider VARCHAR) [/INST] ### Response: SELECT team_classification FROM table_29332810_14 WHERE aggressive_rider = "Richie Porte" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Thomas de Gendt performed on what stage as aggressive rider? ### Context: CREATE TABLE table_29332810_14 (stage INTEGER, aggressive_rider VARCHAR) [/INST] ### Response: SELECT MAX(stage) FROM table_29332810_14 WHERE aggressive_rider = "Thomas De Gendt" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Where Luke Durbridge is the aggressive rider who is listed as the young rider classification? ### Context: CREATE TABLE table_29332810_14 (young_rider_classification VARCHAR, aggressive_rider VARCHAR) [/INST] ### Response: SELECT young_rider_classification FROM table_29332810_14 WHERE aggressive_rider = "Luke Durbridge" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who is listed under the general classifcation where Ben Swift won and Cameron Meyer was listed under the young rider? ### Context: CREATE TABLE table_29332810_14 (general_classification VARCHAR, winner VARCHAR, young_rider_classification VARCHAR) [/INST] ### Response: SELECT general_classification FROM table_29332810_14 WHERE winner = "Ben Swift" AND young_rider_classification = "Cameron Meyer" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who is the sprint classification where Francisco Ventoso wins? ### Context: CREATE TABLE table_29332810_14 (sprint_classification VARCHAR, winner VARCHAR) [/INST] ### Response: SELECT sprint_classification FROM table_29332810_14 WHERE winner = "Francisco Ventoso" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: In the week of what was the runner-up Pat Du Pré? ### Context: CREATE TABLE table_29302781_12 (week_of VARCHAR, runner_up VARCHAR) [/INST] ### Response: SELECT week_of FROM table_29302781_12 WHERE runner_up = "Pat Du Pré" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who were the semifinalists when the runner-up was Peter Feigl? ### Context: CREATE TABLE table_29302781_12 (semifinalists VARCHAR, runner_up VARCHAR) [/INST] ### Response: SELECT semifinalists FROM table_29302781_12 WHERE runner_up = "Peter Feigl" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who were the semifinalists when the runner-up was Pat Du Pré? ### Context: CREATE TABLE table_29302781_12 (semifinalists VARCHAR, runner_up VARCHAR) [/INST] ### Response: SELECT semifinalists FROM table_29302781_12 WHERE runner_up = "Pat Du Pré" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who were the semifinalists in the week of 13 November when the runner-up was Pat Du Pré? ### Context: CREATE TABLE table_29302781_12 (semifinalists VARCHAR, week_of VARCHAR, runner_up VARCHAR) [/INST] ### Response: SELECT semifinalists FROM table_29302781_12 WHERE week_of = "13 November" AND runner_up = "Pat Du Pré" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What are the quarterfinalists when the runner up is andrew pattison? ### Context: CREATE TABLE table_29302816_8 (quarterfinalists VARCHAR, runner_up VARCHAR) [/INST] ### Response: SELECT quarterfinalists FROM table_29302816_8 WHERE runner_up = "Andrew Pattison" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: When indonesia is the country what is the rank of 2010? ### Context: CREATE TABLE table_293465_1 (rank_2010 VARCHAR, country VARCHAR) [/INST] ### Response: SELECT rank_2010 FROM table_293465_1 WHERE country = "Indonesia" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: When 5 is the rank of 2011 what is the country? ### Context: CREATE TABLE table_293465_1 (country VARCHAR, rank_2011 VARCHAR) [/INST] ### Response: SELECT country FROM table_293465_1 WHERE rank_2011 = 5 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: When sweden is the country what is the highest production in 2010 (1,000 ton)? ### Context: CREATE TABLE table_293465_1 (production_in_2010__1 INTEGER, country VARCHAR) [/INST] ### Response: SELECT MAX(production_in_2010__1), 000 AS _ton_ FROM table_293465_1 WHERE country = "Sweden" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Valmir Benavides won pole position at which circuit? ### Context: CREATE TABLE table_29361707_2 (circuit VARCHAR, pole_position VARCHAR) [/INST] ### Response: SELECT circuit FROM table_29361707_2 WHERE pole_position = "Valmir Benavides" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the winner at the track where Roberval Andrade won pole, Felipe Giaffone had the fastest lap, and RVR Corinthians Motorsport was the winning team? ### Context: CREATE TABLE table_29361707_2 (winning_driver VARCHAR, winning_team VARCHAR, pole_position VARCHAR, fastest_lap VARCHAR) [/INST] ### Response: SELECT winning_driver FROM table_29361707_2 WHERE pole_position = "Roberval Andrade" AND fastest_lap = "Felipe Giaffone" AND winning_team = "RVR Corinthians Motorsport" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the fewest number of 2005 subscribers for Vodafone? ### Context: CREATE TABLE table_29395291_2 (subscribers__2005___thousands_ INTEGER, provider VARCHAR) [/INST] ### Response: SELECT MIN(subscribers__2005___thousands_) FROM table_29395291_2 WHERE provider = "Vodafone" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the maximum number of 2006 subscribers for Glo Mobile? ### Context: CREATE TABLE table_29395291_2 (subscribers__2006___thousands_ INTEGER, provider VARCHAR) [/INST] ### Response: SELECT MAX(subscribers__2006___thousands_) FROM table_29395291_2 WHERE provider = "Glo Mobile" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the maximum number of 2006 subscribers for Mobilis? ### Context: CREATE TABLE table_29395291_2 (subscribers__2006___thousands_ INTEGER, provider VARCHAR) [/INST] ### Response: SELECT MAX(subscribers__2006___thousands_) FROM table_29395291_2 WHERE provider = "Mobilis" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many subscribers, in 2006, does Glo Mobile have? ### Context: CREATE TABLE table_29395291_2 (subscribers__2006___thousands_ VARCHAR, provider VARCHAR) [/INST] ### Response: SELECT subscribers__2006___thousands_ FROM table_29395291_2 WHERE provider = "Glo Mobile" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many 2006 subscribers are named Vodafone? ### Context: CREATE TABLE table_29395291_2 (subscribers__2006___thousands_ VARCHAR, provider VARCHAR) [/INST] ### Response: SELECT COUNT(subscribers__2006___thousands_) FROM table_29395291_2 WHERE provider = "Vodafone" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the number of captains for barcelona ### Context: CREATE TABLE table_29398373_2 (captain VARCHAR, team VARCHAR) [/INST] ### Response: SELECT COUNT(captain) FROM table_29398373_2 WHERE team = "Barcelona" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the chairman for iker casillas ### Context: CREATE TABLE table_29398373_2 (chairman VARCHAR, captain VARCHAR) [/INST] ### Response: SELECT chairman FROM table_29398373_2 WHERE captain = "Iker Casillas" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the team for javier clemente ### Context: CREATE TABLE table_29398373_2 (team VARCHAR, head_coach VARCHAR) [/INST] ### Response: SELECT team FROM table_29398373_2 WHERE head_coach = "Javier Clemente" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the season # for the production code 3.89? ### Context: CREATE TABLE table_29391888_1 (season__number VARCHAR, production_code VARCHAR) [/INST] ### Response: SELECT season__number FROM table_29391888_1 WHERE production_code = "3.89" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who wrote the episode that was directed by Kevin Inch? ### Context: CREATE TABLE table_29391888_1 (written_by VARCHAR, directed_by VARCHAR) [/INST] ### Response: SELECT written_by FROM table_29391888_1 WHERE directed_by = "Kevin Inch" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the original air date for the season# 2? ### Context: CREATE TABLE table_29391888_1 (original_air_date VARCHAR, season__number VARCHAR) [/INST] ### Response: SELECT original_air_date FROM table_29391888_1 WHERE season__number = 2 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the production code for the episode whose original air date was May15,2000? ### Context: CREATE TABLE table_29391888_1 (production_code VARCHAR, original_air_date VARCHAR) [/INST] ### Response: SELECT production_code FROM table_29391888_1 WHERE original_air_date = "May15,2000" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the former school of the player from Detroit, MI? ### Context: CREATE TABLE table_29418619_1 (former_school VARCHAR, hometown VARCHAR) [/INST] ### Response: SELECT former_school FROM table_29418619_1 WHERE hometown = "Detroit, MI" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the hometown of Jarrid Famous? ### Context: CREATE TABLE table_29418619_1 (hometown VARCHAR, name VARCHAR) [/INST] ### Response: SELECT hometown FROM table_29418619_1 WHERE name = "Jarrid Famous" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What number is the player whose hometown is Tampa, FL? ### Context: CREATE TABLE table_29418619_1 (_number VARCHAR, hometown VARCHAR) [/INST] ### Response: SELECT _number FROM table_29418619_1 WHERE hometown = "Tampa, FL" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What year is the player whose number is 31? ### Context: CREATE TABLE table_29418619_1 (year VARCHAR, _number VARCHAR) [/INST] ### Response: SELECT year FROM table_29418619_1 WHERE _number = 31 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the height of Anthony Crater? ### Context: CREATE TABLE table_29418619_1 (height VARCHAR, name VARCHAR) [/INST] ### Response: SELECT height FROM table_29418619_1 WHERE name = "Anthony Crater" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the former school of the player from North Port, FL? ### Context: CREATE TABLE table_29418619_1 (former_school VARCHAR, hometown VARCHAR) [/INST] ### Response: SELECT former_school FROM table_29418619_1 WHERE hometown = "North Port, FL" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: how many countries have remittances in 2008 of 9.07? ### Context: CREATE TABLE table_2941963_1 (country VARCHAR, remittances_2008 VARCHAR) [/INST] ### Response: SELECT COUNT(country) FROM table_2941963_1 WHERE remittances_2008 = "9.07" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: how many remittances in 2010 where the remittances is 19.73? ### Context: CREATE TABLE table_2941963_1 (remittances_2010 VARCHAR, remittances_2009 VARCHAR) [/INST] ### Response: SELECT COUNT(remittances_2010) FROM table_2941963_1 WHERE remittances_2009 = "19.73" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: how many remittances in 2010 for nigeria? ### Context: CREATE TABLE table_2941963_1 (remittances_2010 VARCHAR, country VARCHAR) [/INST] ### Response: SELECT remittances_2010 FROM table_2941963_1 WHERE country = "Nigeria" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: how many countiers had 2009 remittances of 6.02? ### Context: CREATE TABLE table_2941963_1 (country VARCHAR, remittances_2009 VARCHAR) [/INST] ### Response: SELECT COUNT(country) FROM table_2941963_1 WHERE remittances_2009 = "6.02" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the highest year with field reporter Steve Lyons? ### Context: CREATE TABLE table_2941848_2 (year INTEGER, s_field_reporter VARCHAR) [/INST] ### Response: SELECT MAX(year) FROM table_2941848_2 WHERE s_field_reporter = "Steve Lyons" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is every pregame analyst with Chris Rose as trophy presenter? ### Context: CREATE TABLE table_2941848_2 (pregame_analysts VARCHAR, trophy_presentation VARCHAR) [/INST] ### Response: SELECT pregame_analysts FROM table_2941848_2 WHERE trophy_presentation = "Chris Rose" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who is every play-by-play announcer when Chris Rose is the trophy presenter? ### Context: CREATE TABLE table_2941848_2 (play_by_play_announcer VARCHAR, trophy_presentation VARCHAR) [/INST] ### Response: SELECT play_by_play_announcer FROM table_2941848_2 WHERE trophy_presentation = "Chris Rose" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many teams came in fourth when Otsuka Pharmaceuticals won? ### Context: CREATE TABLE table_29446183_2 (fourth_place VARCHAR, winner VARCHAR) [/INST] ### Response: SELECT COUNT(fourth_place) FROM table_29446183_2 WHERE winner = "Otsuka Pharmaceuticals" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the runner up the season that Sagawa Express came in fourth? ### Context: CREATE TABLE table_29446183_2 (runner_up VARCHAR, fourth_place VARCHAR) [/INST] ### Response: SELECT runner_up FROM table_29446183_2 WHERE fourth_place = "Sagawa Express" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many seasons did Otsuka Pharmaceuticals come in third? ### Context: CREATE TABLE table_29446183_2 (season VARCHAR, third_place VARCHAR) [/INST] ### Response: SELECT COUNT(season) FROM table_29446183_2 WHERE third_place = "Otsuka Pharmaceuticals" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many episodes were written by Gregg Mettler? ### Context: CREATE TABLE table_29436238_1 (no_in_series VARCHAR, written_by VARCHAR) [/INST] ### Response: SELECT COUNT(no_in_series) FROM table_29436238_1 WHERE written_by = "Gregg Mettler" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What date did episode 4 in the season originally air? ### Context: CREATE TABLE table_29436238_1 (original_air_date VARCHAR, no_in_season VARCHAR) [/INST] ### Response: SELECT original_air_date FROM table_29436238_1 WHERE no_in_season = 4 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who are all the major users of the Gordon Close-Support Weapon System? ### Context: CREATE TABLE table_29474407_11 (major_users VARCHAR, name__designation VARCHAR) [/INST] ### Response: SELECT major_users FROM table_29474407_11 WHERE name__designation = "Gordon Close-Support Weapon System" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What country made the Flieger-Doppelpistole 1919? ### Context: CREATE TABLE table_29474407_11 (country_of_origin VARCHAR, name__designation VARCHAR) [/INST] ### Response: SELECT country_of_origin FROM table_29474407_11 WHERE name__designation = "Flieger-Doppelpistole 1919" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many years of introduction does the Neal Submachine Gun have? ### Context: CREATE TABLE table_29474407_11 (year_of_intro VARCHAR, name__designation VARCHAR) [/INST] ### Response: SELECT COUNT(year_of_intro) FROM table_29474407_11 WHERE name__designation = "Neal submachine gun" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who are the major users from Australia? ### Context: CREATE TABLE table_29474407_11 (major_users VARCHAR, country_of_origin VARCHAR) [/INST] ### Response: SELECT major_users FROM table_29474407_11 WHERE country_of_origin = "Australia" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who are all the major users of the Saturn Machine Pistol? ### Context: CREATE TABLE table_29474407_11 (major_users VARCHAR, name__designation VARCHAR) [/INST] ### Response: SELECT major_users FROM table_29474407_11 WHERE name__designation = "Saturn machine pistol" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: in how many of the arkansas colomel the county was pope ### Context: CREATE TABLE table_29458735_5 (colonel VARCHAR, county VARCHAR) [/INST] ### Response: SELECT COUNT(colonel) FROM table_29458735_5 WHERE county = "Pope" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the name of the coloneo of the 35th regiment ### Context: CREATE TABLE table_29458735_5 (colonel VARCHAR, regiment VARCHAR) [/INST] ### Response: SELECT colonel FROM table_29458735_5 WHERE regiment = "35th regiment" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: which regiment was in the Fulton County ### Context: CREATE TABLE table_29458735_5 (regiment VARCHAR, county VARCHAR) [/INST] ### Response: SELECT regiment FROM table_29458735_5 WHERE county = "Fulton" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is he name of the county where the 2nd division and the 41st regiment was ### Context: CREATE TABLE table_29458735_5 (county VARCHAR, division VARCHAR, regiment VARCHAR) [/INST] ### Response: SELECT county FROM table_29458735_5 WHERE division = "2nd division" AND regiment = "41st regiment" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: which regimen was in the arkansas county ### Context: CREATE TABLE table_29458735_5 (regiment VARCHAR, county VARCHAR) [/INST] ### Response: SELECT regiment FROM table_29458735_5 WHERE county = "Arkansas" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: When nicole dubuc duane capizzi is the writer who is the director? ### Context: CREATE TABLE table_29475589_3 (director VARCHAR, writer_s_ VARCHAR) [/INST] ### Response: SELECT director FROM table_29475589_3 WHERE writer_s_ = "Nicole Dubuc Duane Capizzi" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: When 22 is the number what is the episode title? ### Context: CREATE TABLE table_29475589_3 (episode_title VARCHAR, no VARCHAR) [/INST] ### Response: SELECT episode_title FROM table_29475589_3 WHERE no = 22 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: When the # is 9 what is the U.S original airdate? ### Context: CREATE TABLE table_29475589_5 (us_original_airdate VARCHAR, _number VARCHAR) [/INST] ### Response: SELECT us_original_airdate FROM table_29475589_5 WHERE _number = 9 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: how many representatives from hanover twp were first elected in 2008 ### Context: CREATE TABLE table_29486189_4 (representative VARCHAR, first_elected VARCHAR, residence VARCHAR) [/INST] ### Response: SELECT COUNT(representative) FROM table_29486189_4 WHERE first_elected = "2008" AND residence = "Hanover Twp" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: when was al landis first elected ### Context: CREATE TABLE table_29486189_4 (first_elected VARCHAR, representative VARCHAR) [/INST] ### Response: SELECT first_elected FROM table_29486189_4 WHERE representative = "Al Landis" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: which representative is from willowick ### Context: CREATE TABLE table_29486189_4 (representative VARCHAR, residence VARCHAR) [/INST] ### Response: SELECT representative FROM table_29486189_4 WHERE residence = "Willowick" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: which district does andy thompson represent ### Context: CREATE TABLE table_29486189_4 (district VARCHAR, representative VARCHAR) [/INST] ### Response: SELECT COUNT(district) FROM table_29486189_4 WHERE representative = "Andy Thompson" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: which party is the newark representative from ### Context: CREATE TABLE table_29486189_4 (party VARCHAR, residence VARCHAR) [/INST] ### Response: SELECT party FROM table_29486189_4 WHERE residence = "Newark" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: who is beavercreek's representative ### Context: CREATE TABLE table_29486189_4 (representative VARCHAR, residence VARCHAR) [/INST] ### Response: SELECT representative FROM table_29486189_4 WHERE residence = "Beavercreek" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was Reid's rolex ranking in the year that her money list rank was 3? ### Context: CREATE TABLE table_29506171_2 (rolex_ranking INTEGER, money_list_rank VARCHAR) [/INST] ### Response: SELECT MAX(rolex_ranking) FROM table_29506171_2 WHERE money_list_rank = "3" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the money list rank for Reid in the year that she had 0 top 10s? ### Context: CREATE TABLE table_29506171_2 (money_list_rank VARCHAR, top_10s VARCHAR) [/INST] ### Response: SELECT money_list_rank FROM table_29506171_2 WHERE top_10s = 0 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many cuts did Reid make in the year when her earnings were n/a? ### Context: CREATE TABLE table_29506171_2 (cuts_made INTEGER, earnings___€__ VARCHAR) [/INST] ### Response: SELECT MAX(cuts_made) FROM table_29506171_2 WHERE earnings___€__ = "n/a" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: In what year were Reid's earnings €4,050 1? ### Context: CREATE TABLE table_29506171_2 (year INTEGER, earnings___€__ VARCHAR) [/INST] ### Response: SELECT MIN(year) FROM table_29506171_2 WHERE earnings___€__ = "4,050 1" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the best finish for the player whose earnings was $421050? ### Context: CREATE TABLE table_29504351_2 (best_finish VARCHAR, earnings__$_ VARCHAR) [/INST] ### Response: SELECT best_finish FROM table_29504351_2 WHERE earnings__$_ = 421050 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the maximum start record for player of Jeff Brehaut? ### Context: CREATE TABLE table_29504351_2 (starts INTEGER, player VARCHAR) [/INST] ### Response: SELECT MAX(starts) FROM table_29504351_2 WHERE player = "Jeff Brehaut" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the best finish record for Carl Paulson? ### Context: CREATE TABLE table_29504351_2 (best_finish VARCHAR, player VARCHAR) [/INST] ### Response: SELECT best_finish FROM table_29504351_2 WHERE player = "Carl Paulson" </s>