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: What is the dates where Hillcrest Reserve is the home grounds? ### Context: CREATE TABLE table_18752986_1 (first_season VARCHAR, home_ground_s_ VARCHAR) [/INST] ### Response: SELECT first_season FROM table_18752986_1 WHERE home_ground_s_ = "Hillcrest Reserve" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: For location Caversham, what is the name of the captain? ### Context: CREATE TABLE table_18752986_1 (captain VARCHAR, location VARCHAR) [/INST] ### Response: SELECT captain FROM table_18752986_1 WHERE location = "Caversham" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: With the nickname the swans, what is the home ground? ### Context: CREATE TABLE table_18752986_1 (home_ground_s_ VARCHAR, nickname VARCHAR) [/INST] ### Response: SELECT home_ground_s_ FROM table_18752986_1 WHERE nickname = "Swans" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 record when the opponent is washington redskins? ### Context: CREATE TABLE table_18847692_2 (record VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT record FROM table_18847692_2 WHERE opponent = "Washington Redskins" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 minimum number of opponents? ### Context: CREATE TABLE table_18847692_2 (opponents INTEGER) [/INST] ### Response: SELECT MIN(opponents) FROM table_18847692_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: when area (km²) is 1605.35, how many provinces are there? ### Context: CREATE TABLE table_1888051_1 (province VARCHAR, area__km²_ VARCHAR) [/INST] ### Response: SELECT COUNT(province) FROM table_1888051_1 WHERE area__km²_ = "1605.35" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 province is monseñor nouel, what is the area (km²)? ### Context: CREATE TABLE table_1888051_1 (area__km²_ VARCHAR, province VARCHAR) [/INST] ### Response: SELECT area__km²_ FROM table_1888051_1 WHERE province = "Monseñor Nouel" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 capitals are there when area (km²) is 1111.14? ### Context: CREATE TABLE table_1888051_1 (capital VARCHAR, area__km²_ VARCHAR) [/INST] ### Response: SELECT COUNT(capital) FROM table_1888051_1 WHERE area__km²_ = "1111.14" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Nagua has the area (km²) of? ### Context: CREATE TABLE table_1888051_1 (area__km²_ VARCHAR, capital VARCHAR) [/INST] ### Response: SELECT area__km²_ FROM table_1888051_1 WHERE capital = "Nagua" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 what period were parliament 11th? ### Context: CREATE TABLE table_1889233_2 (period_in_office VARCHAR, parliament VARCHAR) [/INST] ### Response: SELECT period_in_office FROM table_1889233_2 WHERE parliament = "11th" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 parliament's name is lina loh woon lee? ### Context: CREATE TABLE table_1889233_2 (parliament VARCHAR, name VARCHAR) [/INST] ### Response: SELECT parliament FROM table_1889233_2 WHERE name = "Lina Loh Woon Lee" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 parliament held it's election in 1997? ### Context: CREATE TABLE table_1889233_2 (parliament VARCHAR, general_election_contested VARCHAR) [/INST] ### Response: SELECT parliament FROM table_1889233_2 WHERE general_election_contested = 1997 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 period were conscituency contested is aljunied grc? ### Context: CREATE TABLE table_1889233_2 (period_in_office VARCHAR, constituency_contested VARCHAR) [/INST] ### Response: SELECT period_in_office FROM table_1889233_2 WHERE constituency_contested = "Aljunied GRC" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 parliament is sylvia lim swee lian? ### Context: CREATE TABLE table_1889233_2 (parliament VARCHAR, name VARCHAR) [/INST] ### Response: SELECT parliament FROM table_1889233_2 WHERE name = "Sylvia Lim Swee Lian" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 jim is eliminated what is the finish? ### Context: CREATE TABLE table_1893276_2 (finish VARCHAR, eliminated VARCHAR) [/INST] ### Response: SELECT finish FROM table_1893276_2 WHERE eliminated = "Jim" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 rewards are there for air date October 6, 2005? ### Context: CREATE TABLE table_1893276_2 (reward VARCHAR, air_date VARCHAR) [/INST] ### Response: SELECT reward FROM table_1893276_2 WHERE air_date = "October 6, 2005" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 eliminated on the air date of November 3, 2005? ### Context: CREATE TABLE table_1893276_2 (eliminated VARCHAR, air_date VARCHAR) [/INST] ### Response: SELECT eliminated FROM table_1893276_2 WHERE air_date = "November 3, 2005" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 air dates were there when Morgan was eliminated? ### Context: CREATE TABLE table_1893276_2 (air_date VARCHAR, eliminated VARCHAR) [/INST] ### Response: SELECT COUNT(air_date) FROM table_1893276_2 WHERE eliminated = "Morgan" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 same target; linebacker ii offensive is the same target what is the unit? ### Context: CREATE TABLE table_18933037_3 (unit VARCHAR, mission_target VARCHAR) [/INST] ### Response: SELECT unit FROM table_18933037_3 WHERE mission_target = "Same target; Linebacker II Offensive" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 hit by sam at 38,500 feet just after bomb release was the cause of loss what is the mission/target? ### Context: CREATE TABLE table_18933037_3 (mission_target VARCHAR, cause_of_loss VARCHAR) [/INST] ### Response: SELECT mission_target FROM table_18933037_3 WHERE cause_of_loss = "Hit by SAM at 38,500 feet just after bomb release" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 7th bw attached to 43rd sw is the unit what is the b-52 model? ### Context: CREATE TABLE table_18933037_3 (b_52_model VARCHAR, unit VARCHAR) [/INST] ### Response: SELECT b_52_model FROM table_18933037_3 WHERE unit = "7th BW attached to 43rd SW" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 441st bs, 7th bw is the unit what is the b-52 model? ### Context: CREATE TABLE table_18933037_3 (b_52_model VARCHAR, unit VARCHAR) [/INST] ### Response: SELECT b_52_model FROM table_18933037_3 WHERE unit = "441st BS, 7th BW" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 27 gp h-e bombs the capacity of the bomb what is the cause of loss? ### Context: CREATE TABLE table_18933037_3 (cause_of_loss VARCHAR, bomb_capacity VARCHAR) [/INST] ### Response: SELECT cause_of_loss FROM table_18933037_3 WHERE bomb_capacity = "27 GP H-E bombs" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 clubs involved for leagues being none for semi finals ### Context: CREATE TABLE table_19089486_1 (clubs_involved INTEGER, leagues_entering_this_round VARCHAR, round VARCHAR) [/INST] ### Response: SELECT MIN(clubs_involved) FROM table_19089486_1 WHERE leagues_entering_this_round = "none" AND round = "Semi finals" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 new entries this round for third round ### Context: CREATE TABLE table_19089486_1 (new_entries_this_round VARCHAR, round VARCHAR) [/INST] ### Response: SELECT new_entries_this_round FROM table_19089486_1 WHERE round = "Third round" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 leagues entering this round for 4 ### Context: CREATE TABLE table_19089486_1 (leagues_entering_this_round VARCHAR, clubs_involved VARCHAR) [/INST] ### Response: SELECT leagues_entering_this_round FROM table_19089486_1 WHERE clubs_involved = 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 clubs remaining ### Context: CREATE TABLE table_19089486_1 (clubs_remaining INTEGER) [/INST] ### Response: SELECT MIN(clubs_remaining) FROM table_19089486_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 conjunction junction is the episode title and the music is by bob dorough who is the performer? ### Context: CREATE TABLE table_191105_2 (performed_by VARCHAR, music_by VARCHAR, episode_title VARCHAR) [/INST] ### Response: SELECT performed_by FROM table_191105_2 WHERE music_by = "Bob Dorough" AND episode_title = "Conjunction Junction" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 interjection is the subject how many performers are there? ### Context: CREATE TABLE table_191105_2 (performed_by VARCHAR, subject VARCHAR) [/INST] ### Response: SELECT COUNT(performed_by) FROM table_191105_2 WHERE subject = "interjection" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 pronoun is the subject what is the episode title? ### Context: CREATE TABLE table_191105_2 (episode_title VARCHAR, subject VARCHAR) [/INST] ### Response: SELECT episode_title FROM table_191105_2 WHERE subject = "pronoun" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 interjection is the subject who are the lyrics by? ### Context: CREATE TABLE table_191105_2 (lyrics_by VARCHAR, subject VARCHAR) [/INST] ### Response: SELECT lyrics_by FROM table_191105_2 WHERE subject = "interjection" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 zachary sanders is the performer how many first aired are there? ### Context: CREATE TABLE table_191105_2 (first_aired VARCHAR, performed_by VARCHAR) [/INST] ### Response: SELECT COUNT(first_aired) FROM table_191105_2 WHERE performed_by = "Zachary Sanders" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 zachary sanders is the performer how many people is the music by? ### Context: CREATE TABLE table_191105_2 (music_by VARCHAR, performed_by VARCHAR) [/INST] ### Response: SELECT COUNT(music_by) FROM table_191105_2 WHERE performed_by = "Zachary Sanders" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 world rank for market value 17.2 ### Context: CREATE TABLE table_19112_3 (world_rank VARCHAR, market_value__billion_$_ VARCHAR) [/INST] ### Response: SELECT world_rank FROM table_19112_3 WHERE market_value__billion_$_ = "17.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 market value for rhb capital ### Context: CREATE TABLE table_19112_3 (market_value__billion_$_ VARCHAR, company VARCHAR) [/INST] ### Response: SELECT market_value__billion_$_ FROM table_19112_3 WHERE company = "RHB Capital" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 profits for market value of 11.8 ### Context: CREATE TABLE table_19112_3 (profits__billion_$_ VARCHAR, market_value__billion_$_ VARCHAR) [/INST] ### Response: SELECT profits__billion_$_ FROM table_19112_3 WHERE market_value__billion_$_ = "11.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: Name the industry for revenue being 2.1 ### Context: CREATE TABLE table_19112_3 (industry VARCHAR, revenue__billion_$_ VARCHAR) [/INST] ### Response: SELECT industry FROM table_19112_3 WHERE revenue__billion_$_ = "2.1" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the total number of industry for maxis ### Context: CREATE TABLE table_19112_3 (industry VARCHAR, company VARCHAR) [/INST] ### Response: SELECT COUNT(industry) FROM table_19112_3 WHERE company = "Maxis" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: how many games with high rebounds where in february 26 ### Context: CREATE TABLE table_19169116_6 (high_rebounds VARCHAR, date VARCHAR) [/INST] ### Response: SELECT COUNT(high_rebounds) FROM table_19169116_6 WHERE date = "February 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: which institutes gave the democratic renewal 18.0% – 22.0% on a poll from October 6, 1985? ### Context: CREATE TABLE table_1919538_1 (institute VARCHAR, democratic_renewal VARCHAR) [/INST] ### Response: SELECT institute FROM table_1919538_1 WHERE democratic_renewal = "18.0% – 22.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: Name the number of seats to be won being % of popular vote at 6.88% ### Context: CREATE TABLE table_19283982_4 (_number_of_seats_to_be_won VARCHAR, _percentage_of_popular_vote VARCHAR) [/INST] ### Response: SELECT _number_of_seats_to_be_won FROM table_19283982_4 WHERE _percentage_of_popular_vote = "6.88%" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 total votes for # of seats won being 30 ### Context: CREATE TABLE table_19283982_4 (_number_of_total_votes VARCHAR, _number_of_seats_won VARCHAR) [/INST] ### Response: SELECT _number_of_total_votes FROM table_19283982_4 WHERE _number_of_seats_won = 30 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 candidates for # of seats won being 43 ### Context: CREATE TABLE table_19283982_4 (_number_of_candidates VARCHAR, _number_of_seats_won VARCHAR) [/INST] ### Response: SELECT _number_of_candidates FROM table_19283982_4 WHERE _number_of_seats_won = 43 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 leaders for % of popular vote being 11.05% ### Context: CREATE TABLE table_19283982_4 (leader VARCHAR, _percentage_of_popular_vote VARCHAR) [/INST] ### Response: SELECT COUNT(leader) FROM table_19283982_4 WHERE _percentage_of_popular_vote = "11.05%" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 location that has the 12th district? ### Context: CREATE TABLE table_19283806_4 (location VARCHAR, district VARCHAR) [/INST] ### Response: SELECT location FROM table_19283806_4 WHERE district = "12th" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 election results in 2012 had a Cook PVI of D+16? ### Context: CREATE TABLE table_19283806_4 (cook_pvi VARCHAR) [/INST] ### Response: SELECT COUNT(2012 AS _election_results) FROM table_19283806_4 WHERE cook_pvi = "D+16" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Cook PVI for the location that has a representative of Mike Thompson? ### Context: CREATE TABLE table_19283806_4 (cook_pvi VARCHAR, representative VARCHAR) [/INST] ### Response: SELECT cook_pvi FROM table_19283806_4 WHERE representative = "Mike Thompson" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many locations have a median household income in 2011 of $71,479? ### Context: CREATE TABLE table_19283806_4 (location VARCHAR, median_household_income__2011_ VARCHAR) [/INST] ### Response: SELECT COUNT(location) FROM table_19283806_4 WHERE median_household_income__2011_ = "$71,479" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 2012 election results for locations whose representative is Barbara Lee? ### Context: CREATE TABLE table_19283806_4 (representative VARCHAR) [/INST] ### Response: SELECT 2012 AS _election_results FROM table_19283806_4 WHERE representative = "Barbara Lee" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 season number for a show with a production code of 816? ### Context: CREATE TABLE table_19422702_1 (no_in_season INTEGER, production_code VARCHAR) [/INST] ### Response: SELECT MAX(no_in_season) FROM table_19422702_1 WHERE production_code = 816 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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. air dates were from an episode in Season 4? ### Context: CREATE TABLE table_19422702_1 (us_airdate VARCHAR, no_in_season VARCHAR) [/INST] ### Response: SELECT COUNT(us_airdate) FROM table_19422702_1 WHERE no_in_season = 4 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many different C_{high} values are there for the good category? ### Context: CREATE TABLE table_1942366_9 (high VARCHAR, category VARCHAR) [/INST] ### Response: SELECT STRUCT(high) FROM table_1942366_9 WHERE category = "Good" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What's the C_{high} when the C_{low} value is 250.5? ### Context: CREATE TABLE table_1942366_9 (high VARCHAR, low VARCHAR) [/INST] ### Response: SELECT STRUCT(high) FROM table_1942366_9 WHERE STRUCT(low) = "250.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's the C_{low} value when C_{high} is 12.0? ### Context: CREATE TABLE table_1942366_9 (low VARCHAR, high VARCHAR) [/INST] ### Response: SELECT STRUCT(low) FROM table_1942366_9 WHERE STRUCT(high) = "12.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: In how many different categories is the value of C_{low} 35.5? ### Context: CREATE TABLE table_1942366_9 (category VARCHAR, low VARCHAR) [/INST] ### Response: SELECT COUNT(category) FROM table_1942366_9 WHERE STRUCT(low) = "35.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 members were in the group that sold 65 million albums and singles? ### Context: CREATE TABLE table_19439814_1 (members VARCHAR, sold__albums_and_singles_ VARCHAR) [/INST] ### Response: SELECT members FROM table_19439814_1 WHERE sold__albums_and_singles_ = "65 million" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 group had 29 studio albums? ### Context: CREATE TABLE table_19439814_1 (girl_group VARCHAR, studio_albums VARCHAR) [/INST] ### Response: SELECT girl_group FROM table_19439814_1 WHERE studio_albums = 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: When bergen is 88, what is the alesund? ### Context: CREATE TABLE table_19439864_2 (ålesund INTEGER, bergen VARCHAR) [/INST] ### Response: SELECT MIN(ålesund) FROM table_19439864_2 WHERE bergen = 88 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 elverum are tehre for et sted i scandinavia? ### Context: CREATE TABLE table_19439864_2 (elverum VARCHAR, song VARCHAR) [/INST] ### Response: SELECT COUNT(elverum) FROM table_19439864_2 WHERE song = "Et sted i Scandinavia" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 total for radio luxembourg? ### Context: CREATE TABLE table_19439864_2 (total VARCHAR, song VARCHAR) [/INST] ### Response: SELECT total FROM table_19439864_2 WHERE song = "Radio Luxembourg" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 oslo is 48, what is stavanger? ### Context: CREATE TABLE table_19439864_2 (stavanger INTEGER, oslo VARCHAR) [/INST] ### Response: SELECT MIN(stavanger) FROM table_19439864_2 WHERE oslo = 48 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 total? ### Context: CREATE TABLE table_19439864_2 (total INTEGER) [/INST] ### Response: SELECT MIN(total) FROM table_19439864_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: When the total score is 740, what is tromso? ### Context: CREATE TABLE table_19439864_2 (tromsø INTEGER, total VARCHAR) [/INST] ### Response: SELECT MIN(tromsø) FROM table_19439864_2 WHERE total = 740 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who played in group 8 when Persinab Nabire played in Group 12? ### Context: CREATE TABLE table_19523142_5 (group_8 VARCHAR, group_12 VARCHAR) [/INST] ### Response: SELECT group_8 FROM table_19523142_5 WHERE group_12 = "Persinab Nabire" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who played in group 11 when Persipal Palu played in group 12? ### Context: CREATE TABLE table_19523142_5 (group_11 VARCHAR, group_12 VARCHAR) [/INST] ### Response: SELECT group_11 FROM table_19523142_5 WHERE group_12 = "Persipal Palu" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who played in group 12 when persikutim east kutai played in group 10? ### Context: CREATE TABLE table_19523142_5 (group_12 VARCHAR, group_10 VARCHAR) [/INST] ### Response: SELECT group_12 FROM table_19523142_5 WHERE group_10 = "Persikutim East Kutai" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 persikos sorong city played in group 11, who played in group 7? ### Context: CREATE TABLE table_19523142_5 (group_7 VARCHAR, group_11 VARCHAR) [/INST] ### Response: SELECT group_7 FROM table_19523142_5 WHERE group_11 = "Persikos Sorong City" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Nusa Ina only played once while group 7 played. ### Context: CREATE TABLE table_19523142_5 (group_7 VARCHAR, group_12 VARCHAR) [/INST] ### Response: SELECT COUNT(group_7) FROM table_19523142_5 WHERE group_12 = "Nusa Ina" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who played in group 12 when Group 9 played psid jombang? ### Context: CREATE TABLE table_19523142_5 (group_12 VARCHAR, group_9 VARCHAR) [/INST] ### Response: SELECT group_12 FROM table_19523142_5 WHERE group_9 = "PSID Jombang" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 longest number of weeks any 1 song was at number #1? ### Context: CREATE TABLE table_19542477_9 (whole_weeks INTEGER) [/INST] ### Response: SELECT MAX(whole_weeks) FROM table_19542477_9 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the title of every song, and how many weeks was each song at #1 for One Direction? ### Context: CREATE TABLE table_19542477_9 (song_s__—_weeks VARCHAR, artist_s_ VARCHAR) [/INST] ### Response: SELECT song_s__—_weeks FROM table_19542477_9 WHERE artist_s_ = "One Direction" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 every song, and how many weeks was each song at #1 for Rihanna in 2012? ### Context: CREATE TABLE table_19542477_9 (song_s__—_weeks VARCHAR, issue_years VARCHAR, artist_s_ VARCHAR) [/INST] ### Response: SELECT song_s__—_weeks FROM table_19542477_9 WHERE issue_years = 2012 AND artist_s_ = "Rihanna" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 NHL team was the player from Calgary Centennials (WCHL) drafted for? ### Context: CREATE TABLE table_1965650_11 (nhl_team VARCHAR, college_junior_club_team VARCHAR) [/INST] ### Response: SELECT nhl_team FROM table_1965650_11 WHERE college_junior_club_team = "Calgary Centennials (WCHL)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 came from the University of Michigan (NCAA) team? ### Context: CREATE TABLE table_1965650_11 (player VARCHAR, college_junior_club_team VARCHAR) [/INST] ### Response: SELECT player FROM table_1965650_11 WHERE college_junior_club_team = "University of Michigan (NCAA)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 players have the pick number 166? ### Context: CREATE TABLE table_1965650_11 (player VARCHAR, pick__number VARCHAR) [/INST] ### Response: SELECT COUNT(player) FROM table_1965650_11 WHERE pick__number = 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: What is the nationality of the player from the University of Michigan (NCAA)? ### Context: CREATE TABLE table_1965650_11 (nationality VARCHAR, college_junior_club_team VARCHAR) [/INST] ### Response: SELECT nationality FROM table_1965650_11 WHERE college_junior_club_team = "University of Michigan (NCAA)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What team did Russ Wiechnik, on the centre position, come from? ### Context: CREATE TABLE table_1965650_11 (college_junior_club_team VARCHAR, position VARCHAR, player VARCHAR) [/INST] ### Response: SELECT college_junior_club_team FROM table_1965650_11 WHERE position = "Centre" AND player = "Russ Wiechnik" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 place would you be in if your rank by average is less than 2.0? ### Context: CREATE TABLE table_19744915_14 (place VARCHAR, rank_by_average INTEGER) [/INST] ### Response: SELECT place FROM table_19744915_14 WHERE rank_by_average < 2.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 couples name where the average is 15.9? ### Context: CREATE TABLE table_19744915_14 (couple VARCHAR, average VARCHAR) [/INST] ### Response: SELECT couple FROM table_19744915_14 WHERE average = "15.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: If the total points is 50.5, what is the total number of dances? ### Context: CREATE TABLE table_19744915_14 (number_of_dances VARCHAR, total_points VARCHAR) [/INST] ### Response: SELECT COUNT(number_of_dances) FROM table_19744915_14 WHERE total_points = "50.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 your rank by average is 9, what is the name of the couple? ### Context: CREATE TABLE table_19744915_14 (couple VARCHAR, rank_by_average VARCHAR) [/INST] ### Response: SELECT couple FROM table_19744915_14 WHERE rank_by_average = 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 number of party for richard l. hanna (r) 53.1% mike arcuri (d) 46.9% ### Context: CREATE TABLE table_19753079_35 (party VARCHAR, candidates VARCHAR) [/INST] ### Response: SELECT COUNT(party) FROM table_19753079_35 WHERE candidates = "Richard L. Hanna (R) 53.1% Mike Arcuri (D) 46.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 party for new york 4 ### Context: CREATE TABLE table_19753079_35 (party VARCHAR, district VARCHAR) [/INST] ### Response: SELECT party FROM table_19753079_35 WHERE district = "New York 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 first elected for re-elected and brian higgins ### Context: CREATE TABLE table_19753079_35 (first_elected VARCHAR, result VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT first_elected FROM table_19753079_35 WHERE result = "Re-elected" AND incumbent = "Brian Higgins" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 party for yvette clarke (d) 90.6% hugh carr (r) 9.4% ### Context: CREATE TABLE table_19753079_35 (party VARCHAR, candidates VARCHAR) [/INST] ### Response: SELECT party FROM table_19753079_35 WHERE candidates = "Yvette Clarke (D) 90.6% Hugh Carr (R) 9.4%" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the result for new york 8 ### Context: CREATE TABLE table_19753079_35 (result VARCHAR, district VARCHAR) [/INST] ### Response: SELECT result FROM table_19753079_35 WHERE district = "New York 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: Name the incumbent for lost renomination republican hold ### Context: CREATE TABLE table_19753079_4 (incumbent VARCHAR, result VARCHAR) [/INST] ### Response: SELECT incumbent FROM table_19753079_4 WHERE result = "Lost renomination Republican hold" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 result for first elected being 1992 ### Context: CREATE TABLE table_19753079_4 (result VARCHAR, first_elected VARCHAR) [/INST] ### Response: SELECT result FROM table_19753079_4 WHERE first_elected = 1992 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 incumbent for alabama 6 ### Context: CREATE TABLE table_19753079_4 (incumbent VARCHAR, district VARCHAR) [/INST] ### Response: SELECT incumbent FROM table_19753079_4 WHERE district = "Alabama 6" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the number of song for julia bermejo ### Context: CREATE TABLE table_19763199_5 (song VARCHAR, artist VARCHAR) [/INST] ### Response: SELECT COUNT(song) FROM table_19763199_5 WHERE artist = "Julia Bermejo" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 song for solydo ### Context: CREATE TABLE table_19763199_5 (song VARCHAR, artist VARCHAR) [/INST] ### Response: SELECT COUNT(song) FROM table_19763199_5 WHERE artist = "Solydo" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 tournament is in katowice? ### Context: CREATE TABLE table_19765685_2 (tournament VARCHAR, city VARCHAR) [/INST] ### Response: SELECT tournament FROM table_19765685_2 WHERE city = "Katowice" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 tournaments are also currently known as the hp open? ### Context: CREATE TABLE table_19765685_2 (country VARCHAR, also_currently_known_as VARCHAR) [/INST] ### Response: SELECT COUNT(country) FROM table_19765685_2 WHERE also_currently_known_as = "HP Open" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 defending champs from thailand? ### Context: CREATE TABLE table_19765685_2 (defending_champion VARCHAR, country VARCHAR) [/INST] ### Response: SELECT COUNT(defending_champion) FROM table_19765685_2 WHERE country = "Thailand" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 opponent for june 12 ### Context: CREATE TABLE table_19789597_5 (opponent VARCHAR, date VARCHAR) [/INST] ### Response: SELECT opponent FROM table_19789597_5 WHERE date = "June 12" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 date for l 63-77 ### Context: CREATE TABLE table_19789597_5 (date VARCHAR, score VARCHAR) [/INST] ### Response: SELECT COUNT(date) FROM table_19789597_5 WHERE score = "L 63-77" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 number for viewers being 6.95 ### Context: CREATE TABLE table_19834691_4 (_number INTEGER, viewers__millions_ VARCHAR) [/INST] ### Response: SELECT MAX(_number) FROM table_19834691_4 WHERE viewers__millions_ = "6.95" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 viewers for audience share in timeslot for 10.2% ### Context: CREATE TABLE table_19834691_4 (viewers__millions_ VARCHAR, audience_share_in_timeslot VARCHAR) [/INST] ### Response: SELECT COUNT(viewers__millions_) FROM table_19834691_4 WHERE audience_share_in_timeslot = "10.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 timeslot for 6.51 viewers ### Context: CREATE TABLE table_19834691_4 (timeslot VARCHAR, viewers__millions_ VARCHAR) [/INST] ### Response: SELECT timeslot FROM table_19834691_4 WHERE viewers__millions_ = "6.51" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 uk air date for audience share in timeslot in 7.3% ### Context: CREATE TABLE table_19834691_4 (uk_air_date VARCHAR, audience_share_in_timeslot VARCHAR) [/INST] ### Response: SELECT uk_air_date FROM table_19834691_4 WHERE audience_share_in_timeslot = "7.3%" </s>