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: Name the country for johannesburg ### Context: CREATE TABLE table_name_35 (country VARCHAR, city VARCHAR) ### Response: ### Response: SELECT country FROM table_name_35 WHERE city = "johannesburg"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What lane did the barbados swimmer compete in before heat 3? ### Context: CREATE TABLE table_name_23 (lane VARCHAR, heat VARCHAR, nationality VARCHAR) ### Response: ### Response: SELECT lane FROM table_name_23 WHERE heat < 3 AND nationality = "barbados"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 were in attendance at the game where the visiting team was the Jazz? ### Context: CREATE TABLE table_name_67 (attendance INTEGER, visitor VARCHAR) ### Response: ### Response: SELECT SUM(attendance) FROM table_name_67 WHERE visitor = "jazz"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Away team score when they played Geelong as the Home team? ### Context: CREATE TABLE table_name_15 (away_team VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT away_team AS score FROM table_name_15 WHERE home_team = "geelong"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 rory fallon category:articles with hcards is the player when is the international debut? ### Context: CREATE TABLE table_28286776_50 (international_debut VARCHAR, player VARCHAR) ### Response: ### Response: SELECT international_debut FROM table_28286776_50 WHERE player = "Rory Fallon Category:Articles with hCards"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 persons got the fourth position when the regional was shikoku? ### Context: CREATE TABLE table_21632864_1 (fourth_place VARCHAR, regional VARCHAR) ### Response: ### Response: SELECT COUNT(fourth_place) FROM table_21632864_1 WHERE regional = "Shikoku"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 greatest number of rushing yards for a runner who had 283 rushes and less than 10 rushing TDs? ### Context: CREATE TABLE table_name_16 (rushing_yards INTEGER, rushes VARCHAR, rushing_tds VARCHAR) ### Response: ### Response: SELECT MAX(rushing_yards) FROM table_name_16 WHERE rushes = 283 AND rushing_tds < 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 is the name of the club where drawn is 1 and lost is 10? ### Context: CREATE TABLE table_13564637_3 (club VARCHAR, drawn VARCHAR, lost VARCHAR) ### Response: ### Response: SELECT club FROM table_13564637_3 WHERE drawn = "1" AND lost = "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 status has an area km 2 less than 27.82, with 352 as the population? ### Context: CREATE TABLE table_name_90 (status VARCHAR, area_km_2 VARCHAR, population VARCHAR) ### Response: ### Response: SELECT status FROM table_name_90 WHERE area_km_2 < 27.82 AND population = 352</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 interview for a contestant from North Carolina with a swimsuit larger than 9.021, an average smaller than 9.513, and an evening gown larger than 9.5? ### Context: CREATE TABLE table_name_60 (interview INTEGER, evening_gown VARCHAR, state VARCHAR, swimsuit VARCHAR, average VARCHAR) ### Response: ### Response: SELECT MIN(interview) FROM table_name_60 WHERE swimsuit > 9.021 AND average < 9.513 AND state = "north carolina" AND evening_gown > 9.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 total number of people who could stay in the modern rooms in this inn? ### Context: CREATE TABLE Rooms (maxOccupancy INTEGER, decor VARCHAR) ### Response: ### Response: SELECT SUM(maxOccupancy) FROM Rooms WHERE decor = 'modern'</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the lowest amount of points for a Ford Cosworth DFR (Mader) 3.5 V8 engine? ### Context: CREATE TABLE table_name_35 (points INTEGER, engine VARCHAR) ### Response: ### Response: SELECT MIN(points) FROM table_name_35 WHERE engine = "ford cosworth dfr (mader) 3.5 v8"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 average Played for a draw of 5 and more than 43 points? ### Context: CREATE TABLE table_name_68 (played INTEGER, draw VARCHAR, points VARCHAR) ### Response: ### Response: SELECT AVG(played) FROM table_name_68 WHERE draw = 5 AND points > 43</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 height in meters for the building that has a less than 380.6 feet height? ### Context: CREATE TABLE table_name_22 (height__m_ INTEGER, height__ft_ INTEGER) ### Response: ### Response: SELECT SUM(height__m_) FROM table_name_22 WHERE height__ft_ < 380.6</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the lowest Ovrs, when Wkts is greater than 13, and when Econ is less than 3.21? ### Context: CREATE TABLE table_name_68 (ovrs INTEGER, wkts VARCHAR, econ VARCHAR) ### Response: ### Response: SELECT MIN(ovrs) FROM table_name_68 WHERE wkts > 13 AND econ < 3.21</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which memeber has a first elected of 1972, alp as the party, vic as the state, and an electorate of gellibrand? ### Context: CREATE TABLE table_name_70 (member VARCHAR, electorate VARCHAR, state VARCHAR, first_elected VARCHAR, party VARCHAR) ### Response: ### Response: SELECT member FROM table_name_70 WHERE first_elected = "1972" AND party = "alp" AND state = "vic" AND electorate = "gellibrand"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 resolution of the fight against steve schneider? ### Context: CREATE TABLE table_name_25 (res VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT res FROM table_name_25 WHERE opponent = "steve schneider"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Bronze is "Jamie Stevenson"? ### Context: CREATE TABLE table_name_90 (year VARCHAR, bronze VARCHAR) ### Response: ### Response: SELECT COUNT(year) FROM table_name_90 WHERE bronze = "jamie stevenson"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Rank of Rank Mountain Peak of crested butte pb? ### Context: CREATE TABLE table_name_43 (rank VARCHAR, mountain_peak VARCHAR) ### Response: ### Response: SELECT rank FROM table_name_43 WHERE mountain_peak = "crested butte pb"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 ERP for allentown, pennsylvania? ### Context: CREATE TABLE table_name_66 (erp_w INTEGER, city_of_license VARCHAR) ### Response: ### Response: SELECT MIN(erp_w) FROM table_name_66 WHERE city_of_license = "allentown, pennsylvania"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 reign for super kendo who held it for 35 days? ### Context: CREATE TABLE table_name_16 (reign VARCHAR, days_held VARCHAR, wrestler VARCHAR) ### Response: ### Response: SELECT reign FROM table_name_16 WHERE days_held = "35" AND wrestler = "super kendo"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What field resulted with w 18-12? ### Context: CREATE TABLE table_name_46 (field VARCHAR, result VARCHAR) ### Response: ### Response: SELECT field FROM table_name_46 WHERE result = "w 18-12"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the part 3 for treffen ### Context: CREATE TABLE table_1745843_9 (part_3 VARCHAR, part_1 VARCHAR) ### Response: ### Response: SELECT part_3 FROM table_1745843_9 WHERE part_1 = "treffen"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the attendance of the Oakland Raiders game? ### Context: CREATE TABLE table_name_34 (attendance VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT attendance FROM table_name_34 WHERE opponent = "oakland raiders"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When did the season that end in July ? start? ### Context: CREATE TABLE table_1949994_7 (start_date VARCHAR, end_date VARCHAR) ### Response: ### Response: SELECT start_date FROM table_1949994_7 WHERE end_date = "July ?"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 score of Belarus, which had an E score less than 8.2? ### Context: CREATE TABLE table_name_71 (total INTEGER, nation VARCHAR, e_score VARCHAR) ### Response: ### Response: SELECT AVG(total) FROM table_name_71 WHERE nation = "belarus" AND e_score < 8.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 song was sung by Artist Luther Vandross in the Week Top 20? ### Context: CREATE TABLE table_name_17 (song_sung VARCHAR, artist VARCHAR, week VARCHAR) ### Response: ### Response: SELECT song_sung FROM table_name_17 WHERE artist = "luther vandross" AND week = "top 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 is the average number of starts when 11 cuts were made and the top 10 ranking is larger than 4? ### Context: CREATE TABLE table_name_33 (starts INTEGER, cuts_made VARCHAR, top_10 VARCHAR) ### Response: ### Response: SELECT AVG(starts) FROM table_name_33 WHERE cuts_made = 11 AND top_10 > 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 of PI GP played by Anton Rodin with a Reg GP less than 0? ### Context: CREATE TABLE table_name_73 (pl_gp VARCHAR, player VARCHAR, reg_gp VARCHAR) ### Response: ### Response: SELECT COUNT(pl_gp) FROM table_name_73 WHERE player = "anton rodin" AND reg_gp < 0</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: how many records were made on the game that ended with score w 121–119 (ot) ### Context: CREATE TABLE table_17190012_7 (record VARCHAR, score VARCHAR) ### Response: ### Response: SELECT COUNT(record) FROM table_17190012_7 WHERE score = "W 121–119 (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: In how many rounds was Race 17? ### Context: CREATE TABLE table_26334740_3 (round VARCHAR, race VARCHAR) ### Response: ### Response: SELECT COUNT(round) FROM table_26334740_3 WHERE race = 17</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the title of the episode with the original air date of 28 September 1969? ### Context: CREATE TABLE table_1439096_1 (title VARCHAR, original_air_date__atv_ VARCHAR) ### Response: ### Response: SELECT title FROM table_1439096_1 WHERE original_air_date__atv_ = "28 September 1969"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What film was released in 1971? ### Context: CREATE TABLE table_name_66 (film VARCHAR, year VARCHAR) ### Response: ### Response: SELECT film FROM table_name_66 WHERE year = 1971</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 have highest 0-4-4 forney locomotive with number larger than 20 and works number larger than 23754? ### Context: CREATE TABLE table_name_90 (date INTEGER, works_number VARCHAR, type VARCHAR, number VARCHAR) ### Response: ### Response: SELECT MAX(date) FROM table_name_90 WHERE type = "0-4-4 forney locomotive" AND number > 20 AND works_number > 23754</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 days are associated with production code 210? ### Context: CREATE TABLE table_16581695_3 (original_airdate VARCHAR, production_code VARCHAR) ### Response: ### Response: SELECT COUNT(original_airdate) FROM table_16581695_3 WHERE production_code = 210</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Guam Player? ### Context: CREATE TABLE table_name_83 (rank INTEGER, country VARCHAR) ### Response: ### Response: SELECT AVG(rank) FROM table_name_83 WHERE country = "guam"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many dates did David Savage get man of the match? ### Context: CREATE TABLE table_17120964_7 (date VARCHAR, man_of_the_match VARCHAR) ### Response: ### Response: SELECT COUNT(date) FROM table_17120964_7 WHERE man_of_the_match = "David Savage"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the total number of population hervey bay with population woocoo less than 640 and population of maryborough less than 19,257 ### Context: CREATE TABLE table_name_94 (population__hervey_bay_ VARCHAR, population__woocoo_ VARCHAR, population__maryborough_ VARCHAR) ### Response: ### Response: SELECT COUNT(population__hervey_bay_) FROM table_name_94 WHERE population__woocoo_ < 640 AND population__maryborough_ < 19 OFFSET 257</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Aircraft has the Call Sign Paula 01? ### Context: CREATE TABLE table_name_37 (aircraft VARCHAR, call_sign VARCHAR) ### Response: ### Response: SELECT aircraft FROM table_name_37 WHERE call_sign = "paula 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: how many categories fall under the category of britons? ### Context: CREATE TABLE table_261895_1 (type VARCHAR, nickname VARCHAR) ### Response: ### Response: SELECT COUNT(type) FROM table_261895_1 WHERE nickname = "Britons"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the least number of gold medals won among nations ranked 1 with no silver medals? ### Context: CREATE TABLE table_name_8 (gold INTEGER, rank VARCHAR, silver VARCHAR) ### Response: ### Response: SELECT MIN(gold) FROM table_name_8 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 average share for episodes with over 7.82 viewers, ranks of 3 and a weekly rank of 54? ### Context: CREATE TABLE table_name_56 (share INTEGER, rank__week_ VARCHAR, viewers__millions_ VARCHAR, rank__timeslot_ VARCHAR) ### Response: ### Response: SELECT AVG(share) FROM table_name_56 WHERE viewers__millions_ > 7.82 AND rank__timeslot_ = "3" AND rank__week_ = "54"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many leaders are there in the intergiro classification in stage 20? ### Context: CREATE TABLE table_12261714_2 (intergiro_classification VARCHAR, stage VARCHAR) ### Response: ### Response: SELECT COUNT(intergiro_classification) FROM table_12261714_2 WHERE stage = "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 Game had a Score of 129–105? ### Context: CREATE TABLE table_name_13 (game INTEGER, score VARCHAR) ### Response: ### Response: SELECT MIN(game) FROM table_name_13 WHERE score = "129–105"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Time, when Away is Central Blues? ### Context: CREATE TABLE table_name_95 (time VARCHAR, away VARCHAR) ### Response: ### Response: SELECT time FROM table_name_95 WHERE away = "central blues"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 number of total race points for the country of Belgium? ### Context: CREATE TABLE table_23293785_2 (race_total_pts_ INTEGER, country VARCHAR) ### Response: ### Response: SELECT MIN(race_total_pts_) FROM table_23293785_2 WHERE country = "Belgium"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Year, when Rank is less than 28, and when Accolade is "The 100 greatest metal albums of the decade"? ### Context: CREATE TABLE table_name_59 (year INTEGER, rank VARCHAR, accolade VARCHAR) ### Response: ### Response: SELECT MAX(year) FROM table_name_59 WHERE rank < 28 AND accolade = "the 100 greatest metal albums of the decade"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which year first played with Double W-L of 8–3? ### Context: CREATE TABLE table_name_12 (first_year_played VARCHAR, doubles_w_l VARCHAR) ### Response: ### Response: SELECT first_year_played FROM table_name_12 WHERE doubles_w_l = "8–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 state shows for Cunningham? ### Context: CREATE TABLE table_name_3 (state VARCHAR, electorate VARCHAR) ### Response: ### Response: SELECT state FROM table_name_3 WHERE electorate = "cunningham"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the low silver medal total for nations with over 1 bronze ranked above 11? ### Context: CREATE TABLE table_name_80 (silver INTEGER, bronze VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT MIN(silver) FROM table_name_80 WHERE bronze > 1 AND rank < 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 match report from the game played on 28 february 2009? ### Context: CREATE TABLE table_name_23 (match_report VARCHAR, date VARCHAR) ### Response: ### Response: SELECT match_report FROM table_name_23 WHERE date = "28 february 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: How many new entries started in the quarter finals? ### Context: CREATE TABLE table_18328569_1 (new_entries_this_round VARCHAR, round VARCHAR) ### Response: ### Response: SELECT new_entries_this_round FROM table_18328569_1 WHERE round = "Quarter finals"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What's the total number of episodes with the production code 2395113A? ### Context: CREATE TABLE table_10953197_4 (title VARCHAR, production_code VARCHAR) ### Response: ### Response: SELECT COUNT(title) FROM table_10953197_4 WHERE production_code = "2395113A"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Home Team in the game with a Result of 124-109? ### Context: CREATE TABLE table_name_48 (home_team VARCHAR, result VARCHAR) ### Response: ### Response: SELECT home_team FROM table_name_48 WHERE result = "124-109"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Focal plane in ft (m) is 43ft (13.1m) is the first date lit. ### Context: CREATE TABLE table_25597136_1 (date_first_lit VARCHAR, focal_plane_in_ft__m_ VARCHAR) ### Response: ### Response: SELECT date_first_lit FROM table_25597136_1 WHERE focal_plane_in_ft__m_ = "43ft (13.1m)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 years did Martin Sacks work on a soap opera? ### Context: CREATE TABLE table_name_98 (years VARCHAR, actor VARCHAR) ### Response: ### Response: SELECT years FROM table_name_98 WHERE actor = "martin sacks"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 time/retired has a grid of 9? ### Context: CREATE TABLE table_name_79 (time_retired VARCHAR, grid VARCHAR) ### Response: ### Response: SELECT time_retired FROM table_name_79 WHERE grid = "9"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what is the last performance of leon varkas category:articles with hcards ### Context: CREATE TABLE table_19189856_1 (last_performance VARCHAR, performer VARCHAR) ### Response: ### Response: SELECT last_performance FROM table_19189856_1 WHERE performer = "Leon Varkas category:Articles with hCards"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Ismaël Bangoura with a rank larger than 5 after the year 2005 was moving to what football club? ### Context: CREATE TABLE table_name_39 (moving_to VARCHAR, name VARCHAR, year VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT moving_to FROM table_name_39 WHERE year > 2005 AND rank > 5 AND name = "ismaël bangoura"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What player is from Scotland and has a score of 74-70=144? ### Context: CREATE TABLE table_name_90 (player VARCHAR, country VARCHAR, score VARCHAR) ### Response: ### Response: SELECT player FROM table_name_90 WHERE score = 74 - 70 = 144 AND country = "scotland"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who's the partner at Tamara, Hon? ### Context: CREATE TABLE table_18268930_1 (partner VARCHAR, location VARCHAR) ### Response: ### Response: SELECT partner FROM table_18268930_1 WHERE location = "Tamara, HON"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 rounds were there in Karlskoga Motorstadion with Roger Eriksson at the pole position? ### Context: CREATE TABLE table_20079931_4 (round VARCHAR, circuit_location VARCHAR, pole_position VARCHAR) ### Response: ### Response: SELECT COUNT(round) FROM table_20079931_4 WHERE circuit_location = "Karlskoga Motorstadion" AND pole_position = "Roger Eriksson"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Silver has a Total of 11, and a Gold smaller than 8? ### Context: CREATE TABLE table_name_31 (silver INTEGER, total VARCHAR, gold VARCHAR) ### Response: ### Response: SELECT MIN(silver) FROM table_name_31 WHERE total = 11 AND gold < 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 sum of total when year(s) won is 1985? ### Context: CREATE TABLE table_name_55 (total INTEGER, year_s__won VARCHAR) ### Response: ### Response: SELECT SUM(total) FROM table_name_55 WHERE year_s__won = "1985"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 weeks on top of volumes associated with the artist aged 25 or younger? ### Context: CREATE TABLE volume (Weeks_on_Top INTEGER, Artist_ID VARCHAR); CREATE TABLE artist (Artist_ID VARCHAR, age VARCHAR) ### Response: ### Response: SELECT AVG(T2.Weeks_on_Top) FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T1.age <= 25</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the total number of played for the entry with a position of less than 1? ### Context: CREATE TABLE table_name_65 (played INTEGER, position INTEGER) ### Response: ### Response: SELECT SUM(played) FROM table_name_65 WHERE position < 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: Show the denomination shared by schools founded before 1890 and schools founded after 1900 ### Context: CREATE TABLE school (Denomination VARCHAR, Founded INTEGER) ### Response: ### Response: SELECT Denomination FROM school WHERE Founded < 1890 INTERSECT SELECT Denomination FROM school WHERE Founded > 1900</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the status of the London Aquatics Centre project at the time of production? ### Context: CREATE TABLE table_1792122_11 (status_at_production VARCHAR, project VARCHAR) ### Response: ### Response: SELECT status_at_production FROM table_1792122_11 WHERE project = "London Aquatics Centre"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many games had fewer than 118 opponents and more than 109 net points with an opponent of Washington? ### Context: CREATE TABLE table_name_37 (game VARCHAR, opponent VARCHAR, opponents VARCHAR, nets_points VARCHAR) ### Response: ### Response: SELECT COUNT(game) FROM table_name_37 WHERE opponents < 118 AND nets_points > 109 AND opponent = "washington"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 end date for robert goebbels ### Context: CREATE TABLE table_name_50 (end_date VARCHAR, minister VARCHAR) ### Response: ### Response: SELECT end_date FROM table_name_50 WHERE minister = "robert goebbels"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What points has james allen as the skipper? ### Context: CREATE TABLE table_name_66 (points VARCHAR, skipper VARCHAR) ### Response: ### Response: SELECT points FROM table_name_66 WHERE skipper = "james allen"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 affiliation of the University called Explorers? ### Context: CREATE TABLE table_19210115_1 (affiliation VARCHAR, nickname VARCHAR) ### Response: ### Response: SELECT affiliation FROM table_19210115_1 WHERE nickname = "Explorers"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 each state, find the total account balance of customers whose credit score is above 100. ### Context: CREATE TABLE customer (state VARCHAR, acc_bal INTEGER, credit_score INTEGER) ### Response: ### Response: SELECT SUM(acc_bal), state FROM customer WHERE credit_score > 100 GROUP BY state</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 City has a Date of may 19, 1976? ### Context: CREATE TABLE table_name_23 (city VARCHAR, date VARCHAR) ### Response: ### Response: SELECT city FROM table_name_23 WHERE date = "may 19, 1976"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the result for 23,24,25,26 july 1992? ### Context: CREATE TABLE table_name_58 (result VARCHAR, date VARCHAR) ### Response: ### Response: SELECT result FROM table_name_58 WHERE date = "23,24,25,26 july 1992"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Wins have a Year of 1963, and a Class of 50cc? ### Context: CREATE TABLE table_name_54 (wins INTEGER, year VARCHAR, class VARCHAR) ### Response: ### Response: SELECT AVG(wins) FROM table_name_54 WHERE year = 1963 AND class = "50cc"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 LSU's overall record/ ### Context: CREATE TABLE table_22993636_2 (overall_record VARCHAR, team VARCHAR) ### Response: ### Response: SELECT overall_record FROM table_22993636_2 WHERE team = "LSU"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Road Team has a Home Team of boston, and a Result of 124-101? ### Context: CREATE TABLE table_name_91 (road_team VARCHAR, home_team VARCHAR, result VARCHAR) ### Response: ### Response: SELECT road_team FROM table_name_91 WHERE home_team = "boston" AND result = "124-101"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the round for the qualifying phase with a draw date on 16 July 2010? ### Context: CREATE TABLE table_name_42 (round VARCHAR, phase VARCHAR, draw_date VARCHAR) ### Response: ### Response: SELECT round FROM table_name_42 WHERE phase = "qualifying" AND draw_date = "16 july 2010"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 money for ireland ### Context: CREATE TABLE table_name_73 (money___£__ VARCHAR, country VARCHAR) ### Response: ### Response: SELECT money___£__ FROM table_name_73 WHERE country = "ireland"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 cost of procedures that physician John Wen was trained in? ### Context: CREATE TABLE trained_in (physician VARCHAR, treatment VARCHAR); CREATE TABLE procedures (cost INTEGER, code VARCHAR); CREATE TABLE physician (employeeid VARCHAR, name VARCHAR) ### Response: ### Response: SELECT AVG(T3.cost) FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T1.name = "John Wen"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What city has a team in IHSAA class 3a, and previous conference of lake? ### Context: CREATE TABLE table_name_83 (city VARCHAR, previous_counference VARCHAR, ihsaa_class VARCHAR) ### Response: ### Response: SELECT city FROM table_name_83 WHERE previous_counference = "lake" AND ihsaa_class = "3a"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Wheels has Built smaller than 1958, a Location of york, and a Railway of nsr? ### Context: CREATE TABLE table_name_31 (wheels VARCHAR, railway VARCHAR, built VARCHAR, location VARCHAR) ### Response: ### Response: SELECT wheels FROM table_name_31 WHERE built < 1958 AND location = "york" AND railway = "nsr"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 result of the game with 67,715 fans attending? ### Context: CREATE TABLE table_name_54 (result VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT result FROM table_name_54 WHERE attendance = "67,715"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What are the first names and date of birth of professors teaching course ACCT-211? ### Context: CREATE TABLE CLASS (PROF_NUM VARCHAR); CREATE TABLE employee (EMP_FNAME VARCHAR, EMP_DOB VARCHAR, EMP_NUM VARCHAR) ### Response: ### Response: SELECT DISTINCT T1.EMP_FNAME, T1.EMP_DOB FROM employee AS T1 JOIN CLASS AS T2 ON T1.EMP_NUM = T2.PROF_NUM WHERE CRS_CODE = "ACCT-211"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the highest number of points against the boston bruins on game 77? ### Context: CREATE TABLE table_name_1 (points INTEGER, opponent VARCHAR, game VARCHAR) ### Response: ### Response: SELECT MAX(points) FROM table_name_1 WHERE opponent = "boston bruins" AND game = 77</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What Field was played at in an away game against the bayhawks? ### Context: CREATE TABLE table_name_99 (field VARCHAR, home_away VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT field FROM table_name_99 WHERE home_away = "away" AND opponent = "bayhawks"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 sum roll of Karaka area? ### Context: CREATE TABLE table_name_53 (roll INTEGER, area VARCHAR) ### Response: ### Response: SELECT SUM(roll) FROM table_name_53 WHERE area = "karaka"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 enrollment for a private/catholic affiliation and founded after 1842? ### Context: CREATE TABLE table_name_1 (enrollment VARCHAR, affiliation VARCHAR, founded VARCHAR) ### Response: ### Response: SELECT COUNT(enrollment) FROM table_name_1 WHERE affiliation = "private/catholic" AND founded > 1842</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 when the pick is higher than 33 and the school is tottenville hs (staten island, ny)? ### Context: CREATE TABLE table_name_16 (position VARCHAR, pick VARCHAR, school VARCHAR) ### Response: ### Response: SELECT position FROM table_name_16 WHERE pick > 33 AND school = "tottenville hs (staten island, 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: Which film originated in France? ### Context: CREATE TABLE table_name_27 (original_name VARCHAR, country VARCHAR) ### Response: ### Response: SELECT original_name FROM table_name_27 WHERE country = "france"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Beata syta is the minimum year for womens singles. ### Context: CREATE TABLE table_13857501_1 (year INTEGER, womens_singles VARCHAR) ### Response: ### Response: SELECT MIN(year) FROM table_13857501_1 WHERE womens_singles = "Beata Syta"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 values are displayed under pick for Vlastimil Kroupa? ### Context: CREATE TABLE table_2781227_2 (pick VARCHAR, player VARCHAR) ### Response: ### Response: SELECT COUNT(pick) FROM table_2781227_2 WHERE player = "Vlastimil Kroupa"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 game that was 76-85, what was the record? ### Context: CREATE TABLE table_name_66 (record VARCHAR, score VARCHAR) ### Response: ### Response: SELECT record FROM table_name_66 WHERE score = "76-85"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 of Origin, when Year of Intro is 1977? ### Context: CREATE TABLE table_name_10 (country_of_origin VARCHAR, year_of_intro VARCHAR) ### Response: ### Response: SELECT country_of_origin FROM table_name_10 WHERE year_of_intro = 1977</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What aircraft has 129 made? ### Context: CREATE TABLE table_name_40 (aircraft VARCHAR, quantity VARCHAR) ### Response: ### Response: SELECT aircraft FROM table_name_40 WHERE quantity = "129"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 for the competitor from Bulgaria? ### Context: CREATE TABLE table_name_16 (rank INTEGER, country VARCHAR) ### Response: ### Response: SELECT MIN(rank) FROM table_name_16 WHERE country = "bulgaria"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 points with less than 30 played? ### Context: CREATE TABLE table_name_77 (points INTEGER, played INTEGER) ### Response: ### Response: SELECT AVG(points) FROM table_name_77 WHERE played < 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: how much sesamin is in sesame seed? ### Context: CREATE TABLE table_1831262_2 (sesamin VARCHAR, foodstuff VARCHAR) ### Response: ### Response: SELECT sesamin FROM table_1831262_2 WHERE foodstuff = "Sesame seed"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Nation with more than 1 Gold and a more than 4 Total medals? ### Context: CREATE TABLE table_name_65 (rank INTEGER, gold VARCHAR, total VARCHAR) ### Response: ### Response: SELECT SUM(rank) FROM table_name_65 WHERE gold > 1 AND total > 4</s>