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 round had the opponent Lyon? ### Context: CREATE TABLE table_name_1 (round VARCHAR, opposition VARCHAR) ### Response: ### Response: SELECT round FROM table_name_1 WHERE opposition = "lyon"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 home team with Liverpool as the away? ### Context: CREATE TABLE table_name_76 (home_team VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT home_team FROM table_name_76 WHERE away_team = "liverpool"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 high point for January 20? ### Context: CREATE TABLE table_22883210_7 (high_points VARCHAR, date VARCHAR) ### Response: ### Response: SELECT high_points FROM table_22883210_7 WHERE date = "January 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: When steve holland is the writer what is the air date? ### Context: CREATE TABLE table_27657925_1 (original_air_date VARCHAR, written_by VARCHAR) ### Response: ### Response: SELECT original_air_date FROM table_27657925_1 WHERE written_by = "Steve 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: Which Year has Playoffs which did not qualify? ### Context: CREATE TABLE table_name_94 (year INTEGER, playoffs VARCHAR) ### Response: ### Response: SELECT AVG(year) FROM table_name_94 WHERE playoffs = "did not qualify"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 stage with S. Loeb as the Winner with a Length of 13.04km and a Stage of SS12? ### Context: CREATE TABLE table_name_8 (name VARCHAR, stage VARCHAR, winner VARCHAR, length VARCHAR) ### Response: ### Response: SELECT name FROM table_name_8 WHERE winner = "s. loeb" AND length = "13.04km" AND stage = "ss12"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 team classifications when the young rider classification leader was Salvatore Commesso and the combativity award winner was Jacky Durand? ### Context: CREATE TABLE table_2267345_2 (team_classification VARCHAR, young_rider_classification VARCHAR, combativity_award VARCHAR) ### Response: ### Response: SELECT COUNT(team_classification) FROM table_2267345_2 WHERE young_rider_classification = "Salvatore Commesso" AND combativity_award = "Jacky Durand"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 figures for birth/2013 when January-September is Oryol Oblast? ### Context: CREATE TABLE table_25703_1 (birth_2013 VARCHAR, january_september_2013 VARCHAR) ### Response: ### Response: SELECT COUNT(birth_2013) FROM table_25703_1 WHERE january_september_2013 = "Oryol Oblast"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Last Aired has a Retitled as/Same of classic concentration? ### Context: CREATE TABLE table_name_57 (last_aired VARCHAR, retitled_as_same VARCHAR) ### Response: ### Response: SELECT last_aired FROM table_name_57 WHERE retitled_as_same = "classic concentration"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 period active for enya ### Context: CREATE TABLE table_name_42 (period_active VARCHAR, artist VARCHAR) ### Response: ### Response: SELECT period_active FROM table_name_42 WHERE artist = "enya"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 try bonus when the points for was 608? ### Context: CREATE TABLE table_name_56 (try_bonus VARCHAR, points_for VARCHAR) ### Response: ### Response: SELECT try_bonus FROM table_name_56 WHERE points_for = "608"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 decile for Westminster Christian School with a state integrated authority? ### Context: CREATE TABLE table_name_55 (decile VARCHAR, authority VARCHAR, name VARCHAR) ### Response: ### Response: SELECT decile FROM table_name_55 WHERE authority = "state integrated" AND name = "westminster christian school"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 total number of medals received by James Logan High School when it received less than 1 silver medal? ### Context: CREATE TABLE table_name_42 (total_medals VARCHAR, ensemble VARCHAR, silver_medals VARCHAR) ### Response: ### Response: SELECT COUNT(total_medals) FROM table_name_42 WHERE ensemble = "james logan high school" AND silver_medals < 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 least amount of extra points made in by a player? ### Context: CREATE TABLE table_14342210_6 (extra_points INTEGER) ### Response: ### Response: SELECT MIN(extra_points) FROM table_14342210_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's the G.A. when there were 2 losses and Scotland played? ### Context: CREATE TABLE table_name_33 (ga VARCHAR, losses VARCHAR, team VARCHAR) ### Response: ### Response: SELECT ga FROM table_name_33 WHERE losses = "2" AND team = "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: Name the starter for schulte ### Context: CREATE TABLE table_14342592_4 (starter VARCHAR, player VARCHAR) ### Response: ### Response: SELECT starter FROM table_14342592_4 WHERE player = "Schulte"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 f/laps when the season is 2011 and races is 18? ### Context: CREATE TABLE table_name_16 (f_laps VARCHAR, season VARCHAR, races VARCHAR) ### Response: ### Response: SELECT f_laps FROM table_name_16 WHERE season = "2011" AND races = "18"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who is the PBA team with Mlqu college? ### Context: CREATE TABLE table_name_68 (pba_team VARCHAR, college VARCHAR) ### Response: ### Response: SELECT pba_team FROM table_name_68 WHERE college = "mlqu"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 in the final, that Víctor Pecci was the opponent and winner after 1984? ### Context: CREATE TABLE table_name_92 (score_in_the_final VARCHAR, opponent_in_the_final VARCHAR, date VARCHAR, outcome VARCHAR) ### Response: ### Response: SELECT score_in_the_final FROM table_name_92 WHERE date > 1984 AND outcome = "winner" AND opponent_in_the_final = "víctor pecci"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 first aired date of the Animated Series episode? ### Context: CREATE TABLE table_name_91 (first_aired VARCHAR, episode VARCHAR) ### Response: ### Response: SELECT first_aired FROM table_name_91 WHERE episode = "animated series"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the result for Andrew Gregg? ### Context: CREATE TABLE table_2668401_12 (result VARCHAR, incumbent VARCHAR) ### Response: ### Response: SELECT result FROM table_2668401_12 WHERE incumbent = "Andrew Gregg"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Home Captain has Eng by 208 runs? ### Context: CREATE TABLE table_name_28 (home_captain VARCHAR, result VARCHAR) ### Response: ### Response: SELECT home_captain FROM table_name_28 WHERE result = "eng by 208 runs"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 rank for more than 12 points? ### Context: CREATE TABLE table_name_24 (rank INTEGER, points INTEGER) ### Response: ### Response: SELECT AVG(rank) FROM table_name_24 WHERE points > 12</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many draws were there when there were points less than 23, 6 losses, and more than 21 against? ### Context: CREATE TABLE table_name_49 (drawn VARCHAR, against VARCHAR, points VARCHAR, lost VARCHAR) ### Response: ### Response: SELECT COUNT(drawn) FROM table_name_49 WHERE points < 23 AND lost = 6 AND against > 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: Name the maximum enrollment for niagara university ### Context: CREATE TABLE table_16383772_1 (enrollment INTEGER, school VARCHAR) ### Response: ### Response: SELECT MAX(enrollment) FROM table_16383772_1 WHERE school = "Niagara 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 line has an operator of the London Overground and ends at the Crystal Palace? ### Context: CREATE TABLE table_name_87 (line VARCHAR, operator VARCHAR, destination VARCHAR) ### Response: ### Response: SELECT line FROM table_name_87 WHERE operator = "london overground" AND destination = "crystal palace"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the total number of date of vacancy for manner of departure being resigned and outgoing manager is geninho ### Context: CREATE TABLE table_14406743_5 (date_of_vacancy VARCHAR, manner_of_departure VARCHAR, outgoing_manager VARCHAR) ### Response: ### Response: SELECT COUNT(date_of_vacancy) FROM table_14406743_5 WHERE manner_of_departure = "Resigned" AND outgoing_manager = "Geninho"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 artist(s) have a start date is 1966-12-12? ### Context: CREATE TABLE table_2560677_1 (artist_s_ VARCHAR, start_date VARCHAR) ### Response: ### Response: SELECT COUNT(artist_s_) FROM table_2560677_1 WHERE start_date = "1966-12-12"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the team for kirk hinrich , derrick rose , john salmons (6) ### Context: CREATE TABLE table_22669044_9 (team VARCHAR, high_assists VARCHAR) ### Response: ### Response: SELECT team FROM table_22669044_9 WHERE high_assists = "Kirk Hinrich , Derrick Rose , John Salmons (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's the time/retired for a grid of 14? ### Context: CREATE TABLE table_name_98 (time_retired VARCHAR, grid VARCHAR) ### Response: ### Response: SELECT time_retired FROM table_name_98 WHERE grid = "14"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the co-driver for the team with more than 160 laps and the number 6 after 2010? ### Context: CREATE TABLE table_name_41 (co_driver VARCHAR, number VARCHAR, laps VARCHAR, year VARCHAR) ### Response: ### Response: SELECT co_driver FROM table_name_41 WHERE laps > 160 AND year > 2010 AND number = 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: Frequency for kamy? ### Context: CREATE TABLE table_name_4 (frequency_mhz VARCHAR, call_sign VARCHAR) ### Response: ### Response: SELECT frequency_mhz FROM table_name_4 WHERE call_sign = "kamy"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 player that scored 27 goals, what years did he score them? ### Context: CREATE TABLE table_name_62 (years VARCHAR, goals VARCHAR) ### Response: ### Response: SELECT years FROM table_name_62 WHERE goals = 27</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What day did the team play the buffalo bills? ### Context: CREATE TABLE table_name_28 (date VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT date FROM table_name_28 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 the date of game with a score of 42-6? ### Context: CREATE TABLE table_name_23 (date VARCHAR, score VARCHAR) ### Response: ### Response: SELECT date FROM table_name_23 WHERE score = "42-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 GRID WITH AN ACCIDENT AND HONDA MANUFACTURER? ### Context: CREATE TABLE table_name_72 (grid INTEGER, time_retired VARCHAR, manufacturer VARCHAR) ### Response: ### Response: SELECT MAX(grid) FROM table_name_72 WHERE time_retired = "accident" AND manufacturer = "honda"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What won est pc intro when 4k0 (polka brothers) won best amiga intro? ### Context: CREATE TABLE table_2490289_1 (pc_intro VARCHAR, amiga_intro VARCHAR) ### Response: ### Response: SELECT pc_intro FROM table_2490289_1 WHERE amiga_intro = "4k0 (Polka Brothers)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the number of goals if the name is Xavier Gravelaine? ### Context: CREATE TABLE table_24565004_8 (goals¹ VARCHAR, name VARCHAR) ### Response: ### Response: SELECT goals¹ FROM table_24565004_8 WHERE name = "Xavier Gravelaine"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 canton with commune being waldbillig ### Context: CREATE TABLE table_1417184_1 (canton VARCHAR, commune VARCHAR) ### Response: ### Response: SELECT COUNT(canton) FROM table_1417184_1 WHERE commune = "Waldbillig"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Circuit has an Event of international procar meeting? ### Context: CREATE TABLE table_name_10 (circuit VARCHAR, event VARCHAR) ### Response: ### Response: SELECT circuit FROM table_name_10 WHERE event = "international procar meeting"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 most high points and rebounds than charles oakley (9)? ### Context: CREATE TABLE table_13812785_8 (high_points VARCHAR, high_rebounds VARCHAR) ### Response: ### Response: SELECT high_points FROM table_13812785_8 WHERE high_rebounds = "Charles Oakley (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: In what year was John Bell Williams first elected? ### Context: CREATE TABLE table_1341930_24 (first_elected VARCHAR, incumbent VARCHAR) ### Response: ### Response: SELECT first_elected FROM table_1341930_24 WHERE incumbent = "John Bell Williams"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Apps of indonesia with Goals smaller than 1000? ### Context: CREATE TABLE table_name_64 (apps INTEGER, country VARCHAR, goals VARCHAR) ### Response: ### Response: SELECT AVG(apps) FROM table_name_64 WHERE country = "indonesia" AND goals < 1000</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 sum of played for serik berdalin and drawn more than 4 ### Context: CREATE TABLE table_name_25 (played INTEGER, manager VARCHAR, drawn VARCHAR) ### Response: ### Response: SELECT SUM(played) FROM table_name_25 WHERE manager = "serik berdalin" AND drawn > 4</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was launched and laid down in February 1819? ### Context: CREATE TABLE table_name_14 (launched VARCHAR, laid_down VARCHAR) ### Response: ### Response: SELECT launched FROM table_name_14 WHERE laid_down = "february 1819"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 played against in the final on November 14, 1994? ### Context: CREATE TABLE table_name_17 (opponent_in_the_final VARCHAR, date VARCHAR) ### Response: ### Response: SELECT opponent_in_the_final FROM table_name_17 WHERE date = "november 14, 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: How many total Silver has a Bronze larger than 19 and a Total smaller than 125? ### Context: CREATE TABLE table_name_13 (silver INTEGER, bronze VARCHAR, total VARCHAR) ### Response: ### Response: SELECT SUM(silver) FROM table_name_13 WHERE bronze > 19 AND total < 125</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 player has place t10 ### Context: CREATE TABLE table_name_37 (player VARCHAR, place VARCHAR) ### Response: ### Response: SELECT player FROM table_name_37 WHERE place = "t10"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 total when the bronze was more than 1, silver was 3, and gold was less than 5? ### Context: CREATE TABLE table_name_90 (total INTEGER, gold VARCHAR, bronze VARCHAR, silver VARCHAR) ### Response: ### Response: SELECT SUM(total) FROM table_name_90 WHERE bronze > 1 AND silver = 3 AND gold < 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 is the smallest First year when the population is 32,645? ### Context: CREATE TABLE table_name_33 (first_year INTEGER, population VARCHAR) ### Response: ### Response: SELECT MIN(first_year) FROM table_name_33 WHERE population = 32 OFFSET 645</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many games had they won or lost in a row on May 9? ### Context: CREATE TABLE table_30047613_13 (streak VARCHAR, date VARCHAR) ### Response: ### Response: SELECT streak FROM table_30047613_13 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: What is the low attendance was based in phoenix with a Record of 1–0–0? ### Context: CREATE TABLE table_name_38 (attendance INTEGER, home VARCHAR, record VARCHAR) ### Response: ### Response: SELECT MIN(attendance) FROM table_name_38 WHERE home = "phoenix" AND record = "1–0–0"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the national share of the country whose area is 148064 km^2? ### Context: CREATE TABLE table_171666_1 (national_share___percentage_ VARCHAR, area__km²_ VARCHAR) ### Response: ### Response: SELECT national_share___percentage_ FROM table_171666_1 WHERE area__km²_ = 148064</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 country that has internetlists of —, and ONIsecurityfiltering of —? ### Context: CREATE TABLE table_name_80 (country VARCHAR, internetlists VARCHAR, onisecurityfiltering VARCHAR) ### Response: ### Response: SELECT country FROM table_name_80 WHERE internetlists = "—" AND onisecurityfiltering = "—"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 player was on the Grizzlies from 2009-2013? ### Context: CREATE TABLE table_16494599_1 (player VARCHAR, years_for_grizzlies VARCHAR) ### Response: ### Response: SELECT player FROM table_16494599_1 WHERE years_for_grizzlies = "2009-2013"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: In which season did Paul McCrane first direct an episode? ### Context: CREATE TABLE table_17355820_1 (season__number INTEGER, directed_by VARCHAR) ### Response: ### Response: SELECT MIN(season__number) FROM table_17355820_1 WHERE directed_by = "Paul McCrane"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 version is 1.5b, what is the distribution mechanism? ### Context: CREATE TABLE table_2263152_1 (distribution_mechanism VARCHAR, version VARCHAR) ### Response: ### Response: SELECT distribution_mechanism FROM table_2263152_1 WHERE version = "1.5b"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 fastest lap at the brazilian grand prix? ### Context: CREATE TABLE table_1137695_3 (fastest_lap VARCHAR, grand_prix VARCHAR) ### Response: ### Response: SELECT fastest_lap FROM table_1137695_3 WHERE grand_prix = "Brazilian grand_prix"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Karen Handel polling at in the Insideradvantage poll where John Oxendine is at 15%? ### Context: CREATE TABLE table_name_78 (karen_handel VARCHAR, poll_source VARCHAR, john_oxendine VARCHAR) ### Response: ### Response: SELECT karen_handel FROM table_name_78 WHERE poll_source = "insideradvantage" AND john_oxendine = "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: Show all opening years and the number of churches that opened in that year. ### Context: CREATE TABLE church (open_date VARCHAR) ### Response: ### Response: SELECT open_date, COUNT(*) FROM church GROUP BY open_date</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Qaxmuğal village with a Fistiqli village keşqutan? ### Context: CREATE TABLE table_name_81 (qaxmuğal VARCHAR, fıstıqlı VARCHAR) ### Response: ### Response: SELECT qaxmuğal FROM table_name_81 WHERE fıstıqlı = "keşqutan"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Sky Tower? ### Context: CREATE TABLE table_name_35 (city VARCHAR, name VARCHAR) ### Response: ### Response: SELECT city FROM table_name_35 WHERE name = "sky tower"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the presentation of credentials for appointed by of grover cleveland and representative of charles w. buck ### Context: CREATE TABLE table_name_45 (presentation_of_credentials VARCHAR, appointed_by VARCHAR, representative VARCHAR) ### Response: ### Response: SELECT presentation_of_credentials FROM table_name_45 WHERE appointed_by = "grover cleveland" AND representative = "charles w. buck"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 nickname of the boy who weighed 810g (26.0 oz.) at birth? ### Context: CREATE TABLE table_name_64 (nickname VARCHAR, gender VARCHAR, weight_at_birth VARCHAR) ### Response: ### Response: SELECT nickname FROM table_name_64 WHERE gender = "boy" AND weight_at_birth = "810g (26.0 oz.)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 gtc winning team when lmp winning team was #8 drayson racing? ### Context: CREATE TABLE table_24037660_2 (gtc_winning_team VARCHAR, lmp_winning_team VARCHAR) ### Response: ### Response: SELECT gtc_winning_team FROM table_24037660_2 WHERE lmp_winning_team = "#8 Drayson Racing"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the title of the track with lyricist ROZ and arranger Yongmin Lee? ### Context: CREATE TABLE table_name_17 (title VARCHAR, lyricist_s_ VARCHAR, arranger_s_ VARCHAR) ### Response: ### Response: SELECT title FROM table_name_17 WHERE lyricist_s_ = "roz" AND arranger_s_ = "yongmin lee"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 season had Dalian Wanda as the winner with Yanbian Aodong winning 4th? ### Context: CREATE TABLE table_name_1 (season INTEGER, winners VARCHAR, fourth_placed VARCHAR) ### Response: ### Response: SELECT SUM(season) FROM table_name_1 WHERE winners = "dalian wanda" AND fourth_placed = "yanbian aodong"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 highest week when the record was 1-3? ### Context: CREATE TABLE table_name_48 (week INTEGER, record VARCHAR) ### Response: ### Response: SELECT MAX(week) FROM table_name_48 WHERE record = "1-3"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What Date performed has a Scores by each individual judge of 10 + 10 + 10 = 30, and a Main contestant of karanvir bohra? ### Context: CREATE TABLE table_name_19 (date_performed VARCHAR, main_contestant VARCHAR, scores_by_each_individual_judge VARCHAR) ### Response: ### Response: SELECT date_performed FROM table_name_19 WHERE scores_by_each_individual_judge = 10 + 10 + 10 = 30 AND main_contestant = "karanvir bohra"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 round was Craig Erickson drafted? ### Context: CREATE TABLE table_name_58 (round VARCHAR, player VARCHAR) ### Response: ### Response: SELECT round FROM table_name_58 WHERE player = "craig erickson"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 does joel r. poinsett represent? ### Context: CREATE TABLE table_2668264_22 (party VARCHAR, incumbent VARCHAR) ### Response: ### Response: SELECT party FROM table_2668264_22 WHERE incumbent = "Joel R. Poinsett"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Score has a Record of 36–61? ### Context: CREATE TABLE table_name_29 (score VARCHAR, record VARCHAR) ### Response: ### Response: SELECT score FROM table_name_29 WHERE record = "36–61"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 rank for the athlete that had a race time of 7:34.24? ### Context: CREATE TABLE table_name_56 (rank VARCHAR, time VARCHAR) ### Response: ### Response: SELECT COUNT(rank) FROM table_name_56 WHERE time = "7:34.24"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What Pastoral Region has Episcopal Vicar Robert Francis Hennessey? ### Context: CREATE TABLE table_name_81 (pastoral_region VARCHAR, episcopal_vicar VARCHAR) ### Response: ### Response: SELECT pastoral_region FROM table_name_81 WHERE episcopal_vicar = "robert francis hennessey"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Select the name of each manufacturer along with the name and price of its most expensive product. ### Context: CREATE TABLE Manufacturers (name VARCHAR, code VARCHAR); CREATE TABLE products (Name VARCHAR, Price INTEGER, manufacturer VARCHAR) ### Response: ### Response: SELECT T1.Name, MAX(T1.Price), T2.name FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer = T2.code GROUP BY T2.name</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the original United States air date of the episode written by Mike Ferris? ### Context: CREATE TABLE table_29087004_2 (united_states_original_airdate VARCHAR, written_by VARCHAR) ### Response: ### Response: SELECT united_states_original_airdate FROM table_29087004_2 WHERE written_by = "Mike Ferris"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the sum of points for teams with more than 10 matches, more than 0 draws, and 7 losses? ### Context: CREATE TABLE table_name_86 (points INTEGER, match VARCHAR, draw VARCHAR, lost VARCHAR) ### Response: ### Response: SELECT SUM(points) FROM table_name_86 WHERE draw > 0 AND lost = 7 AND match > 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 Front Side Bus has a Voltage of 1.4 v, and a Frequency of 1333 mhz? ### Context: CREATE TABLE table_name_58 (front_side_bus VARCHAR, voltage VARCHAR, frequency VARCHAR) ### Response: ### Response: SELECT front_side_bus FROM table_name_58 WHERE voltage = "1.4 v" AND frequency = "1333 mhz"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the average attendance of the team that had a regular season result of 2nd aisa, 24-16? ### Context: CREATE TABLE table_name_68 (attendance_average VARCHAR, reg_season VARCHAR) ### Response: ### Response: SELECT attendance_average FROM table_name_68 WHERE reg_season = "2nd aisa, 24-16"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the total of pick numbers with a Reg GP larger than 0? ### Context: CREATE TABLE table_name_80 (pick__number VARCHAR, reg_gp INTEGER) ### Response: ### Response: SELECT COUNT(pick__number) FROM table_name_80 WHERE reg_gp > 0</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the status of bleeding time for thrombocytopenia? ### Context: CREATE TABLE table_20592988_1 (bleeding_time VARCHAR, condition VARCHAR) ### Response: ### Response: SELECT bleeding_time FROM table_20592988_1 WHERE condition = "Thrombocytopenia"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 player played 2004-05 ### Context: CREATE TABLE table_11545282_18 (player VARCHAR, years_for_jazz VARCHAR) ### Response: ### Response: SELECT player FROM table_11545282_18 WHERE years_for_jazz = "2004-05"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 ends lost for Alberta when stolen ends are greater than 7? ### Context: CREATE TABLE table_name_62 (ends_lost INTEGER, province VARCHAR, stolen_ends VARCHAR) ### Response: ### Response: SELECT SUM(ends_lost) FROM table_name_62 WHERE province = "alberta" AND stolen_ends > 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 district did William A. Burwell (Dr) belong to? ### Context: CREATE TABLE table_2668347_22 (district VARCHAR, candidates VARCHAR) ### Response: ### Response: SELECT district FROM table_2668347_22 WHERE candidates = "William A. Burwell (DR)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of the match on February 29, 2012? ### Context: CREATE TABLE table_name_47 (location VARCHAR, date VARCHAR) ### Response: ### Response: SELECT location FROM table_name_47 WHERE date = "february 29, 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: List the information of all instructors ordered by their salary in ascending order. ### Context: CREATE TABLE instructor (salary VARCHAR) ### Response: ### Response: SELECT * FROM instructor ORDER BY salary</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 field goals were there, where the points where less than 45 and there were less than 15 touchdowns? ### Context: CREATE TABLE table_name_79 (field_goals INTEGER, touchdowns VARCHAR, points VARCHAR) ### Response: ### Response: SELECT AVG(field_goals) FROM table_name_79 WHERE touchdowns < 15 AND points < 45</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the sum of grids with an engine in Time/Retired with less than 45 laps for Giancarlo Baghetti? ### Context: CREATE TABLE table_name_27 (grid INTEGER, driver VARCHAR, time_retired VARCHAR, laps VARCHAR) ### Response: ### Response: SELECT SUM(grid) FROM table_name_27 WHERE time_retired = "engine" AND laps < 45 AND driver = "giancarlo baghetti"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 outgoing manager replaced by Marian Bucurescu? ### Context: CREATE TABLE table_17115950_2 (outgoing_manager VARCHAR, replaced_by VARCHAR) ### Response: ### Response: SELECT outgoing_manager FROM table_17115950_2 WHERE replaced_by = "Marian Bucurescu"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the score for set 2 when the score of set 1 is 19–25? ### Context: CREATE TABLE table_name_70 (set_2 VARCHAR, set_1 VARCHAR) ### Response: ### Response: SELECT set_2 FROM table_name_70 WHERE set_1 = "19–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: Who won the race at the Jersey circuit? ### Context: CREATE TABLE table_1140119_5 (winning_driver VARCHAR, circuit VARCHAR) ### Response: ### Response: SELECT winning_driver FROM table_1140119_5 WHERE circuit = "Jersey"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Pick # for the College/junior/club team of edmonton oil kings (wchl), and the position if defence? ### Context: CREATE TABLE table_name_49 (pick__number VARCHAR, college_junior_club_team VARCHAR, position VARCHAR) ### Response: ### Response: SELECT pick__number FROM table_name_49 WHERE college_junior_club_team = "edmonton oil kings (wchl)" AND position = "defence"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Opposing Teams, when Against is "20", and when Venue is "Twickenham , London"? ### Context: CREATE TABLE table_name_35 (opposing_teams VARCHAR, against VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT opposing_teams FROM table_name_35 WHERE against = 20 AND venue = "twickenham , london"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the score of the game where Wrexham is the home team and the date is Blackpool? ### Context: CREATE TABLE table_name_1 (score VARCHAR, home_team VARCHAR, date VARCHAR) ### Response: ### Response: SELECT score FROM table_name_1 WHERE home_team = "wrexham" AND date = "blackpool"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When did Austin Austin TX get the third place? ### Context: CREATE TABLE table_2011349_2 (year VARCHAR, third_place VARCHAR) ### Response: ### Response: SELECT year FROM table_2011349_2 WHERE third_place = "Austin Austin TX"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was dissolved that was elected in 1553? ### Context: CREATE TABLE table_name_95 (dissolved VARCHAR, elected VARCHAR) ### Response: ### Response: SELECT dissolved FROM table_name_95 WHERE elected = "1553"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 total number of points that the rank is less than 5 and has Tiago Splitter? ### Context: CREATE TABLE table_name_11 (points VARCHAR, name VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT COUNT(points) FROM table_name_11 WHERE name = "tiago splitter" AND rank < 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: what is the venue when the competition is 1996 afc asian cup group stage? ### Context: CREATE TABLE table_name_66 (venue VARCHAR, competition VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_66 WHERE competition = "1996 afc asian cup group stage"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What film festival had the Best Male Actor? ### Context: CREATE TABLE table_26282750_1 (film_festival VARCHAR, category VARCHAR) ### Response: ### Response: SELECT film_festival FROM table_26282750_1 WHERE category = "Best Male Actor"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 played Footscray? ### Context: CREATE TABLE table_name_41 (away_team VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT away_team FROM table_name_41 WHERE home_team = "footscray"</s>