inputs
stringlengths
400
1.34k
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the primary conference when joining the cslf for the institution that was founded in 1894 ### Context: CREATE TABLE table_262501_1 (primary_conference_when_joining_the_csfl VARCHAR, founded VARCHAR) ### Response: ### Response: SELECT primary_conference_when_joining_the_csfl FROM table_262501_1 WHERE founded = 1894</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 was the team's record 61-66? ### Context: CREATE TABLE table_name_28 (date VARCHAR, record VARCHAR) ### Response: ### Response: SELECT date FROM table_name_28 WHERE record = "61-66"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 chapter number is Shiqiu? ### Context: CREATE TABLE table_1216675_1 (chapter INTEGER, pinyin VARCHAR) ### Response: ### Response: SELECT MIN(chapter) FROM table_1216675_1 WHERE pinyin = "Shiqiu"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the title of season 3 ep# 12? ### Context: CREATE TABLE table_12451376_3 (title VARCHAR, season_3_ep__number VARCHAR) ### Response: ### Response: SELECT title FROM table_12451376_3 WHERE season_3_ep__number = 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 crowd size at Princes Park? ### Context: CREATE TABLE table_name_84 (crowd INTEGER, venue VARCHAR) ### Response: ### Response: SELECT SUM(crowd) FROM table_name_84 WHERE venue = "princes park"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What tournament is in katowice? ### Context: CREATE TABLE table_19765685_2 (tournament VARCHAR, city VARCHAR) ### Response: ### Response: SELECT tournament FROM table_19765685_2 WHERE city = "Katowice"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 producers are responsible for the song 'calling out to marlboro? ### Context: CREATE TABLE table_28232443_1 (producer__s_ VARCHAR, song__s_ VARCHAR) ### Response: ### Response: SELECT COUNT(producer__s_) FROM table_28232443_1 WHERE song__s_ = "Calling Out to Marlboro"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 dirty electric grid rocky mountains (denver) vehicles have an epa rated combined fuel economy of 102 mpg-e (33kw-hrs/100mi)? ### Context: CREATE TABLE table_23840623_4 (dirty_electric_grid_rocky_mountains__denver_ VARCHAR, epa_rated_combined_fuel_economy VARCHAR) ### Response: ### Response: SELECT COUNT(dirty_electric_grid_rocky_mountains__denver_) FROM table_23840623_4 WHERE epa_rated_combined_fuel_economy = "102 mpg-e (33kW-hrs/100mi)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 games played? ### Context: CREATE TABLE table_18018214_4 (games_played INTEGER) ### Response: ### Response: SELECT MAX(games_played) FROM table_18018214_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: If collingwood is playing away, who played as the home team? ### Context: CREATE TABLE table_name_43 (home_team VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT home_team FROM table_name_43 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 School Year has a Class AAAA of Dickinson? ### Context: CREATE TABLE table_name_61 (school_year VARCHAR, class_aAAA VARCHAR, dickinson VARCHAR) ### Response: ### Response: SELECT school_year FROM table_name_61 WHERE class_aAAA = dickinson</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 capacity for the venue of the club, pirin? ### Context: CREATE TABLE table_name_30 (capacity VARCHAR, club VARCHAR) ### Response: ### Response: SELECT COUNT(capacity) FROM table_name_30 WHERE club = "pirin"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 location for the first division, Sun Pegasus Club? ### Context: CREATE TABLE table_name_25 (location VARCHAR, league_division VARCHAR, club VARCHAR) ### Response: ### Response: SELECT location FROM table_name_25 WHERE league_division = "first division" AND club = "sun pegasus"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What city had a july high below 84, and a january low of 34.3? ### Context: CREATE TABLE table_name_84 (city VARCHAR, july__avg_high_°f_ VARCHAR, january__avg_low_°f_ VARCHAR) ### Response: ### Response: SELECT city FROM table_name_84 WHERE july__avg_high_°f_ < 84 AND january__avg_low_°f_ = "34.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 nationality's pick was 415? ### Context: CREATE TABLE table_name_21 (nationality VARCHAR, pick VARCHAR) ### Response: ### Response: SELECT nationality FROM table_name_21 WHERE pick = "415"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 classification of the institution nicknamed Dolphins? ### Context: CREATE TABLE table_12936521_2 (classification VARCHAR, nickname VARCHAR) ### Response: ### Response: SELECT classification FROM table_12936521_2 WHERE nickname = "Dolphins"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 manager of FK Andijan? ### Context: CREATE TABLE table_25527255_2 (manager VARCHAR, team VARCHAR) ### Response: ### Response: SELECT manager FROM table_25527255_2 WHERE team = "FK Andijan"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 games on December 20, how many points did the scoring leaders get? ### Context: CREATE TABLE table_10812293_4 (high_points VARCHAR, date VARCHAR) ### Response: ### Response: SELECT high_points FROM table_10812293_4 WHERE date = "December 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 was the average attendance on october 3, 1976? ### Context: CREATE TABLE table_name_68 (attendance INTEGER, date VARCHAR) ### Response: ### Response: SELECT AVG(attendance) FROM table_name_68 WHERE date = "october 3, 1976"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 differ from 134? ### Context: CREATE TABLE table_20760802_1 (points_difference VARCHAR, points_for VARCHAR) ### Response: ### Response: SELECT points_difference FROM table_20760802_1 WHERE points_for = "134"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When the united states won a total number of medals larger than 25, what was the lowest amount of Bronze medals won? ### Context: CREATE TABLE table_name_61 (bronze INTEGER, nation VARCHAR, total VARCHAR) ### Response: ### Response: SELECT MIN(bronze) FROM table_name_61 WHERE nation = "united states" AND total > 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: Which 2009 has a 2008 of A, and a 2010 of 4r? ### Context: CREATE TABLE table_name_84 (Id VARCHAR) ### Response: ### Response: SELECT 2009 FROM table_name_84 WHERE 2008 = "a" AND 2010 = "4r"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Where was the venue that had 274 runs? ### Context: CREATE TABLE table_name_29 (venue VARCHAR, runs VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_29 WHERE runs = "274"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 has an x under Jump 1, a Jump 2 of 7.28, and what is this person's Best Jump? ### Context: CREATE TABLE table_name_48 (best_jump VARCHAR, jump_1 VARCHAR, jump_2 VARCHAR) ### Response: ### Response: SELECT best_jump FROM table_name_48 WHERE jump_1 = "x" AND jump_2 = "7.28"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the runner-up on September 11? ### Context: CREATE TABLE table_21808535_1 (runner_up VARCHAR, date VARCHAR) ### Response: ### Response: SELECT runner_up FROM table_21808535_1 WHERE date = "September 11"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What bore goes with an 18 AB? ### Context: CREATE TABLE table_name_9 (bore VARCHAR, name VARCHAR) ### Response: ### Response: SELECT bore FROM table_name_9 WHERE name = "18 ab"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 played when lost is more than 17, drawn is 15 and goals against is less than 75? ### Context: CREATE TABLE table_name_85 (played INTEGER, goals_against VARCHAR, lost VARCHAR, drawn VARCHAR) ### Response: ### Response: SELECT AVG(played) FROM table_name_85 WHERE lost > 17 AND drawn = 15 AND goals_against < 75</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 goals scored for position 4 ### Context: CREATE TABLE table_16034882_5 (goals_scored INTEGER, position VARCHAR) ### Response: ### Response: SELECT MAX(goals_scored) FROM table_16034882_5 WHERE position = 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: Which car won the same award in 2000 that the ferrari f133 5.5l v12 456 / 550 won in 2001? ### Context: CREATE TABLE table_name_13 (Id VARCHAR) ### Response: ### Response: SELECT 2000 FROM table_name_13 WHERE 2001 = "ferrari f133 5.5l v12 456 / 550"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the most rnd for watkins glen? ### Context: CREATE TABLE table_13643154_2 (rnd INTEGER, circuit VARCHAR) ### Response: ### Response: SELECT MIN(rnd) FROM table_13643154_2 WHERE circuit = "Watkins Glen"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 type has a color of Dark Blue? ### Context: CREATE TABLE table_name_91 (type VARCHAR, colour VARCHAR) ### Response: ### Response: SELECT type FROM table_name_91 WHERE colour = "dark blue"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for the University of Dublin when 2 are nominated by Taoiseach and the industrial and commercial panel is greater than 0? ### Context: CREATE TABLE table_name_71 (university_of_dublin INTEGER, nominated_by_the_taoiseach VARCHAR, industrial_and_commercial_panel VARCHAR) ### Response: ### Response: SELECT SUM(university_of_dublin) FROM table_name_71 WHERE nominated_by_the_taoiseach = 2 AND industrial_and_commercial_panel > 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: Which rounds did the team Walther participate in? ### Context: CREATE TABLE table_name_77 (rounds VARCHAR, team VARCHAR) ### Response: ### Response: SELECT rounds FROM table_name_77 WHERE team = "walther"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Is it home or away when opponent is Pride with a W 11-10 result? ### Context: CREATE TABLE table_name_49 (home_away VARCHAR, opponent VARCHAR, result VARCHAR) ### Response: ### Response: SELECT home_away FROM table_name_49 WHERE opponent = "pride" AND result = "w 11-10"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Position has a League from of western hockey league, and a Team from of everett silvertips? ### Context: CREATE TABLE table_name_90 (position VARCHAR, league_from VARCHAR, team_from VARCHAR) ### Response: ### Response: SELECT position FROM table_name_90 WHERE league_from = "western hockey league" AND team_from = "everett silvertips"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 label is in download format in the United States? ### Context: CREATE TABLE table_name_42 (label VARCHAR, region VARCHAR, format VARCHAR) ### Response: ### Response: SELECT label FROM table_name_42 WHERE region = "united states" AND format = "download"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Where was the game on May 9 played? ### Context: CREATE TABLE table_name_21 (site_stadium VARCHAR, date VARCHAR) ### Response: ### Response: SELECT site_stadium FROM table_name_21 WHERE date = "may 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: Name the publisher for resident evil 4 ### Context: CREATE TABLE table_14325653_2 (publisher_s_ VARCHAR, video_game VARCHAR) ### Response: ### Response: SELECT publisher_s_ FROM table_14325653_2 WHERE video_game = "Resident Evil 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 genre is Set Max's Hindi programming? ### Context: CREATE TABLE table_name_85 (genre VARCHAR, language VARCHAR, network VARCHAR) ### Response: ### Response: SELECT genre FROM table_name_85 WHERE language = "hindi" AND network = "set max"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the opponent on June 3? ### Context: CREATE TABLE table_name_50 (opponent VARCHAR, date VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_50 WHERE date = "june 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 NHL team has a League from of western hockey league and a Pick # smaller than 23 and a Team from of prince george cougars? ### Context: CREATE TABLE table_name_97 (nhl_team VARCHAR, team_from VARCHAR, league_from VARCHAR, pick__number VARCHAR) ### Response: ### Response: SELECT nhl_team FROM table_name_97 WHERE league_from = "western hockey league" AND pick__number < 23 AND team_from = "prince george cougars"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 earnings for curtis strange? ### Context: CREATE TABLE table_name_60 (earnings___ INTEGER, player VARCHAR) ### Response: ### Response: SELECT MAX(earnings___) AS $__ FROM table_name_60 WHERE player = "curtis strange"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 was introduced where it was withdrawn 1955? ### Context: CREATE TABLE table_name_31 (introduced VARCHAR, withdrawn VARCHAR) ### Response: ### Response: SELECT introduced FROM table_name_31 WHERE withdrawn = "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 name of the track in Holland? ### Context: CREATE TABLE table_name_2 (track VARCHAR, city VARCHAR) ### Response: ### Response: SELECT track FROM table_name_2 WHERE city = "holland"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 match against Arema Malang that ended in a draw, what was the final score? ### Context: CREATE TABLE table_name_64 (score VARCHAR, result VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT score FROM table_name_64 WHERE result = "draw" AND opponent = "arema malang"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 every score at the location of Verizon Center and points of 68? ### Context: CREATE TABLE table_23486853_8 (score VARCHAR, location VARCHAR, points VARCHAR) ### Response: ### Response: SELECT score FROM table_23486853_8 WHERE location = "Verizon Center" AND points = 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 shows for 2013 when the 2008 is 1r? ### Context: CREATE TABLE table_name_77 (Id VARCHAR) ### Response: ### Response: SELECT 2013 FROM table_name_77 WHERE 2008 = "1r"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Traditional when the Pinyin is hédōng qū? ### Context: CREATE TABLE table_name_27 (traditional VARCHAR, pinyin VARCHAR) ### Response: ### Response: SELECT traditional FROM table_name_27 WHERE pinyin = "hédōng qū"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Show the names of artworks in ascending order of the year they are nominated in. ### Context: CREATE TABLE artwork (Name VARCHAR, Artwork_ID VARCHAR); CREATE TABLE nomination (Artwork_ID VARCHAR, Festival_ID VARCHAR); CREATE TABLE festival_detail (Festival_ID VARCHAR, Year VARCHAR) ### Response: ### Response: SELECT T2.Name FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID ORDER BY T3.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: What is Wheel Arrangement, when Quantity Made is 44? ### Context: CREATE TABLE table_name_8 (wheel_arrangement VARCHAR, quantity_made VARCHAR) ### Response: ### Response: SELECT wheel_arrangement FROM table_name_8 WHERE quantity_made = "44"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 settlement has the cyrillic and other name of локве (romanian: locve)? ### Context: CREATE TABLE table_2562572_44 (settlement VARCHAR, cyrillic_name_other_names VARCHAR) ### Response: ### Response: SELECT settlement FROM table_2562572_44 WHERE cyrillic_name_other_names = "Локве (Romanian: Locve)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 draft pick number was Ric Jackman? ### Context: CREATE TABLE table_2840500_1 (pick INTEGER, player VARCHAR) ### Response: ### Response: SELECT MIN(pick) FROM table_2840500_1 WHERE player = "Ric Jackman"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the score for game more than 6 and before october 28 ### Context: CREATE TABLE table_name_67 (score VARCHAR, game VARCHAR, october VARCHAR) ### Response: ### Response: SELECT score FROM table_name_67 WHERE game > 6 AND october < 28</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Entrant has a 1952 maserati straight-6 engine? ### Context: CREATE TABLE table_name_29 (entrant VARCHAR, engine VARCHAR, year VARCHAR) ### Response: ### Response: SELECT entrant FROM table_name_29 WHERE engine = "maserati straight-6" AND year = 1952</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When the Total is less than 1, and Bronze is 0, how many Gold medals are there? ### Context: CREATE TABLE table_name_73 (gold INTEGER, bronze VARCHAR, total VARCHAR) ### Response: ### Response: SELECT SUM(gold) FROM table_name_73 WHERE bronze = 0 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 Country has a Score of 79-68-74=212? ### Context: CREATE TABLE table_name_49 (country VARCHAR, score VARCHAR) ### Response: ### Response: SELECT country FROM table_name_49 WHERE score = 79 - 68 - 74 = 212</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 locations with an eagles macot? ### Context: CREATE TABLE table_13456202_1 (location VARCHAR, mascot VARCHAR) ### Response: ### Response: SELECT location FROM table_13456202_1 WHERE mascot = "Eagles"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 LOSS WITH AN AVERAGE OF 89.9? ### Context: CREATE TABLE table_name_18 (loss INTEGER, avg_g VARCHAR) ### Response: ### Response: SELECT SUM(loss) FROM table_name_18 WHERE avg_g = 89.9</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What year(s) was axis & allies: d-day released? ### Context: CREATE TABLE table_173475_1 (release VARCHAR, title VARCHAR) ### Response: ### Response: SELECT release FROM table_173475_1 WHERE title = "Axis & Allies: D-Day"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 party did the incumbent Joseph Pearson belong to? ### Context: CREATE TABLE table_2668367_14 (party VARCHAR, incumbent VARCHAR) ### Response: ### Response: SELECT party FROM table_2668367_14 WHERE incumbent = "Joseph Pearson"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 To par that has a Year(s) won of 1988 and a Total smaller than 148? ### Context: CREATE TABLE table_name_31 (to_par INTEGER, year_s__won VARCHAR, total VARCHAR) ### Response: ### Response: SELECT MAX(to_par) FROM table_name_31 WHERE year_s__won = "1988" AND total < 148</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 player for pick of 145 ### Context: CREATE TABLE table_name_9 (player VARCHAR, pick VARCHAR) ### Response: ### Response: SELECT player FROM table_name_9 WHERE pick = "145"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 was there a crowd larger than 30,343? ### Context: CREATE TABLE table_name_97 (date VARCHAR, crowd INTEGER) ### Response: ### Response: SELECT date FROM table_name_97 WHERE crowd > 30 OFFSET 343</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 households are in Ottawa? ### Context: CREATE TABLE table_name_58 (number_of_households INTEGER, county VARCHAR) ### Response: ### Response: SELECT SUM(number_of_households) FROM table_name_58 WHERE county = "ottawa"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 crowd at arden street oval? ### Context: CREATE TABLE table_name_7 (crowd INTEGER, venue VARCHAR) ### Response: ### Response: SELECT MAX(crowd) FROM table_name_7 WHERE venue = "arden street 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: Show me all the restaurants. ### Context: CREATE TABLE Restaurant (ResName VARCHAR) ### Response: ### Response: SELECT ResName FROM Restaurant</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 co-champions value when solo was 3 and MRC Championships is greater than 3? ### Context: CREATE TABLE table_name_49 (co_champions VARCHAR, solo VARCHAR, mrc_championships VARCHAR) ### Response: ### Response: SELECT co_champions FROM table_name_49 WHERE solo = 3 AND mrc_championships > 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: How many weeks on top was OMC? ### Context: CREATE TABLE table_name_48 (weeks_on_top VARCHAR, artist VARCHAR) ### Response: ### Response: SELECT weeks_on_top FROM table_name_48 WHERE artist = "omc"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 types of tracks are there on the Phoenix International raceway? ### Context: CREATE TABLE table_22673956_1 (type VARCHAR, track VARCHAR) ### Response: ### Response: SELECT COUNT(type) FROM table_22673956_1 WHERE track = "Phoenix International Raceway"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 episode summary for torae carr ### Context: CREATE TABLE table_2140071_12 (episode VARCHAR, coach VARCHAR) ### Response: ### Response: SELECT episode AS Summary FROM table_2140071_12 WHERE coach = "Torae Carr"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What city has the home team of the brisbane broncos? ### Context: CREATE TABLE table_name_88 (city VARCHAR, home_team_s VARCHAR) ### Response: ### Response: SELECT city FROM table_name_88 WHERE home_team_s = "brisbane broncos"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 dates where games played at Football Park? ### Context: CREATE TABLE table_16387953_1 (date VARCHAR, ground VARCHAR) ### Response: ### Response: SELECT date FROM table_16387953_1 WHERE ground = "Football Park"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When was incumbent William B. Oliver first elected? ### Context: CREATE TABLE table_1342379_2 (first_elected INTEGER, incumbent VARCHAR) ### Response: ### Response: SELECT MAX(first_elected) FROM table_1342379_2 WHERE incumbent = "William B. Oliver"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 event when the method was submission (armbar), and Jeff Gibson was the opponent? ### Context: CREATE TABLE table_name_67 (event VARCHAR, method VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT event FROM table_name_67 WHERE method = "submission (armbar)" AND opponent = "jeff gibson"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 amount of bronze Liechtenstein, who has more than 11 gold, has? ### Context: CREATE TABLE table_name_75 (bronze INTEGER, nation VARCHAR, gold VARCHAR) ### Response: ### Response: SELECT MIN(bronze) FROM table_name_75 WHERE nation = "liechtenstein" AND gold > 11</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the win% for the game 80 and a PWin% of —, and a Term [c ] of 1987–1988? ### Context: CREATE TABLE table_name_88 (win_percentage VARCHAR, games VARCHAR, Pwin_percentage VARCHAR, — VARCHAR, term_ VARCHAR, c_ VARCHAR) ### Response: ### Response: SELECT win_percentage FROM table_name_88 WHERE games = 80 AND Pwin_percentage = — AND term_[c_] = "1987–1988"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 match number where Bill Hoffman plays for Team USA? ### Context: CREATE TABLE table_19072602_1 (match_no INTEGER, team_usa VARCHAR) ### Response: ### Response: SELECT MIN(match_no) FROM table_19072602_1 WHERE team_usa = "Bill Hoffman"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 location attendance for l 105–123 (ot) ### Context: CREATE TABLE table_27733258_6 (location_attendance VARCHAR, score VARCHAR) ### Response: ### Response: SELECT location_attendance FROM table_27733258_6 WHERE score = "L 105–123 (OT)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 name and opening year for three churches that opened most recently. ### Context: CREATE TABLE church (name VARCHAR, open_date VARCHAR) ### Response: ### Response: SELECT name, open_date FROM church ORDER BY open_date DESC LIMIT 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 tournament location has south korea as the country? ### Context: CREATE TABLE table_name_43 (tournament_location VARCHAR, country VARCHAR) ### Response: ### Response: SELECT tournament_location FROM table_name_43 WHERE country = "south korea"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 on average attend round f? ### Context: CREATE TABLE table_name_28 (attendance INTEGER, round VARCHAR) ### Response: ### Response: SELECT AVG(attendance) FROM table_name_28 WHERE round = "f"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 third district for christine young ### Context: CREATE TABLE table_15442974_1 (third_district VARCHAR, fifth_district VARCHAR) ### Response: ### Response: SELECT third_district FROM table_15442974_1 WHERE fifth_district = "Christine Young"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 cross-section area is 21.2, what is the weight? ### Context: CREATE TABLE table_2071644_2 (weight__kg_m_ VARCHAR, cross_section_area__cm_2__ VARCHAR) ### Response: ### Response: SELECT weight__kg_m_ FROM table_2071644_2 WHERE cross_section_area__cm_2__ = "21.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 1997 has sf as the 2002? ### Context: CREATE TABLE table_name_74 (Id VARCHAR) ### Response: ### Response: SELECT 1997 FROM table_name_74 WHERE 2002 = "sf"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for a game with the odds of p + 2 after 1847? ### Context: CREATE TABLE table_name_36 (score VARCHAR, odds VARCHAR, date VARCHAR) ### Response: ### Response: SELECT score FROM table_name_36 WHERE odds = "p + 2" AND date > 1847</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 athlete has a 35 km event? ### Context: CREATE TABLE table_name_74 (athlete VARCHAR, event VARCHAR) ### Response: ### Response: SELECT athlete FROM table_name_74 WHERE event = "35 km"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 played the mathematics student? ### Context: CREATE TABLE table_2933761_1 (played_by VARCHAR, occupation VARCHAR) ### Response: ### Response: SELECT played_by FROM table_2933761_1 WHERE occupation = "Mathematics Student"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 average S.R. has an Average of 39.13 and Balls Faced larger than 318? ### Context: CREATE TABLE table_name_48 (sr INTEGER, average VARCHAR, balls_faced VARCHAR) ### Response: ### Response: SELECT AVG(sr) FROM table_name_48 WHERE average = 39.13 AND balls_faced > 318</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for the ufc on fox: velasquez vs. dos santos event? ### Context: CREATE TABLE table_name_8 (round INTEGER, event VARCHAR) ### Response: ### Response: SELECT AVG(round) FROM table_name_8 WHERE event = "ufc on fox: velasquez vs. dos santos"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 averages having a balls faced over 297 and more than 7 innings? ### Context: CREATE TABLE table_name_34 (average VARCHAR, balls_faced VARCHAR, innings VARCHAR) ### Response: ### Response: SELECT COUNT(average) FROM table_name_34 WHERE balls_faced > 297 AND innings > 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: Which team has a record of 7-1? ### Context: CREATE TABLE table_name_99 (opponent VARCHAR, record VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_99 WHERE record = "7-1"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Points with a Tries For that is 21? ### Context: CREATE TABLE table_name_13 (points VARCHAR, tries_for VARCHAR) ### Response: ### Response: SELECT points FROM table_name_13 WHERE tries_for = "21"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Visa 3 has gui finkler as Visa 1? ### Context: CREATE TABLE table_name_83 (visa_3 VARCHAR, visa_1 VARCHAR) ### Response: ### Response: SELECT visa_3 FROM table_name_83 WHERE visa_1 = "gui finkler"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 dates do the dolphins have 6 points? ### Context: CREATE TABLE table_18847736_2 (date VARCHAR, dolphins_points VARCHAR) ### Response: ### Response: SELECT date FROM table_18847736_2 WHERE dolphins_points = 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 scored with the position of 6? ### Context: CREATE TABLE table_18703133_6 (scored INTEGER, position VARCHAR) ### Response: ### Response: SELECT MIN(scored) FROM table_18703133_6 WHERE position = 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 Ship Type of the Prize Disposition of ship and a tonnage less than 151? ### Context: CREATE TABLE table_name_47 (ship_type VARCHAR, disposition_of_ship VARCHAR, tonnage VARCHAR) ### Response: ### Response: SELECT ship_type FROM table_name_47 WHERE disposition_of_ship = "prize" AND tonnage < 151</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 area (in km2) for the community that has a status of village, a census ranking of 2,471 of 5,008, and a population of less than 748? ### Context: CREATE TABLE table_name_10 (area_km_2 INTEGER, population VARCHAR, status VARCHAR, census_ranking VARCHAR) ### Response: ### Response: SELECT SUM(area_km_2) FROM table_name_10 WHERE status = "village" AND census_ranking = "2,471 of 5,008" AND population < 748</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 date when the attendance is more than 45,817 ### Context: CREATE TABLE table_name_65 (date VARCHAR, attendance INTEGER) ### Response: ### Response: SELECT date FROM table_name_65 WHERE attendance > 45 OFFSET 817</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 incumbent from the south carolina 1 district first elected? ### Context: CREATE TABLE table_name_56 (first_elected VARCHAR, district VARCHAR) ### Response: ### Response: SELECT first_elected FROM table_name_56 WHERE district = "south carolina 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: who is the player when the position is p and the team is oakland athletics? ### Context: CREATE TABLE table_name_99 (player VARCHAR, position VARCHAR, team VARCHAR) ### Response: ### Response: SELECT player FROM table_name_99 WHERE position = "p" AND team = "oakland athletics"</s>