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: Which province is Parun in? ### Context: CREATE TABLE table_name_98 (province VARCHAR, centers VARCHAR) ### Response: ### Response: SELECT province FROM table_name_98 WHERE centers = "parun"</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 artist uses a finish of selective gold plating? ### Context: CREATE TABLE table_name_29 (artist VARCHAR, finish VARCHAR) ### Response: ### Response: SELECT artist FROM table_name_29 WHERE finish = "selective gold plating"</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 class when adt champion racing ranked 1st with an audi r8 chassis, and less than 206 points? ### Context: CREATE TABLE table_name_2 (class VARCHAR, rank VARCHAR, entrant VARCHAR, points VARCHAR, chassis VARCHAR) ### Response: ### Response: SELECT class FROM table_name_2 WHERE points < 206 AND chassis = "audi r8" AND entrant = "adt champion racing" AND rank = "1st"</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 were there at UFC 114? ### Context: CREATE TABLE table_name_30 (round VARCHAR, event VARCHAR) ### Response: ### Response: SELECT COUNT(round) FROM table_name_30 WHERE event = "ufc 114"</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 attended the game with a result of w 16-13 and a week earlier than 12? ### Context: CREATE TABLE table_name_85 (attendance INTEGER, result VARCHAR, week VARCHAR) ### Response: ### Response: SELECT MAX(attendance) FROM table_name_85 WHERE result = "w 16-13" AND week < 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 number of goals when the goal difference was less than 43, and the position less than 3? ### Context: CREATE TABLE table_name_27 (goals_for INTEGER, goal_difference VARCHAR, position VARCHAR) ### Response: ### Response: SELECT SUM(goals_for) FROM table_name_27 WHERE goal_difference < 43 AND position < 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's the center of the province that spreads out on 23860 km2? ### Context: CREATE TABLE table_23887174_1 (center VARCHAR, area__km²_ VARCHAR) ### Response: ### Response: SELECT center FROM table_23887174_1 WHERE area__km²_ = 23860</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 the tournament, ending with Birdie Kim as a runner-up? ### Context: CREATE TABLE table_1940012_2 (winning_score VARCHAR, runner_s__up VARCHAR) ### Response: ### Response: SELECT winning_score FROM table_1940012_2 WHERE runner_s__up = "Birdie Kim"</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 side's score when geelong is the away team? ### Context: CREATE TABLE table_name_77 (home_team VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT home_team AS score FROM table_name_77 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 bronze number when the total is 54/ ### Context: CREATE TABLE table_name_30 (bronze INTEGER, total VARCHAR) ### Response: ### Response: SELECT AVG(bronze) FROM table_name_30 WHERE total = 54</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 for 4-1? ### Context: CREATE TABLE table_name_9 (score VARCHAR, record VARCHAR) ### Response: ### Response: SELECT score FROM table_name_9 WHERE record = "4-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 Poles have a Class of 125cc, and a Team of matteoni racing team, and Points larger than 3? ### Context: CREATE TABLE table_name_39 (poles INTEGER, points VARCHAR, class VARCHAR, team VARCHAR) ### Response: ### Response: SELECT SUM(poles) FROM table_name_39 WHERE class = "125cc" AND team = "matteoni racing team" AND points > 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 type of state did the ruler have a title? ### Context: CREATE TABLE table_name_54 (type VARCHAR, title VARCHAR) ### Response: ### Response: SELECT type FROM table_name_54 WHERE title = "ruler"</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 sprint classification being alejandro valverde ### Context: CREATE TABLE table_22713796_14 (sprint_classification VARCHAR, winner VARCHAR) ### Response: ### Response: SELECT sprint_classification FROM table_22713796_14 WHERE winner = "Alejandro Valverde"</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: On what Date in Stade Leopold Senghor, Dakar was the Score 4–0? ### Context: CREATE TABLE table_name_93 (date VARCHAR, score VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT date FROM table_name_93 WHERE score = "4–0" AND venue = "stade leopold senghor, dakar"</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 birth dates of employees living in Edmonton? ### Context: CREATE TABLE EMPLOYEE (BirthDate VARCHAR, City VARCHAR) ### Response: ### Response: SELECT BirthDate FROM EMPLOYEE WHERE City = "Edmonton"</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 total number of bronze with rank of 5 and silver more than 1 ### Context: CREATE TABLE table_name_39 (bronze VARCHAR, rank VARCHAR, silver VARCHAR) ### Response: ### Response: SELECT COUNT(bronze) FROM table_name_39 WHERE rank = "5" AND silver > 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 name of the album that was a demo release? ### Context: CREATE TABLE table_name_44 (album VARCHAR, release_type VARCHAR) ### Response: ### Response: SELECT album FROM table_name_44 WHERE release_type = "demo"</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's country is the US when the accolade is 40 best albums of the year? ### Context: CREATE TABLE table_name_96 (rank VARCHAR, country VARCHAR, accolade VARCHAR) ### Response: ### Response: SELECT rank FROM table_name_96 WHERE country = "us" AND accolade = "40 best albums of the year"</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 city and the number of branches opened before 2010 for each city. ### Context: CREATE TABLE branch (city VARCHAR, open_year INTEGER) ### Response: ### Response: SELECT city, COUNT(*) FROM branch WHERE open_year < 2010 GROUP BY 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 is the number of bonus points when there are 4 drawn? ### Context: CREATE TABLE table_name_28 (bonus_points VARCHAR, drawn VARCHAR) ### Response: ### Response: SELECT bonus_points FROM table_name_28 WHERE drawn = "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 original air date when ed horowitz wrote it? ### Context: CREATE TABLE table_name_89 (original_airdate VARCHAR, written_by VARCHAR) ### Response: ### Response: SELECT original_airdate FROM table_name_89 WHERE written_by = "ed horowitz"</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 Red List for the muridae family and species Authority of microtus pinetorum (le conte, 1830)? ### Context: CREATE TABLE table_name_70 (red_list INTEGER, family VARCHAR, species_authority VARCHAR) ### Response: ### Response: SELECT MAX(red_list) FROM table_name_70 WHERE family = "muridae" AND species_authority = "microtus pinetorum (le conte, 1830)"</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 inclination has a semimajor axis of 20 au? ### Context: CREATE TABLE table_name_16 (inclination VARCHAR, semimajor_axis___au__ VARCHAR) ### Response: ### Response: SELECT inclination FROM table_name_16 WHERE semimajor_axis___au__ = "20 au"</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 record on Feb 25? ### Context: CREATE TABLE table_name_83 (record VARCHAR, date VARCHAR) ### Response: ### Response: SELECT record FROM table_name_83 WHERE date = "feb 25"</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 womens singles for korea open super series ### Context: CREATE TABLE table_14496232_2 (womens_singles VARCHAR, tour VARCHAR) ### Response: ### Response: SELECT womens_singles FROM table_14496232_2 WHERE tour = "Korea Open Super Series"</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 PLACE WITH A SCORE OF 73-65-73-71=282? ### Context: CREATE TABLE table_name_84 (place VARCHAR, score VARCHAR) ### Response: ### Response: SELECT place FROM table_name_84 WHERE score = 73 - 65 - 73 - 71 = 282</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 watched the away team of Geelong? ### Context: CREATE TABLE table_name_63 (crowd VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT crowd FROM table_name_63 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 wa the date of the North Melbourne home game? ### Context: CREATE TABLE table_name_76 (date VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT date FROM table_name_76 WHERE home_team = "north melbourne"</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 the highest number for the opposite of offense for the green bay packers ### Context: CREATE TABLE table_1402270_1 (team_defense_rank INTEGER, nfl_team VARCHAR) ### Response: ### Response: SELECT MAX(team_defense_rank) FROM table_1402270_1 WHERE nfl_team = "Green Bay Packers"</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 did the election end for Terry L. Bruce? ### Context: CREATE TABLE table_1341586_14 (result VARCHAR, incumbent VARCHAR) ### Response: ### Response: SELECT result FROM table_1341586_14 WHERE incumbent = "Terry L. Bruce"</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 largest ethnic group for 24112 ### Context: CREATE TABLE table_2562572_20 (largest_ethnic_group__2002_ VARCHAR, population__2011_ VARCHAR) ### Response: ### Response: SELECT largest_ethnic_group__2002_ FROM table_2562572_20 WHERE population__2011_ = 24112</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 Number of households has Per capita income of $21,571, and a Population smaller than 9,783? ### Context: CREATE TABLE table_name_61 (number_of_households INTEGER, per_capita_income VARCHAR, population VARCHAR) ### Response: ### Response: SELECT AVG(number_of_households) FROM table_name_61 WHERE per_capita_income = "$21,571" AND population < 9 OFFSET 783</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 year that had an average attendance of 5,445? ### Context: CREATE TABLE table_name_64 (year VARCHAR, avg_attendance VARCHAR) ### Response: ### Response: SELECT year FROM table_name_64 WHERE avg_attendance = "5,445"</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 Laps has a Year of 2007? ### Context: CREATE TABLE table_name_80 (laps INTEGER, year VARCHAR) ### Response: ### Response: SELECT AVG(laps) FROM table_name_80 WHERE year = 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: Who had the lowest field goals if they had 12 touchdowns and more than 72 points? ### Context: CREATE TABLE table_name_40 (field_goals INTEGER, touchdowns VARCHAR, points VARCHAR) ### Response: ### Response: SELECT MIN(field_goals) FROM table_name_40 WHERE touchdowns = 12 AND points > 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: Name the 2012 for 2009 of a and 2010 of a and 2011 of a ### Context: CREATE TABLE table_name_89 (Id VARCHAR) ### Response: ### Response: SELECT 2012 FROM table_name_89 WHERE 2009 = "a" AND 2010 = "a" AND 2011 = "a"</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 gold count when total is more than 3, bronze less than 3, and nation of belarus with silver count more than 2? ### Context: CREATE TABLE table_name_28 (gold INTEGER, silver VARCHAR, nation VARCHAR, total VARCHAR, bronze VARCHAR) ### Response: ### Response: SELECT MAX(gold) FROM table_name_28 WHERE total > 3 AND bronze < 3 AND nation = "belarus" AND silver > 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 album came out before 2008 called We're not Made in the USA? ### Context: CREATE TABLE table_name_93 (album VARCHAR, year VARCHAR, title VARCHAR) ### Response: ### Response: SELECT album FROM table_name_93 WHERE year < 2008 AND title = "we're not made in the usa"</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 has Score of 4–5 and quebec nordiques as Visitor? ### Context: CREATE TABLE table_name_92 (date VARCHAR, score VARCHAR, visitor VARCHAR) ### Response: ### Response: SELECT date FROM table_name_92 WHERE score = "4–5" AND visitor = "quebec nordiques"</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 run 2 with final of 5:24.47? ### Context: CREATE TABLE table_name_18 (run_2 VARCHAR, final VARCHAR) ### Response: ### Response: SELECT run_2 FROM table_name_18 WHERE final = "5:24.47"</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 college/junior/club team (league) when the round is more than 2 and the player is bert robertsson (d)? ### Context: CREATE TABLE table_name_96 (college_junior_club_team__league_ VARCHAR, round VARCHAR, player VARCHAR) ### Response: ### Response: SELECT college_junior_club_team__league_ FROM table_name_96 WHERE round > 2 AND player = "bert robertsson (d)"</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 Number of seasons in Liga MX for Club cruz azul, when their season in the top division is higher than 68? ### Context: CREATE TABLE table_name_33 (number_of_seasons_in_liga_mx INTEGER, club VARCHAR, number_of_seasons_in_top_division VARCHAR) ### Response: ### Response: SELECT MAX(number_of_seasons_in_liga_mx) FROM table_name_33 WHERE club = "cruz azul" AND number_of_seasons_in_top_division > 68</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 date where the record was 18–12? ### Context: CREATE TABLE table_27700530_10 (date VARCHAR, record VARCHAR) ### Response: ### Response: SELECT date FROM table_27700530_10 WHERE record = "18–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 Position, when the Birthplace is Buffalo, New York? ### Context: CREATE TABLE table_name_92 (position VARCHAR, birthplace VARCHAR) ### Response: ### Response: SELECT position FROM table_name_92 WHERE birthplace = "buffalo, new york"</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 win percentage when 2010 was 98? ### Context: CREATE TABLE table_name_74 (win__percentage VARCHAR) ### Response: ### Response: SELECT win__percentage FROM table_name_74 WHERE 2010 = "98"</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 kind of Chassis supports a Maserati Straight-6 engine with Points greater than 0 and built in the year 1955? ### Context: CREATE TABLE table_name_93 (chassis VARCHAR, year VARCHAR, engine VARCHAR, points VARCHAR) ### Response: ### Response: SELECT chassis FROM table_name_93 WHERE engine = "maserati straight-6" AND points > 0 AND year = 1955</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 position of Dale Craigwell? ### Context: CREATE TABLE table_name_67 (position VARCHAR, player VARCHAR) ### Response: ### Response: SELECT position FROM table_name_67 WHERE player = "dale craigwell"</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 dissolved date of the parliament assembled on 4 November 1461? ### Context: CREATE TABLE table_name_58 (dissolved VARCHAR, assembled VARCHAR) ### Response: ### Response: SELECT dissolved FROM table_name_58 WHERE assembled = "4 november 1461"</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 county has $51,456 income per capita? ### Context: CREATE TABLE table_name_37 (county VARCHAR, per_capita_income VARCHAR) ### Response: ### Response: SELECT county FROM table_name_37 WHERE per_capita_income = "$51,456"</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 opposing team had an Against score less than 42 and a Tour Match status in Rugby Park, Gisborne? ### Context: CREATE TABLE table_name_48 (opposing_team VARCHAR, venue VARCHAR, against VARCHAR, status VARCHAR) ### Response: ### Response: SELECT opposing_team FROM table_name_48 WHERE against < 42 AND status = "tour match" AND venue = "rugby park, gisborne"</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 round of a pick smaller than 92 from Toledo University? ### Context: CREATE TABLE table_name_34 (round INTEGER, college VARCHAR, pick VARCHAR) ### Response: ### Response: SELECT MAX(round) FROM table_name_34 WHERE college = "toledo" AND pick < 92</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 Tom Watson (5/6) won the Senior British Open who won the Senior PGA Championship? ### Context: CREATE TABLE table_name_41 (senior_pga_championship VARCHAR, senior_british_open VARCHAR) ### Response: ### Response: SELECT senior_pga_championship FROM table_name_41 WHERE senior_british_open = "tom watson (5/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: What is the lowest rank with less than 1 gold, 0 silver, 1 bronze, and a total less than 1? ### Context: CREATE TABLE table_name_75 (rank INTEGER, total VARCHAR, bronze VARCHAR, gold VARCHAR, silver VARCHAR) ### Response: ### Response: SELECT MIN(rank) FROM table_name_75 WHERE gold < 1 AND silver = 0 AND bronze = 1 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: Which the Fastest Laps that have Poles of 0, and a Season of 2002, and a Podiums smaller than 0? ### Context: CREATE TABLE table_name_8 (fastest_laps INTEGER, podiums VARCHAR, poles VARCHAR, season VARCHAR) ### Response: ### Response: SELECT AVG(fastest_laps) FROM table_name_8 WHERE poles = 0 AND season = "2002" AND podiums < 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 is the Round when the number of fixtures is more than 2, and the Main date of 7 and 28 november 2007? ### Context: CREATE TABLE table_name_31 (round VARCHAR, number_of_fixtures VARCHAR, main_date VARCHAR) ### Response: ### Response: SELECT round FROM table_name_31 WHERE number_of_fixtures > 2 AND main_date = "7 and 28 november 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: What day was the result a win, the score 2-1, and the year before 2012? ### Context: CREATE TABLE table_name_7 (date VARCHAR, year VARCHAR, result VARCHAR, score VARCHAR) ### Response: ### Response: SELECT date FROM table_name_7 WHERE result = "win" AND score = "2-1" AND year < 2012</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 rank for season 1? ### Context: CREATE TABLE table_name_28 (rank VARCHAR, season VARCHAR) ### Response: ### Response: SELECT rank FROM table_name_28 WHERE season = 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: Kevin lucas appears in which seasons? ### Context: CREATE TABLE table_12441518_1 (recurring_cast_seasons VARCHAR, character VARCHAR) ### Response: ### Response: SELECT recurring_cast_seasons FROM table_12441518_1 WHERE character = "Kevin Lucas"</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 away team score for 27 april 1974 and veue of mcg ### Context: CREATE TABLE table_name_51 (away_team VARCHAR, date VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT away_team AS score FROM table_name_51 WHERE date = "27 april 1974" AND venue = "mcg"</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 the game when the record was 32–19–7? ### Context: CREATE TABLE table_name_40 (score VARCHAR, record VARCHAR) ### Response: ### Response: SELECT score FROM table_name_40 WHERE record = "32–19–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 Match Report for the Euro2008q at the Athens Olympic Stadium and a score of 1-2? ### Context: CREATE TABLE table_name_44 (match_report VARCHAR, score VARCHAR, competition VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT match_report FROM table_name_44 WHERE competition = "euro2008q" AND venue = "athens olympic stadium" AND score = "1-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: Which Score has a Date of july 20? ### Context: CREATE TABLE table_name_2 (score VARCHAR, date VARCHAR) ### Response: ### Response: SELECT score FROM table_name_2 WHERE date = "july 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 minimum 2007 USD in Kabardino-Balkaria? ### Context: CREATE TABLE table_24364690_1 (federal_subjects VARCHAR) ### Response: ### Response: SELECT MIN(2007 AS __usd_) FROM table_24364690_1 WHERE federal_subjects = "Kabardino-Balkaria"</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 of someone with more than 19 wickets and less than 16 matches? ### Context: CREATE TABLE table_name_13 (average INTEGER, wickets VARCHAR, matches VARCHAR) ### Response: ### Response: SELECT AVG(average) FROM table_name_13 WHERE wickets > 19 AND matches < 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: Name the directed by for production code for 3t7509 ### Context: CREATE TABLE table_19396259_1 (directed_by VARCHAR, production_code VARCHAR) ### Response: ### Response: SELECT directed_by FROM table_19396259_1 WHERE production_code = "3T7509"</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 cfl team is edmonton (2) what are all the position ### Context: CREATE TABLE table_26996293_2 (position VARCHAR, cfl_team VARCHAR) ### Response: ### Response: SELECT position FROM table_26996293_2 WHERE cfl_team = "Edmonton (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: How many millions of U.S. viewers watched the episode that first aired on March 31, 2013? ### Context: CREATE TABLE table_11111116_8 (us_viewers__million_ VARCHAR, original_air_date VARCHAR) ### Response: ### Response: SELECT us_viewers__million_ FROM table_11111116_8 WHERE original_air_date = "March 31, 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: Which cyclist has UCI ProTour points of 40? ### Context: CREATE TABLE table_name_96 (cyclist VARCHAR, uci_protour_points VARCHAR) ### Response: ### Response: SELECT cyclist FROM table_name_96 WHERE uci_protour_points = 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: During what years was the Jersey Numbers 34, 30 played? ### Context: CREATE TABLE table_name_13 (years VARCHAR, jersey_number_s_ VARCHAR) ### Response: ### Response: SELECT years FROM table_name_13 WHERE jersey_number_s_ = "34, 30"</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 least density (per km²) when the rank is 5 and the Area (km²) is less than 125,755? ### Context: CREATE TABLE table_name_77 (density__per_km²_ INTEGER, rank VARCHAR, area__km²_ VARCHAR) ### Response: ### Response: SELECT MIN(density__per_km²_) FROM table_name_77 WHERE rank = "5" AND area__km²_ < 125 OFFSET 755</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 a score of 70-69-70=209? ### Context: CREATE TABLE table_name_50 (player VARCHAR, score VARCHAR) ### Response: ### Response: SELECT player FROM table_name_50 WHERE score = 70 - 69 - 70 = 209</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 sum of all rounds where a Tennessee State player with an overall rank less than 261 was drafted? ### Context: CREATE TABLE table_name_95 (round VARCHAR, school_club_team VARCHAR, overall VARCHAR) ### Response: ### Response: SELECT COUNT(round) FROM table_name_95 WHERE school_club_team = "tennessee state" AND overall < 261</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 director of Small Voices, a film title used in nomination? ### Context: CREATE TABLE table_name_61 (director VARCHAR, film_title_used_in_nomination VARCHAR) ### Response: ### Response: SELECT director FROM table_name_61 WHERE film_title_used_in_nomination = "small voices"</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 Runners-Up, when Champions is less than 0? ### Context: CREATE TABLE table_name_30 (runners_up INTEGER, champions INTEGER) ### Response: ### Response: SELECT MAX(runners_up) FROM table_name_30 WHERE champions < 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 2011 population of pavliš? ### Context: CREATE TABLE table_2562572_46 (population__2011_ VARCHAR, settlement VARCHAR) ### Response: ### Response: SELECT population__2011_ FROM table_2562572_46 WHERE settlement = "Pavliš"</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 year did Ray Crawford the Kurtis Kraft 500g chassis? ### Context: CREATE TABLE table_name_70 (year VARCHAR, chassis VARCHAR) ### Response: ### Response: SELECT year FROM table_name_70 WHERE chassis = "kurtis kraft 500g"</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 elimination moves of wrestlers whose team is "Team Orton"? ### Context: CREATE TABLE Elimination (Elimination_Move VARCHAR, Team VARCHAR) ### Response: ### Response: SELECT Elimination_Move FROM Elimination WHERE Team = "Team Orton"</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 player James Stanton? ### Context: CREATE TABLE table_name_19 (height VARCHAR, name VARCHAR) ### Response: ### Response: SELECT height FROM table_name_19 WHERE name = "james stanton"</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 Monsters of Rock show with 12 bands? ### Context: CREATE TABLE table_name_74 (date VARCHAR, event VARCHAR, acts VARCHAR) ### Response: ### Response: SELECT date FROM table_name_74 WHERE event = "monsters of rock" AND acts = "12 bands"</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 Engine has Points of 3? ### Context: CREATE TABLE table_name_30 (engine VARCHAR, points VARCHAR) ### Response: ### Response: SELECT engine FROM table_name_30 WHERE points = 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: Name the most extra points for right halfback ### Context: CREATE TABLE table_14342480_5 (extra_points INTEGER, position VARCHAR) ### Response: ### Response: SELECT MAX(extra_points) FROM table_14342480_5 WHERE position = "Right halfback"</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 entry number on the list for Fairfield Moravian Church? ### Context: CREATE TABLE table_name_13 (list_entry_number VARCHAR, name VARCHAR) ### Response: ### Response: SELECT list_entry_number FROM table_name_13 WHERE name = "fairfield moravian church"</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 date when streak was won 8? ### Context: CREATE TABLE table_name_50 (date VARCHAR, streak VARCHAR) ### Response: ### Response: SELECT date FROM table_name_50 WHERE streak = "won 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: For the 12/12 races, what is the fastest lap? ### Context: CREATE TABLE table_name_95 (fastest_laps VARCHAR, races_† VARCHAR) ### Response: ### Response: SELECT fastest_laps FROM table_name_95 WHERE races_† = "12/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 average episode number with q146 format? ### Context: CREATE TABLE table_name_26 (episode__number INTEGER, format__number VARCHAR) ### Response: ### Response: SELECT AVG(episode__number) FROM table_name_26 WHERE format__number = "q146"</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 party does Timothy Kirkhope lead? ### Context: CREATE TABLE table_name_50 (party VARCHAR, leader VARCHAR) ### Response: ### Response: SELECT party FROM table_name_50 WHERE leader = "timothy kirkhope"</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 power (hp) less than 93 for the OM324 engine used? ### Context: CREATE TABLE table_name_4 (used VARCHAR, power__hp_ VARCHAR, engine VARCHAR) ### Response: ### Response: SELECT used FROM table_name_4 WHERE power__hp_ < 93 AND engine = "om324"</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 Away Team, when Ground is Colonial Stadium? ### Context: CREATE TABLE table_name_19 (away_team VARCHAR, ground VARCHAR) ### Response: ### Response: SELECT away_team FROM table_name_19 WHERE ground = "colonial stadium"</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: If the team in the New England Patriots, what is the super bowl championship minimum number? ### Context: CREATE TABLE table_1952057_5 (super_bowl_championships INTEGER, team VARCHAR) ### Response: ### Response: SELECT MIN(super_bowl_championships) FROM table_1952057_5 WHERE team = "New England Patriots"</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 records had result/games: 10 games (29,606 avg.) ### Context: CREATE TABLE table_21436373_12 (type_of_record VARCHAR, result_games VARCHAR) ### Response: ### Response: SELECT COUNT(type_of_record) FROM table_21436373_12 WHERE result_games = "10 games (29,606 avg.)"</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 last time a nominee for Best Revival of a Musical was selected? ### Context: CREATE TABLE table_name_98 (year INTEGER, nominee VARCHAR) ### Response: ### Response: SELECT MAX(year) FROM table_name_98 WHERE nominee = "best revival of a musical"</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 name and salary of the instructors who are advisors of any student from History department? ### Context: CREATE TABLE instructor (name VARCHAR, salary VARCHAR, id VARCHAR); CREATE TABLE advisor (i_id VARCHAR, s_id VARCHAR); CREATE TABLE student (id VARCHAR, dept_name VARCHAR) ### Response: ### Response: SELECT T2.name, T2.salary FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id = T2.id JOIN student AS T3 ON T1.s_id = T3.id WHERE T3.dept_name = 'History'</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 points are there for a Chassis of porsche 718, and a Year smaller than 1964? ### Context: CREATE TABLE table_name_34 (points VARCHAR, chassis VARCHAR, year VARCHAR) ### Response: ### Response: SELECT COUNT(points) FROM table_name_34 WHERE chassis = "porsche 718" AND year < 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: Who was the home team for the game played on November 2, 2007? ### Context: CREATE TABLE table_name_69 (home VARCHAR, date VARCHAR) ### Response: ### Response: SELECT home FROM table_name_69 WHERE date = "november 2, 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 driver has a G tyre, rounds of 2-12 and a M7A chassis? ### Context: CREATE TABLE table_name_18 (driver VARCHAR, chassis VARCHAR, tyre VARCHAR, rounds VARCHAR) ### Response: ### Response: SELECT driver FROM table_name_18 WHERE tyre = "g" AND rounds = "2-12" AND chassis = "m7a"</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 Winner, when the City is Berlin? ### Context: CREATE TABLE table_name_19 (winner VARCHAR, city VARCHAR) ### Response: ### Response: SELECT winner FROM table_name_19 WHERE city = "berlin"</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 score on December 1 when Philadelphia visited? ### Context: CREATE TABLE table_name_41 (score VARCHAR, visitor VARCHAR, date VARCHAR) ### Response: ### Response: SELECT score FROM table_name_41 WHERE visitor = "philadelphia" AND date = "december 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: Can one access the Jersey territory using a Croatian identity card? ### Context: CREATE TABLE table_25965003_3 (access_using_a_croatian_identity_card VARCHAR, countries_and_territories VARCHAR) ### Response: ### Response: SELECT access_using_a_croatian_identity_card FROM table_25965003_3 WHERE countries_and_territories = "Jersey"</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 extroverted, relationship-oriented where moderate is introverted sanguine ### Context: CREATE TABLE table_11256021_1 (extroverted VARCHAR, _relationship_oriented VARCHAR, moderate VARCHAR) ### Response: ### Response: SELECT extroverted, _relationship_oriented FROM table_11256021_1 WHERE moderate = "Introverted Sanguine"</s>