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: What was the crowd size at Junction Oval? ### Context: CREATE TABLE table_name_78 (crowd INTEGER, venue VARCHAR) ### Response: ### Response: SELECT MAX(crowd) FROM table_name_78 WHERE venue = "junction oval"</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: Points larger than 108, and a Wins of 0, and a Rank smaller than 8, and a Manufacturer of honda is what rider? ### Context: CREATE TABLE table_name_64 (rider VARCHAR, manufacturer VARCHAR, rank VARCHAR, points VARCHAR, wins VARCHAR) ### Response: ### Response: SELECT rider FROM table_name_64 WHERE points > 108 AND wins = 0 AND rank < 8 AND manufacturer = "honda"</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's Content is TV Locale? ### Context: CREATE TABLE table_name_9 (country VARCHAR, content VARCHAR) ### Response: ### Response: SELECT country FROM table_name_9 WHERE content = "tv locale"</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 High Assists, when Team is "Oklahoma City"? ### Context: CREATE TABLE table_name_38 (high_assists VARCHAR, team VARCHAR) ### Response: ### Response: SELECT high_assists FROM table_name_38 WHERE team = "oklahoma city"</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 team in 2013? ### Context: CREATE TABLE table_name_74 (winning_team VARCHAR, year VARCHAR) ### Response: ### Response: SELECT winning_team FROM table_name_74 WHERE year = 2013</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 Home team on November 16, 1946? ### Context: CREATE TABLE table_name_38 (home VARCHAR, date VARCHAR) ### Response: ### Response: SELECT home FROM table_name_38 WHERE date = "november 16, 1946"</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 total rounds has lehigh as the college? ### Context: CREATE TABLE table_name_90 (round VARCHAR, college VARCHAR) ### Response: ### Response: SELECT COUNT(round) FROM table_name_90 WHERE college = "lehigh"</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: Can you tell me the Score that has the Opponent of at edmonton oilers? ### Context: CREATE TABLE table_name_97 (score VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT score FROM table_name_97 WHERE opponent = "at edmonton oilers"</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 Competition on August 3, 2005 had a Score of 5-0? ### Context: CREATE TABLE table_name_16 (competition VARCHAR, score VARCHAR, date VARCHAR) ### Response: ### Response: SELECT competition FROM table_name_16 WHERE score = "5-0" AND date = "august 3, 2005"</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 somerset for the year 2009? ### Context: CREATE TABLE table_12043148_2 (somerset VARCHAR, year VARCHAR) ### Response: ### Response: SELECT somerset FROM table_12043148_2 WHERE year = 2009</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 GAMES HAD A WIN WITH A BONUS OF 11 ### Context: CREATE TABLE table_12807904_3 (won VARCHAR, try_bonus VARCHAR) ### Response: ### Response: SELECT won FROM table_12807904_3 WHERE try_bonus = "11"</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 Population in Millions, when GDP 2012 Millions of Euro is 600,638? ### Context: CREATE TABLE table_name_73 (population_in_millions VARCHAR, gdp_2012_millions_of_euro VARCHAR) ### Response: ### Response: SELECT population_in_millions FROM table_name_73 WHERE gdp_2012_millions_of_euro = "600,638"</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 loss of the game when the record was 50-32? ### Context: CREATE TABLE table_name_81 (loss VARCHAR, record VARCHAR) ### Response: ### Response: SELECT loss FROM table_name_81 WHERE record = "50-32"</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 district for the parish, Brough? ### Context: CREATE TABLE table_name_58 (district VARCHAR, name VARCHAR) ### Response: ### Response: SELECT district FROM table_name_58 WHERE name = "brough"</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 Record has a Visitor of pittsburgh, and a Score of 4–0? ### Context: CREATE TABLE table_name_23 (record VARCHAR, visitor VARCHAR, score VARCHAR) ### Response: ### Response: SELECT record FROM table_name_23 WHERE visitor = "pittsburgh" AND score = "4–0"</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 on March 1? ### Context: CREATE TABLE table_name_18 (score VARCHAR, date VARCHAR) ### Response: ### Response: SELECT score FROM table_name_18 WHERE date = "march 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 are the goals for Pelletieri in ARG? ### Context: CREATE TABLE table_name_18 (goals_l_c_e_ VARCHAR, nat VARCHAR, name VARCHAR) ### Response: ### Response: SELECT goals_l_c_e_ FROM table_name_18 WHERE nat = "arg" AND name = "pelletieri"</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 score of the game on January 12? ### Context: CREATE TABLE table_name_46 (score VARCHAR, date VARCHAR) ### Response: ### Response: SELECT score FROM table_name_46 WHERE date = "january 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: What is the T4 Place Player with a Score of more than 66? ### Context: CREATE TABLE table_name_1 (player VARCHAR, score VARCHAR, place VARCHAR) ### Response: ### Response: SELECT player FROM table_name_1 WHERE score > 66 AND place = "t4"</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 Song has Points smaller than 54, and a Draw smaller than 4, and a Place smaller than 10? ### Context: CREATE TABLE table_name_90 (song VARCHAR, place VARCHAR, points VARCHAR, draw VARCHAR) ### Response: ### Response: SELECT song FROM table_name_90 WHERE points < 54 AND draw < 4 AND place < 10</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 reserves are in Herzogtum Lauenburg with an area of 123,14? ### Context: CREATE TABLE table_26013618_1 (nsg_nr VARCHAR, district___town VARCHAR, area__ha_ VARCHAR) ### Response: ### Response: SELECT COUNT(nsg_nr) FROM table_26013618_1 WHERE district___town = "Herzogtum Lauenburg" AND area__ha_ = "123,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 home team score when the away team is St Kilda? ### Context: CREATE TABLE table_name_37 (home_team VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT home_team AS score FROM table_name_37 WHERE away_team = "st kilda"</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 total population with less than 789 males? ### Context: CREATE TABLE table_name_12 (total_population VARCHAR, male INTEGER) ### Response: ### Response: SELECT COUNT(total_population) FROM table_name_12 WHERE male < 789</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 runner-up on Jan 19, 1964? ### Context: CREATE TABLE table_name_89 (runner_s__up VARCHAR, date VARCHAR) ### Response: ### Response: SELECT runner_s__up FROM table_name_89 WHERE date = "jan 19, 1964"</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 opponent with date being october 25, 1964 ### Context: CREATE TABLE table_14984126_1 (opponent VARCHAR, date VARCHAR) ### Response: ### Response: SELECT COUNT(opponent) FROM table_14984126_1 WHERE date = "October 25, 1964"</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: During runs 332, what was the venue? ### Context: CREATE TABLE table_name_60 (venue VARCHAR, runs VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_60 WHERE runs = "332"</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 Kemmerode has a Gersforf of 39? ### Context: CREATE TABLE table_name_68 (kemmerode VARCHAR, gersdorf VARCHAR) ### Response: ### Response: SELECT kemmerode FROM table_name_68 WHERE gersdorf = "39"</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 directors. ### Context: CREATE TABLE film (directed_by VARCHAR) ### Response: ### Response: SELECT DISTINCT directed_by FROM film</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 players have played for Jazz during 2006-2007? ### Context: CREATE TABLE table_11545282_6 (player VARCHAR, years_for_jazz VARCHAR) ### Response: ### Response: SELECT COUNT(player) FROM table_11545282_6 WHERE years_for_jazz = "2006-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: Name the position for the player born 2 november 1987 ### Context: CREATE TABLE table_name_80 (position VARCHAR, date_of_birth__age_ VARCHAR) ### Response: ### Response: SELECT position FROM table_name_80 WHERE date_of_birth__age_ = "2 november 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 winner has royal st george's golf club as the venue, and 1969 as the year? ### Context: CREATE TABLE table_name_70 (winner VARCHAR, venue VARCHAR, year VARCHAR) ### Response: ### Response: SELECT winner FROM table_name_70 WHERE venue = "royal st george's golf club" AND year = "1969"</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 YEAR HAS A BRONZE OF VALENTIN NOVIKOV? ### Context: CREATE TABLE table_name_88 (year INTEGER, bronze VARCHAR) ### Response: ### Response: SELECT AVG(year) FROM table_name_88 WHERE bronze = "valentin novikov"</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 home team at the game held at Princes Park? ### Context: CREATE TABLE table_name_76 (home_team VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT home_team FROM table_name_76 WHERE venue = "princes park"</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 league/cup competition with the swindon wildcats as the opponent and neil liddiard as the man of the match? ### Context: CREATE TABLE table_name_45 (result VARCHAR, man_of_the_match VARCHAR, competition VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT result FROM table_name_45 WHERE competition = "league/cup" AND opponent = "swindon wildcats" AND man_of_the_match = "neil liddiard"</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 mm dimensions of the Plustek Mobileoffice D28 Corporate? ### Context: CREATE TABLE table_16409745_1 (dimensions__mm_ VARCHAR, product VARCHAR) ### Response: ### Response: SELECT dimensions__mm_ FROM table_16409745_1 WHERE product = "Plustek MobileOffice D28 Corporate"</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 average with less than 3 places, less than 433 total points, and a rank less than 2? ### Context: CREATE TABLE table_name_62 (average INTEGER, rank_by_average VARCHAR, place VARCHAR, total_points VARCHAR) ### Response: ### Response: SELECT MAX(average) FROM table_name_62 WHERE place < 3 AND total_points < 433 AND rank_by_average < 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 average, maximum, and minimum number of floors for all buildings? ### Context: CREATE TABLE building (floors INTEGER) ### Response: ### Response: SELECT AVG(floors), MAX(floors), MIN(floors) FROM building</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 fate for the Bremen ship? ### Context: CREATE TABLE table_name_26 (fate VARCHAR, ship VARCHAR) ### Response: ### Response: SELECT fate FROM table_name_26 WHERE ship = "bremen"</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 most number of losses for teams with 5 wins and an against value under 1607? ### Context: CREATE TABLE table_name_65 (losses INTEGER, wins VARCHAR, against VARCHAR) ### Response: ### Response: SELECT MAX(losses) FROM table_name_65 WHERE wins = 5 AND against < 1607</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 Music has a Points Jury of 18 (5,5,4,4)? ### Context: CREATE TABLE table_name_32 (music VARCHAR, points_jury VARCHAR) ### Response: ### Response: SELECT music FROM table_name_32 WHERE points_jury = "18 (5,5,4,4)"</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 time for 2009? ### Context: CREATE TABLE table_name_14 (time VARCHAR, year VARCHAR) ### Response: ### Response: SELECT time FROM table_name_14 WHERE year = 2009</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 sequence length (aa) of the protein with the common name Purple Sea Urchin and a divergence from human lineage less than 742.9? ### Context: CREATE TABLE table_name_67 (sequence_length__aa_ INTEGER, common_name VARCHAR, divergence_from_human_lineage__mya_ VARCHAR) ### Response: ### Response: SELECT SUM(sequence_length__aa_) FROM table_name_67 WHERE common_name = "purple sea urchin" AND divergence_from_human_lineage__mya_ < 742.9</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 Robert Allenby's average to par score? ### Context: CREATE TABLE table_name_88 (to_par INTEGER, player VARCHAR) ### Response: ### Response: SELECT AVG(to_par) FROM table_name_88 WHERE player = "robert allenby"</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 is the lane less than 5 and is named ágnes kovács? ### Context: CREATE TABLE table_name_65 (time VARCHAR, lane VARCHAR, name VARCHAR) ### Response: ### Response: SELECT time FROM table_name_65 WHERE lane < 5 AND name = "ágnes kovács"</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 pole position for 8 september ### Context: CREATE TABLE table_name_35 (pole_position VARCHAR, date VARCHAR) ### Response: ### Response: SELECT pole_position FROM table_name_35 WHERE date = "8 september"</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 final round score for the player from the Milwaukee Bucks? ### Context: CREATE TABLE table_name_31 (final_round VARCHAR, team VARCHAR) ### Response: ### Response: SELECT final_round FROM table_name_31 WHERE team = "milwaukee bucks"</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: Find the number of vocal types used in song "Le Pop" ### Context: CREATE TABLE vocals (songid VARCHAR); CREATE TABLE songs (songid VARCHAR) ### Response: ### Response: SELECT COUNT(*) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Le Pop"</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 score for december 27 ### Context: CREATE TABLE table_23284271_6 (score VARCHAR, date VARCHAR) ### Response: ### Response: SELECT COUNT(score) FROM table_23284271_6 WHERE date = "December 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 number of teams where the record is 0-1 ### Context: CREATE TABLE table_26173058_2 (amman VARCHAR, wehdat VARCHAR) ### Response: ### Response: SELECT COUNT(amman) FROM table_26173058_2 WHERE wehdat = "0-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: Find the names of customers who either have an deputy policy or uniformed policy. ### Context: CREATE TABLE policies (customer_id VARCHAR, policy_type_code VARCHAR); CREATE TABLE customers (customer_details VARCHAR, customer_id VARCHAR) ### Response: ### Response: SELECT DISTINCT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id WHERE t1.policy_type_code = "Deputy" OR t1.policy_type_code = "Uniform"</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 Author/Editor/Source for more than 100 countries sampled and has a 35 world ranking? ### Context: CREATE TABLE table_name_86 (author___editor___source VARCHAR, world_ranking__1_ VARCHAR, countries_sampled VARCHAR) ### Response: ### Response: SELECT author___editor___source FROM table_name_86 WHERE world_ranking__1_ = "35" AND countries_sampled > 100</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 player from Houston, TX? ### Context: CREATE TABLE table_name_49 (player VARCHAR, hometown VARCHAR) ### Response: ### Response: SELECT player FROM table_name_49 WHERE hometown = "houston, tx"</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 does visitor team Toronto score less than 49 points and has record of 18-17-7? ### Context: CREATE TABLE table_name_73 (date VARCHAR, record VARCHAR, visitor VARCHAR, points VARCHAR) ### Response: ### Response: SELECT date FROM table_name_73 WHERE visitor = "toronto" AND points < 49 AND record = "18-17-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 was the 2007 result for a 2008 result of 1R and 2009 result of 2R? ### Context: CREATE TABLE table_name_47 (Id VARCHAR) ### Response: ### Response: SELECT 2007 FROM table_name_47 WHERE 2009 = "2r" AND 2008 = "1r"</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 tickets were available at Halle Tony Garnier on June 15, 2009? ### Context: CREATE TABLE table_name_75 (tickets_available_since VARCHAR, venue VARCHAR, date VARCHAR) ### Response: ### Response: SELECT tickets_available_since FROM table_name_75 WHERE venue = "halle tony garnier" AND date = "june 15, 2009"</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 source of the poll that gave McAuliffe 30% on June 8? ### Context: CREATE TABLE table_21535453_1 (source VARCHAR, terry_mcauliffe VARCHAR, dates_administered VARCHAR) ### Response: ### Response: SELECT source FROM table_21535453_1 WHERE terry_mcauliffe = "30%" AND dates_administered = "June 8"</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 county is the school of Merrillville? ### Context: CREATE TABLE table_name_17 (county VARCHAR, school VARCHAR) ### Response: ### Response: SELECT county FROM table_name_17 WHERE school = "merrillville"</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 people were in the crowd with the away team being collingwood? ### Context: CREATE TABLE table_name_5 (crowd VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT COUNT(crowd) FROM table_name_5 WHERE away_team = "collingwood"</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 year of the TV series that has a character of Leiloon Bala Barareh? ### Context: CREATE TABLE table_name_88 (year VARCHAR, character VARCHAR) ### Response: ### Response: SELECT year FROM table_name_88 WHERE character = "leiloon bala barareh"</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: Find the distinct first names of the students who have class senator votes. ### Context: CREATE TABLE STUDENT (Fname VARCHAR, StuID VARCHAR); CREATE TABLE VOTING_RECORD (CLASS_Senator_VOTE VARCHAR) ### Response: ### Response: SELECT DISTINCT T1.Fname FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.CLASS_Senator_VOTE</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 number of laps that were made when the race took a time of +48.325? ### Context: CREATE TABLE table_name_89 (laps INTEGER, time_retired VARCHAR) ### Response: ### Response: SELECT AVG(laps) FROM table_name_89 WHERE time_retired = "+48.325"</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 positions have points against less than 28, americano-sp as the team, with a played greater than 8? ### Context: CREATE TABLE table_name_7 (position VARCHAR, played VARCHAR, against VARCHAR, team VARCHAR) ### Response: ### Response: SELECT COUNT(position) FROM table_name_7 WHERE against < 28 AND team = "americano-sp" AND played > 8</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 winner with tournament value of kroger senior classic ### Context: CREATE TABLE table_11621915_1 (winner VARCHAR, tournament VARCHAR) ### Response: ### Response: SELECT winner FROM table_11621915_1 WHERE tournament = "Kroger Senior Classic"</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 Lead has a Nation of croatia? ### Context: CREATE TABLE table_name_99 (lead VARCHAR, nation VARCHAR) ### Response: ### Response: SELECT lead FROM table_name_99 WHERE nation = "croatia"</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 most wickets for best is 4/22 ### Context: CREATE TABLE table_17900317_5 (wickets INTEGER, best VARCHAR) ### Response: ### Response: SELECT MAX(wickets) FROM table_17900317_5 WHERE best = "4/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 many cities have a stadium that was opened before the year of 2006? ### Context: CREATE TABLE stadium (city VARCHAR, opening_year INTEGER) ### Response: ### Response: SELECT COUNT(DISTINCT city) FROM stadium WHERE opening_year < 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 origin of aircraft in service in 1943 and retired in 1954? ### Context: CREATE TABLE table_13605170_2 (national_origin VARCHAR, retired VARCHAR, in_service VARCHAR) ### Response: ### Response: SELECT national_origin FROM table_13605170_2 WHERE retired = "1954" AND in_service = "1943"</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 title of the film with the release date of 1954-12-18? ### Context: CREATE TABLE table_name_95 (title VARCHAR, release_date VARCHAR) ### Response: ### Response: SELECT title FROM table_name_95 WHERE release_date = "1954-12-18"</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 Big Ten Team #4 Purdue? ### Context: CREATE TABLE table_23058971_8 (winner VARCHAR, big_ten_team VARCHAR) ### Response: ### Response: SELECT winner FROM table_23058971_8 WHERE big_ten_team = "#4 Purdue"</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 Opponent has a Week larger than 2 on november 19, 1995? ### Context: CREATE TABLE table_name_81 (opponent VARCHAR, week VARCHAR, date VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_81 WHERE week > 2 AND date = "november 19, 1995"</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 when the margin of victory was 2 strokes and the runner-up was Pat Bradley? ### Context: CREATE TABLE table_name_69 (winning_score VARCHAR, margin_of_victory VARCHAR, runner_s__up VARCHAR) ### Response: ### Response: SELECT winning_score FROM table_name_69 WHERE margin_of_victory = "2 strokes" AND runner_s__up = "pat bradley"</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 has a week larger than 14? ### Context: CREATE TABLE table_name_42 (date VARCHAR, week INTEGER) ### Response: ### Response: SELECT date FROM table_name_42 WHERE week > 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: How many positions did the car with a final time of +10.8098 finish in? ### Context: CREATE TABLE table_17244483_1 (fin_pos VARCHAR, time_retired VARCHAR) ### Response: ### Response: SELECT COUNT(fin_pos) FROM table_17244483_1 WHERE time_retired = "+10.8098"</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 distance in the Manikato Stakes race? ### Context: CREATE TABLE table_2581397_4 (distance VARCHAR, race VARCHAR) ### Response: ### Response: SELECT distance FROM table_2581397_4 WHERE race = "Manikato Stakes"</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 high rebounds for record 7-1 ### Context: CREATE TABLE table_18894744_5 (high_rebounds VARCHAR, record VARCHAR) ### Response: ### Response: SELECT high_rebounds FROM table_18894744_5 WHERE record = "7-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 was the aggregate total for the match against Koper? ### Context: CREATE TABLE table_name_49 (agg VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT agg FROM table_name_49 WHERE opponent = "koper"</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 tyres for Didier pironi? ### Context: CREATE TABLE table_name_10 (tyres VARCHAR, driver VARCHAR) ### Response: ### Response: SELECT tyres FROM table_name_10 WHERE driver = "didier pironi"</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 minimum population of the parish with a 750.51 km area? ### Context: CREATE TABLE table_176524_2 (population INTEGER, area_km_2 VARCHAR) ### Response: ### Response: SELECT MIN(population) FROM table_176524_2 WHERE area_km_2 = "750.51"</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: During what year was Wicked associated with the Green Room Awards? ### Context: CREATE TABLE table_name_44 (year VARCHAR, production VARCHAR, award VARCHAR) ### Response: ### Response: SELECT year FROM table_name_44 WHERE production = "wicked" AND award = "green room awards"</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 draft picks are there at the linebacker position? ### Context: CREATE TABLE table_16729063_1 (pick__number VARCHAR, position VARCHAR) ### Response: ### Response: SELECT COUNT(pick__number) FROM table_16729063_1 WHERE position = "Linebacker"</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 did the city of Novi Sad participate? ### Context: CREATE TABLE table_name_14 (date VARCHAR, city VARCHAR) ### Response: ### Response: SELECT date FROM table_name_14 WHERE city = "novi sad"</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 current version of windows 8 with an RTM build of 9200? ### Context: CREATE TABLE table_name_14 (current_version VARCHAR, rtm_build VARCHAR, name VARCHAR) ### Response: ### Response: SELECT current_version FROM table_name_14 WHERE rtm_build = "9200" AND name = "windows 8"</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: During which stage was the Intergiro classification held by Miguel Indurain, the Points classification held by Mario Cipollini, and the Young rider classification held by Leonardo Sierra? ### Context: CREATE TABLE table_name_76 (stage VARCHAR, young_rider_classification VARCHAR, intergiro_classification VARCHAR, points_classification VARCHAR) ### Response: ### Response: SELECT stage FROM table_name_76 WHERE intergiro_classification = "miguel indurain" AND points_classification = "mario cipollini" AND young_rider_classification = "leonardo sierra"</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 films were in assamese? ### Context: CREATE TABLE table_25926120_3 (name_of_film VARCHAR, language VARCHAR) ### Response: ### Response: SELECT COUNT(name_of_film) FROM table_25926120_3 WHERE language = "Assamese"</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 team of Suzuki with under 16 points? ### Context: CREATE TABLE table_name_96 (rank VARCHAR, team VARCHAR, points VARCHAR) ### Response: ### Response: SELECT rank FROM table_name_96 WHERE team = "suzuki" AND points < 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: Which 2011 has a 2010 of 1r, and a 2009 of 1r? ### Context: CREATE TABLE table_name_99 (Id VARCHAR) ### Response: ### Response: SELECT 2011 FROM table_name_99 WHERE 2010 = "1r" AND 2009 = "1r"</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 Week 7 Oct 12 has a Week 11 Nov 9 of week 11 nov 9? ### Context: CREATE TABLE table_name_15 (week_7_oct_12 VARCHAR, week_11_nov_9 VARCHAR) ### Response: ### Response: SELECT week_7_oct_12 FROM table_name_15 WHERE week_11_nov_9 = "week 11 nov 9"</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 McCains percent when Obamas is 39.13% ### Context: CREATE TABLE table_20688030_1 (mccain_number VARCHAR, obama_percentage VARCHAR) ### Response: ### Response: SELECT COUNT(mccain_number) FROM table_20688030_1 WHERE obama_percentage = "39.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: Name th score for may 11, 2003 ### Context: CREATE TABLE table_name_1 (score VARCHAR, date VARCHAR) ### Response: ### Response: SELECT score FROM table_name_1 WHERE date = "may 11, 2003"</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 did 14.55 people watch? ### Context: CREATE TABLE table_26565917_2 (original_air_date VARCHAR, us_viewers__millions_ VARCHAR) ### Response: ### Response: SELECT original_air_date FROM table_26565917_2 WHERE us_viewers__millions_ = "14.55"</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 first elected incumbent in the 1946 election? ### Context: CREATE TABLE table_1342149_6 (incumbent VARCHAR, first_elected VARCHAR) ### Response: ### Response: SELECT incumbent FROM table_1342149_6 WHERE first_elected = "1946"</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 day did Phoenix play? ### Context: CREATE TABLE table_name_32 (date VARCHAR, team VARCHAR) ### Response: ### Response: SELECT date FROM table_name_32 WHERE team = "phoenix"</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 times was the participation at omni coliseum 7,194? ### Context: CREATE TABLE table_13464416_6 (game VARCHAR, location_attendance VARCHAR) ### Response: ### Response: SELECT game FROM table_13464416_6 WHERE location_attendance = "Omni Coliseum 7,194"</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 CFL Team with Will Grant? ### Context: CREATE TABLE table_name_32 (cfl_team VARCHAR, player VARCHAR) ### Response: ### Response: SELECT cfl_team FROM table_name_32 WHERE player = "will grant"</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 losses did the coach who served under 1 season and in 1975 have? ### Context: CREATE TABLE table_name_93 (lost VARCHAR, years VARCHAR, seasons VARCHAR) ### Response: ### Response: SELECT COUNT(lost) FROM table_name_93 WHERE years = "1975" AND seasons < 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 chassis is on the car repped by team rahal letterman lanigan racing? ### Context: CREATE TABLE table_2503102_2 (chassis VARCHAR, team VARCHAR) ### Response: ### Response: SELECT chassis FROM table_2503102_2 WHERE team = "Rahal Letterman Lanigan Racing"</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 length (miles) when the east or north terminus is ne 2 in lincoln? ### Context: CREATE TABLE table_name_95 (length__miles_ VARCHAR, east_or_north_terminus VARCHAR) ### Response: ### Response: SELECT COUNT(length__miles_) FROM table_name_95 WHERE east_or_north_terminus = "ne 2 in lincoln"</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 TIMES WAS LUDACRIS THE INTERVIEW SUBJECT FOR THE 20 QUESTIONS COLUMN? ### Context: CREATE TABLE table_1566852_7 (interview_subject VARCHAR) ### Response: ### Response: SELECT COUNT(20 AS _questions) FROM table_1566852_7 WHERE interview_subject = "Ludacris"</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 Apps of kairat after 2008 and a Level smaller than 1? ### Context: CREATE TABLE table_name_35 (apps INTEGER, level VARCHAR, season VARCHAR, team VARCHAR) ### Response: ### Response: SELECT MAX(apps) FROM table_name_35 WHERE season > 2008 AND team = "kairat" AND level < 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 total Year of jeff van note ( Kentucky) ### Context: CREATE TABLE table_name_10 (year INTEGER, kentucky VARCHAR) ### Response: ### Response: SELECT SUM(year) FROM table_name_10 WHERE kentucky = "jeff van note"</s>