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: How many frequencies have a line of East London and destination of Crystal Palace? ### Context: CREATE TABLE table_name_18 (frequency__per_hour_ VARCHAR, line VARCHAR, destination VARCHAR) ### Response: ### Response: SELECT COUNT(frequency__per_hour_) FROM table_name_18 WHERE line = "east london" 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: What was the money list rank for Reid in the year that she had 0 top 10s? ### Context: CREATE TABLE table_29506171_2 (money_list_rank VARCHAR, top_10s VARCHAR) ### Response: ### Response: SELECT money_list_rank FROM table_29506171_2 WHERE top_10s = 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 highest Jews and others 1? ### Context: CREATE TABLE table_25947046_1 (jews_and_others_1 INTEGER) ### Response: ### Response: SELECT MAX(jews_and_others_1) FROM table_25947046_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 Played has a Goal Difference larger than 24? ### Context: CREATE TABLE table_name_35 (played INTEGER, goal_difference INTEGER) ### Response: ### Response: SELECT AVG(played) FROM table_name_35 WHERE goal_difference > 24</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is T3 Place Player Bobby Locke's Score? ### Context: CREATE TABLE table_name_40 (score VARCHAR, place VARCHAR, player VARCHAR) ### Response: ### Response: SELECT score FROM table_name_40 WHERE place = "t3" AND player = "bobby locke"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 hometown of the contestant whose background is as a financial consultant? ### Context: CREATE TABLE table_19810459_1 (hometown VARCHAR, background VARCHAR) ### Response: ### Response: SELECT hometown FROM table_19810459_1 WHERE background = "Financial consultant"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 rowers have a 6:29.56 time? ### Context: CREATE TABLE table_name_64 (rowers VARCHAR, time VARCHAR) ### Response: ### Response: SELECT rowers FROM table_name_64 WHERE time = "6:29.56"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Tournament Players Championship? ### Context: CREATE TABLE table_name_16 (score VARCHAR, tournament VARCHAR) ### Response: ### Response: SELECT score FROM table_name_16 WHERE tournament = "tournament players championship"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 length when the propulsion is controllable pitch propeller? ### Context: CREATE TABLE table_28132970_5 (length VARCHAR, propulsion VARCHAR) ### Response: ### Response: SELECT length FROM table_28132970_5 WHERE propulsion = "Controllable pitch propeller"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Year of Rio? ### Context: CREATE TABLE table_name_14 (year VARCHAR, title VARCHAR) ### Response: ### Response: SELECT year FROM table_name_14 WHERE title = "rio"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Place of the Song by Artist Rosie Hunter with a Draw of 1 or larger? ### Context: CREATE TABLE table_name_10 (place VARCHAR, artist VARCHAR, draw VARCHAR) ### Response: ### Response: SELECT COUNT(place) FROM table_name_10 WHERE artist = "rosie hunter" AND draw > 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 alternate of the nation with Piotras Gerasimovici as the second? ### Context: CREATE TABLE table_name_19 (alternate VARCHAR, second VARCHAR) ### Response: ### Response: SELECT alternate FROM table_name_19 WHERE second = "piotras gerasimovici"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Tell me the constellation which has a right ascension of 18h17m41.1s ### Context: CREATE TABLE table_name_54 (constellation VARCHAR, right_ascension___j2000__ VARCHAR) ### Response: ### Response: SELECT constellation FROM table_name_54 WHERE right_ascension___j2000__ = "18h17m41.1s"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 locomotive type has a status in static display ### Context: CREATE TABLE table_15827397_1 (locomotive_type VARCHAR, status VARCHAR) ### Response: ### Response: SELECT locomotive_type FROM table_15827397_1 WHERE status = "Static display"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 NFL Draft that has jeff robinson as the player, with an overall pick less than 98? ### Context: CREATE TABLE table_name_47 (nfl_draft INTEGER, player VARCHAR, overall_pick VARCHAR) ### Response: ### Response: SELECT MAX(nfl_draft) FROM table_name_47 WHERE player = "jeff robinson" AND overall_pick < 98</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the pts for 2004, and the ro event? ### Context: CREATE TABLE table_name_6 (pts VARCHAR, year VARCHAR, event VARCHAR) ### Response: ### Response: SELECT pts FROM table_name_6 WHERE year = "2004" AND event = "ro"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: who is the player with the nationality of canada and pick # is 65? ### Context: CREATE TABLE table_1213511_5 (player VARCHAR, nationality VARCHAR, pick__number VARCHAR) ### Response: ### Response: SELECT player FROM table_1213511_5 WHERE nationality = "Canada" AND pick__number = 65</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many times was the sabres record 2-5-1? ### Context: CREATE TABLE table_27537870_3 (location_attendance VARCHAR, record VARCHAR) ### Response: ### Response: SELECT COUNT(location_attendance) FROM table_27537870_3 WHERE record = "2-5-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: Compute the average price of all the products. ### Context: CREATE TABLE products (price INTEGER) ### Response: ### Response: SELECT AVG(price) FROM products</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 is the notes distance 1.83m? ### Context: CREATE TABLE table_name_82 (year VARCHAR, notes VARCHAR) ### Response: ### Response: SELECT year FROM table_name_82 WHERE notes = "1.83m"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What school is in Radford, Va? ### Context: CREATE TABLE table_name_74 (school VARCHAR, location VARCHAR) ### Response: ### Response: SELECT school FROM table_name_74 WHERE location = "radford, va"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 to know the time which has attendance of 66,772 ### Context: CREATE TABLE table_name_82 (time VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT time FROM table_name_82 WHERE attendance = "66,772"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Drawn, when Points Against is "686"? ### Context: CREATE TABLE table_name_34 (drawn VARCHAR, points_against VARCHAR) ### Response: ### Response: SELECT drawn FROM table_name_34 WHERE points_against = "686"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 instrument did the musician with last name "Heilo" use in the song "Badlands"? ### Context: CREATE TABLE Songs (SongId VARCHAR, songid VARCHAR, title VARCHAR); CREATE TABLE Performance (bandmate VARCHAR, SongId VARCHAR); CREATE TABLE Band (id VARCHAR, lastname VARCHAR); CREATE TABLE Instruments (instrument VARCHAR, songid VARCHAR, bandmateid VARCHAR) ### Response: ### Response: SELECT T4.instrument FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId JOIN Instruments AS T4 ON T4.songid = T3.songid AND T4.bandmateid = T2.id WHERE T2.lastname = "Heilo" AND T3.title = "Badlands"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 goals have Lost larger than 35, and Games smaller than 80? ### Context: CREATE TABLE table_name_33 (goals_for VARCHAR, lost VARCHAR, games VARCHAR) ### Response: ### Response: SELECT COUNT(goals_for) FROM table_name_33 WHERE lost > 35 AND games < 80</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 distance for Course of vittorio veneto to marina romea ### Context: CREATE TABLE table_name_3 (distance VARCHAR, course VARCHAR) ### Response: ### Response: SELECT distance FROM table_name_3 WHERE course = "vittorio veneto to marina romea"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 record for score of l 77–80 (ot) ### Context: CREATE TABLE table_17288845_9 (record VARCHAR, score VARCHAR) ### Response: ### Response: SELECT record FROM table_17288845_9 WHERE score = "L 77–80 (OT)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is Country, when Place is "T8", and when Score is "70-67=137"? ### Context: CREATE TABLE table_name_98 (country VARCHAR, place VARCHAR, score VARCHAR) ### Response: ### Response: SELECT country FROM table_name_98 WHERE place = "t8" AND score = 70 - 67 = 137</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 smallest quantity displayed under the title "first runner-up"? ### Context: CREATE TABLE table_29942205_1 (Id VARCHAR) ### Response: ### Response: SELECT MIN(1 AS st_runner_up) FROM table_29942205_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 minimum stolen ends for the locale Alberta? ### Context: CREATE TABLE table_1475840_1 (stolen_ends INTEGER, locale VARCHAR, Alberta VARCHAR) ### Response: ### Response: SELECT MIN(stolen_ends) FROM table_1475840_1 WHERE locale = Alberta</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 production code? ### Context: CREATE TABLE table_26448179_4 (production_code INTEGER) ### Response: ### Response: SELECT MAX(production_code) FROM table_26448179_4</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the total number of Year, when Award is "Vamsi Berkley Award", and when Category is "Best Actor"? ### Context: CREATE TABLE table_name_18 (year VARCHAR, award VARCHAR, category VARCHAR) ### Response: ### Response: SELECT COUNT(year) FROM table_name_18 WHERE award = "vamsi berkley award" AND category = "best 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: What Date after 2007 had the San Francisco 49ers as the Visiting Team? ### Context: CREATE TABLE table_name_17 (date VARCHAR, visiting_team VARCHAR, year VARCHAR) ### Response: ### Response: SELECT date FROM table_name_17 WHERE visiting_team = "san francisco 49ers" AND year > 2007</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the average grid for jo siffert? ### Context: CREATE TABLE table_name_57 (grid INTEGER, driver VARCHAR) ### Response: ### Response: SELECT AVG(grid) FROM table_name_57 WHERE driver = "jo siffert"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what is the event when the opponent is yuji hisamatsu? ### Context: CREATE TABLE table_name_9 (event VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT event FROM table_name_9 WHERE opponent = "yuji hisamatsu"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 team that has 13 points? ### Context: CREATE TABLE table_name_47 (team VARCHAR, points VARCHAR) ### Response: ### Response: SELECT team FROM table_name_47 WHERE points = 13</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 pole position in the August 15, 1981 race? ### Context: CREATE TABLE table_22765887_1 (pole_position VARCHAR, date VARCHAR) ### Response: ### Response: SELECT pole_position FROM table_22765887_1 WHERE date = "August 15, 1981"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 letters is φαν, what is the founding date? ### Context: CREATE TABLE table_2538117_7 (founding_date VARCHAR, letters VARCHAR) ### Response: ### Response: SELECT founding_date FROM table_2538117_7 WHERE letters = "ΦΑΝ"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Show the residences that have at least two players. ### Context: CREATE TABLE player (Residence VARCHAR) ### Response: ### Response: SELECT Residence FROM player GROUP BY Residence HAVING COUNT(*) >= 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 day was the away team Cardiff City? ### Context: CREATE TABLE table_name_97 (date VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT date FROM table_name_97 WHERE away_team = "cardiff city"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What school does Dell Curry play for? ### Context: CREATE TABLE table_name_48 (school_club_team VARCHAR, player VARCHAR) ### Response: ### Response: SELECT school_club_team FROM table_name_48 WHERE player = "dell curry"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 episode was N/A in region 1 ### Context: CREATE TABLE table_15823956_1 (episodes VARCHAR, region_1 VARCHAR) ### Response: ### Response: SELECT episodes FROM table_15823956_1 WHERE region_1 = "N/A"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many players were names Howard Eisley? ### Context: CREATE TABLE table_11545282_5 (no VARCHAR, player VARCHAR) ### Response: ### Response: SELECT COUNT(no) FROM table_11545282_5 WHERE player = "Howard Eisley"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Hows many Laps are in a Grid of 4? ### Context: CREATE TABLE table_name_72 (laps VARCHAR, grid VARCHAR) ### Response: ### Response: SELECT COUNT(laps) FROM table_name_72 WHERE grid = 4</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the largest Decile with Years of 1–8, anAuthority of state, and a Roll of 141? ### Context: CREATE TABLE table_name_46 (decile INTEGER, roll VARCHAR, years VARCHAR, authority VARCHAR) ### Response: ### Response: SELECT MAX(decile) FROM table_name_46 WHERE years = "1–8" AND authority = "state" AND roll = 141</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 category is Frank Scarabino a pilot? ### Context: CREATE TABLE table_name_33 (category VARCHAR, pilot VARCHAR) ### Response: ### Response: SELECT category FROM table_name_33 WHERE pilot = "frank scarabino"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Name has a Company of quantcast corporation? ### Context: CREATE TABLE table_name_77 (name VARCHAR, company VARCHAR) ### Response: ### Response: SELECT name FROM table_name_77 WHERE company = "quantcast corporation"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 is on 14 december 2002? ### Context: CREATE TABLE table_name_18 (home VARCHAR, date VARCHAR) ### Response: ### Response: SELECT home FROM table_name_18 WHERE date = "14 december 2002"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: WHAT IS THE DATE WITH AN AWAY TEAM OF BURTON ALBION? ### Context: CREATE TABLE table_name_15 (date VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT date FROM table_name_15 WHERE away_team = "burton albion"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the least number of seasons in top division with position in 2012-13 of 001 1st ### Context: CREATE TABLE table_name_46 (number_of_seasons_in_top_division INTEGER, position_in_2012_13 VARCHAR) ### Response: ### Response: SELECT MIN(number_of_seasons_in_top_division) FROM table_name_46 WHERE position_in_2012_13 = "001 1st"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who drove the renault that went over 23 laps and had a grid under 11? ### Context: CREATE TABLE table_name_21 (driver VARCHAR, laps VARCHAR, grid VARCHAR, constructor VARCHAR) ### Response: ### Response: SELECT driver FROM table_name_21 WHERE grid < 11 AND constructor = "renault" AND laps > 23</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Tell me the lowest date commissioned for iron rmsrhone and gross tonnage less than 2,738 ### Context: CREATE TABLE table_name_69 (date_commissioned INTEGER, gross_tonnage VARCHAR, material VARCHAR, ship VARCHAR) ### Response: ### Response: SELECT MIN(date_commissioned) FROM table_name_69 WHERE material = "iron" AND ship = "rmsrhone" AND gross_tonnage < 2 OFFSET 738</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 ids, names and market shares of all browsers. ### Context: CREATE TABLE browser (id VARCHAR, name VARCHAR, market_share VARCHAR) ### Response: ### Response: SELECT id, name, market_share FROM browser</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 goals were scored by Eugene Galeković? ### Context: CREATE TABLE table_name_54 (goals VARCHAR, player VARCHAR) ### Response: ### Response: SELECT goals FROM table_name_54 WHERE player = "eugene galeković"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of Goals Scored with Points that's smaller than 27, and a Team of C.D. Atlético Balboa? ### Context: CREATE TABLE table_name_40 (goals_scored INTEGER, points VARCHAR, team VARCHAR) ### Response: ### Response: SELECT SUM(goals_scored) FROM table_name_40 WHERE points < 27 AND team = "c.d. atlético balboa"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 week 13? ### Context: CREATE TABLE table_name_87 (date VARCHAR, week VARCHAR) ### Response: ### Response: SELECT date FROM table_name_87 WHERE week = 13</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: where college is british columbia what are all the player ### Context: CREATE TABLE table_26996293_2 (player VARCHAR, college VARCHAR) ### Response: ### Response: SELECT player FROM table_26996293_2 WHERE college = "British Columbia"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 wrote the episode with ip03012 as the production code? ### Context: CREATE TABLE table_29273182_1 (written_by VARCHAR, production_code VARCHAR) ### Response: ### Response: SELECT written_by FROM table_29273182_1 WHERE production_code = "IP03012"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Games for the Maccabi Tel Aviv Team with less than 208 Rebounds? ### Context: CREATE TABLE table_name_47 (games INTEGER, team VARCHAR, rebounds VARCHAR) ### Response: ### Response: SELECT AVG(games) FROM table_name_47 WHERE team = "maccabi tel aviv" AND rebounds < 208</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What country does Tiger Woods come from? ### Context: CREATE TABLE table_name_58 (country VARCHAR, player VARCHAR) ### Response: ### Response: SELECT country FROM table_name_58 WHERE player = "tiger woods"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 war where the Ottoman sultan was Selim I? ### Context: CREATE TABLE table_24706337_1 (name_of_the_war VARCHAR, ottoman_sultan VARCHAR) ### Response: ### Response: SELECT name_of_the_war FROM table_24706337_1 WHERE ottoman_sultan = "Selim I"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 1971 when 30 is the value for 1969? ### Context: CREATE TABLE table_name_65 (Id VARCHAR) ### Response: ### Response: SELECT 1971 FROM table_name_65 WHERE 1969 = "30"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Original Airdate has an Episode of 1? ### Context: CREATE TABLE table_name_2 (original_airdate VARCHAR, episode VARCHAR) ### Response: ### Response: SELECT original_airdate FROM table_name_2 WHERE episode = 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 rank of the airport with a freight ( metric tonnes ) of 23791? ### Context: CREATE TABLE table_13836704_6 (rank VARCHAR, freight___metric_tonnes__ VARCHAR) ### Response: ### Response: SELECT rank FROM table_13836704_6 WHERE freight___metric_tonnes__ = 23791</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When the start is 22, what is the finish? ### Context: CREATE TABLE table_name_71 (finish VARCHAR, start VARCHAR) ### Response: ### Response: SELECT finish FROM table_name_71 WHERE start = "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 number of opponents where the location is syracuse, ny? ### Context: CREATE TABLE table_23346303_3 (opponent VARCHAR, location VARCHAR) ### Response: ### Response: SELECT COUNT(opponent) FROM table_23346303_3 WHERE location = "Syracuse, NY"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the 2011 gross revenue for the venue that had a gross revenue of $156,315 in 1982? ### Context: CREATE TABLE table_name_78 (gross_revenue__2011_ VARCHAR, gross_revenue__1982_ VARCHAR) ### Response: ### Response: SELECT gross_revenue__2011_ FROM table_name_78 WHERE gross_revenue__1982_ = "$156,315"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: With an outlet of Colorado River and a % instate of a038 84.8% what is in-state area? ### Context: CREATE TABLE table_name_30 (in_state_area VARCHAR, outlet VARCHAR, _percentage_in_state VARCHAR) ### Response: ### Response: SELECT in_state_area FROM table_name_30 WHERE outlet = "colorado river" AND _percentage_in_state = "a038 84.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 Name of the stage with a Length of 16.62km and Time of 15:10? ### Context: CREATE TABLE table_name_11 (name VARCHAR, length VARCHAR, time VARCHAR) ### Response: ### Response: SELECT name FROM table_name_11 WHERE length = "16.62km" AND time = "15: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: What was the first game in which Weekes scored the decision goal and the record was 7-4-2? ### Context: CREATE TABLE table_name_92 (game INTEGER, decision VARCHAR, record VARCHAR) ### Response: ### Response: SELECT MIN(game) FROM table_name_92 WHERE decision = "weekes" AND record = "7-4-2"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Copa Libertadores 1992 has a Supercopa Sudamericana 1992 of round of 16, and a Team of grêmio? ### Context: CREATE TABLE table_name_59 (copa_libertadores_1992 VARCHAR, supercopa_sudamericana_1992 VARCHAR, team VARCHAR) ### Response: ### Response: SELECT copa_libertadores_1992 FROM table_name_59 WHERE supercopa_sudamericana_1992 = "round of 16" AND team = "grêmio"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 final score for the tie where Leeds United was the home team? ### Context: CREATE TABLE table_name_6 (score VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT score FROM table_name_6 WHERE home_team = "leeds united"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: During which round was a Hawkeyes player selected for the defensive back position? ### Context: CREATE TABLE table_name_87 (round VARCHAR, position VARCHAR) ### Response: ### Response: SELECT round FROM table_name_87 WHERE position = "defensive back"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 last episode in the series written by Gregory S. Malins? ### Context: CREATE TABLE table_27714985_1 (no_s__in_series INTEGER, written_by VARCHAR) ### Response: ### Response: SELECT MAX(no_s__in_series) FROM table_27714985_1 WHERE written_by = "Gregory S. Malins"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Lead has Hans Frauenlob as a Third? ### Context: CREATE TABLE table_name_62 (lead VARCHAR, third VARCHAR) ### Response: ### Response: SELECT lead FROM table_name_62 WHERE third = "hans frauenlob"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What country did mario lemieux play for in 1994? ### Context: CREATE TABLE table_name_17 (country VARCHAR, player VARCHAR, year VARCHAR) ### Response: ### Response: SELECT country FROM table_name_17 WHERE player = "mario lemieux" AND year = 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: Which Sleeves have a Year of 2006-2008? ### Context: CREATE TABLE table_name_67 (sleeves VARCHAR, year VARCHAR) ### Response: ### Response: SELECT sleeves FROM table_name_67 WHERE year = "2006-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's the FCC info with a Frequency MHz thats smaller than 100.3 and a City of License as Lowville, NY? ### Context: CREATE TABLE table_name_85 (fcc_info VARCHAR, frequency_mhz VARCHAR, city_of_license VARCHAR) ### Response: ### Response: SELECT fcc_info FROM table_name_85 WHERE frequency_mhz < 100.3 AND city_of_license = "lowville, ny"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 time/retired when the constructor is maserati and the laps is 90? ### Context: CREATE TABLE table_name_74 (time_retired VARCHAR, constructor VARCHAR, laps VARCHAR) ### Response: ### Response: SELECT time_retired FROM table_name_74 WHERE constructor = "maserati" AND laps = 90</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 with a goals conceded smaller than 25, and a place smaller than 3? ### Context: CREATE TABLE table_name_81 (team VARCHAR, goals_conceded VARCHAR, place VARCHAR) ### Response: ### Response: SELECT team FROM table_name_81 WHERE goals_conceded < 25 AND place < 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 open cups where played in 2002 ### Context: CREATE TABLE table_1214035_1 (open_cup VARCHAR, year VARCHAR) ### Response: ### Response: SELECT open_cup FROM table_1214035_1 WHERE year = 2002</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Series, when Launch Date is 23 February 2013? ### Context: CREATE TABLE table_name_16 (series VARCHAR, launch_date VARCHAR) ### Response: ### Response: SELECT series FROM table_name_16 WHERE launch_date = "23 february 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: What championship had a final score of 6–4, 6–2, 6–2? ### Context: CREATE TABLE table_22839669_1 (championship VARCHAR, score_in_the_final VARCHAR) ### Response: ### Response: SELECT championship FROM table_22839669_1 WHERE score_in_the_final = "6–4, 6–2, 6–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: Name the school that is cougars ### Context: CREATE TABLE table_24216139_2 (institution VARCHAR, nickname VARCHAR) ### Response: ### Response: SELECT institution FROM table_24216139_2 WHERE nickname = "Cougars"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is Celta's Agg.? ### Context: CREATE TABLE table_name_81 (agg VARCHAR, team_1 VARCHAR) ### Response: ### Response: SELECT agg FROM table_name_81 WHERE team_1 = "celta"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which round is the UEFA Cup Compeition and the Kolkheti-1913 Poti Cub? ### Context: CREATE TABLE table_name_39 (round VARCHAR, competition VARCHAR, club VARCHAR) ### Response: ### Response: SELECT round FROM table_name_39 WHERE competition = "uefa cup" AND club = "kolkheti-1913 poti"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Essendon's opponents away score? ### Context: CREATE TABLE table_name_40 (away_team VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT away_team AS score FROM table_name_40 WHERE home_team = "essendon"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the least rank when games are more than 34 and the season is 2009-10 ### Context: CREATE TABLE table_name_98 (rank INTEGER, games VARCHAR, season VARCHAR) ### Response: ### Response: SELECT MIN(rank) FROM table_name_98 WHERE games > 34 AND season = "2009-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: Name the candidates in 1964 ### Context: CREATE TABLE table_1341586_43 (candidates VARCHAR, first_elected VARCHAR) ### Response: ### Response: SELECT candidates FROM table_1341586_43 WHERE first_elected = 1964</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: how many maximum # when viewers (m) is 8.01 ### Context: CREATE TABLE table_27374740_2 (_number INTEGER, viewers__m_ VARCHAR) ### Response: ### Response: SELECT MAX(_number) FROM table_27374740_2 WHERE viewers__m_ = "8.01"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Return the names and ids of all products whose price is between 600 and 700. ### Context: CREATE TABLE products (product_name VARCHAR, product_id VARCHAR, product_price INTEGER) ### Response: ### Response: SELECT product_name, product_id FROM products WHERE product_price BETWEEN 600 AND 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: What day did they play on week 4? ### Context: CREATE TABLE table_name_56 (date VARCHAR, week VARCHAR) ### Response: ### Response: SELECT date FROM table_name_56 WHERE week = 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 was the successor for the Kentucky 2nd district? ### Context: CREATE TABLE table_224794_3 (successor VARCHAR, district VARCHAR) ### Response: ### Response: SELECT successor FROM table_224794_3 WHERE district = "Kentucky 2nd"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the round number for the date 19/06/2009? ### Context: CREATE TABLE table_21311525_1 (round VARCHAR, date VARCHAR) ### Response: ### Response: SELECT round FROM table_21311525_1 WHERE date = "19/06/2009"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is 2011, when Tournament is "Year-End Ranking"? ### Context: CREATE TABLE table_name_39 (tournament VARCHAR) ### Response: ### Response: SELECT 2011 FROM table_name_39 WHERE tournament = "year-end ranking"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 total medals of the nation ranked 1 with less than 1 silver? ### Context: CREATE TABLE table_name_62 (total INTEGER, rank VARCHAR, silver VARCHAR) ### Response: ### Response: SELECT AVG(total) FROM table_name_62 WHERE rank = "1" AND silver < 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the 2008 result when 2012 and 2005 are both QF? ### Context: CREATE TABLE table_name_67 (Id VARCHAR) ### Response: ### Response: SELECT 2008 FROM table_name_67 WHERE 2012 = "qf" AND 2005 = "qf"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Laps, when Grid is greater than 7, and when Name is "Fabian Coulthard"? ### Context: CREATE TABLE table_name_83 (laps INTEGER, grid VARCHAR, name VARCHAR) ### Response: ### Response: SELECT MIN(laps) FROM table_name_83 WHERE grid > 7 AND name = "fabian coulthard"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 n are listed for berbers from siwa? ### Context: CREATE TABLE table_21481509_4 (COUnT VARCHAR, population VARCHAR) ### Response: ### Response: SELECT COUnT AS n FROM table_21481509_4 WHERE population = "Berbers from Siwa"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 lost when goals for is 43 and the position number is higher than 15? ### Context: CREATE TABLE table_name_31 (lost INTEGER, goals_for VARCHAR, position VARCHAR) ### Response: ### Response: SELECT AVG(lost) FROM table_name_31 WHERE goals_for = 43 AND position > 15</s>