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: How many times was episode 5 in the series aired on Fox int.? ### Context: CREATE TABLE table_25131572_2 (fox_int_channels_air_date VARCHAR, series__number VARCHAR) [/INST] ### Response: SELECT COUNT(fox_int_channels_air_date) FROM table_25131572_2 WHERE series__number = 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: What was the qualifying score of the competition whose final score was 12.200? ### Context: CREATE TABLE table_25143284_1 (score_qualifying VARCHAR, score_final VARCHAR) [/INST] ### Response: SELECT score_qualifying FROM table_25143284_1 WHERE score_final = "12.200" </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 was the competition with a qualifying score of 58.425? ### Context: CREATE TABLE table_25143284_1 (location VARCHAR, score_qualifying VARCHAR) [/INST] ### Response: SELECT location FROM table_25143284_1 WHERE score_qualifying = "58.425" </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 competitions had a final score of 15.650? ### Context: CREATE TABLE table_25143284_1 (competition_description VARCHAR, score_final VARCHAR) [/INST] ### Response: SELECT COUNT(competition_description) FROM table_25143284_1 WHERE score_final = "15.650" </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 was the score 7–5, 7–6 (7–5)? ### Context: CREATE TABLE table_2516282_3 (year VARCHAR, score VARCHAR) [/INST] ### Response: SELECT year FROM table_2516282_3 WHERE score = "7–5, 7–6 (7–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 the opponent was Yan Zi Jie Zheng, what was the outcome? ### Context: CREATE TABLE table_2516282_3 (outcome VARCHAR, opponents VARCHAR) [/INST] ### Response: SELECT outcome FROM table_2516282_3 WHERE opponents = "Yan Zi Jie Zheng" </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 year 2013, what was the outcome? ### Context: CREATE TABLE table_2516282_3 (outcome VARCHAR, year VARCHAR) [/INST] ### Response: SELECT outcome FROM table_2516282_3 WHERE year = 2013 </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 partner when the score was 7–5, 7–6 (7–5)? ### Context: CREATE TABLE table_2516282_3 (partner VARCHAR, score VARCHAR) [/INST] ### Response: SELECT partner FROM table_2516282_3 WHERE score = "7–5, 7–6 (7–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 the surface was Hard (i), what was the score? ### Context: CREATE TABLE table_2516282_3 (score VARCHAR, surface VARCHAR) [/INST] ### Response: SELECT score FROM table_2516282_3 WHERE surface = "Hard (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: In which championship was the partner Jie Zheng? ### Context: CREATE TABLE table_2516282_3 (championship VARCHAR, partner VARCHAR) [/INST] ### Response: SELECT championship FROM table_2516282_3 WHERE partner = "Jie Zheng" </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 number of points for associated with exactly 3 stolen ends? ### Context: CREATE TABLE table_25176088_2 (pf VARCHAR, stolen_ends VARCHAR) [/INST] ### Response: SELECT COUNT(pf) FROM table_25176088_2 WHERE stolen_ends = 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 position did a player took while weighing 170? ### Context: CREATE TABLE table_25177625_1 (position VARCHAR, weight VARCHAR) [/INST] ### Response: SELECT COUNT(position) FROM table_25177625_1 WHERE weight = 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: What were the former schools of the player from East Brunswick, NJ? ### Context: CREATE TABLE table_25177625_1 (former_school VARCHAR, hometown VARCHAR) [/INST] ### Response: SELECT former_school FROM table_25177625_1 WHERE hometown = "East Brunswick, NJ" </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 height of this Freshman with a forward position? ### Context: CREATE TABLE table_25177625_1 (height VARCHAR, position VARCHAR, year VARCHAR) [/INST] ### Response: SELECT height FROM table_25177625_1 WHERE position = "Forward" AND year = "Freshman" </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: If the date of birth is 1961-08-09 9 august 1961, what is the start date of (first) term? ### Context: CREATE TABLE table_25182437_1 (start_date_of__first__term VARCHAR, date_of_birth VARCHAR) [/INST] ### Response: SELECT start_date_of__first__term FROM table_25182437_1 WHERE date_of_birth = "1961-08-09 9 August 1961" </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: If the prime minister is Palmer, Geoffrey Geoffrey Palmer, what is the end date of (final) term? ### Context: CREATE TABLE table_25182437_1 (end_date_of__final__term VARCHAR, prime_minister VARCHAR) [/INST] ### Response: SELECT end_date_of__final__term FROM table_25182437_1 WHERE prime_minister = "Palmer, Geoffrey Geoffrey Palmer" </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 population if the city is Gilroy? ### Context: CREATE TABLE table_25200461_9 (population VARCHAR, city VARCHAR) [/INST] ### Response: SELECT population FROM table_25200461_9 WHERE city = "Gilroy" </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: If Democratic is 42.5%, what is the city? ### Context: CREATE TABLE table_25200461_9 (city VARCHAR, democratic VARCHAR) [/INST] ### Response: SELECT city FROM table_25200461_9 WHERE democratic = "42.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: If the registered voters is 66.8%, what is the minimum population? ### Context: CREATE TABLE table_25200461_9 (population INTEGER, registered_voters VARCHAR) [/INST] ### Response: SELECT MIN(population) FROM table_25200461_9 WHERE registered_voters = "66.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: What is the other is the city is Los Gatos? ### Context: CREATE TABLE table_25200461_9 (other VARCHAR, city VARCHAR) [/INST] ### Response: SELECT other FROM table_25200461_9 WHERE city = "Los Gatos" </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 d-r spread if the no party preference is 31.8%? ### Context: CREATE TABLE table_25200461_9 (d_r_spread VARCHAR, no_party_preference VARCHAR) [/INST] ### Response: SELECT d_r_spread FROM table_25200461_9 WHERE no_party_preference = "31.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: If the city is Santa Clara, what is the population total number? ### Context: CREATE TABLE table_25200461_9 (population VARCHAR, city VARCHAR) [/INST] ### Response: SELECT COUNT(population) FROM table_25200461_9 WHERE city = "Santa Clara" </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 prefecture is Susaki located? ### Context: CREATE TABLE table_2518850_4 (prefecture VARCHAR, city_town VARCHAR) [/INST] ### Response: SELECT prefecture FROM table_2518850_4 WHERE city_town = "Susaki" </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 previous years did Maebashi Ikuei high school have a total number of 1 participation? ### Context: CREATE TABLE table_2518850_4 (year_of_previous_participation VARCHAR, total_number_of_participation VARCHAR, high_school_name VARCHAR) [/INST] ### Response: SELECT COUNT(year_of_previous_participation) FROM table_2518850_4 WHERE total_number_of_participation = 1 AND high_school_name = "Maebashi Ikuei" </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 prefecture is Nihon Bunri located? ### Context: CREATE TABLE table_2518850_4 (prefecture VARCHAR, high_school_name VARCHAR) [/INST] ### Response: SELECT prefecture FROM table_2518850_4 WHERE high_school_name = "Nihon Bunri" </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 prefecture is Daito located? ### Context: CREATE TABLE table_2518850_4 (prefecture VARCHAR, city_town VARCHAR) [/INST] ### Response: SELECT prefecture FROM table_2518850_4 WHERE city_town = "Daito" </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 high school is located in Kyoto? ### Context: CREATE TABLE table_2518850_4 (high_school_name VARCHAR, prefecture VARCHAR) [/INST] ### Response: SELECT high_school_name FROM table_2518850_4 WHERE prefecture = "Kyoto" </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 year of previous participation for the school in the Kagoshima prefecture? ### Context: CREATE TABLE table_2518850_4 (year_of_previous_participation VARCHAR, prefecture VARCHAR) [/INST] ### Response: SELECT year_of_previous_participation FROM table_2518850_4 WHERE prefecture = "Kagoshima" </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 data on January 15-16 if March 27-29 is March 29, 2006? ### Context: CREATE TABLE table_25216791_3 (january_15_16 VARCHAR, march_27_29 VARCHAR) [/INST] ### Response: SELECT january_15_16 FROM table_25216791_3 WHERE march_27_29 = "March 29, 2006" </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 data on November 3, if the data on January 15-16 is January 15, 2010? ### Context: CREATE TABLE table_25216791_3 (november_3 VARCHAR, january_15_16 VARCHAR) [/INST] ### Response: SELECT november_3 FROM table_25216791_3 WHERE january_15_16 = "January 15, 2010" </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 datas were recorded on January 15-16 if August 21-22 is 155? ### Context: CREATE TABLE table_25216791_3 (january_15_16 VARCHAR, august_21_22 VARCHAR) [/INST] ### Response: SELECT COUNT(january_15_16) FROM table_25216791_3 WHERE august_21_22 = "155" </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 data on January 15-16 if the data recorded June 10-11 is June 10, 1964? ### Context: CREATE TABLE table_25216791_3 (january_15_16 VARCHAR, june_10_11 VARCHAR) [/INST] ### Response: SELECT january_15_16 FROM table_25216791_3 WHERE june_10_11 = "June 10, 1964" </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 data are on points for if the percentage is 94.29? ### Context: CREATE TABLE table_25229283_4 (points_for VARCHAR, percentage___percentage_ VARCHAR) [/INST] ### Response: SELECT COUNT(points_for) FROM table_25229283_4 WHERE percentage___percentage_ = "94.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: Who was the opponent with a points for of 177? ### Context: CREATE TABLE table_25229283_4 (opponent VARCHAR, points_for VARCHAR) [/INST] ### Response: SELECT opponent FROM table_25229283_4 WHERE points_for = 177 </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 points against if the opponent is Port Adelaide? ### Context: CREATE TABLE table_25229283_4 (points_against INTEGER, opponent VARCHAR) [/INST] ### Response: SELECT MIN(points_against) FROM table_25229283_4 WHERE opponent = "Port Adelaide" </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: If Thursday 3 June is 20' 27.93 110.615mph, what are the names of the riders? ### Context: CREATE TABLE table_25220821_3 (rider VARCHAR, thurs_3_june VARCHAR) [/INST] ### Response: SELECT rider FROM table_25220821_3 WHERE thurs_3_june = "20' 27.93 110.615mph" </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 Tuesday 1 June total number if Monday 31 May is 20' 15.35 111.761mph? ### Context: CREATE TABLE table_25220821_3 (tues_1_june VARCHAR, mon_31_may VARCHAR) [/INST] ### Response: SELECT COUNT(tues_1_june) FROM table_25220821_3 WHERE mon_31_may = "20' 15.35 111.761mph" </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 Friday 4 June if Wednesday 2 June is 20' 11.98 112.071mph? ### Context: CREATE TABLE table_25220821_3 (fri_4_june VARCHAR, wed_2_june VARCHAR) [/INST] ### Response: SELECT fri_4_june FROM table_25220821_3 WHERE wed_2_june = "20' 11.98 112.071mph" </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: If Tuesday 1 June is 21' 05.27 107.351mph, what is the rider total number? ### Context: CREATE TABLE table_25220821_3 (rider VARCHAR, tues_1_june VARCHAR) [/INST] ### Response: SELECT COUNT(rider) FROM table_25220821_3 WHERE tues_1_june = "21' 05.27 107.351mph" </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: If Tuesday 1 June is 20' 59.60 107.834mph, what is the rank maximum? ### Context: CREATE TABLE table_25220821_3 (rank INTEGER, tues_1_june VARCHAR) [/INST] ### Response: SELECT MAX(rank) FROM table_25220821_3 WHERE tues_1_june = "20' 59.60 107.834mph" </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 Friday 4 June if the Wednesday 2 June is 20' 50.62 108.608mph? ### Context: CREATE TABLE table_25220821_3 (fri_4_june VARCHAR, wed_2_june VARCHAR) [/INST] ### Response: SELECT fri_4_june FROM table_25220821_3 WHERE wed_2_june = "20' 50.62 108.608mph" </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 2 June time for the rider with time of 17' 48.58 127.111mph on 3 June? ### Context: CREATE TABLE table_25220821_4 (wed_2_june VARCHAR, thurs_3_june VARCHAR) [/INST] ### Response: SELECT wed_2_june FROM table_25220821_4 WHERE thurs_3_june = "17' 48.58 127.111mph" </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 times are listed for 31 May for the rider ranked 5? ### Context: CREATE TABLE table_25220821_4 (mon_31_may VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT COUNT(mon_31_may) FROM table_25220821_4 WHERE rank = 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: What is the 3 June time for the rider with 2 June time of 17' 45.11 127.525mph? ### Context: CREATE TABLE table_25220821_4 (thurs_3_june VARCHAR, wed_2_june VARCHAR) [/INST] ### Response: SELECT thurs_3_june FROM table_25220821_4 WHERE wed_2_june = "17' 45.11 127.525mph" </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 ranked 2? ### Context: CREATE TABLE table_25220821_4 (rider VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT rider FROM table_25220821_4 WHERE rank = 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 times does November 3rd occur when January 15, 1991 does? ### Context: CREATE TABLE table_25235489_2 (november_3 VARCHAR, january_15_16 VARCHAR) [/INST] ### Response: SELECT COUNT(november_3) FROM table_25235489_2 WHERE january_15_16 = "January 15, 1991" </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 November is 153 what is the March number? ### Context: CREATE TABLE table_25235489_2 (march_27_29 VARCHAR, november_3 VARCHAR) [/INST] ### Response: SELECT march_27_29 FROM table_25235489_2 WHERE november_3 = "153" </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 times does an occurance happen in June when it happens on NOvember 3, 1975? ### Context: CREATE TABLE table_25235489_2 (june_10_11 VARCHAR, november_3 VARCHAR) [/INST] ### Response: SELECT COUNT(june_10_11) FROM table_25235489_2 WHERE november_3 = "november_3, 1975" </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 march is 129 what is the August number? ### Context: CREATE TABLE table_25235489_2 (august_21_22 VARCHAR, march_27_29 VARCHAR) [/INST] ### Response: SELECT august_21_22 FROM table_25235489_2 WHERE march_27_29 = "129" </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 numbers are there for August when March is 139? ### Context: CREATE TABLE table_25235489_2 (august_21_22 VARCHAR, march_27_29 VARCHAR) [/INST] ### Response: SELECT COUNT(august_21_22) FROM table_25235489_2 WHERE march_27_29 = "139" </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 have been in Topperserien for 8 seasons? ### Context: CREATE TABLE table_2522473_1 (team VARCHAR, seasons VARCHAR) [/INST] ### Response: SELECT COUNT(team) FROM table_2522473_1 WHERE seasons = 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: What is the maximum number of seasons for any team? ### Context: CREATE TABLE table_2522473_1 (seasons INTEGER) [/INST] ### Response: SELECT MAX(seasons) FROM table_2522473_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: Which teams homeeground is Stemmemyren? ### Context: CREATE TABLE table_2522473_1 (team VARCHAR, home_ground VARCHAR) [/INST] ### Response: SELECT team FROM table_2522473_1 WHERE home_ground = "Stemmemyren" </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 home ground for the team whose home city is Trondheim with 27 seasons? ### Context: CREATE TABLE table_2522473_1 (home_ground VARCHAR, seasons VARCHAR, home_city VARCHAR) [/INST] ### Response: SELECT home_ground FROM table_2522473_1 WHERE seasons = 27 AND home_city = "Trondheim" </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 home city for the team whose home ground is dnb nor arena? ### Context: CREATE TABLE table_2522473_1 (home_city VARCHAR, home_ground VARCHAR) [/INST] ### Response: SELECT home_city FROM table_2522473_1 WHERE home_ground = "DnB Nor 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: What Home city has the home ground Klepp stadion? ### Context: CREATE TABLE table_2522473_1 (home_city VARCHAR, home_ground VARCHAR) [/INST] ### Response: SELECT home_city FROM table_2522473_1 WHERE home_ground = "Klepp Stadion" </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 data was given the total electricity in GW-h if the renewable electricity w/o hydro (GW-h) is 3601? ### Context: CREATE TABLE table_25244412_2 (total_electricity__gw VARCHAR, renewable_electricity_w_o_hydro__gw·h_ VARCHAR) [/INST] ### Response: SELECT COUNT(total_electricity__gw) AS ·h_ FROM table_25244412_2 WHERE renewable_electricity_w_o_hydro__gw·h_ = 3601 </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 data was given the total electricity in GW-h if % renewable is 92.3%? ### Context: CREATE TABLE table_25244412_2 (total_electricity__gw VARCHAR, _percentage_renewable VARCHAR) [/INST] ### Response: SELECT COUNT(total_electricity__gw) AS ·h_ FROM table_25244412_2 WHERE _percentage_renewable = "92.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 much was the minimum renewable electricity (GW-h) that is ranked 36? ### Context: CREATE TABLE table_25244412_2 (renewable_electricity__gw INTEGER, rank VARCHAR) [/INST] ### Response: SELECT MIN(renewable_electricity__gw) AS ·h_ FROM table_25244412_2 WHERE rank = 36 </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 state with the total electricity generated is 38380 gw-h? ### Context: CREATE TABLE table_25244412_2 (state VARCHAR, total_electricity__gw·h_ VARCHAR) [/INST] ### Response: SELECT state FROM table_25244412_2 WHERE total_electricity__gw·h_ = 38380 </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 episode in the series had a production code of 111? ### Context: CREATE TABLE table_25246990_2 (no_in_series VARCHAR, prod_code VARCHAR) [/INST] ### Response: SELECT no_in_series FROM table_25246990_2 WHERE prod_code = "111" </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 episode in the series had a production code of 110? ### Context: CREATE TABLE table_25246990_2 (no_in_series VARCHAR, prod_code VARCHAR) [/INST] ### Response: SELECT no_in_series FROM table_25246990_2 WHERE prod_code = "110" </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 U.S. viewers in millions watched the number 7 episode in the series that was written by Jed Spingarn? ### Context: CREATE TABLE table_25246990_2 (us_viewers__millions_ VARCHAR, written_by VARCHAR, no_in_series VARCHAR) [/INST] ### Response: SELECT us_viewers__millions_ FROM table_25246990_2 WHERE written_by = "Jed Spingarn" AND no_in_series = "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 was the original U.S. air date of the episode directed by Julian Petrillo? ### Context: CREATE TABLE table_25246990_5 (original_us_air_date VARCHAR, directed_by VARCHAR) [/INST] ### Response: SELECT original_us_air_date FROM table_25246990_5 WHERE directed_by = "Julian Petrillo" </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 different original U.S. air dates appear where the U.S. viewers were 2.5 million? ### Context: CREATE TABLE table_25246990_5 (original_us_air_date VARCHAR, us_viewers__millions_ VARCHAR) [/INST] ### Response: SELECT COUNT(original_us_air_date) FROM table_25246990_5 WHERE us_viewers__millions_ = "2.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: How many U.S. viewers were there for the episode written by Lazar Saric & Jed Spingarn? ### Context: CREATE TABLE table_25246990_5 (us_viewers__millions_ VARCHAR, written_by VARCHAR) [/INST] ### Response: SELECT us_viewers__millions_ FROM table_25246990_5 WHERE written_by = "Lazar Saric & Jed Spingarn" </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 U.S. viewers were there for the number 4 episode in season? ### Context: CREATE TABLE table_25246990_5 (us_viewers__millions_ VARCHAR, no_in_season VARCHAR) [/INST] ### Response: SELECT us_viewers__millions_ FROM table_25246990_5 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: Name the least rank ### Context: CREATE TABLE table_2527063_3 (rank INTEGER) [/INST] ### Response: SELECT MIN(rank) FROM table_2527063_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: Name the growth rate for hooghly ### Context: CREATE TABLE table_2527063_3 (growth_rate VARCHAR, district VARCHAR) [/INST] ### Response: SELECT growth_rate FROM table_2527063_3 WHERE district = "Hooghly" </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 rank for east midnapore ### Context: CREATE TABLE table_2527063_3 (rank VARCHAR, district VARCHAR) [/INST] ### Response: SELECT COUNT(rank) FROM table_2527063_3 WHERE district = "East Midnapore" </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 rank for growth raate for 14.47 ### Context: CREATE TABLE table_2527063_3 (rank VARCHAR, growth_rate VARCHAR) [/INST] ### Response: SELECT COUNT(rank) FROM table_2527063_3 WHERE growth_rate = "14.47" </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 champion of the 1994 season? ### Context: CREATE TABLE table_2527617_1 (champion VARCHAR, season VARCHAR) [/INST] ### Response: SELECT champion FROM table_2527617_1 WHERE season = 1994 </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 best player in the 1998 season? ### Context: CREATE TABLE table_2527617_1 (best_player VARCHAR, season VARCHAR) [/INST] ### Response: SELECT best_player FROM table_2527617_1 WHERE season = 1998 </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 largest index the year/s forcible rapes numbered 1084? ### Context: CREATE TABLE table_25271777_1 (index INTEGER, forcible_rape VARCHAR) [/INST] ### Response: SELECT MAX(index) FROM table_25271777_1 WHERE forcible_rape = 1084 </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 violent catagories are listed for the year forcible rapes were 1156? ### Context: CREATE TABLE table_25271777_1 (violent VARCHAR, forcible_rape VARCHAR) [/INST] ### Response: SELECT COUNT(violent) FROM table_25271777_1 WHERE forcible_rape = 1156 </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 largest number of aggravated assaults when there were 3811 robberies? ### Context: CREATE TABLE table_25271777_1 (aggravated_assault INTEGER, robbery VARCHAR) [/INST] ### Response: SELECT MAX(aggravated_assault) FROM table_25271777_1 WHERE robbery = 3811 </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 number of murders the year forcible rapes were at 166? ### Context: CREATE TABLE table_25271777_1 (murder VARCHAR, forcible_rape VARCHAR) [/INST] ### Response: SELECT murder FROM table_25271777_1 WHERE forcible_rape = 166 </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 violent crimes occurred the year that the index was 191037? ### Context: CREATE TABLE table_25271777_1 (violent VARCHAR, index VARCHAR) [/INST] ### Response: SELECT violent FROM table_25271777_1 WHERE index = 191037 </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 episode number 149 in the series? ### Context: CREATE TABLE table_25277363_2 (written_by VARCHAR, no_in_series VARCHAR) [/INST] ### Response: SELECT written_by FROM table_25277363_2 WHERE no_in_series = 149 </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 title did Bill Foster direct ? ### Context: CREATE TABLE table_25276528_2 (title VARCHAR, directed_by VARCHAR) [/INST] ### Response: SELECT title FROM table_25276528_2 WHERE directed_by = "Bill Foster" </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: Kim Weiskopf and Jeff Franklin wrote all the no. in series. ### Context: CREATE TABLE table_25276528_2 (no_in_series VARCHAR, written_by VARCHAR) [/INST] ### Response: SELECT no_in_series FROM table_25276528_2 WHERE written_by = "Kim Weiskopf and Jeff Franklin" </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 co-stars did Kalyanji-anandji direct in 1963? ### Context: CREATE TABLE table_2528382_2 (co_stars VARCHAR, music_director VARCHAR, year VARCHAR) [/INST] ### Response: SELECT co_stars FROM table_2528382_2 WHERE music_director = "Kalyanji-Anandji" AND year = "1963" </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 co-singers appear in the movie Pyaasa? ### Context: CREATE TABLE table_2528382_2 (Co VARCHAR, singers VARCHAR, movie_album VARCHAR) [/INST] ### Response: SELECT Co - singers FROM table_2528382_2 WHERE movie_album = "Pyaasa" </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 additional information in the song mera yaar bana hai dulha ### Context: CREATE TABLE table_2528382_2 (additional_info VARCHAR, song VARCHAR) [/INST] ### Response: SELECT additional_info FROM table_2528382_2 WHERE song = "Mera Yaar Bana Hai Dulha" </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 which years are co-stars mala sinha and amitabh bachchan? ### Context: CREATE TABLE table_2528382_2 (year VARCHAR, co_stars VARCHAR) [/INST] ### Response: SELECT year FROM table_2528382_2 WHERE co_stars = "Mala Sinha and Amitabh Bachchan" </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 song has Drunkard Groom listed as additional information? ### Context: CREATE TABLE table_2528382_1 (song VARCHAR, additional_info VARCHAR) [/INST] ### Response: SELECT song FROM table_2528382_1 WHERE additional_info = "Drunkard Groom" </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 lyricist for the song with music directed by madan mohan kohli? ### Context: CREATE TABLE table_2528382_1 (lyricist VARCHAR, music_director VARCHAR) [/INST] ### Response: SELECT lyricist FROM table_2528382_1 WHERE music_director = "Madan Mohan Kohli" </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 song directed by datta naik had the ending stranza written by Johnny Walker? ### Context: CREATE TABLE table_2528382_1 (additional_info VARCHAR, music_director VARCHAR) [/INST] ### Response: SELECT additional_info FROM table_2528382_1 WHERE music_director = "Datta Naik" </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 which album can Dil De De Nahin Nahin Dil Le Le be found? ### Context: CREATE TABLE table_2528382_1 (movie_album VARCHAR, song VARCHAR) [/INST] ### Response: SELECT movie_album FROM table_2528382_1 WHERE song = "Dil De De Nahin Nahin Dil Le Le" </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 GDP for 2002-2005 for the construction center? ### Context: CREATE TABLE table_25282151_1 (supply_sector___percentage_of_gdp_in_current_prices_ VARCHAR) [/INST] ### Response: SELECT 2002 AS _2005 FROM table_25282151_1 WHERE supply_sector___percentage_of_gdp_in_current_prices_ = "Construction" </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 November 3 result when June 10-11 is 147? ### Context: CREATE TABLE table_25284864_3 (november_3 VARCHAR, june_10_11 VARCHAR) [/INST] ### Response: SELECT november_3 FROM table_25284864_3 WHERE june_10_11 = "147" </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 November 3 result when the result for January 15-16 is 141? ### Context: CREATE TABLE table_25284864_3 (november_3 VARCHAR, january_15_16 VARCHAR) [/INST] ### Response: SELECT november_3 FROM table_25284864_3 WHERE january_15_16 = "141" </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 June 10-11 is is that corresponds to March 28, 1968? ### Context: CREATE TABLE table_25284864_3 (june_10_11 VARCHAR, march_27_29 VARCHAR) [/INST] ### Response: SELECT june_10_11 FROM table_25284864_3 WHERE march_27_29 = "March 28, 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 January 15-16 is is that corresponds to November 3, 2013? ### Context: CREATE TABLE table_25284864_3 (january_15_16 VARCHAR, november_3 VARCHAR) [/INST] ### Response: SELECT january_15_16 FROM table_25284864_3 WHERE november_3 = "november_3, 2013" </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 127 is on June 10th to 11th what is November 3rd? ### Context: CREATE TABLE table_25286976_2 (november_3 VARCHAR, june_10_11 VARCHAR) [/INST] ### Response: SELECT november_3 FROM table_25286976_2 WHERE june_10_11 = "127" </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 129 is on March 27th to 29th what is June 10th to 11th? ### Context: CREATE TABLE table_25286976_2 (june_10_11 VARCHAR, march_27_29 VARCHAR) [/INST] ### Response: SELECT june_10_11 FROM table_25286976_2 WHERE march_27_29 = "129" </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 139 is on March 27th to 29th what is August 21st to 22nd? ### Context: CREATE TABLE table_25286976_2 (august_21_22 VARCHAR, march_27_29 VARCHAR) [/INST] ### Response: SELECT august_21_22 FROM table_25286976_2 WHERE march_27_29 = "139" </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: During November 3 where august 21-22 is august 21, 2017? ### Context: CREATE TABLE table_25287007_2 (november_3 VARCHAR, august_21_22 VARCHAR) [/INST] ### Response: SELECT november_3 FROM table_25287007_2 WHERE august_21_22 = "August 21, 2017" </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 solar eclipse on June 10-11, while November 3 is 153? ### Context: CREATE TABLE table_25287007_2 (june_10_11 VARCHAR, november_3 VARCHAR) [/INST] ### Response: SELECT june_10_11 FROM table_25287007_2 WHERE november_3 = "153" </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 solar eclipse during August 21-22 where June 10-11 on June 11, 1983? ### Context: CREATE TABLE table_25287007_2 (august_21_22 VARCHAR, june_10_11 VARCHAR) [/INST] ### Response: SELECT COUNT(august_21_22) FROM table_25287007_2 WHERE june_10_11 = "June 11, 1983" </s>