inputs
stringlengths
400
1.34k
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Where was the Kai Kuh-1 Surion Produced? ### Context: CREATE TABLE table_name_28 (produced VARCHAR, aircraft VARCHAR) ### Response: ### Response: SELECT produced FROM table_name_28 WHERE aircraft = "kai kuh-1 surion"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the country for 11,891 area ### Context: CREATE TABLE table_160510_5 (country VARCHAR, area VARCHAR) ### Response: ### Response: SELECT country FROM table_160510_5 WHERE area = "11,891"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Death date has a Place of death or residence of united states, and an Age (as of 1 February 2014) of 111 years, 61 days? ### Context: CREATE TABLE table_name_49 (death_date VARCHAR, place_of_death_or_residence VARCHAR, age__as_of_1_february_2014_ VARCHAR) ### Response: ### Response: SELECT death_date FROM table_name_49 WHERE place_of_death_or_residence = "united states" AND age__as_of_1_february_2014_ = "111 years, 61 days"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who had pole position in round 7? ### Context: CREATE TABLE table_18095719_2 (pole_position VARCHAR, round VARCHAR) ### Response: ### Response: SELECT pole_position FROM table_18095719_2 WHERE round = 7</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who did the play-by-play before 1992 with the Ice level reporter Mike Emrick? ### Context: CREATE TABLE table_name_15 (play_by_play VARCHAR, year VARCHAR, ice_level_reporters VARCHAR) ### Response: ### Response: SELECT play_by_play FROM table_name_15 WHERE year < 1992 AND ice_level_reporters = "mike emrick"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When the frequency is 103.7 MHz and the ERP W is more than 10, what is the call sign? ### Context: CREATE TABLE table_name_77 (call_sign VARCHAR, erp_w VARCHAR, frequency_mhz VARCHAR) ### Response: ### Response: SELECT call_sign FROM table_name_77 WHERE erp_w > 10 AND frequency_mhz = 103.7</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Player from appalachian state? ### Context: CREATE TABLE table_name_73 (player VARCHAR, college VARCHAR) ### Response: ### Response: SELECT player FROM table_name_73 WHERE college = "appalachian state"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: After 1993, what is the Seats with a % votes of 38.72? ### Context: CREATE TABLE table_name_26 (seats VARCHAR, year VARCHAR, _percentage_votes VARCHAR) ### Response: ### Response: SELECT seats FROM table_name_26 WHERE year > 1993 AND _percentage_votes = 38.72</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the arrival time of greenbat ### Context: CREATE TABLE table_142159_1 (arrival INTEGER, name VARCHAR) ### Response: ### Response: SELECT MAX(arrival) FROM table_142159_1 WHERE name = "Greenbat"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When 1.17 is the production code how many air dates are there? ### Context: CREATE TABLE table_20124413_1 (original_airdate VARCHAR, prod_code VARCHAR) ### Response: ### Response: SELECT COUNT(original_airdate) FROM table_20124413_1 WHERE prod_code = "1.17"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Pairing of θ(1), and a Binomial of θ(1) is what binary? ### Context: CREATE TABLE table_name_82 (binary VARCHAR, pairing VARCHAR, binomial VARCHAR) ### Response: ### Response: SELECT binary FROM table_name_82 WHERE pairing = "θ(1)" AND binomial = "θ(1)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the record for the 400 m event on 4 september 2009? ### Context: CREATE TABLE table_name_23 (record VARCHAR, date VARCHAR, event VARCHAR) ### Response: ### Response: SELECT record FROM table_name_23 WHERE date = "4 september 2009" AND event = "400 m"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is withdrawn with a GSR Class of 296? ### Context: CREATE TABLE table_name_72 (withdrawn VARCHAR, gsr_class VARCHAR) ### Response: ### Response: SELECT withdrawn FROM table_name_72 WHERE gsr_class = "296"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the outgoing manager for mantova ### Context: CREATE TABLE table_17275810_7 (outgoing_manager VARCHAR, team VARCHAR) ### Response: ### Response: SELECT outgoing_manager FROM table_17275810_7 WHERE team = "Mantova"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who constructed juan manuel fangio's car with over 76 laps and a grid under 10? ### Context: CREATE TABLE table_name_47 (constructor VARCHAR, driver VARCHAR, grid VARCHAR, laps VARCHAR) ### Response: ### Response: SELECT constructor FROM table_name_47 WHERE grid < 10 AND laps > 76 AND driver = "juan manuel fangio"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the number of murders the year forcible rapes were at 166? ### Context: CREATE TABLE table_25271777_1 (murder VARCHAR, forcible_rape VARCHAR) ### Response: ### Response: SELECT murder FROM table_25271777_1 WHERE forcible_rape = 166</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who is the opponent in the final of the match on 26 March 2006? ### Context: CREATE TABLE table_name_49 (opponent_in_the_final VARCHAR, date VARCHAR) ### Response: ### Response: SELECT opponent_in_the_final FROM table_name_49 WHERE date = "26 march 2006"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the high grid with 27 laps? ### Context: CREATE TABLE table_name_89 (grid INTEGER, laps VARCHAR) ### Response: ### Response: SELECT MAX(grid) FROM table_name_89 WHERE laps = 27</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the highest round of the player with an overall of 152? ### Context: CREATE TABLE table_name_38 (round INTEGER, overall VARCHAR) ### Response: ### Response: SELECT MAX(round) FROM table_name_38 WHERE overall = 152</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who are the candidates in the Tennessee 3 district election? ### Context: CREATE TABLE table_1341453_44 (candidates VARCHAR, district VARCHAR) ### Response: ### Response: SELECT candidates FROM table_1341453_44 WHERE district = "Tennessee 3"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the title and director for the movie with highest worldwide gross in the year 2000 or before? ### Context: CREATE TABLE movie (title VARCHAR, director VARCHAR, YEAR VARCHAR, gross_worldwide VARCHAR) ### Response: ### Response: SELECT title, director FROM movie WHERE YEAR <= 2000 ORDER BY gross_worldwide DESC LIMIT 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the average total for Tiger Woods? ### Context: CREATE TABLE table_name_26 (total INTEGER, player VARCHAR) ### Response: ### Response: SELECT AVG(total) FROM table_name_26 WHERE player = "tiger woods"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who earned high points in game 69? ### Context: CREATE TABLE table_17323092_8 (high_points VARCHAR, game VARCHAR) ### Response: ### Response: SELECT high_points FROM table_17323092_8 WHERE game = 69</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the number of shows when there was 2 million views ### Context: CREATE TABLE table_13336122_6 (us_viewers__million_ VARCHAR, no_in_season VARCHAR) ### Response: ### Response: SELECT COUNT(us_viewers__million_) FROM table_13336122_6 WHERE no_in_season = 2</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: who is the constructor when the grid is more than 10 and the time/retired is +1 lap? ### Context: CREATE TABLE table_name_59 (constructor VARCHAR, grid VARCHAR, time_retired VARCHAR) ### Response: ### Response: SELECT constructor FROM table_name_59 WHERE grid > 10 AND time_retired = "+1 lap"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what position is number 22? ### Context: CREATE TABLE table_25429986_1 (position VARCHAR, number VARCHAR) ### Response: ### Response: SELECT position FROM table_25429986_1 WHERE number = 22</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How tall is Marco Belinelli? ### Context: CREATE TABLE table_12962773_15 (height VARCHAR, player VARCHAR) ### Response: ### Response: SELECT height FROM table_12962773_15 WHERE player = "Marco Belinelli"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: In what Venue was the game with a Friendly Competition and 1 Goal played? ### Context: CREATE TABLE table_name_29 (venue VARCHAR, competition VARCHAR, goal VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_29 WHERE competition = "friendly" AND goal = 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Show the names of people, and dates and venues of debates they are on the affirmative side. ### Context: CREATE TABLE people (Name VARCHAR, People_ID VARCHAR); CREATE TABLE debate (Date VARCHAR, Venue VARCHAR, Debate_ID VARCHAR); CREATE TABLE debate_people (Debate_ID VARCHAR, Affirmative VARCHAR) ### Response: ### Response: SELECT T3.Name, T2.Date, T2.Venue FROM debate_people AS T1 JOIN debate AS T2 ON T1.Debate_ID = T2.Debate_ID JOIN people AS T3 ON T1.Affirmative = T3.People_ID</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the largest ethnic group in 2002 of the settlement with the cyrillic name of ватин? ### Context: CREATE TABLE table_2562572_46 (largest_ethnic_group__2002_ VARCHAR, cyrillic_name_other_names VARCHAR) ### Response: ### Response: SELECT largest_ethnic_group__2002_ FROM table_2562572_46 WHERE cyrillic_name_other_names = "Ватин"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which province is bay of islands in ### Context: CREATE TABLE table_1024710_2 (province VARCHAR, electorate VARCHAR) ### Response: ### Response: SELECT province FROM table_1024710_2 WHERE electorate = "Bay of Islands"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What type of paper is the 1 cent denominations made on? ### Context: CREATE TABLE table_name_3 (paper_type VARCHAR, denomination VARCHAR) ### Response: ### Response: SELECT paper_type FROM table_name_3 WHERE denomination = "1 cent"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the record on March 16? ### Context: CREATE TABLE table_name_66 (record VARCHAR, date VARCHAR) ### Response: ### Response: SELECT record FROM table_name_66 WHERE date = "march 16"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: how many winning team with circuit being road america ### Context: CREATE TABLE table_14638077_2 (winning_team VARCHAR, circuit VARCHAR) ### Response: ### Response: SELECT COUNT(winning_team) FROM table_14638077_2 WHERE circuit = "Road America"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the Lineup that has an Assist/pass of carli lloyd,a Competition of 2010 concacaf world cup qualifying – group stage? ### Context: CREATE TABLE table_name_43 (lineup VARCHAR, assist_pass VARCHAR, competition VARCHAR) ### Response: ### Response: SELECT lineup FROM table_name_43 WHERE assist_pass = "carli lloyd" AND competition = "2010 concacaf world cup qualifying – group stage"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the opponent during the biggest defeat? ### Context: CREATE TABLE table_1233808_2 (opponent VARCHAR, record VARCHAR) ### Response: ### Response: SELECT opponent FROM table_1233808_2 WHERE record = "Biggest defeat"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the average attendance on april 24? ### Context: CREATE TABLE table_name_86 (attendance INTEGER, date VARCHAR) ### Response: ### Response: SELECT AVG(attendance) FROM table_name_86 WHERE date = "april 24"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the multi 1 for the Athlon x2 BE-2400? ### Context: CREATE TABLE table_name_46 (multi_1 VARCHAR, model_number VARCHAR) ### Response: ### Response: SELECT multi_1 FROM table_name_46 WHERE model_number = "athlon x2 be-2400"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What bronze has tatiana ryabkina as the silver, anne margrethe hausken as the gold? ### Context: CREATE TABLE table_name_55 (bronze VARCHAR, silver VARCHAR, gold VARCHAR) ### Response: ### Response: SELECT bronze FROM table_name_55 WHERE silver = "tatiana ryabkina" AND gold = "anne margrethe hausken"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What wss the average round drafted for xavier players? ### Context: CREATE TABLE table_name_5 (round INTEGER, school VARCHAR) ### Response: ### Response: SELECT AVG(round) FROM table_name_5 WHERE school = "xavier"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many wins did he have when he had $95,180 in winnings? ### Context: CREATE TABLE table_2216245_2 (wins VARCHAR, winnings VARCHAR) ### Response: ### Response: SELECT COUNT(wins) FROM table_2216245_2 WHERE winnings = "$95,180"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which date did richmond play as away? ### Context: CREATE TABLE table_name_27 (date VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT date FROM table_name_27 WHERE away_team = "richmond"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Where was game 62 played? ### Context: CREATE TABLE table_16864968_7 (location VARCHAR, game VARCHAR) ### Response: ### Response: SELECT location FROM table_16864968_7 WHERE game = 62</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When was the song by Andy Gibb issued? ### Context: CREATE TABLE table_name_44 (issue_date_s_ VARCHAR, artist VARCHAR) ### Response: ### Response: SELECT issue_date_s_ FROM table_name_44 WHERE artist = "andy gibb"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was on the Republican ticket for the office of Inspector of state prisons? ### Context: CREATE TABLE table_name_8 (republican_ticket VARCHAR, office VARCHAR) ### Response: ### Response: SELECT republican_ticket FROM table_name_8 WHERE office = "inspector of state prisons"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many wins had a podium larger than 6 after season 2008? ### Context: CREATE TABLE table_name_29 (wins VARCHAR, season VARCHAR, podiums VARCHAR) ### Response: ### Response: SELECT COUNT(wins) FROM table_name_29 WHERE season > 2008 AND podiums > 6</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which MLB division has a win record of 76? ### Context: CREATE TABLE table_name_26 (division VARCHAR, wins VARCHAR) ### Response: ### Response: SELECT division FROM table_name_26 WHERE wins = "76"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Does daystar television network provide HDTV? ### Context: CREATE TABLE table_name_50 (hdtv VARCHAR, television_service VARCHAR) ### Response: ### Response: SELECT hdtv FROM table_name_50 WHERE television_service = "daystar television network"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the competition earlier than 1987? ### Context: CREATE TABLE table_name_42 (competition VARCHAR, year INTEGER) ### Response: ### Response: SELECT competition FROM table_name_42 WHERE year < 1987</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the record of the game with Rudy Gay (20) as the leading scorer? ### Context: CREATE TABLE table_name_14 (record VARCHAR, leading_scorer VARCHAR) ### Response: ### Response: SELECT record FROM table_name_14 WHERE leading_scorer = "rudy gay (20)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the bullet weight when the max pressure is 12,000 cup? ### Context: CREATE TABLE table_173103_1 (bullet_weight VARCHAR, max_pressure VARCHAR) ### Response: ### Response: SELECT bullet_weight FROM table_173103_1 WHERE max_pressure = "12,000 CUP"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the High assists when the record was 28–40? ### Context: CREATE TABLE table_name_64 (high_assists VARCHAR, record VARCHAR) ### Response: ### Response: SELECT high_assists FROM table_name_64 WHERE record = "28–40"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is thea year the road closed April 13? ### Context: CREATE TABLE table_12791809_1 (year INTEGER, road_closed VARCHAR) ### Response: ### Response: SELECT MAX(year) FROM table_12791809_1 WHERE road_closed = "April 13"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: tell the competitions where the mean is 1 ### Context: CREATE TABLE table_1354805_6 (average VARCHAR, number_of_dances VARCHAR) ### Response: ### Response: SELECT average FROM table_1354805_6 WHERE number_of_dances = 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Court Rank of Son of Norihiro's Lineage? ### Context: CREATE TABLE table_name_6 (court_rank VARCHAR, lineage VARCHAR) ### Response: ### Response: SELECT court_rank FROM table_name_6 WHERE lineage = "son of norihiro"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What country did Gil play against on 21–23 september 2007? ### Context: CREATE TABLE table_18042031_16 (against VARCHAR, date VARCHAR) ### Response: ### Response: SELECT against FROM table_18042031_16 WHERE date = "21–23 September 2007"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which college has a pick number of 155? ### Context: CREATE TABLE table_name_19 (college VARCHAR, pick__number VARCHAR) ### Response: ### Response: SELECT college FROM table_name_19 WHERE pick__number = 155</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What are the purchase details of transactions with amount bigger than 10000? ### Context: CREATE TABLE PURCHASES (purchase_details VARCHAR, purchase_transaction_id VARCHAR); CREATE TABLE TRANSACTIONS (transaction_id VARCHAR, amount_of_transaction INTEGER) ### Response: ### Response: SELECT T1.purchase_details FROM PURCHASES AS T1 JOIN TRANSACTIONS AS T2 ON T1.purchase_transaction_id = T2.transaction_id WHERE T2.amount_of_transaction > 10000</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what was the score of bert yancey ### Context: CREATE TABLE table_name_83 (score VARCHAR, player VARCHAR) ### Response: ### Response: SELECT score FROM table_name_83 WHERE player = "bert yancey"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Rank is the Country of soviet union with a Total smaller than 19? ### Context: CREATE TABLE table_name_94 (rank INTEGER, country VARCHAR, total VARCHAR) ### Response: ### Response: SELECT MIN(rank) FROM table_name_94 WHERE country = "soviet union" AND total < 19</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: List the record company shared by the most number of orchestras. ### Context: CREATE TABLE orchestra (Record_Company VARCHAR) ### Response: ### Response: SELECT Record_Company FROM orchestra GROUP BY Record_Company ORDER BY COUNT(*) DESC LIMIT 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: In which state did Marquis Li rule? ### Context: CREATE TABLE table_name_43 (state VARCHAR, name VARCHAR, title VARCHAR) ### Response: ### Response: SELECT state FROM table_name_43 WHERE name = "li" AND title = "marquis"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what is the number of draws for ali said gouled? ### Context: CREATE TABLE table_name_12 (draws VARCHAR, name VARCHAR) ### Response: ### Response: SELECT COUNT(draws) FROM table_name_12 WHERE name = "ali said gouled"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who were the candidates when Noble Jones Gregory was incumbent? ### Context: CREATE TABLE table_1342270_17 (candidates VARCHAR, incumbent VARCHAR) ### Response: ### Response: SELECT candidates FROM table_1342270_17 WHERE incumbent = "Noble Jones Gregory"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which earth has west metal? ### Context: CREATE TABLE table_name_10 (earth VARCHAR, metal VARCHAR) ### Response: ### Response: SELECT earth FROM table_name_10 WHERE metal = "west"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many seasons have fernando alonso as the driver, and a percentage of possible points of 64.12% and points less than 109? ### Context: CREATE TABLE table_name_31 (season INTEGER, points VARCHAR, driver VARCHAR, percentage_of_possible_points VARCHAR) ### Response: ### Response: SELECT SUM(season) FROM table_name_31 WHERE driver = "fernando alonso" AND percentage_of_possible_points = "64.12%" AND points < 109</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What city or Raion (district) has 8,600 Bessarabian Bulgarians? ### Context: CREATE TABLE table_name_58 (raion__district__or_city VARCHAR, bessarabian_bulgarians VARCHAR) ### Response: ### Response: SELECT raion__district__or_city FROM table_name_58 WHERE bessarabian_bulgarians = "8,600"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who won group III when group 1 was of the racing club? ### Context: CREATE TABLE table_name_99 (group_iII VARCHAR, group_i VARCHAR) ### Response: ### Response: SELECT group_iII FROM table_name_99 WHERE group_i = "racing club"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What date has an outcome of runner-up, and a Score of 6–4, 6–2, and a Opponents of gisela dulko flavia pennetta? ### Context: CREATE TABLE table_name_42 (date VARCHAR, opponents VARCHAR, outcome VARCHAR, score VARCHAR) ### Response: ### Response: SELECT date FROM table_name_42 WHERE outcome = "runner-up" AND score = "6–4, 6–2" AND opponents = "gisela dulko flavia pennetta"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which animal has a resting potential of −60? ### Context: CREATE TABLE table_name_75 (animal VARCHAR, resting_potential__mv_ VARCHAR) ### Response: ### Response: SELECT animal FROM table_name_75 WHERE resting_potential__mv_ = "−60"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How much did Nina Carberry win? ### Context: CREATE TABLE table_26903214_1 (prize_money VARCHAR, rider VARCHAR) ### Response: ### Response: SELECT prize_money FROM table_26903214_1 WHERE rider = "Nina Carberry"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Show the names of high schoolers who have likes, and numbers of likes for each. ### Context: CREATE TABLE Likes (student_id VARCHAR); CREATE TABLE Highschooler (name VARCHAR, id VARCHAR) ### Response: ### Response: SELECT T2.name, COUNT(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the largest number lost with 0 draws and less than 12 points for Gwardia Katowice? ### Context: CREATE TABLE table_name_81 (lost INTEGER, points VARCHAR, draw VARCHAR, team VARCHAR) ### Response: ### Response: SELECT MAX(lost) FROM table_name_81 WHERE draw = 0 AND team = "gwardia katowice" AND points < 12</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many sections does course ACCT-211 has? ### Context: CREATE TABLE CLASS (class_section VARCHAR, crs_code VARCHAR) ### Response: ### Response: SELECT COUNT(DISTINCT class_section) FROM CLASS WHERE crs_code = 'ACCT-211'</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the number of gold medals for Lithuania (ltu), when the total is more than 1? ### Context: CREATE TABLE table_name_57 (gold INTEGER, nation VARCHAR, total VARCHAR) ### Response: ### Response: SELECT MAX(gold) FROM table_name_57 WHERE nation = "lithuania (ltu)" AND total > 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many matches where played with Jim Pugh? ### Context: CREATE TABLE table_1028356_3 (opponents VARCHAR, partner VARCHAR) ### Response: ### Response: SELECT COUNT(opponents) FROM table_1028356_3 WHERE partner = "Jim Pugh"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Show all distinct cities in the address record. ### Context: CREATE TABLE addresses (city VARCHAR) ### Response: ### Response: SELECT DISTINCT city FROM addresses</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Rank has a Nationality of france, and a Name of alain bernard, and a Lane smaller than 6? ### Context: CREATE TABLE table_name_18 (rank INTEGER, lane VARCHAR, nationality VARCHAR, name VARCHAR) ### Response: ### Response: SELECT AVG(rank) FROM table_name_18 WHERE nationality = "france" AND name = "alain bernard" AND lane < 6</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: For college/junior/club team is brandon wheat kings (whl) mention all the player name ### Context: CREATE TABLE table_2781227_4 (player VARCHAR, college_junior_club_team VARCHAR) ### Response: ### Response: SELECT player FROM table_2781227_4 WHERE college_junior_club_team = "Brandon Wheat Kings (WHL)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the away side score when footscray is the home side? ### Context: CREATE TABLE table_name_38 (away_team VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT away_team AS score FROM table_name_38 WHERE home_team = "footscray"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the highest S number with a capital of Shekhsar? ### Context: CREATE TABLE table_name_5 (sno INTEGER, capital VARCHAR) ### Response: ### Response: SELECT MAX(sno) FROM table_name_5 WHERE capital = "shekhsar"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the average Apr 2013 with a Jun 2011 less than 14? ### Context: CREATE TABLE table_name_76 (apr_2013 INTEGER, jun_2011 INTEGER) ### Response: ### Response: SELECT AVG(apr_2013) FROM table_name_76 WHERE jun_2011 < 14</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what is the grid when the laps is 2? ### Context: CREATE TABLE table_name_21 (grid VARCHAR, laps VARCHAR) ### Response: ### Response: SELECT grid FROM table_name_21 WHERE laps = 2</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What are the title that have 19.48 million u.s. viewers? ### Context: CREATE TABLE table_1130632_1 (title VARCHAR, us_viewers__million_ VARCHAR) ### Response: ### Response: SELECT title FROM table_1130632_1 WHERE us_viewers__million_ = "19.48"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: who was the winner of uci rating cn? ### Context: CREATE TABLE table_27887723_1 (winner VARCHAR, uci_rating VARCHAR) ### Response: ### Response: SELECT winner FROM table_27887723_1 WHERE uci_rating = "CN"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What primary sponsor(s) owns ford fusion car(s) and the crew chief is Drew Blickensderfer? ### Context: CREATE TABLE table_name_34 (primary_sponsor_s_ VARCHAR, car_s_ VARCHAR, crew_chief VARCHAR) ### Response: ### Response: SELECT primary_sponsor_s_ FROM table_name_34 WHERE car_s_ = "ford fusion" AND crew_chief = "drew blickensderfer"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Result of the event with a Record of 1-3? ### Context: CREATE TABLE table_name_39 (result VARCHAR, record VARCHAR) ### Response: ### Response: SELECT result FROM table_name_39 WHERE record = "1-3"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the host of the round in the Montagne Center in Texas? ### Context: CREATE TABLE table_name_62 (host VARCHAR, state VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT host FROM table_name_62 WHERE state = "texas" AND venue = "montagne center"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the winning score in 1985 for Championship of u.s. women's open? ### Context: CREATE TABLE table_name_8 (winning_score VARCHAR, year VARCHAR, championship VARCHAR) ### Response: ### Response: SELECT winning_score FROM table_name_8 WHERE year < 1985 AND championship = "u.s. women's open"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the lowest Attendance on 8 October 1986? ### Context: CREATE TABLE table_name_1 (attendance INTEGER, date VARCHAR) ### Response: ### Response: SELECT MIN(attendance) FROM table_name_1 WHERE date = "8 october 1986"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Tell me the horse when the faults are 9 and the total is 46.36 ### Context: CREATE TABLE table_name_11 (horse VARCHAR, faults VARCHAR, total VARCHAR) ### Response: ### Response: SELECT horse FROM table_name_11 WHERE faults = "9" AND total = 46.36</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Tell me the height which has a surpassed by of book tower ### Context: CREATE TABLE table_name_2 (height_feet_m VARCHAR, surpassed_by VARCHAR) ### Response: ### Response: SELECT height_feet_m FROM table_name_2 WHERE surpassed_by = "book tower"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What's the average to par for lee trevino? ### Context: CREATE TABLE table_name_13 (to_par INTEGER, player VARCHAR) ### Response: ### Response: SELECT AVG(to_par) FROM table_name_13 WHERE player = "lee trevino"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many Goals against have Wins larger than 12, and a Club of ud las palmas, and a Position larger than 5? ### Context: CREATE TABLE table_name_48 (goals_against VARCHAR, position VARCHAR, wins VARCHAR, club VARCHAR) ### Response: ### Response: SELECT COUNT(goals_against) FROM table_name_48 WHERE wins > 12 AND club = "ud las palmas" AND position > 5</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Attendance has a Home of philadelphia, and Points smaller than 23? ### Context: CREATE TABLE table_name_59 (attendance INTEGER, home VARCHAR, points VARCHAR) ### Response: ### Response: SELECT SUM(attendance) FROM table_name_59 WHERE home = "philadelphia" AND points < 23</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the entered for famous for page 3 model ### Context: CREATE TABLE table_14345690_4 (entered VARCHAR, famous_for VARCHAR) ### Response: ### Response: SELECT entered FROM table_14345690_4 WHERE famous_for = "Page 3 Model"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What position did the player from maynard evans hs play ### Context: CREATE TABLE table_11545282_4 (position VARCHAR, school_club_team VARCHAR) ### Response: ### Response: SELECT position FROM table_11545282_4 WHERE school_club_team = "Maynard Evans HS"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the ICAO with commenced operations before 1989? ### Context: CREATE TABLE table_name_2 (icao VARCHAR, commenced_operations INTEGER) ### Response: ### Response: SELECT icao FROM table_name_2 WHERE commenced_operations < 1989</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the home team that played Geelong? ### Context: CREATE TABLE table_name_43 (home_team VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT home_team AS score FROM table_name_43 WHERE away_team = "geelong"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the original air date of the episode with 908000 viewers? ### Context: CREATE TABLE table_27547668_2 (original_airdate VARCHAR, viewers VARCHAR) ### Response: ### Response: SELECT original_airdate FROM table_27547668_2 WHERE viewers = 908000</s>