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: When rudolph kleberg (d) is the successor what is the date of successors taking office? ### Context: CREATE TABLE table_2417445_4 (date_of_successors_taking_office VARCHAR, successor VARCHAR) [/INST] ### Response: SELECT date_of_successors_taking_office FROM table_2417445_4 WHERE successor = "Rudolph Kleberg (D)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 geographical region is contestant laura jiménez ynoa from? ### Context: CREATE TABLE table_24192031_2 (geographical_regions VARCHAR, contestant VARCHAR) [/INST] ### Response: SELECT geographical_regions FROM table_24192031_2 WHERE contestant = "Laura Jiménez Ynoa" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 hometowns have a height of m (ft 10 1⁄2 in)? ### Context: CREATE TABLE table_24192031_2 (hometown VARCHAR, height VARCHAR) [/INST] ### Response: SELECT COUNT(hometown) FROM table_24192031_2 WHERE height = "m (ft 10 1⁄2 in)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 old is the person with the height of m (ft 3⁄4 in)? ### Context: CREATE TABLE table_24192031_2 (age VARCHAR, height VARCHAR) [/INST] ### Response: SELECT age FROM table_24192031_2 WHERE height = "m (ft 3⁄4 in)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 viewers in millions for the broadcast from 2010? ### Context: CREATE TABLE table_24212608_1 (viewers__millions_ VARCHAR, broadcast_date VARCHAR) [/INST] ### Response: SELECT viewers__millions_ FROM table_24212608_1 WHERE broadcast_date = 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: Who starred in episode 3? ### Context: CREATE TABLE table_24212608_1 (starring VARCHAR, episode VARCHAR) [/INST] ### Response: SELECT starring FROM table_24212608_1 WHERE episode = 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 episodes were broadcast in 2010? ### Context: CREATE TABLE table_24212608_1 (episode VARCHAR, broadcast_date VARCHAR) [/INST] ### Response: SELECT COUNT(episode) FROM table_24212608_1 WHERE broadcast_date = 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: Who was the radio 1 presenter for the broadcast that had 9.73 million viewers? ### Context: CREATE TABLE table_24212608_1 (radio_1_presenter VARCHAR, viewers__millions_ VARCHAR) [/INST] ### Response: SELECT radio_1_presenter FROM table_24212608_1 WHERE viewers__millions_ = "9.73" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the powertrain for kmd and c40lf ### Context: CREATE TABLE table_24193494_3 (powertrain__engine_transmission_ VARCHAR, division VARCHAR, model VARCHAR) [/INST] ### Response: SELECT powertrain__engine_transmission_ FROM table_24193494_3 WHERE division = "KMD" AND model = "C40LF" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 division for detroit diesel series 50egr allison wb-400r ### Context: CREATE TABLE table_24193494_3 (division VARCHAR, powertrain__engine_transmission_ VARCHAR) [/INST] ### Response: SELECT division FROM table_24193494_3 WHERE powertrain__engine_transmission_ = "Detroit Diesel Series 50EGR Allison WB-400R" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 manufacturer for 2011 ### Context: CREATE TABLE table_24193494_3 (manufacturer VARCHAR, order_year VARCHAR) [/INST] ### Response: SELECT manufacturer FROM table_24193494_3 WHERE order_year = 2011 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 the number of locations for the team known as the billikens. ### Context: CREATE TABLE table_2419754_1 (location VARCHAR, nickname VARCHAR) [/INST] ### Response: SELECT COUNT(location) FROM table_2419754_1 WHERE nickname = "Billikens" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 people are enrolled at the university in milwaukee, wisconsin ### Context: CREATE TABLE table_2419754_1 (enrollment INTEGER, location VARCHAR) [/INST] ### Response: SELECT MIN(enrollment) FROM table_2419754_1 WHERE location = "Milwaukee, Wisconsin" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 did the teams leave the conference? ### Context: CREATE TABLE table_2419754_1 (left INTEGER) [/INST] ### Response: SELECT MAX(left) FROM table_2419754_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 university team is referred to as the tigers? ### Context: CREATE TABLE table_2419754_1 (institution VARCHAR, nickname VARCHAR) [/INST] ### Response: SELECT institution FROM table_2419754_1 WHERE nickname = "Tigers" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 43.048° n is the latitude what is the magnitude? ### Context: CREATE TABLE table_24192190_1 (magnitude VARCHAR, latitude VARCHAR) [/INST] ### Response: SELECT magnitude FROM table_24192190_1 WHERE latitude = "43.048° N" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 9:47:38 is the time (utc) how many measurements of latitude are there? ### Context: CREATE TABLE table_24192190_1 (latitude VARCHAR, time__utc_ VARCHAR) [/INST] ### Response: SELECT COUNT(latitude) FROM table_24192190_1 WHERE time__utc_ = "9:47:38" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 42.903° n is the latitude how many measurements of longitude are there? ### Context: CREATE TABLE table_24192190_1 (longitude VARCHAR, latitude VARCHAR) [/INST] ### Response: SELECT COUNT(longitude) FROM table_24192190_1 WHERE latitude = "42.903° N" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 11:40:26 is the time (utc) what is the depth? ### Context: CREATE TABLE table_24192190_1 (depth VARCHAR, time__utc_ VARCHAR) [/INST] ### Response: SELECT depth FROM table_24192190_1 WHERE time__utc_ = "11:40:26" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who is every main presenter for the year 2011? ### Context: CREATE TABLE table_24224647_2 (main_presenter VARCHAR, year_premiered VARCHAR) [/INST] ### Response: SELECT main_presenter FROM table_24224647_2 WHERE year_premiered = 2011 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who is every main presenter for the Estonia region/country? ### Context: CREATE TABLE table_24224647_2 (main_presenter VARCHAR, region_country VARCHAR) [/INST] ### Response: SELECT main_presenter FROM table_24224647_2 WHERE region_country = "Estonia" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the highest year premiered for the TV2 network when main present is øyvind mund? ### Context: CREATE TABLE table_24224647_2 (year_premiered INTEGER, network VARCHAR, main_presenter VARCHAR) [/INST] ### Response: SELECT MAX(year_premiered) FROM table_24224647_2 WHERE network = "TV2" AND main_presenter = "Øyvind Mund" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many years premiered have Sa Beining as main presenter? ### Context: CREATE TABLE table_24224647_2 (year_premiered VARCHAR, main_presenter VARCHAR) [/INST] ### Response: SELECT COUNT(year_premiered) FROM table_24224647_2 WHERE main_presenter = "Sa Beining" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is every year premiered when Behzat Uighur is main presenter? ### Context: CREATE TABLE table_24224647_2 (year_premiered VARCHAR, main_presenter VARCHAR) [/INST] ### Response: SELECT year_premiered FROM table_24224647_2 WHERE main_presenter = "Behzat Uighur" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the highest year premiered when Benjamin Castaldi is main presenter? ### Context: CREATE TABLE table_24224647_2 (year_premiered INTEGER, main_presenter VARCHAR) [/INST] ### Response: SELECT MAX(year_premiered) FROM table_24224647_2 WHERE main_presenter = "Benjamin Castaldi" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 episode number for tasers and mind erasers ### Context: CREATE TABLE table_24222929_4 (episode_number_production_number VARCHAR, title VARCHAR) [/INST] ### Response: SELECT episode_number_production_number FROM table_24222929_4 WHERE title = "Tasers and Mind Erasers" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 original air date for 7 1-07 ### Context: CREATE TABLE table_24222929_4 (original_airdate VARCHAR, episode_number_production_number VARCHAR) [/INST] ### Response: SELECT original_airdate FROM table_24222929_4 WHERE episode_number_production_number = "7 1-07" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the total viewers on hallmark for pilot ### Context: CREATE TABLE table_24222929_4 (total_viewers_on_hallmark VARCHAR, title VARCHAR) [/INST] ### Response: SELECT total_viewers_on_hallmark + 1 FROM table_24222929_4 WHERE title = "Pilot" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 rank on channel mooning and crooning ### Context: CREATE TABLE table_24222929_4 (rank_on_channel VARCHAR, title VARCHAR) [/INST] ### Response: SELECT rank_on_channel FROM table_24222929_4 WHERE title = "Mooning and Crooning" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 rank on channel for pilot ### Context: CREATE TABLE table_24222929_4 (rank_on_channel VARCHAR, title VARCHAR) [/INST] ### Response: SELECT rank_on_channel FROM table_24222929_4 WHERE title = "Pilot" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 manner of departure for the team racing santander? ### Context: CREATE TABLE table_24231638_3 (manner_of_departure VARCHAR, team VARCHAR) [/INST] ### Response: SELECT manner_of_departure FROM table_24231638_3 WHERE team = "Racing Santander" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 replaced on the date of appointment 2 november 2010? ### Context: CREATE TABLE table_24231638_3 (replaced_by VARCHAR, date_of_appointment VARCHAR) [/INST] ### Response: SELECT replaced_by FROM table_24231638_3 WHERE date_of_appointment = "2 November 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: What is the team for the position in table 19th? ### Context: CREATE TABLE table_24231638_3 (team VARCHAR, position_in_table VARCHAR) [/INST] ### Response: SELECT team FROM table_24231638_3 WHERE position_in_table = "19th" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 team that the replaced by is miroslav đukić? ### Context: CREATE TABLE table_24231638_3 (team VARCHAR, replaced_by VARCHAR) [/INST] ### Response: SELECT team FROM table_24231638_3 WHERE replaced_by = "Miroslav Đukić" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 the date of vacancy 14 february 2011? ### Context: CREATE TABLE table_24231638_3 (position_in_table VARCHAR, date_of_vacancy VARCHAR) [/INST] ### Response: SELECT COUNT(position_in_table) FROM table_24231638_3 WHERE date_of_vacancy = "14 February 2011" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 of appointment for the team osasuna? ### Context: CREATE TABLE table_24231638_3 (date_of_appointment VARCHAR, team VARCHAR) [/INST] ### Response: SELECT date_of_appointment FROM table_24231638_3 WHERE team = "Osasuna" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the lowest amount of L in any season? ### Context: CREATE TABLE table_24224991_2 (l INTEGER) [/INST] ### Response: SELECT MIN(l) FROM table_24224991_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: Name the total number of votes for 3rd voted out day 9 ### Context: CREATE TABLE table_24233848_2 (vote VARCHAR, finish VARCHAR) [/INST] ### Response: SELECT COUNT(vote) FROM table_24233848_2 WHERE finish = "3rd voted Out Day 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: Name the eliminated 7th voted out day 21 ### Context: CREATE TABLE table_24233848_2 (eliminated VARCHAR, finish VARCHAR) [/INST] ### Response: SELECT eliminated FROM table_24233848_2 WHERE finish = "7th voted Out Day 21" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 vote for thiago ### Context: CREATE TABLE table_24233848_2 (vote VARCHAR, eliminated VARCHAR) [/INST] ### Response: SELECT vote FROM table_24233848_2 WHERE eliminated = "Thiago" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 vote for 9th voted out day 22 ### Context: CREATE TABLE table_24233848_2 (vote VARCHAR, finish VARCHAR) [/INST] ### Response: SELECT vote FROM table_24233848_2 WHERE finish = "9th voted Out Day 22" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the reward eliminated hilca ### Context: CREATE TABLE table_24233848_2 (reward VARCHAR, eliminated VARCHAR) [/INST] ### Response: SELECT reward FROM table_24233848_2 WHERE eliminated = "Hilca" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 country is vest, what were the exports? ### Context: CREATE TABLE table_24239748_2 (exports__us$_mil_ VARCHAR, county VARCHAR) [/INST] ### Response: SELECT exports__us$_mil_ FROM table_24239748_2 WHERE county = "Vest" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 major version when the webkit version was 528.17? ### Context: CREATE TABLE table_24257833_4 (major_version VARCHAR, webkit_version VARCHAR) [/INST] ### Response: SELECT major_version FROM table_24257833_4 WHERE webkit_version = "528.17" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 major versions released on May 12, 2009, that had a minor version of 3.2.3. ### Context: CREATE TABLE table_24257833_4 (major_version VARCHAR, release_date VARCHAR, minor_version VARCHAR) [/INST] ### Response: SELECT major_version FROM table_24257833_4 WHERE release_date = "May 12, 2009" AND minor_version = "3.2.3" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the minor version released on April 16, 2008? ### Context: CREATE TABLE table_24257833_4 (minor_version VARCHAR, release_date VARCHAR) [/INST] ### Response: SELECT minor_version FROM table_24257833_4 WHERE release_date = "April 16, 2008" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 webkit versions when the major version was Safari 3, and the minor version was 3.1.2. ### Context: CREATE TABLE table_24257833_4 (webkit_version VARCHAR, major_version VARCHAR, minor_version VARCHAR) [/INST] ### Response: SELECT webkit_version FROM table_24257833_4 WHERE major_version = "Safari 3" AND minor_version = "3.1.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: List all OS's with a webkit version of 525.29.1. ### Context: CREATE TABLE table_24257833_4 (operating_system VARCHAR, webkit_version VARCHAR) [/INST] ### Response: SELECT operating_system FROM table_24257833_4 WHERE webkit_version = "525.29.1" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the webkit version when the minor version was 3.1.2.? ### Context: CREATE TABLE table_24257833_4 (webkit_version VARCHAR, minor_version VARCHAR) [/INST] ### Response: SELECT webkit_version FROM table_24257833_4 WHERE minor_version = "3.1.2" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the main legion base for the Romans when the notes were "primigenia goddess of fate. xx in batavi revolt"? ### Context: CREATE TABLE table_242785_3 (main_legion_base VARCHAR, notes VARCHAR) [/INST] ### Response: SELECT main_legion_base FROM table_242785_3 WHERE notes = "Primigenia goddess of Fate. XX in Batavi revolt" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 notes during 57 bc caesar? ### Context: CREATE TABLE table_242785_3 (notes VARCHAR, date_founded__founder VARCHAR) [/INST] ### Response: SELECT notes FROM table_242785_3 WHERE date_founded__founder = "57 BC Caesar" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 founded/founder when the emblem was Hercules? ### Context: CREATE TABLE table_242785_3 (date_founded__founder VARCHAR, emblem VARCHAR) [/INST] ### Response: SELECT date_founded__founder FROM table_242785_3 WHERE emblem = "Hercules" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 main legion base that disbanded 70 xx? ### Context: CREATE TABLE table_242785_3 (main_legion_base VARCHAR, date_disband VARCHAR) [/INST] ### Response: SELECT main_legion_base FROM table_242785_3 WHERE date_disband = "70 XX" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 svishtov , bulgaria disband? ### Context: CREATE TABLE table_242785_1 (date_disband VARCHAR, main_legionary_base VARCHAR) [/INST] ### Response: SELECT date_disband FROM table_242785_1 WHERE main_legionary_base = "Svishtov , Bulgaria" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 notes are prima italica:raised for aborted caucasus war, when was that founded? ### Context: CREATE TABLE table_242785_1 (date_founded__founder VARCHAR, notes VARCHAR) [/INST] ### Response: SELECT date_founded__founder FROM table_242785_1 WHERE notes = "prima Italica:raised for aborted Caucasus war" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 notes for svishtov , bulgaria? ### Context: CREATE TABLE table_242785_1 (notes VARCHAR, main_legionary_base VARCHAR) [/INST] ### Response: SELECT notes FROM table_242785_1 WHERE main_legionary_base = "Svishtov , Bulgaria" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the team ranked 4 ### Context: CREATE TABLE table_242813_2 (team VARCHAR, overall_rank VARCHAR) [/INST] ### Response: SELECT COUNT(team) FROM table_242813_2 WHERE overall_rank = 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 league for strikeouts being 451 ### Context: CREATE TABLE table_242813_2 (league VARCHAR, strikeouts VARCHAR) [/INST] ### Response: SELECT league FROM table_242813_2 WHERE strikeouts = 451 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 overall rank for nl/ua league ### Context: CREATE TABLE table_242813_2 (overall_rank INTEGER, league VARCHAR) [/INST] ### Response: SELECT MAX(overall_rank) FROM table_242813_2 WHERE league = "NL/UA" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 pitcher for 9 overall rank ### Context: CREATE TABLE table_242813_2 (pitcher VARCHAR, overall_rank VARCHAR) [/INST] ### Response: SELECT COUNT(pitcher) FROM table_242813_2 WHERE overall_rank = 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: Name the most season for old hoss radbourn ### Context: CREATE TABLE table_242813_2 (season INTEGER, pitcher VARCHAR) [/INST] ### Response: SELECT MAX(season) FROM table_242813_2 WHERE pitcher = "Old Hoss Radbourn" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 week did they play the amsterdam admirals? ### Context: CREATE TABLE table_24278858_2 (week INTEGER, opponent VARCHAR) [/INST] ### Response: SELECT MAX(week) FROM table_24278858_2 WHERE opponent = "Amsterdam Admirals" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 team play on week 8? ### Context: CREATE TABLE table_24278858_2 (date VARCHAR, week VARCHAR) [/INST] ### Response: SELECT date FROM table_24278858_2 WHERE week = 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 country has the most height in the northwestern peak of rysy? ### Context: CREATE TABLE table_24285393_1 (country_or_region VARCHAR, highest_point VARCHAR) [/INST] ### Response: SELECT country_or_region FROM table_24285393_1 WHERE highest_point = "Northwestern peak of Rysy" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 highest point in latvia ### Context: CREATE TABLE table_24285393_1 (highest_point VARCHAR, country_or_region VARCHAR) [/INST] ### Response: SELECT highest_point FROM table_24285393_1 WHERE country_or_region = "Latvia" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 elevation in netherlands? ### Context: CREATE TABLE table_24285393_1 (maximum_elevation VARCHAR, country_or_region VARCHAR) [/INST] ### Response: SELECT maximum_elevation FROM table_24285393_1 WHERE country_or_region = "Netherlands" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 country is mont sokbaro a highest point ### Context: CREATE TABLE table_24285393_1 (country_or_region VARCHAR, highest_point VARCHAR) [/INST] ### Response: SELECT country_or_region FROM table_24285393_1 WHERE highest_point = "Mont Sokbaro" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 third place held by drnovice? ### Context: CREATE TABLE table_2429942_2 (club VARCHAR, third_place VARCHAR) [/INST] ### Response: SELECT COUNT(club) FROM table_2429942_2 WHERE third_place = "Drnovice" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 top goalscorer for the season 2010-11? ### Context: CREATE TABLE table_2429942_2 (top_goalscorer VARCHAR, season VARCHAR) [/INST] ### Response: SELECT top_goalscorer FROM table_2429942_2 WHERE season = "2010-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: Who had third place when the champions is baník ostrava (1)? ### Context: CREATE TABLE table_2429942_2 (third_place VARCHAR, champions VARCHAR) [/INST] ### Response: SELECT third_place FROM table_2429942_2 WHERE champions = "Baník Ostrava (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 was the top goalscorer for season 2001-02? ### Context: CREATE TABLE table_2429942_2 (top_goalscorer VARCHAR, season VARCHAR) [/INST] ### Response: SELECT top_goalscorer FROM table_2429942_2 WHERE season = "2001-02" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who is the runner-up for the season 2008-09? ### Context: CREATE TABLE table_2429942_2 (runner_up VARCHAR, season VARCHAR) [/INST] ### Response: SELECT runner_up FROM table_2429942_2 WHERE season = "2008-09" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 top goalscorer for season 1998-99? ### Context: CREATE TABLE table_2429942_2 (top_goalscorer VARCHAR, season VARCHAR) [/INST] ### Response: SELECT top_goalscorer FROM table_2429942_2 WHERE season = "1998-99" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 written by for john trefor ### Context: CREATE TABLE table_2430014_6 (written_by VARCHAR, directed_by VARCHAR) [/INST] ### Response: SELECT written_by FROM table_2430014_6 WHERE directed_by = "John Trefor" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 worked on the episode with 2.27m (5) is the ratings? ### Context: CREATE TABLE table_2430014_8 (directed_by VARCHAR, uk_ratings__bbc2_rank_ VARCHAR) [/INST] ### Response: SELECT COUNT(directed_by) FROM table_2430014_8 WHERE uk_ratings__bbc2_rank_ = "2.27m (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 title of episode 2? ### Context: CREATE TABLE table_2430014_8 (title VARCHAR, episode_no VARCHAR) [/INST] ### Response: SELECT title FROM table_2430014_8 WHERE episode_no = 2 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who wrote the episode what had the rating 2.27m (5)? ### Context: CREATE TABLE table_2430014_8 (written_by VARCHAR, uk_ratings__bbc2_rank_ VARCHAR) [/INST] ### Response: SELECT written_by FROM table_2430014_8 WHERE uk_ratings__bbc2_rank_ = "2.27m (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: Name the 2013 profit for assets being 11.2 ### Context: CREATE TABLE table_24307126_3 (assets_2013__bil$_ VARCHAR) [/INST] ### Response: SELECT 2013 AS _profit__mil_usd__ FROM table_24307126_3 WHERE assets_2013__bil$_ = "11.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: Name the assets when the rank is 1435 ### Context: CREATE TABLE table_24307126_3 (assets_2013__bil$_ VARCHAR, rank_2013 VARCHAR) [/INST] ### Response: SELECT assets_2013__bil$_ FROM table_24307126_3 WHERE rank_2013 = 1435 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 rank for april 2013 for 2012 ran kbeing 225 ### Context: CREATE TABLE table_24307126_3 (april_2013_cum_rank VARCHAR, rank_2012 VARCHAR) [/INST] ### Response: SELECT COUNT(april_2013_cum_rank) FROM table_24307126_3 WHERE rank_2012 = 225 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 assets for australia ### Context: CREATE TABLE table_24307126_3 (assets_2013__bil VARCHAR, base VARCHAR) [/INST] ### Response: SELECT COUNT(assets_2013__bil) AS $_ FROM table_24307126_3 WHERE base = "Australia" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the position of the player who got 6 (4 in 34.49s) in the 6 atlas stones event? ### Context: CREATE TABLE table_24302700_6 (position VARCHAR, event_6_atlas_stones VARCHAR) [/INST] ### Response: SELECT position FROM table_24302700_6 WHERE event_6_atlas_stones = "6 (4 in 34.49s)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who are all the players from the united states? ### Context: CREATE TABLE table_24302700_6 (name VARCHAR, nationality VARCHAR) [/INST] ### Response: SELECT name FROM table_24302700_6 WHERE nationality = "United States" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 score in the 6 atlas stones event of the player who got 2 (6 in 30.89s) in the 3 dead lift event? ### Context: CREATE TABLE table_24302700_6 (event_6_atlas_stones VARCHAR, event_3_dead_lift VARCHAR) [/INST] ### Response: SELECT COUNT(event_6_atlas_stones) FROM table_24302700_6 WHERE event_3_dead_lift = "2 (6 in 30.89s)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 position of the player with a 5 (4 in 32.66s) in the 6 atlas stones event? ### Context: CREATE TABLE table_24302700_6 (position VARCHAR, event_6_atlas_stones VARCHAR) [/INST] ### Response: SELECT position FROM table_24302700_6 WHERE event_6_atlas_stones = "5 (4 in 32.66s)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 score in the 2 truck pull of the player who got 1 (5 in 33.84s) in the 4 fingals fingers? ### Context: CREATE TABLE table_24302700_6 (event_2_truck_pull VARCHAR, event_4_fingals_fingers VARCHAR) [/INST] ### Response: SELECT event_2_truck_pull FROM table_24302700_6 WHERE event_4_fingals_fingers = "1 (5 in 33.84s)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 is the top 10's what is the highest amount of cuts made? ### Context: CREATE TABLE table_24330912_1 (cuts_made INTEGER, top_10s VARCHAR) [/INST] ### Response: SELECT MAX(cuts_made) FROM table_24330912_1 WHERE top_10s = 0 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the lowest overall amount of times they've been in 3rd? ### Context: CREATE TABLE table_24330912_1 (Id VARCHAR) [/INST] ### Response: SELECT MIN(3 AS rd) FROM table_24330912_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 2011 is the year what is the lowest money list rank? ### Context: CREATE TABLE table_24330912_1 (money_list_rank INTEGER, year VARCHAR) [/INST] ### Response: SELECT MIN(money_list_rank) FROM table_24330912_1 WHERE year = 2011 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the lowest overall money list rank? ### Context: CREATE TABLE table_24330912_1 (money_list_rank INTEGER) [/INST] ### Response: SELECT MIN(money_list_rank) FROM table_24330912_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 t3 is the best finish what is the lowest amount of tournaments played? ### Context: CREATE TABLE table_24330912_1 (tournaments_played INTEGER, best_finish VARCHAR) [/INST] ### Response: SELECT MIN(tournaments_played) FROM table_24330912_1 WHERE best_finish = "T3" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 latest amount of won legs in the payoffs when the prize money was £2,350? ### Context: CREATE TABLE table_24334163_1 (Winners INTEGER, total_money_won VARCHAR) [/INST] ### Response: SELECT MAX(Winners) AS play_off_legs_won FROM table_24334163_1 WHERE total_money_won = "£2,350" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 group legs were won with player Mark Dudbridge? ### Context: CREATE TABLE table_24334163_1 (Winners VARCHAR, player VARCHAR) [/INST] ### Response: SELECT Winners AS group_legs_won FROM table_24334163_1 WHERE player = "Mark Dudbridge" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the highest amount of group legs won when the prize money was £21,850? ### Context: CREATE TABLE table_24334163_1 (Winners INTEGER, total_money_won VARCHAR) [/INST] ### Response: SELECT MAX(Winners) AS group_legs_won FROM table_24334163_1 WHERE total_money_won = "£21,850" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 play-off legs were won when the prize money was £10,300? ### Context: CREATE TABLE table_24334163_1 (Winners VARCHAR, total_money_won VARCHAR) [/INST] ### Response: SELECT COUNT(Winners) AS play_off_legs_won FROM table_24334163_1 WHERE total_money_won = "£10,300" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 playoff legs won? ### Context: CREATE TABLE table_24334163_1 (Winners INTEGER) [/INST] ### Response: SELECT MIN(Winners) AS play_off_legs_won FROM table_24334163_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 directed episode 53 in the series? ### Context: CREATE TABLE table_24319661_5 (directed_by VARCHAR, no_in_series VARCHAR) [/INST] ### Response: SELECT directed_by FROM table_24319661_5 WHERE no_in_series = 53 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 as the production code for the episode directed by Robert Duncan McNeill? ### Context: CREATE TABLE table_24319661_5 (production_code VARCHAR, directed_by VARCHAR) [/INST] ### Response: SELECT production_code FROM table_24319661_5 WHERE directed_by = "Robert Duncan McNeill" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 episode number of the season had BCW410 as a production code? ### Context: CREATE TABLE table_24319661_5 (no_in_season VARCHAR, production_code VARCHAR) [/INST] ### Response: SELECT no_in_season FROM table_24319661_5 WHERE production_code = "BCW410" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 episode number in the series had 2.77 million U.S. viewers? ### Context: CREATE TABLE table_24319661_5 (no_in_series INTEGER, us_viewers__million_ VARCHAR) [/INST] ### Response: SELECT MAX(no_in_series) FROM table_24319661_5 WHERE us_viewers__million_ = "2.77" </s>