inputs
stringlengths
400
1.34k
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What team does jan heylen race for? ### Context: CREATE TABLE table_name_35 (team VARCHAR, driver VARCHAR) ### Response: ### Response: SELECT team FROM table_name_35 WHERE driver = "jan heylen"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 ship with pit props as Cargo sunk by u-48 *? ### Context: CREATE TABLE table_name_44 (name VARCHAR, fate VARCHAR, cargo VARCHAR) ### Response: ### Response: SELECT name FROM table_name_44 WHERE fate = "sunk by u-48 *" AND cargo = "pit props"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 first round for Utah Jazz team, with a weight smaller than 229? ### Context: CREATE TABLE table_name_29 (first_round INTEGER, weight VARCHAR, team VARCHAR) ### Response: ### Response: SELECT AVG(first_round) FROM table_name_29 WHERE weight < 229 AND team = "utah 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: How many rounds total were there on may 31? ### Context: CREATE TABLE table_name_79 (round VARCHAR, date VARCHAR) ### Response: ### Response: SELECT COUNT(round) FROM table_name_79 WHERE date = "may 31"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what is the most weeks on chart when the peak position is less than 5 and from Sweden? ### Context: CREATE TABLE table_name_49 (weeks_on_chart INTEGER, peak_position VARCHAR, country VARCHAR) ### Response: ### Response: SELECT MAX(weeks_on_chart) FROM table_name_49 WHERE peak_position < 5 AND country = "sweden"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 System with the Current version 3.0.0? ### Context: CREATE TABLE table_name_58 (system VARCHAR, current_version VARCHAR) ### Response: ### Response: SELECT system FROM table_name_58 WHERE current_version = "3.0.0"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Find the average price of all product clothes. ### Context: CREATE TABLE products (product_price INTEGER, product_type_code VARCHAR) ### Response: ### Response: SELECT AVG(product_price) FROM products WHERE product_type_code = 'Clothes'</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 did player number 21 play for? ### Context: CREATE TABLE table_10015132_11 (school_club_team VARCHAR, no VARCHAR) ### Response: ### Response: SELECT school_club_team FROM table_10015132_11 WHERE no = "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 ordinary value has a Russian value of унция? ### Context: CREATE TABLE table_name_64 (ordinary_value VARCHAR, russian VARCHAR) ### Response: ### Response: SELECT ordinary_value FROM table_name_64 WHERE russian = "унция"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 poll losses of the 0 ties, poll wins greater than 1 and wins less than 2? ### Context: CREATE TABLE table_name_15 (poll_losses INTEGER, wins VARCHAR, ties VARCHAR, poll_wins VARCHAR) ### Response: ### Response: SELECT MIN(poll_losses) FROM table_name_15 WHERE ties = 0 AND poll_wins > 1 AND wins < 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 is the score of the game with the streak l5 ### Context: CREATE TABLE table_11964047_10 (score VARCHAR, streak VARCHAR) ### Response: ### Response: SELECT score FROM table_11964047_10 WHERE streak = "L5"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 record on the date of november 10, 1968? ### Context: CREATE TABLE table_name_27 (record VARCHAR, date VARCHAR) ### Response: ### Response: SELECT record FROM table_name_27 WHERE date = "november 10, 1968"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 tournament name when they had an A in 2011 & 2012? ### Context: CREATE TABLE table_name_74 (tournament VARCHAR) ### Response: ### Response: SELECT tournament FROM table_name_74 WHERE 2012 = "a" AND 2011 = "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: Which district had SC reserved and 169 Constituents? ### Context: CREATE TABLE table_name_2 (district VARCHAR, reserved_for___sc___st__none_ VARCHAR, constituency_number VARCHAR) ### Response: ### Response: SELECT district FROM table_name_2 WHERE reserved_for___sc___st__none_ = "sc" AND constituency_number = "169"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: where was sun 09/12/93 record made ### Context: CREATE TABLE table_21436373_12 (stadium VARCHAR, date_year VARCHAR) ### Response: ### Response: SELECT stadium FROM table_21436373_12 WHERE date_year = "Sun 09/12/93"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What tournament had an A in 2012 and Q2 in 2010? ### Context: CREATE TABLE table_name_4 (tournament VARCHAR) ### Response: ### Response: SELECT tournament FROM table_name_4 WHERE 2012 = "a" AND 2010 = "q2"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 episode number on 19 March 1993 with Jim Sweeney as performer 1? ### Context: CREATE TABLE table_name_29 (episode INTEGER, performer_1 VARCHAR, date VARCHAR) ### Response: ### Response: SELECT AVG(episode) FROM table_name_29 WHERE performer_1 = "jim sweeney" AND date = "19 march 1993"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What record has January 27 for the date? ### Context: CREATE TABLE table_name_49 (record VARCHAR, date VARCHAR) ### Response: ### Response: SELECT record FROM table_name_49 WHERE date = "january 27"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the sum of Year, when Publication is "VH1", and when Rank is greater than 11? ### Context: CREATE TABLE table_name_65 (year INTEGER, publication VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT SUM(year) FROM table_name_65 WHERE publication = "vh1" 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 mission did the astronaut who 38 years old on the mission and who served in NASA serve on? ### Context: CREATE TABLE table_name_70 (mission VARCHAR, service VARCHAR, age_on_mission VARCHAR) ### Response: ### Response: SELECT mission FROM table_name_70 WHERE service = "nasa" AND age_on_mission = 38</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 laps when the driver is rubens barrichello and the grid is less than 12? ### Context: CREATE TABLE table_name_5 (laps INTEGER, driver VARCHAR, grid VARCHAR) ### Response: ### Response: SELECT MIN(laps) FROM table_name_5 WHERE driver = "rubens barrichello" AND grid < 12</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What series has a season after 2008, super leg final as the format, and conference v as the conference? ### Context: CREATE TABLE table_name_39 (series VARCHAR, conference VARCHAR, season VARCHAR, format VARCHAR) ### Response: ### Response: SELECT series FROM table_name_39 WHERE season > 2008 AND format = "super leg final" AND conference = "conference v"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Mixed Doubles won when Oliver Pongratz won the Men's Singles? ### Context: CREATE TABLE table_12164707_1 (mixed_doubles VARCHAR, mens_singles VARCHAR) ### Response: ### Response: SELECT COUNT(mixed_doubles) FROM table_12164707_1 WHERE mens_singles = "Oliver Pongratz"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 millions of U.S. viewers watched episode 185? ### Context: CREATE TABLE table_13301516_1 (us_viewers__millions_ VARCHAR, no_in_series VARCHAR) ### Response: ### Response: SELECT us_viewers__millions_ FROM table_13301516_1 WHERE no_in_series = 185</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What Status has a Date performed of august 13, and a Position of safe? ### Context: CREATE TABLE table_name_42 (status VARCHAR, date_performed VARCHAR, position VARCHAR) ### Response: ### Response: SELECT status FROM table_name_42 WHERE date_performed = "august 13" AND position = "safe"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the highest attendance when the opponent was the Indians and the record was 13-4? ### Context: CREATE TABLE table_name_99 (attendance INTEGER, opponent VARCHAR, record VARCHAR) ### Response: ### Response: SELECT MAX(attendance) FROM table_name_99 WHERE opponent = "indians" AND record = "13-4"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many live births per year are there in the period where the life expectancy for females is 73.3? ### Context: CREATE TABLE table_18950570_2 (live_births_per_year VARCHAR, life_expectancy_females VARCHAR) ### Response: ### Response: SELECT live_births_per_year FROM table_18950570_2 WHERE life_expectancy_females = "73.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: Name the last title for greater buenos aires and first season of 1920 ### Context: CREATE TABLE table_name_9 (last_title VARCHAR, area_province VARCHAR, first_season VARCHAR) ### Response: ### Response: SELECT last_title FROM table_name_9 WHERE area_province = "greater buenos aires" AND first_season = "1920"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 best time from patrick carpentier from the forsythe racing team? ### Context: CREATE TABLE table_name_33 (best VARCHAR, team VARCHAR, name VARCHAR) ### Response: ### Response: SELECT best FROM table_name_33 WHERE team = "forsythe racing" AND name = "patrick carpentier"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the episode with a production code of 804 originally air on? ### Context: CREATE TABLE table_27988559_1 (original_air_date VARCHAR, production_code VARCHAR) ### Response: ### Response: SELECT COUNT(original_air_date) FROM table_27988559_1 WHERE production_code = 804</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Show all document ids, names and the number of paragraphs in each document. ### Context: CREATE TABLE Documents (document_name VARCHAR, document_id VARCHAR); CREATE TABLE Paragraphs (document_id VARCHAR) ### Response: ### Response: SELECT T1.document_id, T2.document_name, COUNT(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_id</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which city is Lawrenceburg school, with an IHSAA football class of aaa and less than 676 enrollments, located in? ### Context: CREATE TABLE table_name_84 (city VARCHAR, school VARCHAR, ihsaa_football_class VARCHAR, enrollment VARCHAR) ### Response: ### Response: SELECT city FROM table_name_84 WHERE ihsaa_football_class = "aaa" AND enrollment < 676 AND school = "lawrenceburg"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what's the highest point with lowest point being belle fourche river at south dakota border ### Context: CREATE TABLE table_1416612_1 (highest_point VARCHAR, lowest_point VARCHAR) ### Response: ### Response: SELECT highest_point FROM table_1416612_1 WHERE lowest_point = "Belle Fourche River at South Dakota border"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 number of top 10s for scoring rank of 9 ### Context: CREATE TABLE table_18198579_6 (top_10s VARCHAR, scoring_rank VARCHAR) ### Response: ### Response: SELECT COUNT(top_10s) FROM table_18198579_6 WHERE scoring_rank = "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 result for district pennsylvania 6? ### Context: CREATE TABLE table_2668199_2 (result VARCHAR, district VARCHAR) ### Response: ### Response: SELECT result FROM table_2668199_2 WHERE district = "Pennsylvania 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: On what date was a game played at MCG? ### Context: CREATE TABLE table_name_89 (date VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT date FROM table_name_89 WHERE venue = "mcg"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Location, when the Score is 38-29? ### Context: CREATE TABLE table_name_88 (location VARCHAR, score VARCHAR) ### Response: ### Response: SELECT location FROM table_name_88 WHERE score = "38-29"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 changsha 長沙 is the commandery what is the commandery capital? ### Context: CREATE TABLE table_278229_1 (commandery VARCHAR) ### Response: ### Response: SELECT commandery AS capital FROM table_278229_1 WHERE commandery = "Changsha 長沙"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What height was the forward position at Crockett High School? ### Context: CREATE TABLE table_12032893_1 (height VARCHAR, position VARCHAR, high_school VARCHAR) ### Response: ### Response: SELECT height FROM table_12032893_1 WHERE position = "Forward" AND high_school = "Crockett"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Ends Won, when Province is "Saskatchewan", and when Stolen Ends is less than 6? ### Context: CREATE TABLE table_name_92 (ends_won VARCHAR, province VARCHAR, stolen_ends VARCHAR) ### Response: ### Response: SELECT COUNT(ends_won) FROM table_name_92 WHERE province = "saskatchewan" AND stolen_ends < 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: I want the engine for luigi villoresi ### Context: CREATE TABLE table_name_44 (engine VARCHAR, driver VARCHAR) ### Response: ### Response: SELECT engine FROM table_name_44 WHERE driver = "luigi villoresi"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which player wears the number 6? ### Context: CREATE TABLE table_11545282_19 (player VARCHAR, no VARCHAR) ### Response: ### Response: SELECT player FROM table_11545282_19 WHERE no = 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: Can you tell me the Divisional Record that has the Away Team of dallas? ### Context: CREATE TABLE table_name_58 (divisional_record VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT divisional_record FROM table_name_58 WHERE away_team = "dallas"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 tower height in ft (m) is 46ft (14.0m) the focal plane is ft (m). ### Context: CREATE TABLE table_25597136_1 (focal_plane_in_ft__m_ VARCHAR, tower_height_in_ft__m_ VARCHAR) ### Response: ### Response: SELECT focal_plane_in_ft__m_ FROM table_25597136_1 WHERE tower_height_in_ft__m_ = "46ft (14.0m)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 when bronze is more than 1, nation is hong kong (hkg) and gold is less than 3? ### Context: CREATE TABLE table_name_37 (total INTEGER, gold VARCHAR, bronze VARCHAR, nation VARCHAR) ### Response: ### Response: SELECT SUM(total) FROM table_name_37 WHERE bronze > 1 AND nation = "hong kong (hkg)" AND gold < 3</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which skip's second is Martin Hejhal? ### Context: CREATE TABLE table_name_51 (skip VARCHAR, second VARCHAR) ### Response: ### Response: SELECT skip FROM table_name_51 WHERE second = "martin hejhal"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What nation with Rank 1 won the fewest gold medals while winning more than 11 silver but fewer than 7 bronze medals? ### Context: CREATE TABLE table_name_47 (gold INTEGER, bronze VARCHAR, silver VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT MIN(gold) FROM table_name_47 WHERE silver > 11 AND rank = "1" AND bronze < 7</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the draw number of the Artist Dav Mcnamara and a place bigger than 4? ### Context: CREATE TABLE table_name_75 (draw VARCHAR, artist VARCHAR, place VARCHAR) ### Response: ### Response: SELECT COUNT(draw) FROM table_name_75 WHERE artist = "dav mcnamara" AND place > 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: List the airport code and name in the city of Anthony. ### Context: CREATE TABLE AIRPORTS (AirportCode VARCHAR, AirportName VARCHAR, city VARCHAR) ### Response: ### Response: SELECT AirportCode, AirportName FROM AIRPORTS WHERE city = "Anthony"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Find the name of route that has the highest number of deliveries. ### Context: CREATE TABLE Delivery_Routes (route_name VARCHAR, route_id VARCHAR); CREATE TABLE Delivery_Route_Locations (route_id VARCHAR) ### Response: ### Response: SELECT t1.route_name FROM Delivery_Routes AS t1 JOIN Delivery_Route_Locations AS t2 ON t1.route_id = t2.route_id GROUP BY t1.route_id ORDER BY COUNT(*) DESC LIMIT 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 Date has a Location/Attendance of verizon center 7,587? ### Context: CREATE TABLE table_name_66 (date VARCHAR, location_attendance VARCHAR) ### Response: ### Response: SELECT date FROM table_name_66 WHERE location_attendance = "verizon center 7,587"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 incumbent was first elected in 1940? ### Context: CREATE TABLE table_1342256_10 (incumbent VARCHAR, first_elected VARCHAR) ### Response: ### Response: SELECT incumbent FROM table_1342256_10 WHERE first_elected = 1940</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What Transfer window that has a Transfer fee of free, with a Moving to of derby county? ### Context: CREATE TABLE table_name_54 (transfer_window VARCHAR, transfer_fee VARCHAR, moving_to VARCHAR) ### Response: ### Response: SELECT transfer_window FROM table_name_54 WHERE transfer_fee = "free" AND moving_to = "derby county"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Show the names and total passengers for all train stations not in London. ### Context: CREATE TABLE station (name VARCHAR, total_passengers VARCHAR, LOCATION VARCHAR) ### Response: ### Response: SELECT name, total_passengers FROM station WHERE LOCATION <> 'London'</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which game is on mar 12? ### Context: CREATE TABLE table_name_81 (game INTEGER, date VARCHAR) ### Response: ### Response: SELECT AVG(game) FROM table_name_81 WHERE date = "mar 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: List the names of all distinct wines that are made of red color grape. ### Context: CREATE TABLE GRAPES (Grape VARCHAR, Color VARCHAR); CREATE TABLE WINE (Name VARCHAR, Grape VARCHAR) ### Response: ### Response: SELECT DISTINCT T2.Name FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape WHERE T1.Color = "Red"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Francis Harris' position? ### Context: CREATE TABLE table_name_83 (position VARCHAR, name VARCHAR) ### Response: ### Response: SELECT position FROM table_name_83 WHERE name = "francis harris"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 has each stadium held? ### Context: CREATE TABLE stadium (id VARCHAR); CREATE TABLE game (stadium_id VARCHAR) ### Response: ### Response: SELECT T1.id, COUNT(*) FROM stadium AS T1 JOIN game AS T2 ON T1.id = T2.stadium_id GROUP BY T1.id</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Where did the player move from that went to stuttgart? ### Context: CREATE TABLE table_name_17 (moving_from VARCHAR, moving_to VARCHAR) ### Response: ### Response: SELECT moving_from FROM table_name_17 WHERE moving_to = "stuttgart"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 his low win total when he has over 3 top 25s and under 9 cuts made? ### Context: CREATE TABLE table_name_95 (wins INTEGER, top_25 VARCHAR, cuts_made VARCHAR) ### Response: ### Response: SELECT MIN(wins) FROM table_name_95 WHERE top_25 = 3 AND cuts_made < 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: Which Goberman has a Date of april 28–april 30, 2008? ### Context: CREATE TABLE table_name_63 (goberman VARCHAR, date VARCHAR) ### Response: ### Response: SELECT goberman FROM table_name_63 WHERE date = "april 28–april 30, 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: Who is the second member more recently than 1790 when John Williams is the first member? ### Context: CREATE TABLE table_name_10 (second_member VARCHAR, year VARCHAR, first_member VARCHAR) ### Response: ### Response: SELECT second_member FROM table_name_10 WHERE year > 1790 AND first_member = "john williams"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What method of resolution was the fight that took place at hardcore championship fighting: destiny? ### Context: CREATE TABLE table_name_41 (method VARCHAR, event VARCHAR) ### Response: ### Response: SELECT method FROM table_name_41 WHERE event = "hardcore championship fighting: destiny"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 NCBI Accession Number of the Homo Sapiens species? ### Context: CREATE TABLE table_16849531_2 (ncbi_accession_number__mrna_protein_ VARCHAR, species VARCHAR) ### Response: ### Response: SELECT ncbi_accession_number__mrna_protein_ FROM table_16849531_2 WHERE species = "Homo sapiens"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 finish for a 39-31 record ### Context: CREATE TABLE table_name_64 (finish VARCHAR, record VARCHAR) ### Response: ### Response: SELECT finish FROM table_name_64 WHERE record = "39-31"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 venue of Stade de la Méditerranée? ### Context: CREATE TABLE table_21311525_1 (round VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT round FROM table_21311525_1 WHERE venue = "Stade de la Méditerranée"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2003 has a 2012 of 1r, and a 2008 of 1r? ### Context: CREATE TABLE table_name_42 (Id VARCHAR) ### Response: ### Response: SELECT 2003 FROM table_name_42 WHERE 2012 = "1r" AND 2008 = "1r"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Driver Ricardo Sperafico has what as his average laps? ### Context: CREATE TABLE table_name_96 (laps INTEGER, driver VARCHAR) ### Response: ### Response: SELECT AVG(laps) FROM table_name_96 WHERE driver = "ricardo sperafico"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 chassis after 1991? ### Context: CREATE TABLE table_name_64 (chassis VARCHAR, year INTEGER) ### Response: ### Response: SELECT chassis FROM table_name_64 WHERE year > 1991</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Representative has a Termination of Mission as May 24, 1905? ### Context: CREATE TABLE table_name_10 (representative VARCHAR, termination_of_mission VARCHAR) ### Response: ### Response: SELECT representative FROM table_name_10 WHERE termination_of_mission = "may 24, 1905"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 pinyin for تىزناپ ### Context: CREATE TABLE table_2008069_2 (pinyin VARCHAR, uyghur___k̢ona_yezik̢__ VARCHAR) ### Response: ### Response: SELECT pinyin FROM table_2008069_2 WHERE uyghur___k̢ona_yezik̢__ = "تىزناپ"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What type of school is Stratford University? ### Context: CREATE TABLE table_2076608_1 (type VARCHAR, school VARCHAR) ### Response: ### Response: SELECT type FROM table_2076608_1 WHERE school = "Stratford University"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the Home captain when the Result was Aus by 218 runs? ### Context: CREATE TABLE table_name_22 (home_captain VARCHAR, result VARCHAR) ### Response: ### Response: SELECT home_captain FROM table_name_22 WHERE result = "aus by 218 runs"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is average frequency MHZ when is in portales, new mexico? ### Context: CREATE TABLE table_name_13 (frequency_mhz INTEGER, city_of_license VARCHAR) ### Response: ### Response: SELECT AVG(frequency_mhz) FROM table_name_13 WHERE city_of_license = "portales, new mexico"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 ids of the two department store chains with the largest number of department stores? ### Context: CREATE TABLE department_stores (dept_store_chain_id VARCHAR) ### Response: ### Response: SELECT dept_store_chain_id FROM department_stores GROUP BY dept_store_chain_id ORDER BY COUNT(*) DESC LIMIT 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 round has this song: 陶喆、蔡依林 - 今天你要嫁给我/曹格 - 世界唯一的你? ### Context: CREATE TABLE table_name_18 (round VARCHAR, song VARCHAR) ### Response: ### Response: SELECT round FROM table_name_18 WHERE song = "陶喆、蔡依林 - 今天你要嫁给我/曹格 - 世界唯一的你"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 fleet size with a type of shunter introduced in 1953? ### Context: CREATE TABLE table_name_87 (fleet_size INTEGER, type VARCHAR, introduced VARCHAR) ### Response: ### Response: SELECT MIN(fleet_size) FROM table_name_87 WHERE type = "shunter" AND introduced = "1953"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 all the broadcast date when viewers were 8.4 millions ### Context: CREATE TABLE table_2112766_1 (broadcast_date VARCHAR, viewers__in_millions_ VARCHAR) ### Response: ### Response: SELECT COUNT(broadcast_date) FROM table_2112766_1 WHERE viewers__in_millions_ = "8.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 Locality of the Penarth Group School for Ages 8-16? ### Context: CREATE TABLE table_name_90 (locality VARCHAR, ages VARCHAR, school VARCHAR) ### Response: ### Response: SELECT locality FROM table_name_90 WHERE ages = "8-16" AND school = "penarth group school"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Where is the home venue of the team founded in 1993? ### Context: CREATE TABLE table_283203_1 (home_venue VARCHAR, founded VARCHAR) ### Response: ### Response: SELECT home_venue FROM table_283203_1 WHERE founded = 1993</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 series score of the game on May 6? ### Context: CREATE TABLE table_name_55 (series VARCHAR, date VARCHAR) ### Response: ### Response: SELECT series FROM table_name_55 WHERE date = "may 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: Which department has Guy-Dominique Kennel as president since 2008? ### Context: CREATE TABLE table_name_54 (départment__or_collectivity_ VARCHAR, since VARCHAR, président VARCHAR) ### Response: ### Response: SELECT départment__or_collectivity_ FROM table_name_54 WHERE since = 2008 AND président = "guy-dominique kennel"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 game that had an away team of FK Mogren? ### Context: CREATE TABLE table_name_89 (attendance VARCHAR, guest VARCHAR) ### Response: ### Response: SELECT attendance FROM table_name_89 WHERE guest = "fk mogren"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 greatest points value that have draws under 2 and 2 losses? ### Context: CREATE TABLE table_name_67 (points INTEGER, drawn VARCHAR, lost VARCHAR) ### Response: ### Response: SELECT MAX(points) FROM table_name_67 WHERE drawn < 2 AND lost = 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: Who directed the title that was written by Adam Milch? ### Context: CREATE TABLE table_12419515_4 (directed_by VARCHAR, written_by VARCHAR) ### Response: ### Response: SELECT directed_by FROM table_12419515_4 WHERE written_by = "Adam Milch"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 school in Hillcrest? ### Context: CREATE TABLE table_name_12 (name VARCHAR, area VARCHAR) ### Response: ### Response: SELECT name FROM table_name_12 WHERE area = "hillcrest"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 team 1 when team 2 is gazélec ajaccio (d3)? ### Context: CREATE TABLE table_name_6 (team_1 VARCHAR, team_2 VARCHAR) ### Response: ### Response: SELECT team_1 FROM table_name_6 WHERE team_2 = "gazélec ajaccio (d3)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 heat number of the athlete who finished in 2:23.95? ### Context: CREATE TABLE table_name_99 (heat INTEGER, time VARCHAR) ### Response: ### Response: SELECT AVG(heat) FROM table_name_99 WHERE time = "2:23.95"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Current singles ranking for the player named Mantas Bugailiškis? ### Context: CREATE TABLE table_10295819_1 (current_singles_ranking VARCHAR, player VARCHAR) ### Response: ### Response: SELECT current_singles_ranking FROM table_10295819_1 WHERE player = "Mantas Bugailiškis"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 against when the wins were 8, and a Club of South Warrnambool, with less than 0 draws? ### Context: CREATE TABLE table_name_29 (against INTEGER, draws VARCHAR, wins VARCHAR, club VARCHAR) ### Response: ### Response: SELECT SUM(against) FROM table_name_29 WHERE wins = 8 AND club = "south warrnambool" AND draws < 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 record was set when the result/game was montreal 20 @ ottawa 10? ### Context: CREATE TABLE table_21436373_8 (type_of_record VARCHAR, result_games VARCHAR) ### Response: ### Response: SELECT type_of_record FROM table_21436373_8 WHERE result_games = "Montreal 20 @ Ottawa 10"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which 2007–08 season has a Club of genoa c.f.c.? ### Context: CREATE TABLE table_name_49 (club VARCHAR) ### Response: ### Response: SELECT 2007 AS _08_season FROM table_name_49 WHERE club = "genoa c.f.c."</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 college for jason holland ### Context: CREATE TABLE table_name_2 (college_junior_club_team VARCHAR, player VARCHAR) ### Response: ### Response: SELECT college_junior_club_team FROM table_name_2 WHERE player = "jason holland"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the sum of the 2010 population with a latitude greater than 47.710905, a longitude of -101.79876, and less than 35.695 sq mi of land? ### Context: CREATE TABLE table_name_64 (pop__2010_ INTEGER, land___sqmi__ VARCHAR, latitude VARCHAR, longitude VARCHAR) ### Response: ### Response: SELECT SUM(pop__2010_) FROM table_name_64 WHERE latitude > 47.710905 AND longitude = -101.79876 AND land___sqmi__ < 35.695</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 investors shared by entrepreneurs that requested more than 140000 and entrepreneurs that requested less than 120000. ### Context: CREATE TABLE entrepreneur (Investor VARCHAR, Money_Requested INTEGER) ### Response: ### Response: SELECT Investor FROM entrepreneur WHERE Money_Requested > 140000 INTERSECT SELECT Investor FROM entrepreneur WHERE Money_Requested < 120000</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 L2 cache specifications of part number amql64dam22gg? ### Context: CREATE TABLE table_27277284_27 (l2_cache VARCHAR, order_part_number VARCHAR) ### Response: ### Response: SELECT l2_cache FROM table_27277284_27 WHERE order_part_number = "AMQL64DAM22GG"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the pick number of Penn State? ### Context: CREATE TABLE table_name_2 (pick VARCHAR, school VARCHAR) ### Response: ### Response: SELECT pick FROM table_name_2 WHERE school = "penn 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: List the titles of all items in alphabetic order . ### Context: CREATE TABLE item (title VARCHAR) ### Response: ### Response: SELECT title FROM item ORDER BY title</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 land (sqmi) at geo id 3801947380? ### Context: CREATE TABLE table_18600760_12 (land___sqmi__ VARCHAR, geo_id VARCHAR) ### Response: ### Response: SELECT land___sqmi__ FROM table_18600760_12 WHERE geo_id = 3801947380</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 +10 is the goal difference what is the goals for? ### Context: CREATE TABLE table_17718005_2 (goals_for VARCHAR, goal_difference VARCHAR) ### Response: ### Response: SELECT goals_for FROM table_17718005_2 WHERE goal_difference = "+10"</s>