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 team had a finish of 25 in a smaller than 28? ### Context: CREATE TABLE table_name_82 (team VARCHAR, start VARCHAR, finish VARCHAR) ### Response: ### Response: SELECT team FROM table_name_82 WHERE start < 28 AND finish = 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: What is the name of the pictorial in the 11-98 issue? ### Context: CREATE TABLE table_1566850_9 (pictorials VARCHAR, date VARCHAR) ### Response: ### Response: SELECT pictorials FROM table_1566850_9 WHERE date = "11-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 host has an original air date of june 11, 2007? ### Context: CREATE TABLE table_name_11 (host VARCHAR, original_airdate VARCHAR) ### Response: ### Response: SELECT host FROM table_name_11 WHERE original_airdate = "june 11, 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: when was otar iosseliani's film selected ### Context: CREATE TABLE table_18069789_1 (year_ VARCHAR, e_ VARCHAR, director VARCHAR) ### Response: ### Response: SELECT year_[e_] AS __ceremony_ FROM table_18069789_1 WHERE director = "Otar Iosseliani"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Japan? ### Context: CREATE TABLE table_name_9 (player VARCHAR, country VARCHAR) ### Response: ### Response: SELECT player FROM table_name_9 WHERE country = "japan"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 DuBose Porter with Roy Barnes at 54%? ### Context: CREATE TABLE table_name_16 (dubose_porter VARCHAR, roy_barnes VARCHAR) ### Response: ### Response: SELECT dubose_porter FROM table_name_16 WHERE roy_barnes = "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: In what game was the attendance at the America West Arena 18,756? ### Context: CREATE TABLE table_29997127_4 (game INTEGER, location_attendance VARCHAR) ### Response: ### Response: SELECT MAX(game) FROM table_29997127_4 WHERE location_attendance = "America West Arena 18,756"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Away with a Ground that is humber college north? ### Context: CREATE TABLE table_name_9 (away VARCHAR, ground VARCHAR) ### Response: ### Response: SELECT away FROM table_name_9 WHERE ground = "humber college north"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 total number of wins in a season before 1989 with tianjin as the runners-up and more than 8 clubs? ### Context: CREATE TABLE table_name_92 (total_wins INTEGER, number_of_clubs VARCHAR, season VARCHAR, runners_up VARCHAR) ### Response: ### Response: SELECT MIN(total_wins) FROM table_name_92 WHERE season < 1989 AND runners_up = "tianjin" AND number_of_clubs > 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 is the size of the biggest crowd for a game where Fitzroy was the away team? ### Context: CREATE TABLE table_name_29 (crowd INTEGER, away_team VARCHAR) ### Response: ### Response: SELECT MAX(crowd) FROM table_name_29 WHERE away_team = "fitzroy"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 has a Draw smaller than 14, and Points less than 73, and a Language of turkish? ### Context: CREATE TABLE table_name_70 (artist VARCHAR, language VARCHAR, draw VARCHAR, points VARCHAR) ### Response: ### Response: SELECT artist FROM table_name_70 WHERE draw < 14 AND points < 73 AND language = "turkish"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 when the outcome is runner-up, the opponent in the final is herbert lawford and the year is after 1882? ### Context: CREATE TABLE table_name_39 (score VARCHAR, opponent_in_the_final VARCHAR, year VARCHAR, outcome VARCHAR) ### Response: ### Response: SELECT score FROM table_name_39 WHERE year > 1882 AND outcome = "runner-up" AND opponent_in_the_final = "herbert lawford"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 attendance for the game on October 30, 1994 for a week after week 2? ### Context: CREATE TABLE table_name_54 (attendance VARCHAR, week VARCHAR, date VARCHAR) ### Response: ### Response: SELECT COUNT(attendance) FROM table_name_54 WHERE week > 2 AND date = "october 30, 1994"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 number of Division(s), when Country is China, when Apps is greater than 9, and when Season is 2008? ### Context: CREATE TABLE table_name_32 (division VARCHAR, season VARCHAR, country VARCHAR, apps VARCHAR) ### Response: ### Response: SELECT COUNT(division) FROM table_name_32 WHERE country = "china" AND apps > 9 AND season = "2008"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 team is Team 1 with a Team 2 being Sporting CP? ### Context: CREATE TABLE table_name_81 (team_1 VARCHAR, team_2 VARCHAR) ### Response: ### Response: SELECT team_1 FROM table_name_81 WHERE team_2 = "sporting cp"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 episodes have Chris Addison as Rufus's guest? ### Context: CREATE TABLE table_19930660_3 (episode VARCHAR, rufus_guest VARCHAR) ### Response: ### Response: SELECT episode FROM table_19930660_3 WHERE rufus_guest = "Chris Addison"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 result was there when the opponents were the Buffalo Bills? ### Context: CREATE TABLE table_name_14 (result VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT result FROM table_name_14 WHERE opponent = "buffalo bills"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 CTE Racing-hvm's Best with a Qual 2 of 50.312? ### Context: CREATE TABLE table_name_77 (best VARCHAR, team VARCHAR, qual_2 VARCHAR) ### Response: ### Response: SELECT best FROM table_name_77 WHERE team = "cte racing-hvm" AND qual_2 = "50.312"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Margaret Court's opponent on clay in 1975? ### Context: CREATE TABLE table_name_84 (opponents VARCHAR, year VARCHAR, surface VARCHAR, partner VARCHAR) ### Response: ### Response: SELECT opponents FROM table_name_84 WHERE surface = "clay" AND partner = "margaret court" AND year = 1975</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 spartak when played is less than 15 and dynamo is less than 3? ### Context: CREATE TABLE table_name_42 (spartak INTEGER, played VARCHAR, dynamo VARCHAR) ### Response: ### Response: SELECT MAX(spartak) FROM table_name_42 WHERE played < 15 AND dynamo < 3</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the date of the game at Junction Oval? ### Context: CREATE TABLE table_name_3 (date VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT date FROM table_name_3 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: What game was developed by Naughty Dog? ### Context: CREATE TABLE table_name_33 (genre VARCHAR, developer_s_ VARCHAR) ### Response: ### Response: SELECT genre FROM table_name_33 WHERE developer_s_ = "naughty dog"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 name was in a position less than 4 with 2 losses? ### Context: CREATE TABLE table_name_78 (name VARCHAR, position VARCHAR, lost VARCHAR) ### Response: ### Response: SELECT name FROM table_name_78 WHERE position < 4 AND lost = 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 record has a decision of parent, Philadelphia as the home, with december 12 as the date? ### Context: CREATE TABLE table_name_81 (record VARCHAR, date VARCHAR, decision VARCHAR, home VARCHAR) ### Response: ### Response: SELECT record FROM table_name_81 WHERE decision = "parent" AND home = "philadelphia" AND date = "december 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 country is Adam Scott from? ### Context: CREATE TABLE table_name_19 (country VARCHAR, player VARCHAR) ### Response: ### Response: SELECT country FROM table_name_19 WHERE player = "adam scott"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Norwegian Americans have Norwegian Americans (2000) of 109,744? ### Context: CREATE TABLE table_name_72 (norwegian_americans__2009_ VARCHAR, norwegian_americans__2000_ VARCHAR) ### Response: ### Response: SELECT COUNT(norwegian_americans__2009_) FROM table_name_72 WHERE norwegian_americans__2000_ = 109 OFFSET 744</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 viewers (in millions) did episode 1 have? ### Context: CREATE TABLE table_25356350_2 (viewers__in_millions_ VARCHAR, series__number VARCHAR) ### Response: ### Response: SELECT viewers__in_millions_ FROM table_25356350_2 WHERE series__number = 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 score of the home team that played Collingwood? ### Context: CREATE TABLE table_name_70 (home_team VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT home_team AS score FROM table_name_70 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 was the largest crowd when Collingwood was the away team? ### Context: CREATE TABLE table_name_67 (crowd INTEGER, away_team VARCHAR) ### Response: ### Response: SELECT MAX(crowd) FROM table_name_67 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: Which Kickoff had a Game Site of fawcett stadium? ### Context: CREATE TABLE table_name_12 (kickoff VARCHAR, game_site VARCHAR) ### Response: ### Response: SELECT kickoff FROM table_name_12 WHERE game_site = "fawcett 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: What is the Date of the castle with a Historic Scotland Ownership? ### Context: CREATE TABLE table_name_38 (date VARCHAR, ownership VARCHAR) ### Response: ### Response: SELECT date FROM table_name_38 WHERE ownership = "historic scotland"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 School did Terrence Jones play for? ### Context: CREATE TABLE table_name_40 (school VARCHAR, player VARCHAR) ### Response: ### Response: SELECT school FROM table_name_40 WHERE player = "terrence jones"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 place did player mark brooks take? ### Context: CREATE TABLE table_name_84 (place VARCHAR, player VARCHAR) ### Response: ### Response: SELECT place FROM table_name_84 WHERE player = "mark brooks"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Reg GP does daniel rahimi have with a rd # greater than 3? ### Context: CREATE TABLE table_name_66 (reg_gp VARCHAR, player VARCHAR, rd__number VARCHAR) ### Response: ### Response: SELECT COUNT(reg_gp) FROM table_name_66 WHERE player = "daniel rahimi" AND rd__number > 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: Which Label has a Date of 14 February? ### Context: CREATE TABLE table_name_56 (label VARCHAR, date VARCHAR) ### Response: ### Response: SELECT label FROM table_name_56 WHERE date = "14 february"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 club had a points difference of -24? ### Context: CREATE TABLE table_name_87 (club VARCHAR, points_difference VARCHAR) ### Response: ### Response: SELECT club FROM table_name_87 WHERE points_difference = "-24"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which positions have made 4 touchdowns? ### Context: CREATE TABLE table_14342592_5 (position VARCHAR, touchdowns VARCHAR) ### Response: ### Response: SELECT position FROM table_14342592_5 WHERE touchdowns = 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 venue when Ben Barker finished third? ### Context: CREATE TABLE table_name_65 (venue VARCHAR, third VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_65 WHERE third = "ben barker"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 name of the player from Vanderbilt University? ### Context: CREATE TABLE table_name_43 (player VARCHAR, school VARCHAR) ### Response: ### Response: SELECT player FROM table_name_43 WHERE school = "vanderbilt university"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 assist/pass is in Ferreiras? ### Context: CREATE TABLE table_name_80 (assist_pass VARCHAR, location VARCHAR) ### Response: ### Response: SELECT assist_pass FROM table_name_80 WHERE location = "ferreiras"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 tries for less than 117 points and less than 48 tries against? ### Context: CREATE TABLE table_name_90 (tries_for INTEGER, points_for VARCHAR, tries_against VARCHAR) ### Response: ### Response: SELECT AVG(tries_for) FROM table_name_90 WHERE points_for < 117 AND tries_against < 48</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What are the public schools with a master's university? ### Context: CREATE TABLE table_2076595_1 (location_s_ VARCHAR, control VARCHAR, type VARCHAR) ### Response: ### Response: SELECT location_s_ FROM table_2076595_1 WHERE control = "Public" AND type = "Master's university"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 FLT goals with 0 league cup goals, a GK position, and 2 league cup apps? ### Context: CREATE TABLE table_name_3 (flt_goals INTEGER, league_cup_apps VARCHAR, league_cup_goals VARCHAR, position VARCHAR) ### Response: ### Response: SELECT MAX(flt_goals) FROM table_name_3 WHERE league_cup_goals = 0 AND position = "gk" AND league_cup_apps = "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 is the Attendance for a Week earlier than 16, and a Date of bye? ### Context: CREATE TABLE table_name_39 (attendance VARCHAR, week VARCHAR, date VARCHAR) ### Response: ### Response: SELECT attendance FROM table_name_39 WHERE week < 16 AND date = "bye"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 launch date for vladimir lyakhov , aleksandr pavlovich aleksandrov ### Context: CREATE TABLE table_245801_1 (launch_date VARCHAR, crew VARCHAR) ### Response: ### Response: SELECT launch_date FROM table_245801_1 WHERE crew = "Vladimir Lyakhov , Aleksandr Pavlovich Aleksandrov"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 landesliga nord for freier tus regensburg ### Context: CREATE TABLE table_20181270_3 (landesliga_nord VARCHAR, landesliga_mitte VARCHAR) ### Response: ### Response: SELECT landesliga_nord FROM table_20181270_3 WHERE landesliga_mitte = "Freier TuS Regensburg"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Class, when Power is 78 Watts? ### Context: CREATE TABLE table_name_15 (class VARCHAR, power VARCHAR) ### Response: ### Response: SELECT class FROM table_name_15 WHERE power = "78 watts"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 position's round was 3 when pick was 70? ### Context: CREATE TABLE table_name_29 (position VARCHAR, round VARCHAR, pick VARCHAR) ### Response: ### Response: SELECT position FROM table_name_29 WHERE round = "3" AND pick = "70"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 character is in over 22 episodes? ### Context: CREATE TABLE table_name_91 (character VARCHAR, episodes INTEGER) ### Response: ### Response: SELECT character FROM table_name_91 WHERE episodes > 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: What is the host city during the 2012 season? ### Context: CREATE TABLE table_name_47 (host_city VARCHAR, season VARCHAR) ### Response: ### Response: SELECT host_city FROM table_name_47 WHERE season = 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: Who was the road team on May 2? ### Context: CREATE TABLE table_name_24 (road_team VARCHAR, date VARCHAR) ### Response: ### Response: SELECT road_team FROM table_name_24 WHERE date = "may 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: Show all the activity names and the number of faculty involved in each activity. ### Context: CREATE TABLE Faculty_participates_in (actID VARCHAR); CREATE TABLE Activity (activity_name VARCHAR, actID VARCHAR) ### Response: ### Response: SELECT T1.activity_name, COUNT(*) FROM Activity AS T1 JOIN Faculty_participates_in AS T2 ON T1.actID = T2.actID GROUP BY T1.actID</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 an Attendance of 375? ### Context: CREATE TABLE table_name_65 (opponent VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_65 WHERE attendance = 375</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 fewest goals of CD Alcoyano with more than 25 points? ### Context: CREATE TABLE table_name_57 (goals_against INTEGER, club VARCHAR, points VARCHAR) ### Response: ### Response: SELECT MIN(goals_against) FROM table_name_57 WHERE club = "cd alcoyano" AND points > 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: What is the success rate for the year 2012? ### Context: CREATE TABLE table_name_52 (success_rate VARCHAR, year VARCHAR) ### Response: ### Response: SELECT success_rate FROM table_name_52 WHERE 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: Tell me the years competed for panthers ### Context: CREATE TABLE table_name_97 (years_competed VARCHAR, nickname VARCHAR) ### Response: ### Response: SELECT years_competed FROM table_name_97 WHERE nickname = "panthers"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 grids have a Manufacturer of honda, a Rider of yuki takahashi, and more than 22 laps? ### Context: CREATE TABLE table_name_8 (grid VARCHAR, laps VARCHAR, manufacturer VARCHAR, rider VARCHAR) ### Response: ### Response: SELECT COUNT(grid) FROM table_name_8 WHERE manufacturer = "honda" AND rider = "yuki takahashi" AND laps > 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: what is the country for the city of cardiff? ### Context: CREATE TABLE table_name_34 (country VARCHAR, city VARCHAR) ### Response: ### Response: SELECT country FROM table_name_34 WHERE city = "cardiff"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 fewest touchdowns ### Context: CREATE TABLE table_14342480_6 (touchdowns INTEGER) ### Response: ### Response: SELECT MIN(touchdowns) FROM table_14342480_6</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Nationality has a Heat smaller than 2, and a Rank of 15? ### Context: CREATE TABLE table_name_16 (nationality VARCHAR, heat VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT nationality FROM table_name_16 WHERE heat < 2 AND rank = 15</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 102kg when the Ri Song-Hui was 226kg? ### Context: CREATE TABLE table_name_56 (ri_song_hui___prk__ VARCHAR) ### Response: ### Response: SELECT 102 AS kg FROM table_name_56 WHERE ri_song_hui___prk__ = "226kg"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Label, when Date is 1987? ### Context: CREATE TABLE table_name_57 (label VARCHAR, date VARCHAR) ### Response: ### Response: SELECT label FROM table_name_57 WHERE date = "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: Name the position for shorts ### Context: CREATE TABLE table_14342210_2 (position VARCHAR, player VARCHAR) ### Response: ### Response: SELECT position FROM table_14342210_2 WHERE player = "Shorts"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 title was developed by Battlecry Studios? ### Context: CREATE TABLE table_name_96 (title VARCHAR, developer VARCHAR) ### Response: ### Response: SELECT title FROM table_name_96 WHERE developer = "battlecry studios"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Please show the different record companies and the corresponding number of orchestras. ### Context: CREATE TABLE orchestra (Record_Company VARCHAR) ### Response: ### Response: SELECT Record_Company, COUNT(*) FROM orchestra GROUP BY Record_Company</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 appearances did the player for the Rayo Vallecano club that scored more than 37 goals make? ### Context: CREATE TABLE table_name_15 (appearances VARCHAR, club VARCHAR, goals VARCHAR) ### Response: ### Response: SELECT COUNT(appearances) FROM table_name_15 WHERE club = "rayo vallecano" AND goals > 37</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 driving wheels of the model built in 1883? ### Context: CREATE TABLE table_name_51 (driving_wheels VARCHAR, date_built VARCHAR) ### Response: ### Response: SELECT driving_wheels FROM table_name_51 WHERE date_built = "1883"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Crowd smaller than 4,485? ### Context: CREATE TABLE table_name_72 (date VARCHAR, crowd INTEGER) ### Response: ### Response: SELECT date FROM table_name_72 WHERE crowd < 4 OFFSET 485</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 least age for distrito nacional ### Context: CREATE TABLE table_26301697_2 (age INTEGER, represents VARCHAR) ### Response: ### Response: SELECT MIN(age) FROM table_26301697_2 WHERE represents = "Distrito Nacional"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 silver medals for Russia with more than 5 bronze medals? ### Context: CREATE TABLE table_name_15 (silver INTEGER, nation VARCHAR, bronze VARCHAR) ### Response: ### Response: SELECT MAX(silver) FROM table_name_15 WHERE nation = "russia" AND bronze > 5</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the runner up in the konica san jose classic Tournament? ### Context: CREATE TABLE table_name_60 (runner_up VARCHAR, tournament VARCHAR) ### Response: ### Response: SELECT runner_up FROM table_name_60 WHERE tournament = "konica san jose 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: How many wins are related to events of 7 and more than 2 top-10s? ### Context: CREATE TABLE table_name_95 (wins VARCHAR, events VARCHAR, top_10 VARCHAR) ### Response: ### Response: SELECT COUNT(wins) FROM table_name_95 WHERE events = 7 AND top_10 > 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 is the ranking for 2010 production of 2,903,000? ### Context: CREATE TABLE table_name_52 (rank VARCHAR) ### Response: ### Response: SELECT rank FROM table_name_52 WHERE 2010 = "2,903,000"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 best time of 1:32.269? ### Context: CREATE TABLE table_name_21 (name VARCHAR, best VARCHAR) ### Response: ### Response: SELECT name FROM table_name_21 WHERE best = "1:32.269"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 ship was the Shinano? ### Context: CREATE TABLE table_name_77 (ship_type VARCHAR, name VARCHAR) ### Response: ### Response: SELECT ship_type FROM table_name_77 WHERE name = "shinano"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 first elected was 1898 what was the party? ### Context: CREATE TABLE table_name_9 (party VARCHAR, first_elected VARCHAR) ### Response: ### Response: SELECT party FROM table_name_9 WHERE first_elected = "1898"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 f/laps of 1 and british formula three series? ### Context: CREATE TABLE table_22056184_1 (position VARCHAR, f_laps VARCHAR, series VARCHAR) ### Response: ### Response: SELECT COUNT(position) FROM table_22056184_1 WHERE f_laps = 1 AND series = "British Formula Three"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 ids of reviewers who didn't only give 4 star. ### Context: CREATE TABLE Rating (rID VARCHAR, stars VARCHAR) ### Response: ### Response: SELECT rID FROM Rating WHERE stars <> 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 is the monotone when pareto efficiency is yes, non-dictatorship is yes, and clone independence is yes? ### Context: CREATE TABLE table_name_41 (monotone VARCHAR, clone_independence VARCHAR, pareto_efficiency VARCHAR, non_dictatorship VARCHAR) ### Response: ### Response: SELECT monotone FROM table_name_41 WHERE pareto_efficiency = "yes" AND non_dictatorship = "yes" AND clone_independence = "yes"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 when the place is t5 and the score is 69-74=143? ### Context: CREATE TABLE table_name_26 (player VARCHAR, place VARCHAR, score VARCHAR) ### Response: ### Response: SELECT player FROM table_name_26 WHERE place = "t5" AND score = 69 - 74 = 143</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 part 2 has a verb that means to leap? ### Context: CREATE TABLE table_name_70 (part_2 VARCHAR, verb_meaning VARCHAR) ### Response: ### Response: SELECT part_2 FROM table_name_70 WHERE verb_meaning = "to leap"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 name of organization that has the greatest number of contact individuals? ### Context: CREATE TABLE organization_contact_individuals (organization_id VARCHAR); CREATE TABLE organizations (organization_name VARCHAR, organization_id VARCHAR) ### Response: ### Response: SELECT t1.organization_name FROM organizations AS t1 JOIN organization_contact_individuals AS t2 ON t1.organization_id = t2.organization_id GROUP BY t1.organization_name ORDER BY COUNT(*) DESC LIMIT 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Score when Set 2 shows 25-20, and a Total of 75 - 49? ### Context: CREATE TABLE table_name_27 (score VARCHAR, set_2 VARCHAR, total VARCHAR) ### Response: ### Response: SELECT score FROM table_name_27 WHERE set_2 = "25-20" AND total = "75 - 49"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of the Res., has Ryan Scheepe as an opponent? ### Context: CREATE TABLE table_name_34 (res VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT res FROM table_name_34 WHERE opponent = "ryan scheepe"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 has a Division larger than 3? ### Context: CREATE TABLE table_name_97 (the_year INTEGER, division INTEGER) ### Response: ### Response: SELECT MAX(the_year) FROM table_name_97 WHERE division > 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: Which Record has a Match Report of recap, and a Result of l 30–20? ### Context: CREATE TABLE table_name_92 (record VARCHAR, match_report VARCHAR, result VARCHAR) ### Response: ### Response: SELECT record FROM table_name_92 WHERE match_report = "recap" AND result = "l 30–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: Name the band with frequency of 102.3 ### Context: CREATE TABLE table_name_88 (band VARCHAR, frequency VARCHAR) ### Response: ### Response: SELECT band FROM table_name_88 WHERE frequency = "102.3"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the outcome on May 25, 2009? ### Context: CREATE TABLE table_name_55 (outcome VARCHAR, date VARCHAR) ### Response: ### Response: SELECT outcome FROM table_name_55 WHERE date = "may 25, 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 date did af giles play? ### Context: CREATE TABLE table_name_40 (date VARCHAR, player VARCHAR) ### Response: ### Response: SELECT date FROM table_name_40 WHERE player = "af giles"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 televote/sms 2.39% and the place more than 9? ### Context: CREATE TABLE table_name_54 (draw VARCHAR, televote_sms VARCHAR, place VARCHAR) ### Response: ### Response: SELECT COUNT(draw) FROM table_name_54 WHERE televote_sms = "2.39%" AND place > 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: Which Competition has a Result of 3–1? ### Context: CREATE TABLE table_name_54 (competition VARCHAR, result VARCHAR) ### Response: ### Response: SELECT competition FROM table_name_54 WHERE result = "3–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 TV season has a Season larger than 2, and a Ranking of #5? ### Context: CREATE TABLE table_name_4 (tv_season VARCHAR, season VARCHAR, ranking VARCHAR) ### Response: ### Response: SELECT tv_season FROM table_name_4 WHERE season > 2 AND ranking = "#5"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which round has a car with a chassis of sf01? ### Context: CREATE TABLE table_name_20 (rounds VARCHAR, chassis VARCHAR) ### Response: ### Response: SELECT rounds FROM table_name_20 WHERE chassis = "sf01"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 motor's class was bs 1910? ### Context: CREATE TABLE table_name_84 (motor VARCHAR, class VARCHAR) ### Response: ### Response: SELECT motor FROM table_name_84 WHERE class = "bs 1910"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 1st prize ($) has a Winner of scott simpson (7)? ### Context: CREATE TABLE table_name_21 (winner VARCHAR) ### Response: ### Response: SELECT SUM(1 AS st_prize___) AS $__ FROM table_name_21 WHERE winner = "scott simpson (7)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the record of the team from chicago? ### Context: CREATE TABLE table_name_6 (record VARCHAR, home VARCHAR) ### Response: ### Response: SELECT record FROM table_name_6 WHERE home = "chicago"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 after game 41? ### Context: CREATE TABLE table_name_1 (record VARCHAR, game VARCHAR) ### Response: ### Response: SELECT record FROM table_name_1 WHERE game = 41</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Lee Trevino's score? ### Context: CREATE TABLE table_name_42 (score VARCHAR, player VARCHAR) ### Response: ### Response: SELECT score FROM table_name_42 WHERE player = "lee trevino"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many women from Uruguay has become third runner-up in this pageant? ### Context: CREATE TABLE table_29942205_1 (country_territory VARCHAR) ### Response: ### Response: SELECT MAX(3 AS rd_runner_up) FROM table_29942205_1 WHERE country_territory = "Uruguay"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 director of the production number 9368? ### Context: CREATE TABLE table_name_51 (director VARCHAR, production_number VARCHAR) ### Response: ### Response: SELECT director FROM table_name_51 WHERE production_number = "9368"</s>