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 is the name of the player who competed in the Women's Individual Class 3 in Table Tennis? ### Context: CREATE TABLE table_name_38 (name VARCHAR, sport VARCHAR, event VARCHAR) ### Response: ### Response: SELECT name FROM table_name_38 WHERE sport = "table tennis" AND event = "women's individual class 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: how many byu-uu score with winner being utah state (2–1) won over byu by media vote ### Context: CREATE TABLE table_13665809_2 (byu_uu_score VARCHAR, winner VARCHAR) ### Response: ### Response: SELECT COUNT(byu_uu_score) FROM table_13665809_2 WHERE winner = "Utah State (2–1) Won over BYU by media vote"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Position has a Years in Orlando of 2003–2004? ### Context: CREATE TABLE table_name_55 (position VARCHAR, years_in_orlando VARCHAR) ### Response: ### Response: SELECT position FROM table_name_55 WHERE years_in_orlando = "2003–2004"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the tries for when L is less than 2.0 ### Context: CREATE TABLE table_28204447_3 (tries_for VARCHAR, l INTEGER) ### Response: ### Response: SELECT tries_for FROM table_28204447_3 WHERE l < 2.0</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the league for strikeouts being 451 ### Context: CREATE TABLE table_242813_2 (league VARCHAR, strikeouts VARCHAR) ### Response: ### Response: SELECT league FROM table_242813_2 WHERE strikeouts = 451</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 price for flights from Los Angeles to Honolulu. ### Context: CREATE TABLE Flight (price INTEGER, origin VARCHAR, destination VARCHAR) ### Response: ### Response: SELECT AVG(price) FROM Flight WHERE origin = "Los Angeles" AND destination = "Honolulu"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: with delivery date of 2001 2001 what is the owns? ### Context: CREATE TABLE table_name_93 (owns VARCHAR, delivery_date VARCHAR) ### Response: ### Response: SELECT owns FROM table_name_93 WHERE delivery_date = "2001 2001"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 displacement for version of db ### Context: CREATE TABLE table_name_28 (displacement VARCHAR, version VARCHAR) ### Response: ### Response: SELECT displacement FROM table_name_28 WHERE version = "db"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 most common nationality for journalists. ### Context: CREATE TABLE journalist (Nationality VARCHAR) ### Response: ### Response: SELECT Nationality FROM journalist GROUP BY Nationality 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 ranking has money of $82 and Al Watrous as the player? ### Context: CREATE TABLE table_name_64 (place VARCHAR, money___$__ VARCHAR, player VARCHAR) ### Response: ### Response: SELECT place FROM table_name_64 WHERE money___$__ = 82 AND player = "al watrous"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Language has a Number of 553 633? ### Context: CREATE TABLE table_name_64 (language VARCHAR, number VARCHAR) ### Response: ### Response: SELECT language FROM table_name_64 WHERE number = "553 633"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the record 39–54? ### Context: CREATE TABLE table_name_69 (date VARCHAR, record VARCHAR) ### Response: ### Response: SELECT date FROM table_name_69 WHERE record = "39–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: Which season reported wickets of 7th? ### Context: CREATE TABLE table_1670921_1 (season VARCHAR, wicket VARCHAR) ### Response: ### Response: SELECT season FROM table_1670921_1 WHERE wicket = "7th"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 sum of Pick # that has the Position of sb, and the College of minnesota? ### Context: CREATE TABLE table_name_20 (pick__number INTEGER, position VARCHAR, college VARCHAR) ### Response: ### Response: SELECT SUM(pick__number) FROM table_name_20 WHERE position = "sb" AND college = "minnesota"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 percentage in Manitoba in 2011? ### Context: CREATE TABLE table_1717824_1 (_percentage_2011 VARCHAR, province VARCHAR) ### Response: ### Response: SELECT _percentage_2011 FROM table_1717824_1 WHERE province = "Manitoba"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 location of georgia perimeter college ### Context: CREATE TABLE table_16734640_1 (location VARCHAR, institution VARCHAR) ### Response: ### Response: SELECT COUNT(location) FROM table_16734640_1 WHERE institution = "Georgia Perimeter College"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 image quality when the multiple sessions is x, the authentication is ✓ and the date is may 15, 2007? ### Context: CREATE TABLE table_name_32 (image_quality VARCHAR, date VARCHAR, multiple_sessions VARCHAR, authentication VARCHAR) ### Response: ### Response: SELECT image_quality FROM table_name_32 WHERE multiple_sessions = "x" AND authentication = "✓" AND date = "may 15, 2007"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the upstream speed that you get for 89 tl? ### Context: CREATE TABLE table_17304621_14 (upstream VARCHAR, price_tl VARCHAR) ### Response: ### Response: SELECT upstream FROM table_17304621_14 WHERE price_tl = "89 TL"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Rank has a Silver larger than 1 and a Total larger than 13? ### Context: CREATE TABLE table_name_95 (rank VARCHAR, silver VARCHAR, total VARCHAR) ### Response: ### Response: SELECT rank FROM table_name_95 WHERE silver > 1 AND total > 13</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the gene name for accession number bx897700.1 ### Context: CREATE TABLE table_27155678_2 (gene_name VARCHAR, accession_number VARCHAR) ### Response: ### Response: SELECT gene_name FROM table_27155678_2 WHERE accession_number = "BX897700.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: Who was the Republican candidate against the Democratic candidate Arthur Levitt? ### Context: CREATE TABLE table_name_65 (republican_ticket VARCHAR, democratic_ticket VARCHAR) ### Response: ### Response: SELECT republican_ticket FROM table_name_65 WHERE democratic_ticket = "arthur levitt"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is every reference for type and usage of Germanium small-signal RF transistor? ### Context: CREATE TABLE table_30011_2 (reference VARCHAR, type_and_usage VARCHAR) ### Response: ### Response: SELECT reference FROM table_30011_2 WHERE type_and_usage = "Germanium small-signal RF transistor"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the score when Burnley was the away team? ### Context: CREATE TABLE table_name_31 (score VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT score FROM table_name_31 WHERE away_team = "burnley"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the opponent on December 2, 1962? ### Context: CREATE TABLE table_name_8 (opponent VARCHAR, date VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_8 WHERE date = "december 2, 1962"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What class of car had the XI Coppa Acerbo title? ### Context: CREATE TABLE table_name_31 (class VARCHAR, race_title VARCHAR) ### Response: ### Response: SELECT class FROM table_name_31 WHERE race_title = "xi coppa acerbo"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Place has a Country of united states, and a Player of corey pavin? ### Context: CREATE TABLE table_name_69 (place VARCHAR, country VARCHAR, player VARCHAR) ### Response: ### Response: SELECT place FROM table_name_69 WHERE country = "united states" AND player = "corey pavin"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 average top-10 for cuts made of 10 and top-25 more than 6 ### Context: CREATE TABLE table_name_57 (top_10 INTEGER, cuts_made VARCHAR, top_25 VARCHAR) ### Response: ### Response: SELECT AVG(top_10) FROM table_name_57 WHERE cuts_made = 10 AND top_25 > 6</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What's the T-100 when the IS-3 is 150 (225)? ### Context: CREATE TABLE table_name_51 (t_100 VARCHAR, is_3_m1945 VARCHAR) ### Response: ### Response: SELECT t_100 FROM table_name_51 WHERE is_3_m1945 = "150 (225)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the region where the rainfall by volume (km 3 /year) was 13.2, what was the evapotranspiration (km 3 /year)? ### Context: CREATE TABLE table_25983027_1 (evapotranspiration__km_3__year_ VARCHAR, rainfall_by_volume__km_3__year_ VARCHAR) ### Response: ### Response: SELECT evapotranspiration__km_3__year_ FROM table_25983027_1 WHERE rainfall_by_volume__km_3__year_ = "13.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 game has 2 points? ### Context: CREATE TABLE table_name_58 (games INTEGER, points VARCHAR) ### Response: ### Response: SELECT MAX(games) FROM table_name_58 WHERE points = 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 largest Crowd number for the Home team of North Melbourne? ### Context: CREATE TABLE table_name_3 (crowd INTEGER, home_team VARCHAR) ### Response: ### Response: SELECT MAX(crowd) FROM table_name_3 WHERE home_team = "north melbourne"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what is the time/retired when the laps is 6, the grid is less than 18 and the driver is clay regazzoni? ### Context: CREATE TABLE table_name_79 (time_retired VARCHAR, driver VARCHAR, laps VARCHAR, grid VARCHAR) ### Response: ### Response: SELECT time_retired FROM table_name_79 WHERE laps = 6 AND grid < 18 AND driver = "clay regazzoni"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the score for the home team for the venue glenferrie oval? ### Context: CREATE TABLE table_name_57 (home_team VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT home_team AS score FROM table_name_57 WHERE venue = "glenferrie oval"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 people where the pieces is 3015 ### Context: CREATE TABLE table_28498999_6 (player VARCHAR, points VARCHAR) ### Response: ### Response: SELECT COUNT(player) FROM table_28498999_6 WHERE points = 3015</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the maximum rank of the nation that won 4 gold medals? ### Context: CREATE TABLE table_22355_62 (rank INTEGER, gold VARCHAR) ### Response: ### Response: SELECT MAX(rank) FROM table_22355_62 WHERE gold = 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's the smallest number for cores of any of the processor models? ### Context: CREATE TABLE table_24099916_1 (cores INTEGER) ### Response: ### Response: SELECT MIN(cores) FROM table_24099916_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 number of faculty lines in campus "Long Beach State University" in 2002? ### Context: CREATE TABLE campuses (id VARCHAR, campus VARCHAR); CREATE TABLE faculty (campus VARCHAR, year VARCHAR) ### Response: ### Response: SELECT faculty FROM faculty AS T1 JOIN campuses AS T2 ON T1.campus = T2.id WHERE T1.year = 2002 AND T2.campus = "Long Beach State 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: Tom Lagarde Category:Articles with hCards used what Jersey Number(s)? ### Context: CREATE TABLE table_name_22 (jersey_number_s_ VARCHAR, player VARCHAR) ### Response: ### Response: SELECT jersey_number_s_ FROM table_name_22 WHERE player = "tom lagarde 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: What is the general classification when the team classification is japan? ### Context: CREATE TABLE table_name_18 (general_classification VARCHAR, team_classification VARCHAR) ### Response: ### Response: SELECT general_classification FROM table_name_18 WHERE team_classification = "japan"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What home team has a record of 4-3? ### Context: CREATE TABLE table_name_7 (home VARCHAR, record VARCHAR) ### Response: ### Response: SELECT home FROM table_name_7 WHERE record = "4-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's the change over same quarter the previous year in the period when the 89.6% of the trains arrive within 5 minutes of scheduled time (over three months)? ### Context: CREATE TABLE table_171748_3 (change_over_same_quarter_the_previous_year VARCHAR, _percentage_trains_arriving_within_5_mins_of_scheduled_time__over_three_months_ VARCHAR) ### Response: ### Response: SELECT change_over_same_quarter_the_previous_year FROM table_171748_3 WHERE _percentage_trains_arriving_within_5_mins_of_scheduled_time__over_three_months_ = "89.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 Position has a DOB of 13 may 1987? ### Context: CREATE TABLE table_name_21 (position VARCHAR, dob VARCHAR) ### Response: ### Response: SELECT position FROM table_name_21 WHERE dob = "13 may 1987"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 different second members were there when John rudhale was first member? ### Context: CREATE TABLE table_15451122_2 (second_member VARCHAR, first_member VARCHAR) ### Response: ### Response: SELECT COUNT(second_member) FROM table_15451122_2 WHERE first_member = "John Rudhale"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 club for when tries for is 32 ### Context: CREATE TABLE table_17625749_1 (club VARCHAR, tries_for VARCHAR) ### Response: ### Response: SELECT club FROM table_17625749_1 WHERE tries_for = "32"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 moving during winter from wal? ### Context: CREATE TABLE table_name_28 (moving_from VARCHAR, transfer_window VARCHAR, country VARCHAR) ### Response: ### Response: SELECT moving_from FROM table_name_28 WHERE transfer_window = "winter" AND country = "wal"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 montreal, qc as the location, with boston bruins as the visitor? ### Context: CREATE TABLE table_name_14 (record VARCHAR, location VARCHAR, visitor VARCHAR) ### Response: ### Response: SELECT record FROM table_name_14 WHERE location = "montreal, qc" AND visitor = "boston bruins"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 and maximum salary of all employees. ### Context: CREATE TABLE Employee (salary INTEGER) ### Response: ### Response: SELECT AVG(salary), MAX(salary) FROM Employee</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the game on jan. 16/06 played? ### Context: CREATE TABLE table_22862203_2 (location VARCHAR, date VARCHAR) ### Response: ### Response: SELECT location FROM table_22862203_2 WHERE date = "Jan. 16/06"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 college/junior/club team (league) of left wing Ondrej Roman? ### Context: CREATE TABLE table_name_62 (college_junior_club_team__league_ VARCHAR, position VARCHAR, player VARCHAR) ### Response: ### Response: SELECT college_junior_club_team__league_ FROM table_name_62 WHERE position = "left wing" AND player = "ondrej roman"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: who had the high assists on march 30? ### Context: CREATE TABLE table_name_78 (high_assists VARCHAR, date VARCHAR) ### Response: ### Response: SELECT high_assists FROM table_name_78 WHERE date = "march 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: What is the fewest amount of laps when the grid was larger than 1 and 42:31.153? ### Context: CREATE TABLE table_name_45 (laps INTEGER, time VARCHAR, grid VARCHAR) ### Response: ### Response: SELECT MIN(laps) FROM table_name_45 WHERE time = "42:31.153" AND grid > 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 Week, when the Finalist is Carlos Moyá (5)? ### Context: CREATE TABLE table_name_66 (week VARCHAR, finalist VARCHAR) ### Response: ### Response: SELECT week FROM table_name_66 WHERE finalist = "carlos moyá (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 FA Cup Goals, when Euro Competitions is 1, and when League Goals is 11? ### Context: CREATE TABLE table_name_75 (fa_cup_goals VARCHAR, euro_competitions VARCHAR, league_goals VARCHAR) ### Response: ### Response: SELECT fa_cup_goals FROM table_name_75 WHERE euro_competitions = "1" AND league_goals = "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 lowest round that a pick had a position of ls? ### Context: CREATE TABLE table_name_26 (round INTEGER, position VARCHAR) ### Response: ### Response: SELECT MIN(round) FROM table_name_26 WHERE position = "ls"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the least touchdowns for 11 points ### Context: CREATE TABLE table_14342592_8 (touchdowns INTEGER, points VARCHAR) ### Response: ### Response: SELECT MIN(touchdowns) FROM table_14342592_8 WHERE points = 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: Name the total number of 1992-93 for 115 points ### Context: CREATE TABLE table_14323347_1 (points VARCHAR) ### Response: ### Response: SELECT COUNT(1992 AS _93) FROM table_14323347_1 WHERE points = 115</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 points in 1974? ### Context: CREATE TABLE table_name_47 (points VARCHAR, year VARCHAR) ### Response: ### Response: SELECT COUNT(points) FROM table_name_47 WHERE year = 1974</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 constructor for driver alan jones using a chassis of fw06 fw07? ### Context: CREATE TABLE table_name_93 (constructor VARCHAR, chassis VARCHAR, driver VARCHAR) ### Response: ### Response: SELECT constructor FROM table_name_93 WHERE chassis = "fw06 fw07" AND driver = "alan jones"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what is the percentage for john kerry and dates administered is april 22, 2008? ### Context: CREATE TABLE table_16751596_5 (democrat VARCHAR, dates_administered VARCHAR) ### Response: ### Response: SELECT democrat AS :_john_kerry FROM table_16751596_5 WHERE dates_administered = "April 22, 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: For period September 2009, what is the other Mozilla total number? ### Context: CREATE TABLE table_1876262_10 (other_mozilla VARCHAR, period VARCHAR) ### Response: ### Response: SELECT COUNT(other_mozilla) FROM table_1876262_10 WHERE period = "September 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: Tell met he score for team of waaia ### Context: CREATE TABLE table_name_67 (score VARCHAR, team VARCHAR) ### Response: ### Response: SELECT score FROM table_name_67 WHERE team = "waaia"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Illustration with a Design of tim nokes, and a First Day Cover Cancellation with calgary, alberta? ### Context: CREATE TABLE table_name_76 (illustration VARCHAR, design VARCHAR, first_day_cover_cancellation VARCHAR) ### Response: ### Response: SELECT illustration FROM table_name_76 WHERE design = "tim nokes" AND first_day_cover_cancellation = "calgary, alberta"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many times is the new entries this round is none? ### Context: CREATE TABLE table_27973624_1 (number_of_fixtures VARCHAR, new_entries_this_round VARCHAR) ### Response: ### Response: SELECT COUNT(number_of_fixtures) FROM table_27973624_1 WHERE new_entries_this_round = "none"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What League's Round is Sup and Position is Right Wing? ### Context: CREATE TABLE table_name_38 (college_junior_club_team__league_ VARCHAR, position VARCHAR, round VARCHAR) ### Response: ### Response: SELECT college_junior_club_team__league_ FROM table_name_38 WHERE position = "right wing" AND round = "sup"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Tie no of Hereford United's Away game? ### Context: CREATE TABLE table_name_83 (tie_no VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT tie_no FROM table_name_83 WHERE away_team = "hereford united"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the seat number when Series 3 shows Dana Bérová? ### Context: CREATE TABLE table_name_81 (seat INTEGER, series_3 VARCHAR) ### Response: ### Response: SELECT AVG(seat) FROM table_name_81 WHERE series_3 = "dana bérová"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the maximum renewable energy (gw×h) for the state of Delaware? ### Context: CREATE TABLE table_25244412_1 (renewable_electricity__gw INTEGER, state VARCHAR) ### Response: ### Response: SELECT MAX(renewable_electricity__gw) AS •h_ FROM table_25244412_1 WHERE state = "Delaware"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What position did the kid from loganville, georgia play ### Context: CREATE TABLE table_11677691_8 (position VARCHAR, hometown VARCHAR) ### Response: ### Response: SELECT position FROM table_11677691_8 WHERE hometown = "Loganville, Georgia"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 lowest long with 26 yards? ### Context: CREATE TABLE table_name_51 (long INTEGER, yards VARCHAR) ### Response: ### Response: SELECT MIN(long) FROM table_name_51 WHERE yards = 26</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what is the lowest qualifying rank? ### Context: CREATE TABLE table_13114949_3 (qualifying_rank INTEGER) ### Response: ### Response: SELECT MIN(qualifying_rank) FROM table_13114949_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 was the home team's record when they played the Devil Rays on September 6? ### Context: CREATE TABLE table_name_50 (record VARCHAR, opponent VARCHAR, date VARCHAR) ### Response: ### Response: SELECT record FROM table_name_50 WHERE opponent = "devil rays" AND date = "september 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 melbourne's home team score? ### Context: CREATE TABLE table_name_48 (home_team VARCHAR) ### Response: ### Response: SELECT home_team AS score FROM table_name_48 WHERE home_team = "melbourne"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Castrol Perkins Motorsport and the winner Russell Ingall was in what location/state? ### Context: CREATE TABLE table_name_82 (location___state VARCHAR, team VARCHAR, winner VARCHAR) ### Response: ### Response: SELECT location___state FROM table_name_82 WHERE team = "castrol perkins motorsport" AND winner = "russell ingall"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 FA trophies did Ceri Williams get with a smaller total than 19? ### Context: CREATE TABLE table_name_27 (fa_trophy VARCHAR, player VARCHAR, total VARCHAR) ### Response: ### Response: SELECT COUNT(fa_trophy) FROM table_name_27 WHERE player = "ceri williams" AND total < 19</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 locations was the game against Barcelona Dragons played? ### Context: CREATE TABLE table_1941183_2 (game_site VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT COUNT(game_site) FROM table_1941183_2 WHERE opponent = "Barcelona Dragons"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 catalogue for Harbor Lights as a title? ### Context: CREATE TABLE table_name_59 (catalogue VARCHAR, song_title VARCHAR) ### Response: ### Response: SELECT catalogue FROM table_name_59 WHERE song_title = "harbor lights"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Peter Jacobsen's Place? ### Context: CREATE TABLE table_name_8 (place VARCHAR, player VARCHAR) ### Response: ### Response: SELECT place FROM table_name_8 WHERE player = "peter jacobsen"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 the year 1999? ### Context: CREATE TABLE table_name_56 (result VARCHAR, year VARCHAR) ### Response: ### Response: SELECT result FROM table_name_56 WHERE year = 1999</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What team was the opponent in the 2008–09 season, with a final score of 2–3 l? ### Context: CREATE TABLE table_name_43 (opponent VARCHAR, season VARCHAR, final_score VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_43 WHERE season = "2008–09" AND final_score = "2–3 l"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 College/Junior/Club Team that has the Position of defence, and the Nationality of czechoslovakia? ### Context: CREATE TABLE table_name_58 (college_junior_club_team VARCHAR, position VARCHAR, nationality VARCHAR) ### Response: ### Response: SELECT college_junior_club_team FROM table_name_58 WHERE position = "defence" AND nationality = "czechoslovakia"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Laps have a Grid larger than 8, and a Rider of anthony west? ### Context: CREATE TABLE table_name_60 (laps INTEGER, grid VARCHAR, rider VARCHAR) ### Response: ### Response: SELECT MAX(laps) FROM table_name_60 WHERE grid > 8 AND rider = "anthony west"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 community with a wind power of 1042? ### Context: CREATE TABLE table_13566548_1 (autonomous_community VARCHAR, wind_power VARCHAR) ### Response: ### Response: SELECT autonomous_community FROM table_13566548_1 WHERE wind_power = 1042</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Regular Season has a Division of 4? ### Context: CREATE TABLE table_name_19 (regular_season VARCHAR, division VARCHAR) ### Response: ### Response: SELECT regular_season FROM table_name_19 WHERE division = 4</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who had a best time of 1:00.870? ### Context: CREATE TABLE table_name_24 (name VARCHAR, best VARCHAR) ### Response: ### Response: SELECT name FROM table_name_24 WHERE best = "1:00.870"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Return the ids of all products that were ordered more than three times or supplied more than 80000. ### Context: CREATE TABLE Order_Items (product_id VARCHAR, total_amount_purchased INTEGER); CREATE TABLE Product_Suppliers (product_id VARCHAR, total_amount_purchased INTEGER) ### Response: ### Response: SELECT product_id FROM Order_Items GROUP BY product_id HAVING COUNT(*) > 3 UNION SELECT product_id FROM Product_Suppliers GROUP BY product_id HAVING SUM(total_amount_purchased) > 80000</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 win percentage when 2011 shows 1r in the Paris tournament? ### Context: CREATE TABLE table_name_95 (win__percentage VARCHAR, tournament VARCHAR) ### Response: ### Response: SELECT win__percentage FROM table_name_95 WHERE 2011 = "1r" AND tournament = "paris"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 events did not have any participants? ### Context: CREATE TABLE EVENTS (event_id VARCHAR); CREATE TABLE Participants_in_Events (event_id VARCHAR) ### Response: ### Response: SELECT COUNT(*) FROM EVENTS WHERE NOT event_id IN (SELECT event_id FROM Participants_in_Events)</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: If the qatari female is 918, what is the total number of females? ### Context: CREATE TABLE table_26214389_3 (total_female VARCHAR, qatari_female VARCHAR) ### Response: ### Response: SELECT total_female FROM table_26214389_3 WHERE qatari_female = 918</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 command set with FDD capacity of 270kb and sides of ds with #FDD more than 1 ### Context: CREATE TABLE table_name_35 (command_set VARCHAR, _number_fdd VARCHAR, fdd_capacity__each_ VARCHAR, sides VARCHAR) ### Response: ### Response: SELECT command_set FROM table_name_35 WHERE fdd_capacity__each_ = "270kb" AND sides = "ds" AND _number_fdd > 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: Where was the GTE Suncoast Classic tournament held? ### Context: CREATE TABLE table_11622562_1 (location VARCHAR, tournament VARCHAR) ### Response: ### Response: SELECT location FROM table_11622562_1 WHERE tournament = "GTE Suncoast Classic"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 part 4 for the verb whose part 3 is borgen? ### Context: CREATE TABLE table_1745843_7 (part_4 VARCHAR, part_3 VARCHAR) ### Response: ### Response: SELECT part_4 FROM table_1745843_7 WHERE part_3 = "borgen"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 unit price of all the tracks? ### Context: CREATE TABLE TRACK (UnitPrice INTEGER) ### Response: ### Response: SELECT AVG(UnitPrice) FROM TRACK</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 laps were there in grid 21? ### Context: CREATE TABLE table_name_80 (laps VARCHAR, grid VARCHAR) ### Response: ### Response: SELECT laps FROM table_name_80 WHERE grid = "21"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the result when the date is August 27, 1980? ### Context: CREATE TABLE table_name_11 (result VARCHAR, date VARCHAR) ### Response: ### Response: SELECT result FROM table_name_11 WHERE date = "august 27, 1980"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 points for year more than 1987 ### Context: CREATE TABLE table_name_56 (points VARCHAR, year INTEGER) ### Response: ### Response: SELECT points FROM table_name_56 WHERE year > 1987</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 segment C of the episode where segment B is Film Digitization? ### Context: CREATE TABLE table_15187735_19 (segment_c VARCHAR, segment_b VARCHAR) ### Response: ### Response: SELECT segment_c FROM table_15187735_19 WHERE segment_b = "Film Digitization"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Chinese name of the Eliminated player from Singapore in Index f9? ### Context: CREATE TABLE table_name_51 (Chinese VARCHAR, index VARCHAR, status VARCHAR, country VARCHAR) ### Response: ### Response: SELECT Chinese AS name FROM table_name_51 WHERE status = "eliminated" AND country = "singapore" AND index = "f9"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 away team at Windy Hill? ### Context: CREATE TABLE table_name_69 (away_team VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT away_team FROM table_name_69 WHERE venue = "windy hill"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the Attendance 75,891? ### Context: CREATE TABLE table_name_77 (date VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT date FROM table_name_77 WHERE attendance = "75,891"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Tallangatta DFL losses greater than 2 and an against greater than 1013 ### Context: CREATE TABLE table_name_49 (tallangatta_dfl VARCHAR, against VARCHAR, losses VARCHAR) ### Response: ### Response: SELECT tallangatta_dfl FROM table_name_49 WHERE against > 1013 AND losses > 2</s>