inputs
stringlengths
400
1.34k
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What team was he on when he had 10 f/laps? ### Context: CREATE TABLE table_24491017_1 (team VARCHAR, f_laps VARCHAR) ### Response: ### Response: SELECT team FROM table_24491017_1 WHERE f_laps = 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: The population is 2,107's dominant religion is? ### Context: CREATE TABLE table_2562572_39 (dominant_religion__2002_ VARCHAR, population__2011_ VARCHAR) ### Response: ### Response: SELECT dominant_religion__2002_ FROM table_2562572_39 WHERE population__2011_ = "2,107"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 branding for cbxp-fm? ### Context: CREATE TABLE table_name_15 (branding VARCHAR, call_sign VARCHAR) ### Response: ### Response: SELECT branding FROM table_name_15 WHERE call_sign = "cbxp-fm"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 North Melbourne's score when they were the home team? ### Context: CREATE TABLE table_name_22 (home_team VARCHAR) ### Response: ### Response: SELECT home_team AS score FROM table_name_22 WHERE home_team = "north melbourne"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Arena o Kazan? ### Context: CREATE TABLE table_name_19 (arena__capacity_ VARCHAR, town VARCHAR) ### Response: ### Response: SELECT arena__capacity_ FROM table_name_19 WHERE town = "kazan"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 part 4 when the class is 5? ### Context: CREATE TABLE table_name_37 (part_4 VARCHAR, class VARCHAR) ### Response: ### Response: SELECT part_4 FROM table_name_37 WHERE class = "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 high lap total for pedro diniz? ### Context: CREATE TABLE table_name_24 (laps INTEGER, driver VARCHAR) ### Response: ### Response: SELECT MAX(laps) FROM table_name_24 WHERE driver = "pedro diniz"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 in murcia with a score of 0-3 after 1992? ### Context: CREATE TABLE table_name_15 (date VARCHAR, score VARCHAR, year VARCHAR, location VARCHAR) ### Response: ### Response: SELECT date FROM table_name_15 WHERE year > 1992 AND location = "murcia" AND score = "0-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 is the latest year they were nominated? ### Context: CREATE TABLE table_name_44 (year INTEGER, result VARCHAR) ### Response: ### Response: SELECT MAX(year) FROM table_name_44 WHERE result = "nominated"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Hazlett is the Player, and the PI GP is under 0, what is the average Rd #? ### Context: CREATE TABLE table_name_82 (rd__number INTEGER, player VARCHAR, pl_gp VARCHAR) ### Response: ### Response: SELECT AVG(rd__number) FROM table_name_82 WHERE player = "steve hazlett" AND pl_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 Status has a Date of 18/03/1989? ### Context: CREATE TABLE table_name_49 (status VARCHAR, date VARCHAR) ### Response: ### Response: SELECT status FROM table_name_49 WHERE date = "18/03/1989"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Nationality has a College/Junior/Club Team (League) of swift current broncos (wchl)? ### Context: CREATE TABLE table_name_84 (nationality VARCHAR, college_junior_club_team__league_ VARCHAR) ### Response: ### Response: SELECT nationality FROM table_name_84 WHERE college_junior_club_team__league_ = "swift current broncos (wchl)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 country with health being 91.4 ### Context: CREATE TABLE table_145439_1 (country VARCHAR, health VARCHAR) ### Response: ### Response: SELECT country FROM table_145439_1 WHERE health = "91.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: How many Bronzes that has a Nation of italy? ### Context: CREATE TABLE table_name_75 (bronze INTEGER, nation VARCHAR) ### Response: ### Response: SELECT MAX(bronze) FROM table_name_75 WHERE nation = "italy"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 race where the fastest lap is by jean-pierre jarier? ### Context: CREATE TABLE table_1140085_2 (race VARCHAR, fastest_lap VARCHAR) ### Response: ### Response: SELECT race FROM table_1140085_2 WHERE fastest_lap = "Jean-Pierre Jarier"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the position for the austria formel 3 cup series? ### Context: CREATE TABLE table_27631002_1 (position VARCHAR, series VARCHAR) ### Response: ### Response: SELECT position FROM table_27631002_1 WHERE series = "Austria Formel 3 Cup"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 carrier is ranked 20? ### Context: CREATE TABLE table_name_19 (carriers VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT carriers FROM table_name_19 WHERE rank = 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 number last Runners-up where there when the Last win was 1999 and the Runners-up was bigger than 1? ### Context: CREATE TABLE table_name_42 (Last VARCHAR, last_win VARCHAR, runners_up VARCHAR) ### Response: ### Response: SELECT COUNT(Last) AS runners_up FROM table_name_42 WHERE last_win = "1999" AND runners_up > 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the score of Game 2 in the series against the Florida Panthers? ### Context: CREATE TABLE table_name_17 (score VARCHAR, opponent VARCHAR, game VARCHAR) ### Response: ### Response: SELECT score FROM table_name_17 WHERE opponent = "florida panthers" AND game = 2</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was Matthew Warchus' Award? ### Context: CREATE TABLE table_name_29 (award VARCHAR, nominee VARCHAR) ### Response: ### Response: SELECT award FROM table_name_29 WHERE nominee = "matthew warchus"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 races for flaps larger than 2.0 ### Context: CREATE TABLE table_24466191_1 (races INTEGER, flaps INTEGER) ### Response: ### Response: SELECT MAX(races) FROM table_24466191_1 WHERE flaps > 2.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: How many points did the Cowboys have when they had a 7-0 record? ### Context: CREATE TABLE table_21197135_1 (cowboys_points VARCHAR, record VARCHAR) ### Response: ### Response: SELECT cowboys_points FROM table_21197135_1 WHERE record = "7-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's the highest enrollment among the schools? ### Context: CREATE TABLE table_1971074_1 (enrollment INTEGER) ### Response: ### Response: SELECT MAX(enrollment) FROM table_1971074_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 Spandau 04 Player Jens Pohlmann's Pos.? ### Context: CREATE TABLE table_name_1 (pos VARCHAR, club VARCHAR, name VARCHAR) ### Response: ### Response: SELECT pos FROM table_name_1 WHERE club = "spandau 04" AND name = "jens pohlmann"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 engine for years before 1990 and chassis of eurobrun er189 ### Context: CREATE TABLE table_name_57 (engine VARCHAR, year VARCHAR, chassis VARCHAR) ### Response: ### Response: SELECT engine FROM table_name_57 WHERE year < 1990 AND chassis = "eurobrun er189"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Surface was the match against Ilija Bozoljac played? ### Context: CREATE TABLE table_name_9 (surface VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT surface FROM table_name_9 WHERE opponent = "ilija bozoljac"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 entries for number in series when director is Bryan Cranston? ### Context: CREATE TABLE table_26736040_1 (no_in_series VARCHAR, directed_by VARCHAR) ### Response: ### Response: SELECT COUNT(no_in_series) FROM table_26736040_1 WHERE directed_by = "Bryan Cranston"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Record has an Opponent of twins, and a Date of july 25? ### Context: CREATE TABLE table_name_10 (record VARCHAR, opponent VARCHAR, date VARCHAR) ### Response: ### Response: SELECT record FROM table_name_10 WHERE opponent = "twins" AND date = "july 25"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the rank with the qual of 115.095? ### Context: CREATE TABLE table_name_86 (rank VARCHAR, qual VARCHAR) ### Response: ### Response: SELECT rank FROM table_name_86 WHERE qual = "115.095"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the Dec 11 game? ### Context: CREATE TABLE table_name_83 (score VARCHAR, december VARCHAR) ### Response: ### Response: SELECT score FROM table_name_83 WHERE december = 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 total number of Since with a Goals larger than 6, and a Name with deco? ### Context: CREATE TABLE table_name_57 (since VARCHAR, goals VARCHAR, name VARCHAR) ### Response: ### Response: SELECT COUNT(since) FROM table_name_57 WHERE goals > 6 AND name = "deco"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 maximum ITV1 weekly ranking? ### Context: CREATE TABLE table_25664518_3 (itv1_weekly_ranking INTEGER) ### Response: ### Response: SELECT MAX(itv1_weekly_ranking) FROM table_25664518_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 is the highest rank of the athlete with a Taijiquan higher than 9.64 and a total more than 19.69? ### Context: CREATE TABLE table_name_95 (rank INTEGER, taijiquan VARCHAR, total VARCHAR) ### Response: ### Response: SELECT MAX(rank) FROM table_name_95 WHERE taijiquan > 9.64 AND total > 19.69</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 population in 2010 for Minane ### Context: CREATE TABLE table_2144436_1 (population__2010_ INTEGER, barangay VARCHAR) ### Response: ### Response: SELECT MAX(population__2010_) FROM table_2144436_1 WHERE barangay = "Minane"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 NBA draft result of the player from Washington, DC? ### Context: CREATE TABLE table_name_97 (nba_draft VARCHAR, hometown VARCHAR) ### Response: ### Response: SELECT nba_draft FROM table_name_97 WHERE hometown = "washington, dc"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 directed the episode that had 5.92 million viewers? ### Context: CREATE TABLE table_25341765_1 (directed_by VARCHAR, us_viewers__million_ VARCHAR) ### Response: ### Response: SELECT directed_by FROM table_25341765_1 WHERE us_viewers__million_ = "5.92"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what type of institution is ottawa university? ### Context: CREATE TABLE table_262527_1 (type VARCHAR, institution VARCHAR) ### Response: ### Response: SELECT type FROM table_262527_1 WHERE institution = "Ottawa 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: Record of 0–8 had what result? ### Context: CREATE TABLE table_name_33 (result VARCHAR, record VARCHAR) ### Response: ### Response: SELECT result FROM table_name_33 WHERE record = "0–8"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Country with a Launched that is april 3, 1990? ### Context: CREATE TABLE table_name_70 (country VARCHAR, launched VARCHAR) ### Response: ### Response: SELECT country FROM table_name_70 WHERE launched = "april 3, 1990"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Engine has a Finish of 21? ### Context: CREATE TABLE table_name_68 (engine VARCHAR, finish VARCHAR) ### Response: ### Response: SELECT engine FROM table_name_68 WHERE finish = "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: What is the percentage of others when the number of others is 2286? ### Context: CREATE TABLE table_1733513_1 (others_percentage VARCHAR, others_number VARCHAR) ### Response: ### Response: SELECT others_percentage FROM table_1733513_1 WHERE others_number = 2286</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 races achieved 0 f/laps and 1 pole position? ### Context: CREATE TABLE table_26998693_1 (races VARCHAR, f_laps VARCHAR, poles VARCHAR) ### Response: ### Response: SELECT races FROM table_26998693_1 WHERE f_laps = 0 AND poles = 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 Player has 4 Wins? ### Context: CREATE TABLE table_name_49 (player VARCHAR, wins VARCHAR) ### Response: ### Response: SELECT player FROM table_name_49 WHERE wins = 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 opponent has a Season of 2011/12? ### Context: CREATE TABLE table_name_3 (opponent VARCHAR, season VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_3 WHERE season = "2011/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 highest round of a player from Sweden who plays right wing? ### Context: CREATE TABLE table_name_59 (round INTEGER, nationality VARCHAR, position VARCHAR) ### Response: ### Response: SELECT MAX(round) FROM table_name_59 WHERE nationality = "sweden" AND position = "right wing"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Games, when Name is Jeremiah Massey, and when Points is less than 340? ### Context: CREATE TABLE table_name_91 (games INTEGER, name VARCHAR, points VARCHAR) ### Response: ### Response: SELECT MIN(games) FROM table_name_91 WHERE name = "jeremiah massey" AND points < 340</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 team with a class of gt2 and 3:59.820 on day 2, what was the behind? ### Context: CREATE TABLE table_name_26 (behind VARCHAR, class VARCHAR, day_2 VARCHAR) ### Response: ### Response: SELECT behind FROM table_name_26 WHERE class = "gt2" AND day_2 = "3:59.820"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Find distinct cities of address of students? ### Context: CREATE TABLE students (student_id VARCHAR); CREATE TABLE addresses (city VARCHAR, address_id VARCHAR); CREATE TABLE people_addresses (address_id VARCHAR, person_id VARCHAR) ### Response: ### Response: SELECT DISTINCT T1.city FROM addresses AS T1 JOIN people_addresses AS T2 ON T1.address_id = T2.address_id JOIN students AS T3 ON T2.person_id = T3.student_id</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the high assists when April 26 is the date? ### Context: CREATE TABLE table_23285761_11 (high_assists VARCHAR, date VARCHAR) ### Response: ### Response: SELECT high_assists FROM table_23285761_11 WHERE date = "April 26"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 percentage of this constellation abbreviated as 'nor'? ### Context: CREATE TABLE table_177766_1 (per­cent­age VARCHAR, abbre­viation VARCHAR) ### Response: ### Response: SELECT per­cent­age FROM table_177766_1 WHERE abbre­viation = "Nor"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 venues were used on 10 Mar 2007? ### Context: CREATE TABLE table_14981555_3 (venue VARCHAR, date VARCHAR) ### Response: ### Response: SELECT venue FROM table_14981555_3 WHERE date = "10 Mar 2007"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: For which tournament was the margin of victory 7 strokes? ### Context: CREATE TABLE table_name_50 (tournament VARCHAR, margin_of_victory VARCHAR) ### Response: ### Response: SELECT tournament FROM table_name_50 WHERE margin_of_victory = "7 strokes"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What team has a year listed of 2008? ### Context: CREATE TABLE table_name_75 (team VARCHAR, year VARCHAR) ### Response: ### Response: SELECT team FROM table_name_75 WHERE year = 2008</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the date when Chris Amon won? ### Context: CREATE TABLE table_1140090_6 (date VARCHAR, winning_driver VARCHAR) ### Response: ### Response: SELECT date FROM table_1140090_6 WHERE winning_driver = "Chris Amon"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 jockey at Rosehill and the weight was 57.5 kg? ### Context: CREATE TABLE table_1360997_3 (jockey VARCHAR, venue VARCHAR, weight__kg_ VARCHAR) ### Response: ### Response: SELECT jockey FROM table_1360997_3 WHERE venue = "Rosehill" AND weight__kg_ = "57.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 Years, when Jersey Number(s) is 21, and when Position is SG? ### Context: CREATE TABLE table_name_97 (years VARCHAR, jersey_number_s_ VARCHAR, position VARCHAR) ### Response: ### Response: SELECT years FROM table_name_97 WHERE jersey_number_s_ = "21" AND position = "sg"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 were the candidates in the district where the incumbent was Nathaniel Macon? ### Context: CREATE TABLE table_2668367_14 (candidates VARCHAR, incumbent VARCHAR) ### Response: ### Response: SELECT candidates FROM table_2668367_14 WHERE incumbent = "Nathaniel Macon"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 have a Drawn larger than 0, and a Lost of 1? ### Context: CREATE TABLE table_name_94 (games VARCHAR, drawn VARCHAR, lost VARCHAR) ### Response: ### Response: SELECT COUNT(games) FROM table_name_94 WHERE drawn > 0 AND lost = 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Find the titles of all movies that have no ratings. ### Context: CREATE TABLE Rating (title VARCHAR, mID VARCHAR); CREATE TABLE Movie (title VARCHAR, mID VARCHAR) ### Response: ### Response: SELECT title FROM Movie WHERE NOT mID IN (SELECT mID FROM Rating)</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 entry for epoch if periselene is 5,454.925? ### Context: CREATE TABLE table_206217_2 (epoch__utc_ VARCHAR, periselene__km_ VARCHAR) ### Response: ### Response: SELECT epoch__utc_ FROM table_206217_2 WHERE periselene__km_ = "5,454.925"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 in 2000? ### Context: CREATE TABLE table_name_23 (results VARCHAR, year VARCHAR) ### Response: ### Response: SELECT results FROM table_name_23 WHERE year = 2000</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 resulted in draws with 34 tries for? ### Context: CREATE TABLE table_name_99 (drawn VARCHAR, tries_for VARCHAR) ### Response: ### Response: SELECT drawn FROM table_name_99 WHERE tries_for = "34"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 much is the total assets of a company based in Stockholm, Sweden with a market capitalization smaller than 39.8 with revenues greater than 5.8 and profit of 1.1? ### Context: CREATE TABLE table_name_14 (s_asset__billion_ VARCHAR, profits__billion_$_ VARCHAR, revenue__billion_$__ VARCHAR, headquarters VARCHAR, market_value__billion_$_ VARCHAR) ### Response: ### Response: SELECT COUNT(s_asset__billion_) AS $_ FROM table_name_14 WHERE headquarters = "stockholm, sweden" AND market_value__billion_$_ < 39.8 AND revenue__billion_$__ > 5.8 AND profits__billion_$_ = 1.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 992 has a 1–2 of 1989 ? ### Context: CREATE TABLE table_name_13 (Id VARCHAR) ### Response: ### Response: SELECT 1992 FROM table_name_13 WHERE 1989 = "1–2"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the result in a week lower than 10 with an opponent of Chicago Bears? ### Context: CREATE TABLE table_name_21 (result VARCHAR, week VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT result FROM table_name_21 WHERE week < 10 AND opponent = "chicago bears"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 To par has a Player of momoko ueda? ### Context: CREATE TABLE table_name_64 (to_par VARCHAR, player VARCHAR) ### Response: ### Response: SELECT to_par FROM table_name_64 WHERE player = "momoko ueda"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 provider when up (up to kbit/s) is 1180? ### Context: CREATE TABLE table_name_10 (provider VARCHAR, up__up_to_kbit_s_ VARCHAR) ### Response: ### Response: SELECT provider FROM table_name_10 WHERE up__up_to_kbit_s_ = 1180</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many times was Plan B 4th place? ### Context: CREATE TABLE table_17111812_1 (winner VARCHAR, fourth VARCHAR) ### Response: ### Response: SELECT COUNT(winner) FROM table_17111812_1 WHERE fourth = "Plan B"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 document ids of documents with the status done and type Paper, which not shipped by the shipping agent named USPS. ### Context: CREATE TABLE Ref_Shipping_Agents (document_id VARCHAR, document_status_code VARCHAR, document_type_code VARCHAR); CREATE TABLE Documents (document_id VARCHAR, document_status_code VARCHAR, document_type_code VARCHAR) ### Response: ### Response: SELECT document_id FROM Documents WHERE document_status_code = "done" AND document_type_code = "Paper" EXCEPT SELECT document_id FROM Documents JOIN Ref_Shipping_Agents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code WHERE Ref_Shipping_Agents.shipping_agent_name = "USPS"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 institutions do not have an associated protein in our record? ### Context: CREATE TABLE protein (institution_id VARCHAR); CREATE TABLE institution (institution_id VARCHAR) ### Response: ### Response: SELECT COUNT(*) FROM institution WHERE NOT institution_id IN (SELECT institution_id FROM protein)</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 street address of Notre Dame Basilica? ### Context: CREATE TABLE table_name_74 (street_address VARCHAR, name VARCHAR) ### Response: ### Response: SELECT street_address FROM table_name_74 WHERE name = "notre dame basilica"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 official name of the place with an Area KM 2 of 295.07 ### Context: CREATE TABLE table_171236_2 (official_name VARCHAR, area_km_2 VARCHAR) ### Response: ### Response: SELECT official_name FROM table_171236_2 WHERE area_km_2 = "295.07"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 kills of the perpetrators with height more than 1.84. ### Context: CREATE TABLE people (People_ID VARCHAR, Height INTEGER); CREATE TABLE perpetrator (Killed INTEGER, People_ID VARCHAR) ### Response: ### Response: SELECT SUM(T2.Killed) FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Height > 1.84</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 were property taxes in a year when total revenue was $40,891,700 after 2002? ### Context: CREATE TABLE table_name_33 (property_taxes VARCHAR, year VARCHAR, total_revenue VARCHAR) ### Response: ### Response: SELECT property_taxes FROM table_name_33 WHERE year > 2002 AND total_revenue = "$40,891,700"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 bronze medals for West Germany having a total more than 2? ### Context: CREATE TABLE table_name_65 (bronze VARCHAR, total VARCHAR, nation VARCHAR) ### Response: ### Response: SELECT COUNT(bronze) FROM table_name_65 WHERE total > 2 AND nation = "west germany"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Can you tell me the Score that has the Date of april 8? ### Context: CREATE TABLE table_name_22 (score VARCHAR, date VARCHAR) ### Response: ### Response: SELECT score FROM table_name_22 WHERE date = "april 8"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the opponent on april 24, 1999? ### Context: CREATE TABLE table_name_8 (opponent VARCHAR, date VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_8 WHERE date = "april 24, 1999"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Founded, when Enrollment is 4,000? ### Context: CREATE TABLE table_name_68 (founded INTEGER, enrollment VARCHAR) ### Response: ### Response: SELECT AVG(founded) FROM table_name_68 WHERE enrollment = 4 OFFSET 000</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Purpose of the Callsign with a Freq currently of 4gld? ### Context: CREATE TABLE table_name_59 (purpose VARCHAR, freq_currently VARCHAR) ### Response: ### Response: SELECT purpose FROM table_name_59 WHERE freq_currently = "4gld"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 is from South Africa? ### Context: CREATE TABLE table_name_79 (player VARCHAR, country VARCHAR) ### Response: ### Response: SELECT player FROM table_name_79 WHERE country = "south africa"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 were played by the player who had 22 penalty minutes? ### Context: CREATE TABLE table_name_52 (games VARCHAR, pen_min VARCHAR) ### Response: ### Response: SELECT games FROM table_name_52 WHERE pen_min = "22"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the fleet number when the transmission is Voith D863.4 and the engine is Cummins ISL? ### Context: CREATE TABLE table_19643196_1 (fleet__number VARCHAR, transmission VARCHAR, engine VARCHAR) ### Response: ### Response: SELECT fleet__number FROM table_19643196_1 WHERE transmission = "Voith D863.4" AND engine = "Cummins ISL"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Voltage Center (V) has an S-Spec Number of sk096? ### Context: CREATE TABLE table_name_76 (voltage_center__v_ VARCHAR, s_spec_number VARCHAR) ### Response: ### Response: SELECT voltage_center__v_ FROM table_name_76 WHERE s_spec_number = "sk096"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 player when totals were 105-161? ### Context: CREATE TABLE table_28628309_6 (player VARCHAR, totals VARCHAR) ### Response: ### Response: SELECT player FROM table_28628309_6 WHERE totals = "105-161"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 was the film Milagros submitted? ### Context: CREATE TABLE table_17919342_1 (year__ceremony_ VARCHAR, original_title VARCHAR) ### Response: ### Response: SELECT year__ceremony_ FROM table_17919342_1 WHERE original_title = "Milagros"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 have an Opponent of @ calgary flames? ### Context: CREATE TABLE table_name_77 (points INTEGER, opponent VARCHAR) ### Response: ### Response: SELECT SUM(points) FROM table_name_77 WHERE opponent = "@ calgary flames"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the home team at MCG? ### Context: CREATE TABLE table_name_39 (home_team VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT home_team FROM table_name_39 WHERE venue = "mcg"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the value in 2008 when the value for Tournament is year? ### Context: CREATE TABLE table_name_77 (tournament VARCHAR) ### Response: ### Response: SELECT 2008 FROM table_name_77 WHERE tournament = "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: Name the Score of jack nicklaus, united states, ? ### Context: CREATE TABLE table_name_13 (score VARCHAR, country VARCHAR, player VARCHAR) ### Response: ### Response: SELECT score FROM table_name_13 WHERE country = "united states" AND player = "jack nicklaus"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: I want the cast for director of colbert clark and armand schaefer for burn 'em up barnes ### Context: CREATE TABLE table_name_75 (cast VARCHAR, director VARCHAR, serial_title VARCHAR) ### Response: ### Response: SELECT cast FROM table_name_75 WHERE director = "colbert clark and armand schaefer" AND serial_title = "burn 'em up barnes"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 opponent in the final on August 14, 2006? ### Context: CREATE TABLE table_name_3 (opponent_in_the_final VARCHAR, date VARCHAR) ### Response: ### Response: SELECT opponent_in_the_final FROM table_name_3 WHERE date = "august 14, 2006"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the theme, date, and attendance for the exhibition in year 2004? ### Context: CREATE TABLE exhibition_record (date VARCHAR, attendance VARCHAR, exhibition_id VARCHAR); CREATE TABLE exhibition (theme VARCHAR, exhibition_id VARCHAR, year VARCHAR) ### Response: ### Response: SELECT T2.theme, T1.date, T1.attendance FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id = T2.exhibition_id WHERE T2.year = 2004</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 audition city for hyatt regency chicago ### Context: CREATE TABLE table_22897967_1 (audition_city VARCHAR, callback_venue VARCHAR) ### Response: ### Response: SELECT audition_city FROM table_22897967_1 WHERE callback_venue = "Hyatt Regency Chicago"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What kind of Week 6 has a Week 2 of see notes 2 , 3 , 4? ### Context: CREATE TABLE table_name_80 (week_6 VARCHAR, week_2 VARCHAR) ### Response: ### Response: SELECT week_6 FROM table_name_80 WHERE week_2 = "see notes 2 , 3 , 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: Who is the director of the episode whom Scott Peters is the writer? ### Context: CREATE TABLE table_10470082_4 (director VARCHAR, writer VARCHAR) ### Response: ### Response: SELECT director FROM table_10470082_4 WHERE writer = "Scott Peters"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 club/province of Sireli Bobo, who plays wing and has less than 24 caps? ### Context: CREATE TABLE table_name_93 (club_province VARCHAR, player VARCHAR, position VARCHAR, caps VARCHAR) ### Response: ### Response: SELECT club_province FROM table_name_93 WHERE position = "wing" AND caps < 24 AND player = "sireli bobo"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 home total? ### Context: CREATE TABLE table_27094070_4 (home_total INTEGER) ### Response: ### Response: SELECT MAX(home_total) FROM table_27094070_4</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is Score, when Country is United States, and when Player is "Arnold Palmer"? ### Context: CREATE TABLE table_name_93 (score VARCHAR, country VARCHAR, player VARCHAR) ### Response: ### Response: SELECT score FROM table_name_93 WHERE country = "united states" AND player = "arnold palmer"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Finish has a Total of 288? ### Context: CREATE TABLE table_name_12 (finish VARCHAR, total VARCHAR) ### Response: ### Response: SELECT finish FROM table_name_12 WHERE total = 288</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 english gloss for naháŋȟčiŋ ### Context: CREATE TABLE table_1499791_2 (english_gloss VARCHAR, southern_lakota VARCHAR) ### Response: ### Response: SELECT english_gloss FROM table_1499791_2 WHERE southern_lakota = "naháŋȟčiŋ"</s>