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: Who was seat no 6 when seat no 1 and seat no 5 were jacques lachapelle and donald s. dutton ### Context: CREATE TABLE table_2231241_1 (seat_no_6 VARCHAR, seat_no_1 VARCHAR, seat_no_5 VARCHAR) [/INST] ### Response: SELECT seat_no_6 FROM table_2231241_1 WHERE seat_no_1 = "Jacques Lachapelle" AND seat_no_5 = "Donald S. Dutton" </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 election had seat no 1 filled by jacques lachapelle but seat no 5 was filled by g. sanscartier ### Context: CREATE TABLE table_2231241_1 (election VARCHAR, seat_no_1 VARCHAR, seat_no_5 VARCHAR) [/INST] ### Response: SELECT election FROM table_2231241_1 WHERE seat_no_1 = "Jacques Lachapelle" AND seat_no_5 = "G. Sanscartier" </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 season did the team lost in round 1 with a GP of 64? ### Context: CREATE TABLE table_2233872_1 (COUNt VARCHAR, gp VARCHAR, result VARCHAR) [/INST] ### Response: SELECT COUNt AS season FROM table_2233872_1 WHERE gp = 64 AND result = "lost in round 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 was the season where the team reached a GP of 244? ### Context: CREATE TABLE table_2233872_1 (season VARCHAR, gf VARCHAR) [/INST] ### Response: SELECT season FROM table_2233872_1 WHERE gf = 244 </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 maximum OTL if L is 28? ### Context: CREATE TABLE table_2233872_1 (Otl INTEGER, l VARCHAR) [/INST] ### Response: SELECT MAX(Otl) FROM table_2233872_1 WHERE l = 28 </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 minimum L if the GA is 272? ### Context: CREATE TABLE table_2233872_1 (l INTEGER, ga VARCHAR) [/INST] ### Response: SELECT MIN(l) FROM table_2233872_1 WHERE ga = 272 </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 least amount of total medals won? ### Context: CREATE TABLE table_22355_23 (total_min_2_medals_ INTEGER) [/INST] ### Response: SELECT MIN(total_min_2_medals_) FROM table_22355_23 </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 driver for the winning team Lawson Team Impul? ### Context: CREATE TABLE table_22379931_2 (winning_driver VARCHAR, winning_team VARCHAR) [/INST] ### Response: SELECT winning_driver FROM table_22379931_2 WHERE winning_team = "Lawson Team Impul" </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 has the fastest lap where Benoît Tréluyer got the pole position? ### Context: CREATE TABLE table_22379931_2 (fastest_lap VARCHAR, pole_position VARCHAR) [/INST] ### Response: SELECT fastest_lap FROM table_22379931_2 WHERE pole_position = "Benoît Tréluyer" </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 earlier round where Takashi Kogure got the fastest lap? ### Context: CREATE TABLE table_22379931_2 (round INTEGER, fastest_lap VARCHAR) [/INST] ### Response: SELECT MIN(round) FROM table_22379931_2 WHERE fastest_lap = "Takashi Kogure" </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 drivers drove on Suzuka Circuit where Loïc Duval took pole position? ### Context: CREATE TABLE table_22379931_2 (winning_driver VARCHAR, circuit VARCHAR, pole_position VARCHAR) [/INST] ### Response: SELECT COUNT(winning_driver) FROM table_22379931_2 WHERE circuit = "Suzuka circuit" AND pole_position = "Loïc Duval" </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 the West Indies win the match? ### Context: CREATE TABLE table_22384475_1 (match_date VARCHAR, winner VARCHAR) [/INST] ### Response: SELECT match_date FROM table_22384475_1 WHERE winner = "West Indies" </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 games were won by a margin of 131 runs? ### Context: CREATE TABLE table_22384475_1 (team__a_ VARCHAR, margin VARCHAR) [/INST] ### Response: SELECT COUNT(team__a_) FROM table_22384475_1 WHERE margin = "131 runs" </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 won the match when the margin was 131 runs? ### Context: CREATE TABLE table_22384475_1 (winner VARCHAR, margin VARCHAR) [/INST] ### Response: SELECT winner FROM table_22384475_1 WHERE margin = "131 runs" </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 margin of the match on 19 Jan 2002? ### Context: CREATE TABLE table_22384475_1 (margin VARCHAR, match_date VARCHAR) [/INST] ### Response: SELECT margin FROM table_22384475_1 WHERE match_date = "19 Jan 2002" </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 is the Bellerive Country Club venue located? ### Context: CREATE TABLE table_224616_1 (location_of_venue VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT location_of_venue FROM table_224616_1 WHERE venue = "Bellerive country Club" </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: List all winning scores from 1982. ### Context: CREATE TABLE table_224616_1 (winners_score VARCHAR, year VARCHAR) [/INST] ### Response: SELECT winners_score FROM table_224616_1 WHERE year = 1982 </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 vacators were in the Pennsylvania 33rd district? ### Context: CREATE TABLE table_224794_3 (vacator VARCHAR, district VARCHAR) [/INST] ### Response: SELECT COUNT(vacator) FROM table_224794_3 WHERE district = "Pennsylvania 33rd" </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 successor for the Kentucky 2nd district? ### Context: CREATE TABLE table_224794_3 (successor VARCHAR, district VARCHAR) [/INST] ### Response: SELECT successor FROM table_224794_3 WHERE district = "Kentucky 2nd" </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 date successor seated for contested election; served until february 14, 1794 ### Context: CREATE TABLE table_224837_4 (date_successor_seated VARCHAR, reason_for_change VARCHAR) [/INST] ### Response: SELECT date_successor_seated FROM table_224837_4 WHERE reason_for_change = "Contested election; served until February 14, 1794" </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 date successor seated for delegate seat established ### Context: CREATE TABLE table_224837_4 (date_successor_seated VARCHAR, reason_for_change VARCHAR) [/INST] ### Response: SELECT date_successor_seated FROM table_224837_4 WHERE reason_for_change = "Delegate seat established" </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 date successor seated is south carolina 3rd ### Context: CREATE TABLE table_224837_4 (date_successor_seated VARCHAR, district VARCHAR) [/INST] ### Response: SELECT date_successor_seated FROM table_224837_4 WHERE district = "South Carolina 3rd" </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 number of vacators when the successor was William H. Wells ( F )? ### Context: CREATE TABLE table_224839_3 (vacator VARCHAR, successor VARCHAR) [/INST] ### Response: SELECT COUNT(vacator) FROM table_224839_3 WHERE successor = "William H. Wells ( F )" </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 total number of dates of successor formal installation when the vacator was Joshua Clayton ( F )? ### Context: CREATE TABLE table_224839_3 (date_of_successors_formal_installation VARCHAR, vacator VARCHAR) [/INST] ### Response: SELECT COUNT(date_of_successors_formal_installation) FROM table_224839_3 WHERE vacator = "Joshua Clayton ( F )" </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 total number of successors when the vacator was William North ( F ) ### Context: CREATE TABLE table_224839_3 (successor VARCHAR, vacator VARCHAR) [/INST] ### Response: SELECT COUNT(successor) FROM table_224839_3 WHERE vacator = "William North ( F )" </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 all the states (class) when the successor was Joseph Anderson ( DR )? ### Context: CREATE TABLE table_224839_3 (state__class_ VARCHAR, successor VARCHAR) [/INST] ### Response: SELECT state__class_ FROM table_224839_3 WHERE successor = "Joseph Anderson ( DR )" </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 all the states (class) when the reason for change was resigned November 26, 1798 and the vacator was John Hunter ( DR )? ### Context: CREATE TABLE table_224839_3 (state__class_ VARCHAR, reason_for_change VARCHAR, vacator VARCHAR) [/INST] ### Response: SELECT state__class_ FROM table_224839_3 WHERE reason_for_change = "Resigned November 26, 1798" AND vacator = "John Hunter ( DR )" </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 vacators have October 22, 1808 as date successor seated? ### Context: CREATE TABLE table_225093_4 (vacator VARCHAR, date_successor_seated VARCHAR) [/INST] ### Response: SELECT COUNT(vacator) FROM table_225093_4 WHERE date_successor_seated = "October 22, 1808" </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 date successor seated where Massachusetts 2nd is the district? ### Context: CREATE TABLE table_225093_4 (date_successor_seated VARCHAR, district VARCHAR) [/INST] ### Response: SELECT date_successor_seated FROM table_225093_4 WHERE district = "Massachusetts 2nd" </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 successor when the reason for change is seat declared vacant January 2, 1808 ### Context: CREATE TABLE table_225093_4 (successor VARCHAR, reason_for_change VARCHAR) [/INST] ### Response: SELECT successor FROM table_225093_4 WHERE reason_for_change = "Seat declared vacant January 2, 1808" </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 has John Culpepper (f) as the vacator? ### Context: CREATE TABLE table_225093_4 (district VARCHAR, vacator VARCHAR) [/INST] ### Response: SELECT district FROM table_225093_4 WHERE vacator = "John Culpepper (F)" </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 reason for change when maryland 6th is the district? ### Context: CREATE TABLE table_225100_4 (reason_for_change VARCHAR, district VARCHAR) [/INST] ### Response: SELECT reason_for_change FROM table_225100_4 WHERE district = "Maryland 6th" </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 vacator when south carolina 4th is the district? ### Context: CREATE TABLE table_225100_4 (vacator VARCHAR, district VARCHAR) [/INST] ### Response: SELECT vacator FROM table_225100_4 WHERE district = "South Carolina 4th" </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 successor when florida territory at-large is the district? ### Context: CREATE TABLE table_225100_4 (successor VARCHAR, district VARCHAR) [/INST] ### Response: SELECT successor FROM table_225100_4 WHERE district = "Florida Territory At-large" </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 vacator for reason for change died january 12, 1826 ### Context: CREATE TABLE table_225102_4 (vacator VARCHAR, reason_for_change VARCHAR) [/INST] ### Response: SELECT vacator FROM table_225102_4 WHERE reason_for_change = "Died January 12, 1826" </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 reason for change pennsylvania 13th ### Context: CREATE TABLE table_225102_4 (reason_for_change VARCHAR, district VARCHAR) [/INST] ### Response: SELECT reason_for_change FROM table_225102_4 WHERE district = "Pennsylvania 13th" </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 vacator for died august 13, 1826 ### Context: CREATE TABLE table_225102_4 (vacator VARCHAR, reason_for_change VARCHAR) [/INST] ### Response: SELECT vacator FROM table_225102_4 WHERE reason_for_change = "Died August 13, 1826" </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 successor for elected january 26, 1837 ### Context: CREATE TABLE table_225200_3 (successor VARCHAR, date_of_successors_formal_installation VARCHAR) [/INST] ### Response: SELECT COUNT(successor) FROM table_225200_3 WHERE date_of_successors_formal_installation = "Elected January 26, 1837" </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 successor for north carolina 13th ### Context: CREATE TABLE table_225204_4 (successor VARCHAR, district VARCHAR) [/INST] ### Response: SELECT successor FROM table_225204_4 WHERE district = "North Carolina 13th" </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 date successor seated for pennsylvania 17th ### Context: CREATE TABLE table_225204_4 (date_successor_seated VARCHAR, district VARCHAR) [/INST] ### Response: SELECT date_successor_seated FROM table_225204_4 WHERE district = "Pennsylvania 17th" </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 writer of the series episode number 170? ### Context: CREATE TABLE table_22580855_1 (written_by VARCHAR, series_no VARCHAR) [/INST] ### Response: SELECT written_by FROM table_22580855_1 WHERE series_no = 170 </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 is the maximun serie episode number when the millions of North American spectators is 3.14? ### Context: CREATE TABLE table_22580855_1 (series_no INTEGER, us_viewers__millions_ VARCHAR) [/INST] ### Response: SELECT MAX(series_no) FROM table_22580855_1 WHERE us_viewers__millions_ = "3.14" </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 writers write the episode whose director is Jonathan Herron? ### Context: CREATE TABLE table_22580855_1 (written_by VARCHAR, directed_by VARCHAR) [/INST] ### Response: SELECT COUNT(written_by) FROM table_22580855_1 WHERE directed_by = "Jonathan Herron" </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 is the biggest production code? ### Context: CREATE TABLE table_22580855_1 (production_code INTEGER) [/INST] ### Response: SELECT MAX(production_code) FROM table_22580855_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: who are the writers when the production code is 8011? ### Context: CREATE TABLE table_22580855_1 (written_by VARCHAR, production_code VARCHAR) [/INST] ### Response: SELECT written_by FROM table_22580855_1 WHERE production_code = 8011 </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 episode whose writer is Timothy J. Lea and the director is Norberto Barba? ### Context: CREATE TABLE table_22580855_1 (title VARCHAR, written_by VARCHAR, directed_by VARCHAR) [/INST] ### Response: SELECT title FROM table_22580855_1 WHERE written_by = "Timothy J. Lea" AND directed_by = "Norberto Barba" </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 least year when men's singles is Raju Rai? ### Context: CREATE TABLE table_22587192_1 (year INTEGER, mens_singles VARCHAR) [/INST] ### Response: SELECT MIN(year) FROM table_22587192_1 WHERE mens_singles = "Raju Rai" </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 outcomes are listed when the final opponent was Johan Kriek? ### Context: CREATE TABLE table_22597626_5 (outcome VARCHAR, opponent_in_the_final VARCHAR) [/INST] ### Response: SELECT COUNT(outcome) FROM table_22597626_5 WHERE opponent_in_the_final = "Johan Kriek" </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 miles were driven in the race where the winner finished in 2:47:11? ### Context: CREATE TABLE table_22648285_1 (miles__km_ VARCHAR, race_time VARCHAR) [/INST] ### Response: SELECT miles__km_ FROM table_22648285_1 WHERE race_time = "2:47:11" </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 was the race in 1968 run on? ### Context: CREATE TABLE table_22648285_1 (date VARCHAR, year VARCHAR) [/INST] ### Response: SELECT date FROM table_22648285_1 WHERE year = 1968 </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 had a race with 301* laps? ### Context: CREATE TABLE table_22648285_1 (year VARCHAR, laps VARCHAR) [/INST] ### Response: SELECT year FROM table_22648285_1 WHERE laps = "301*" </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 races did Cale Yarborough win at an average speed of 88.924 mph? ### Context: CREATE TABLE table_22648285_1 (race_time VARCHAR, driver VARCHAR, average_speed__mph_ VARCHAR) [/INST] ### Response: SELECT COUNT(race_time) FROM table_22648285_1 WHERE driver = "Cale Yarborough" AND average_speed__mph_ = "88.924" </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 most pos for west bromwich albion club ### Context: CREATE TABLE table_226619_12 (pos INTEGER, club VARCHAR) [/INST] ### Response: SELECT MAX(pos) FROM table_226619_12 WHERE club = "West Bromwich Albion" </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 points for 212 respect toward opponents ### Context: CREATE TABLE table_226619_12 (points VARCHAR, respect_toward_opponents VARCHAR) [/INST] ### Response: SELECT points FROM table_226619_12 WHERE respect_toward_opponents = 212 </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 pos for west ham united ### Context: CREATE TABLE table_226619_12 (pos INTEGER, club VARCHAR) [/INST] ### Response: SELECT MIN(pos) FROM table_226619_12 WHERE club = "West Ham United" </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 date of birth for 27/07/86 ### Context: CREATE TABLE table_22705586_1 (name VARCHAR, date_of_birth VARCHAR) [/INST] ### Response: SELECT name FROM table_22705586_1 WHERE date_of_birth = "27/07/86" </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 ### Context: CREATE TABLE table_22705586_1 (number INTEGER) [/INST] ### Response: SELECT MIN(number) FROM table_22705586_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 nationality for francesco guglielmi ### Context: CREATE TABLE table_22705586_1 (nationality VARCHAR, name VARCHAR) [/INST] ### Response: SELECT nationality FROM table_22705586_1 WHERE name = "Francesco Guglielmi" </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 height for date of birth being 17/08/75 ### Context: CREATE TABLE table_22705586_1 (height__m_ INTEGER, date_of_birth VARCHAR) [/INST] ### Response: SELECT MIN(height__m_) FROM table_22705586_1 WHERE date_of_birth = "17/08/75" </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 points did player 7 score in the challenge cup? ### Context: CREATE TABLE table_22683369_8 (challenge_cup VARCHAR, p VARCHAR) [/INST] ### Response: SELECT COUNT(challenge_cup) FROM table_22683369_8 WHERE p = 7 </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 Kris doolan's league number? ### Context: CREATE TABLE table_22683369_8 (league VARCHAR, player VARCHAR) [/INST] ### Response: SELECT COUNT(league) FROM table_22683369_8 WHERE player = "Kris Doolan" </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 bryan hodge's player number ### Context: CREATE TABLE table_22683369_8 (p VARCHAR, player VARCHAR) [/INST] ### Response: SELECT COUNT(p) FROM table_22683369_8 WHERE player = "Bryan Hodge" </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 lowest number of points scored in the league cup? ### Context: CREATE TABLE table_22683369_8 (league INTEGER) [/INST] ### Response: SELECT MIN(league) AS Cup FROM table_22683369_8 </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 did the Cowboys score 13 points in 1966? ### Context: CREATE TABLE table_22801165_1 (date VARCHAR, cowboys_points VARCHAR) [/INST] ### Response: SELECT date FROM table_22801165_1 WHERE cowboys_points = 13 </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 Cowboys' record for Nov. 5, 1966? ### Context: CREATE TABLE table_22801165_1 (record VARCHAR, date VARCHAR) [/INST] ### Response: SELECT record FROM table_22801165_1 WHERE date = "Nov. 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: Who won the regular season when Maryland won the tournament? ### Context: CREATE TABLE table_22779004_1 (regular_season_winner VARCHAR, tournament_winner VARCHAR) [/INST] ### Response: SELECT regular_season_winner FROM table_22779004_1 WHERE tournament_winner = "Maryland" </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 won the tournament when Idaho State won the regular season? ### Context: CREATE TABLE table_22779004_1 (conference VARCHAR, regular_season_winner VARCHAR) [/INST] ### Response: SELECT conference AS Tournament FROM table_22779004_1 WHERE regular_season_winner = "Idaho State" </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 won the regular season when Missouri Valley Conference took place? ### Context: CREATE TABLE table_22779004_1 (regular_season_winner VARCHAR, conference VARCHAR) [/INST] ### Response: SELECT regular_season_winner FROM table_22779004_1 WHERE conference = "Missouri Valley conference" </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 conference when Arizona State won the regular season? ### Context: CREATE TABLE table_22779004_1 (conference VARCHAR, regular_season_winner VARCHAR) [/INST] ### Response: SELECT conference FROM table_22779004_1 WHERE regular_season_winner = "Arizona State" </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 tournament winner in the Atlantic Coast Conference? ### Context: CREATE TABLE table_22779004_1 (tournament_winner VARCHAR, conference VARCHAR) [/INST] ### Response: SELECT tournament_winner FROM table_22779004_1 WHERE conference = "Atlantic Coast conference" </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 county had a 3.6% unemployment rate? ### Context: CREATE TABLE table_22815568_2 (county VARCHAR, unemployment_rate VARCHAR) [/INST] ### Response: SELECT county FROM table_22815568_2 WHERE unemployment_rate = "3.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 status of the county that has a 17.3% poverty rate? ### Context: CREATE TABLE table_22815568_2 (status VARCHAR, poverty_rate VARCHAR) [/INST] ### Response: SELECT status FROM table_22815568_2 WHERE poverty_rate = "17.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 is the market income per capita of the county with the 9.4% poverty rate? ### Context: CREATE TABLE table_22815568_2 (market_income_per_capita VARCHAR, poverty_rate VARCHAR) [/INST] ### Response: SELECT market_income_per_capita FROM table_22815568_2 WHERE poverty_rate = "9.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: How many status' are there with a population of 90565? ### Context: CREATE TABLE table_22815568_2 (status VARCHAR, population VARCHAR) [/INST] ### Response: SELECT COUNT(status) FROM table_22815568_2 WHERE population = 90565 </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 status of the county with per capita market income of $24,326? ### Context: CREATE TABLE table_22815568_2 (status VARCHAR, market_income_per_capita VARCHAR) [/INST] ### Response: SELECT status FROM table_22815568_2 WHERE market_income_per_capita = "$24,326" </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 unemployment rate for the county with a market income per capita of $20,958? ### Context: CREATE TABLE table_22815568_2 (unemployment_rate VARCHAR, market_income_per_capita VARCHAR) [/INST] ### Response: SELECT COUNT(unemployment_rate) FROM table_22815568_2 WHERE market_income_per_capita = "$20,958" </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: List all who wrote for production code 1ark07. ### Context: CREATE TABLE table_22835602_1 (written_by VARCHAR, production_code VARCHAR) [/INST] ### Response: SELECT written_by FROM table_22835602_1 WHERE production_code = "1ARK07" </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 directors were there for the production code 1ark08? ### Context: CREATE TABLE table_22835602_1 (directed_by VARCHAR, production_code VARCHAR) [/INST] ### Response: SELECT COUNT(directed_by) FROM table_22835602_1 WHERE production_code = "1ARK08" </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: List all directors from episodes with viewership of 1.945 million. ### Context: CREATE TABLE table_22835602_1 (directed_by VARCHAR, viewers__in_millions_ VARCHAR) [/INST] ### Response: SELECT directed_by FROM table_22835602_1 WHERE viewers__in_millions_ = "1.945" </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 production code 1ark79? ### Context: CREATE TABLE table_22835602_1 (original_air_date VARCHAR, production_code VARCHAR) [/INST] ### Response: SELECT original_air_date FROM table_22835602_1 WHERE production_code = "1ARK79" </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 rounds were there in the 2006 davis cup europe/africa group I? ### Context: CREATE TABLE table_22853654_10 (round VARCHAR, edition VARCHAR) [/INST] ### Response: SELECT COUNT(round) FROM table_22853654_10 WHERE edition = "2006 Davis Cup Europe/Africa Group I" </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 does the team play May 3? ### Context: CREATE TABLE table_22879262_13 (team VARCHAR, date VARCHAR) [/INST] ### Response: SELECT team FROM table_22879262_13 WHERE date = "May 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 team was the game on February 27 played against? ### Context: CREATE TABLE table_22879323_8 (team VARCHAR, date VARCHAR) [/INST] ### Response: SELECT team FROM table_22879323_8 WHERE date = "February 27" </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 score of the game in which Brook Lopez (8) did the high rebounds? ### Context: CREATE TABLE table_22879323_8 (score VARCHAR, high_rebounds VARCHAR) [/INST] ### Response: SELECT score FROM table_22879323_8 WHERE high_rebounds = "Brook Lopez (8)" </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 did the high assists in the game played on February 9? ### Context: CREATE TABLE table_22879323_8 (high_assists VARCHAR, date VARCHAR) [/INST] ### Response: SELECT high_assists FROM table_22879323_8 WHERE date = "February 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: What was the record in the game against Memphis? ### Context: CREATE TABLE table_22879323_8 (record VARCHAR, team VARCHAR) [/INST] ### Response: SELECT record FROM table_22879323_8 WHERE team = "Memphis" </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's the highest game number for a game in which Kris Humphries (8) did the high rebounds? ### Context: CREATE TABLE table_22879323_8 (game INTEGER, high_rebounds VARCHAR) [/INST] ### Response: SELECT MAX(game) FROM table_22879323_8 WHERE high_rebounds = "Kris Humphries (8)" </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 0-1 is the series who has the highest amount of assists? ### Context: CREATE TABLE table_22883210_11 (high_assists VARCHAR, series VARCHAR) [/INST] ### Response: SELECT high_assists FROM table_22883210_11 WHERE series = "0-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: When 5 is the game who has the highest amount of points? ### Context: CREATE TABLE table_22883210_11 (high_points VARCHAR, game VARCHAR) [/INST] ### Response: SELECT high_points FROM table_22883210_11 WHERE game = 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 1-1 is the series who is the team? ### Context: CREATE TABLE table_22883210_11 (team VARCHAR, series VARCHAR) [/INST] ### Response: SELECT team FROM table_22883210_11 WHERE series = "1-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: When george hill (29) has the highest amount of points what is the date? ### Context: CREATE TABLE table_22883210_11 (date VARCHAR, high_points VARCHAR) [/INST] ### Response: SELECT date FROM table_22883210_11 WHERE high_points = "George Hill (29)" </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 audition city for hyatt regency chicago ### Context: CREATE TABLE table_22897967_1 (audition_city VARCHAR, callback_venue VARCHAR) [/INST] ### Response: SELECT audition_city FROM table_22897967_1 WHERE callback_venue = "Hyatt Regency Chicago" </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 callback date for amway arena ### Context: CREATE TABLE table_22897967_1 (callback_date VARCHAR, audition_venue VARCHAR) [/INST] ### Response: SELECT callback_date FROM table_22897967_1 WHERE audition_venue = "Amway Arena" </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 guest judge for first audition date being july 9, 2009 ### Context: CREATE TABLE table_22897967_1 (guest_judge VARCHAR, first_audition_date VARCHAR) [/INST] ### Response: SELECT COUNT(guest_judge) FROM table_22897967_1 WHERE first_audition_date = "July 9, 2009" </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 total number of golden tickets being rosen shingle creek resort ### Context: CREATE TABLE table_22897967_1 (golden_tickets VARCHAR, callback_venue VARCHAR) [/INST] ### Response: SELECT COUNT(golden_tickets) FROM table_22897967_1 WHERE callback_venue = "Rosen Shingle Creek Resort" </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 golden ticket for invesco field ### Context: CREATE TABLE table_22897967_1 (golden_tickets VARCHAR, audition_venue VARCHAR) [/INST] ### Response: SELECT golden_tickets FROM table_22897967_1 WHERE audition_venue = "Invesco Field" </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 k. r. narayanan values for pondicherry ### Context: CREATE TABLE table_22897453_1 (kr_narayanan__values_ VARCHAR, states VARCHAR) [/INST] ### Response: SELECT kr_narayanan__values_ FROM table_22897453_1 WHERE states = "Pondicherry" </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 kr narayanan votes for values being 936 for kr ### Context: CREATE TABLE table_22897453_1 (kr_narayanan__votes_ VARCHAR, kr_narayanan__values_ VARCHAR) [/INST] ### Response: SELECT kr_narayanan__votes_ FROM table_22897453_1 WHERE kr_narayanan__values_ = 936 </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 most kr votes for value of each vote for 208 ### Context: CREATE TABLE table_22897453_1 (kr_narayanan__votes_ INTEGER, value_of_each_vote VARCHAR) [/INST] ### Response: SELECT MAX(kr_narayanan__votes_) FROM table_22897453_1 WHERE value_of_each_vote = 208 </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 tn seshan values for kr values is 478608 ### Context: CREATE TABLE table_22897453_1 (tn_seshan__values_ VARCHAR, kr_narayanan__values_ VARCHAR) [/INST] ### Response: SELECT COUNT(tn_seshan__values_) FROM table_22897453_1 WHERE kr_narayanan__values_ = 478608 </s>