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 average price for products? ### Context: CREATE TABLE Products (Product_Price INTEGER) ### Response: ### Response: SELECT AVG(Product_Price) FROM Products</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name trofeo fast team with young rider classification of francesco casagrande and stage of 10 ### Context: CREATE TABLE table_name_55 (trofeo_fast_team VARCHAR, young_rider_classification VARCHAR, stage VARCHAR) ### Response: ### Response: SELECT trofeo_fast_team FROM table_name_55 WHERE young_rider_classification = "francesco casagrande" AND stage = "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: When was Pablo Andújar the opponent? ### Context: CREATE TABLE table_name_38 (date VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT date FROM table_name_38 WHERE opponent = "pablo andújar"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What Driver has 1 in Grid? ### Context: CREATE TABLE table_name_98 (driver VARCHAR, grid VARCHAR) ### Response: ### Response: SELECT driver FROM table_name_98 WHERE 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: Which Top-10 has a Cuts made of 10, and a Top-5 larger than 1? ### Context: CREATE TABLE table_name_95 (top_10 INTEGER, cuts_made VARCHAR, top_5 VARCHAR) ### Response: ### Response: SELECT MIN(top_10) FROM table_name_95 WHERE cuts_made = 10 AND top_5 > 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Date had an Outcome of runner-up, and a Surface of carpet? ### Context: CREATE TABLE table_name_85 (date VARCHAR, outcome VARCHAR, surface VARCHAR) ### Response: ### Response: SELECT date FROM table_name_85 WHERE outcome = "runner-up" AND surface = "carpet"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 model(s) has AGP graphics and 400 FSB (MHz)? ### Context: CREATE TABLE table_name_44 (model VARCHAR, graphics VARCHAR, fsb__mhz_ VARCHAR) ### Response: ### Response: SELECT model FROM table_name_44 WHERE graphics = "agp" AND fsb__mhz_ = "400"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 First has Bats of r, and Throws of l, and a DOB of 12 october 1977? ### Context: CREATE TABLE table_name_86 (first VARCHAR, dob VARCHAR, bats VARCHAR, throws VARCHAR) ### Response: ### Response: SELECT first FROM table_name_86 WHERE bats = "r" AND throws = "l" AND dob = "12 october 1977"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the game number when the game was against phoenix? ### Context: CREATE TABLE table_name_83 (game VARCHAR, team VARCHAR) ### Response: ### Response: SELECT game FROM table_name_83 WHERE team = "phoenix"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of the airport names contains the word 'international'? ### Context: CREATE TABLE airport (name VARCHAR) ### Response: ### Response: SELECT name FROM airport WHERE name LIKE '%international%'</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 countries has more than 2 car makers ? ### Context: CREATE TABLE car_makers (country VARCHAR); CREATE TABLE countries (countryid VARCHAR) ### Response: ### Response: SELECT COUNT(*) FROM countries AS t1 JOIN car_makers AS t2 ON t1.countryid = t2.country GROUP BY t1.countryid HAVING COUNT(*) > 2</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What game number was the first game played at the Summit this season? ### Context: CREATE TABLE table_name_25 (game INTEGER, location VARCHAR) ### Response: ### Response: SELECT MIN(game) FROM table_name_25 WHERE location = "the summit"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What sport happened at Wildcat Stadium? ### Context: CREATE TABLE table_name_3 (sport VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT sport FROM table_name_3 WHERE venue = "wildcat stadium"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 you get a ranking as major in the english military then what would the spanish military address you as? ### Context: CREATE TABLE table_1015521_2 (rank_in_spanish VARCHAR, rank_in_english VARCHAR) ### Response: ### Response: SELECT rank_in_spanish FROM table_1015521_2 WHERE rank_in_english = "Major"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 College had an Overall pick of 171? ### Context: CREATE TABLE table_name_53 (college VARCHAR, overall VARCHAR) ### Response: ### Response: SELECT college FROM table_name_53 WHERE overall = 171</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 location in 2009? ### Context: CREATE TABLE table_name_50 (location VARCHAR, year VARCHAR) ### Response: ### Response: SELECT location FROM table_name_50 WHERE year = "2009"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Result of the game on September 1, 1996? ### Context: CREATE TABLE table_name_56 (result VARCHAR, date VARCHAR) ### Response: ### Response: SELECT result FROM table_name_56 WHERE date = "september 1, 1996"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 total that has under 3 golds, more than 0 silvers and bronzes? ### Context: CREATE TABLE table_name_36 (total INTEGER, silver VARCHAR, gold VARCHAR, bronze VARCHAR) ### Response: ### Response: SELECT MIN(total) FROM table_name_36 WHERE gold < 3 AND bronze > 0 AND silver > 0</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many distinct students are enrolled in courses? ### Context: CREATE TABLE Student_Course_Enrolment (student_id VARCHAR) ### Response: ### Response: SELECT COUNT(DISTINCT student_id) FROM Student_Course_Enrolment</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 for the 2012 of olympic games? ### Context: CREATE TABLE table_name_19 (win__percentage VARCHAR) ### Response: ### Response: SELECT win__percentage FROM table_name_19 WHERE 2012 = "olympic games"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What did the home team score at Princes Park? ### Context: CREATE TABLE table_name_15 (home_team VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT home_team AS score FROM table_name_15 WHERE venue = "princes park"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How much Gold has a Bronze larger than 1, and a Silver larger than 2? ### Context: CREATE TABLE table_name_38 (gold VARCHAR, bronze VARCHAR, silver VARCHAR) ### Response: ### Response: SELECT COUNT(gold) FROM table_name_38 WHERE bronze > 1 AND silver > 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 got 59.486 for Qual 2? ### Context: CREATE TABLE table_name_15 (name VARCHAR, qual_2 VARCHAR) ### Response: ### Response: SELECT name FROM table_name_15 WHERE qual_2 = "59.486"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 of the winning team in Iowa, for softball? ### Context: CREATE TABLE table_name_24 (series VARCHAR, winning_team VARCHAR, sport VARCHAR) ### Response: ### Response: SELECT series FROM table_name_24 WHERE winning_team = "iowa" AND sport = "softball"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Points, when Games is greater than 20, and when Team is Partizan Belgrade? ### Context: CREATE TABLE table_name_30 (points INTEGER, games VARCHAR, team VARCHAR) ### Response: ### Response: SELECT MIN(points) FROM table_name_30 WHERE games > 20 AND team = "partizan belgrade"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Event, when Date is "19 December 2009"? ### Context: CREATE TABLE table_name_6 (event VARCHAR, date VARCHAR) ### Response: ### Response: SELECT event FROM table_name_6 WHERE date = "19 december 2009"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What lost has a position greater than 2, a drawn greater than 0, with an against greater than 15? ### Context: CREATE TABLE table_name_24 (lost VARCHAR, against VARCHAR, position VARCHAR, drawn VARCHAR) ### Response: ### Response: SELECT lost FROM table_name_24 WHERE position > 2 AND drawn > 0 AND against > 15</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 human gene that has a mouse ortholog of LIG1? ### Context: CREATE TABLE table_name_27 (human_gene__protein_ VARCHAR, mouse_ortholog VARCHAR) ### Response: ### Response: SELECT human_gene__protein_ FROM table_name_27 WHERE mouse_ortholog = "lig1"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What Year has a Rank of 12.0 12? ### Context: CREATE TABLE table_name_52 (year INTEGER, rank VARCHAR) ### Response: ### Response: SELECT AVG(year) FROM table_name_52 WHERE rank = "12.0 12"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the years in orlando for penn state ### Context: CREATE TABLE table_15621965_1 (years_in_orlando VARCHAR, school_club_team VARCHAR) ### Response: ### Response: SELECT years_in_orlando FROM table_15621965_1 WHERE school_club_team = "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: What was the highest rank for rowers who represented Denmark? ### Context: CREATE TABLE table_name_94 (rank INTEGER, country VARCHAR) ### Response: ### Response: SELECT MAX(rank) FROM table_name_94 WHERE country = "denmark"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 essendon was the home team? ### Context: CREATE TABLE table_name_75 (home_team VARCHAR) ### Response: ### Response: SELECT home_team AS score FROM table_name_75 WHERE home_team = "essendon"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the player with score of 74-68-71=213 ### Context: CREATE TABLE table_name_4 (player VARCHAR, score VARCHAR) ### Response: ### Response: SELECT player FROM table_name_4 WHERE score = 74 - 68 - 71 = 213</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 document id and name with greatest number of paragraphs? ### 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 FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_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: What is the maximum home attendance if the average is 11,322? ### Context: CREATE TABLE table_26816495_26 (home_att INTEGER, avg VARCHAR) ### Response: ### Response: SELECT MAX(home_att) FROM table_26816495_26 WHERE avg = "11,322"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 of the University of Montana, which was founded after 1890? ### Context: CREATE TABLE table_name_23 (location VARCHAR, founded VARCHAR, institution VARCHAR) ### Response: ### Response: SELECT location FROM table_name_23 WHERE founded > 1890 AND institution = "university of montana"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Res has a Method of decision (unanimous) and an Opponent of Wataru Sakata? ### Context: CREATE TABLE table_name_10 (res VARCHAR, method VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT res FROM table_name_10 WHERE method = "decision (unanimous)" AND opponent = "wataru sakata"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the average points that Centro Asegurador earned with the McLaren M23 chassis? ### Context: CREATE TABLE table_name_3 (points INTEGER, chassis VARCHAR, entrant VARCHAR) ### Response: ### Response: SELECT AVG(points) FROM table_name_3 WHERE chassis = "mclaren m23" AND entrant = "centro asegurador"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 June 14, what was the winning score by the Devil rays in pro player stadium? ### Context: CREATE TABLE table_name_30 (score VARCHAR, date VARCHAR, venue VARCHAR, winning_team VARCHAR) ### Response: ### Response: SELECT score FROM table_name_30 WHERE venue = "pro player stadium" AND winning_team = "devil rays" AND date = "june 14"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What championships were played on clay and the opponent was virginia ruano pascual paola suárez? ### Context: CREATE TABLE table_24638867_4 (championship VARCHAR, surface VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT championship FROM table_24638867_4 WHERE surface = "Clay" AND opponent = "Virginia Ruano Pascual Paola Suárez"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 competition that was played in Zurich? ### Context: CREATE TABLE table_name_96 (competition VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT competition FROM table_name_96 WHERE venue = "zurich"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the rank # of the swimmer in Lane 5? ### Context: CREATE TABLE table_name_21 (rank VARCHAR, lane VARCHAR) ### Response: ### Response: SELECT COUNT(rank) FROM table_name_21 WHERE lane = 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: How many laps were driven in 2009? ### Context: CREATE TABLE table_2175858_1 (laps VARCHAR, year VARCHAR) ### Response: ### Response: SELECT laps FROM table_2175858_1 WHERE year = 2009</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many sets were played in 2007 at the tournament that had 4R in 2011 and 2R in 2009? ### Context: CREATE TABLE table_name_89 (Id VARCHAR) ### Response: ### Response: SELECT 2007 FROM table_name_89 WHERE 2011 = "4r" AND 2009 = "2r"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 we two when the case/suffix is loc.? ### Context: CREATE TABLE table_1015914_24 (we_two VARCHAR, case_suffix VARCHAR) ### Response: ### Response: SELECT we_two FROM table_1015914_24 WHERE case_suffix = "loc."</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 assists did the player who played 195 minutes make ### Context: CREATE TABLE table_19722233_5 (assists VARCHAR, minutes VARCHAR) ### Response: ### Response: SELECT assists FROM table_19722233_5 WHERE minutes = 195</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What college did the defensive back attend? ### Context: CREATE TABLE table_14650162_1 (college VARCHAR, position VARCHAR) ### Response: ### Response: SELECT college FROM table_14650162_1 WHERE position = "Defensive Back"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which examples ask the existential question "Can I Love?" ### Context: CREATE TABLE table_1058787_1 (examples VARCHAR, existential_question_ VARCHAR, _not_in_citation_given_ VARCHAR) ### Response: ### Response: SELECT examples FROM table_1058787_1 WHERE existential_question_[_not_in_citation_given_] = "Can I Love?"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Miss Waters has Canada had? ### Context: CREATE TABLE table_30008638_1 (miss_water INTEGER, country_territory VARCHAR) ### Response: ### Response: SELECT MAX(miss_water) FROM table_30008638_1 WHERE country_territory = "Canada"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 tournament had a winning score of 67-61-68-67=263? ### Context: CREATE TABLE table_name_96 (tournament VARCHAR, winning_score VARCHAR) ### Response: ### Response: SELECT tournament FROM table_name_96 WHERE winning_score = 67 - 61 - 68 - 67 = 263</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 event had Carlos Alexandre Pereira as opponent? ### Context: CREATE TABLE table_name_55 (event VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT event FROM table_name_55 WHERE opponent = "carlos alexandre pereira"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 canton of grande dixence? ### Context: CREATE TABLE table_10020178_1 (canton VARCHAR, name VARCHAR) ### Response: ### Response: SELECT canton FROM table_10020178_1 WHERE name = "Grande Dixence"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 driver had an accident and laps smaller than 53? ### Context: CREATE TABLE table_name_82 (driver VARCHAR, laps VARCHAR, time_retired VARCHAR) ### Response: ### Response: SELECT driver FROM table_name_82 WHERE laps < 53 AND time_retired = "accident"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the lowest number of goals joe keenan, who has more than 1 assists, had in 2007/08? ### Context: CREATE TABLE table_name_84 (goals INTEGER, assists VARCHAR, years VARCHAR, name VARCHAR) ### Response: ### Response: SELECT MIN(goals) FROM table_name_84 WHERE years = "2007/08" AND name = "joe keenan" AND assists > 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 Year did not qualify for Playoffs, and had a Division smaller than 3? ### Context: CREATE TABLE table_name_97 (the_year INTEGER, playoffs VARCHAR, division VARCHAR) ### Response: ### Response: SELECT SUM(the_year) FROM table_name_97 WHERE playoffs = "did not qualify" AND division < 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 date of the game against Oakland Raiders? ### Context: CREATE TABLE table_name_86 (date VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT date FROM table_name_86 WHERE opponent = "oakland raiders"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the attendance when Collingwood was the away team? ### Context: CREATE TABLE table_name_45 (crowd INTEGER, away_team VARCHAR) ### Response: ### Response: SELECT MIN(crowd) FROM table_name_45 WHERE away_team = "collingwood"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 record when the event is shido usa mma and the opponent is raphael assunção? ### Context: CREATE TABLE table_name_24 (record VARCHAR, event VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT record FROM table_name_24 WHERE event = "shido usa mma" AND opponent = "raphael assunção"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 ratkovo is the settlement what is the cyrllic name other names? ### Context: CREATE TABLE table_2562572_25 (cyrillic_name_other_names VARCHAR, settlement VARCHAR) ### Response: ### Response: SELECT cyrillic_name_other_names FROM table_2562572_25 WHERE settlement = "Ratkovo"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 away team at Melbourne's home game? ### Context: CREATE TABLE table_name_62 (away_team VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT away_team FROM table_name_62 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: Who was the opponent in week 13? ### Context: CREATE TABLE table_name_25 (opponent VARCHAR, week VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_25 WHERE week = 13</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who had the most rebounds when the team record was 15-27? ### Context: CREATE TABLE table_23285805_6 (high_rebounds VARCHAR, record VARCHAR) ### Response: ### Response: SELECT high_rebounds FROM table_23285805_6 WHERE record = "15-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: Which airport has SEB as its IATA code? ### Context: CREATE TABLE table_name_86 (airport VARCHAR, iata VARCHAR) ### Response: ### Response: SELECT airport FROM table_name_86 WHERE iata = "seb"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 dar for 912 ### Context: CREATE TABLE table_15887683_17 (dar VARCHAR, n° VARCHAR) ### Response: ### Response: SELECT dar FROM table_15887683_17 WHERE n° = 912</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What episode number had a cable ranking of 8? ### Context: CREATE TABLE table_24399615_4 (episode_no INTEGER, cable_rank VARCHAR) ### Response: ### Response: SELECT MIN(episode_no) FROM table_24399615_4 WHERE cable_rank = "8"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who is the Constructor for driver Piercarlo Ghinzani and a Ford cosworth dfv 3.0 v8 engine? ### Context: CREATE TABLE table_name_42 (constructor VARCHAR, driver VARCHAR, engine VARCHAR) ### Response: ### Response: SELECT constructor FROM table_name_42 WHERE driver = "piercarlo ghinzani" AND engine = "ford cosworth dfv 3.0 v8"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the total number of Total, when To Par is 12? ### Context: CREATE TABLE table_name_71 (total VARCHAR, to_par VARCHAR) ### Response: ### Response: SELECT COUNT(total) FROM table_name_71 WHERE to_par = 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: Which 2007 has a 2010 of A, and a 2006 of lq? ### Context: CREATE TABLE table_name_18 (Id VARCHAR) ### Response: ### Response: SELECT 2007 FROM table_name_18 WHERE 2010 = "a" AND 2006 = "lq"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 unemployment rate for wayne county? ### Context: CREATE TABLE table_22815568_13 (unemployment_rate VARCHAR, county VARCHAR) ### Response: ### Response: SELECT unemployment_rate FROM table_22815568_13 WHERE county = "Wayne"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What competition had a Rank-Qualifying of 1st and a ball apparatus? ### Context: CREATE TABLE table_name_94 (competition_description VARCHAR, rank_qualifying VARCHAR, apparatus VARCHAR) ### Response: ### Response: SELECT competition_description FROM table_name_94 WHERE rank_qualifying = "1st" AND apparatus = "ball"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 average Position for which the amount Drawn was less than 0? ### Context: CREATE TABLE table_name_88 (position INTEGER, drawn INTEGER) ### Response: ### Response: SELECT AVG(position) FROM table_name_88 WHERE drawn < 0</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what is the geo id when the longitude is -98.435797 and the land (sqmi) is less than 36.039? ### Context: CREATE TABLE table_name_1 (geo_id INTEGER, longitude VARCHAR, land___sqmi__ VARCHAR) ### Response: ### Response: SELECT MAX(geo_id) FROM table_name_1 WHERE longitude = -98.435797 AND land___sqmi__ < 36.039</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What artist's song was performed in the week with theme of Billboard #1? ### Context: CREATE TABLE table_name_89 (artist VARCHAR, theme VARCHAR) ### Response: ### Response: SELECT artist FROM table_name_89 WHERE theme = "billboard #1"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the score for the game against Houston? ### Context: CREATE TABLE table_23285761_10 (score VARCHAR, team VARCHAR) ### Response: ### Response: SELECT score FROM table_23285761_10 WHERE team = "Houston"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 latest week that had a game on November 18, 1951? ### Context: CREATE TABLE table_name_91 (week INTEGER, date VARCHAR) ### Response: ### Response: SELECT MAX(week) FROM table_name_91 WHERE date = "november 18, 1951"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the highest round for the pick from Finland? ### Context: CREATE TABLE table_name_55 (round INTEGER, nationality VARCHAR) ### Response: ### Response: SELECT MAX(round) FROM table_name_55 WHERE nationality = "finland"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 a Location of Philadelphia Spectrum and a Date of April 1? ### Context: CREATE TABLE table_name_80 (game VARCHAR, location VARCHAR, date VARCHAR) ### Response: ### Response: SELECT game FROM table_name_80 WHERE location = "philadelphia spectrum" AND date = "april 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: Name the opponents for game 5 ### Context: CREATE TABLE table_21091145_1 (opponents VARCHAR, game VARCHAR) ### Response: ### Response: SELECT opponents FROM table_21091145_1 WHERE game = 5</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the national share of Guizhou's administrative division? ### Context: CREATE TABLE table_171666_1 (national_share___percentage_ VARCHAR, administrative_division VARCHAR) ### Response: ### Response: SELECT national_share___percentage_ FROM table_171666_1 WHERE administrative_division = "Guizhou"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the result when incumbent Tom Steed was elected? ### Context: CREATE TABLE table_1342198_36 (result VARCHAR, incumbent VARCHAR) ### Response: ### Response: SELECT result FROM table_1342198_36 WHERE incumbent = "Tom Steed"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 3 where weightlifter is m. van der goten ( bel ) ### Context: CREATE TABLE table_16779068_5 (weightlifter VARCHAR) ### Response: ### Response: SELECT 3 FROM table_16779068_5 WHERE weightlifter = "M. Van der Goten ( BEL )"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Margin has a Winning score of –7 (71-72-67-71=281)? ### Context: CREATE TABLE table_name_26 (margin VARCHAR, winning_score VARCHAR) ### Response: ### Response: SELECT margin FROM table_name_26 WHERE winning_score = –7(71 - 72 - 67 - 71 = 281)</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 constituency edinburgh northern and leith? ### Context: CREATE TABLE table_name_20 (swing_to_gain VARCHAR, constituency VARCHAR) ### Response: ### Response: SELECT COUNT(swing_to_gain) FROM table_name_20 WHERE constituency = "edinburgh northern and leith"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 songwriter for track number 12 ### Context: CREATE TABLE table_name_60 (songwriter_s_ VARCHAR, track_number VARCHAR) ### Response: ### Response: SELECT songwriter_s_ FROM table_name_60 WHERE track_number = 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 was on may 14 ### Context: CREATE TABLE table_name_53 (series VARCHAR, date VARCHAR) ### Response: ### Response: SELECT series FROM table_name_53 WHERE date = "may 14"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the lowest number of games played for deportivo español? ### Context: CREATE TABLE table_14460085_3 (played INTEGER, team VARCHAR) ### Response: ### Response: SELECT MIN(played) FROM table_14460085_3 WHERE team = "Deportivo Español"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 shortest Time for David Neville when his React time was greater than 0.183? ### Context: CREATE TABLE table_name_35 (time INTEGER, react VARCHAR, athlete VARCHAR) ### Response: ### Response: SELECT MIN(time) FROM table_name_35 WHERE react > 0.183 AND athlete = "david neville"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 results of those matches where the championship is French Open? ### Context: CREATE TABLE table_29163303_2 (score VARCHAR, championship VARCHAR) ### Response: ### Response: SELECT score FROM table_29163303_2 WHERE championship = "French Open"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Original Title, when Director is "Ting Shan-Si", and when Film Title Used In Nomination is "The 800 Heroes"? ### Context: CREATE TABLE table_name_73 (original_title VARCHAR, director VARCHAR, film_title_used_in_nomination VARCHAR) ### Response: ### Response: SELECT original_title FROM table_name_73 WHERE director = "ting shan-si" AND film_title_used_in_nomination = "the 800 heroes"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When the percent is larger than 0.685, what is the average number of points scored? ### Context: CREATE TABLE table_name_61 (points INTEGER, pct__percentage INTEGER) ### Response: ### Response: SELECT AVG(points) FROM table_name_61 WHERE pct__percentage > 0.685</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 total goals scored for players with under 171 league appearances, 151 total appearances, and the DF position? ### Context: CREATE TABLE table_name_3 (total_goals INTEGER, position VARCHAR, league_apps VARCHAR, total_apps VARCHAR) ### Response: ### Response: SELECT MIN(total_goals) FROM table_name_3 WHERE league_apps < 171 AND total_apps = 151 AND position = "df"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 ratings that has more than 3 stars? ### Context: CREATE TABLE Rating (stars INTEGER) ### Response: ### Response: SELECT COUNT(*) FROM Rating WHERE stars > 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 primary conferences were held in Allendale, Michigan? ### Context: CREATE TABLE table_27361255_1 (primary_conference VARCHAR, location VARCHAR) ### Response: ### Response: SELECT COUNT(primary_conference) FROM table_27361255_1 WHERE location = "Allendale, Michigan"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 number of students in one classroom. ### Context: CREATE TABLE list (classroom VARCHAR) ### Response: ### Response: SELECT COUNT(*), classroom FROM list GROUP BY classroom</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 round 10's nationality? ### Context: CREATE TABLE table_name_55 (nationality VARCHAR, round VARCHAR) ### Response: ### Response: SELECT nationality FROM table_name_55 WHERE round = 10</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the venue of the game on 27 April 1964? ### Context: CREATE TABLE table_name_33 (venue VARCHAR, date VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_33 WHERE date = "27 april 1964"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Find the pixels of the screen modes that are used by both phones with full accreditation types and phones with Provisional accreditation types. ### Context: CREATE TABLE phone (screen_mode VARCHAR, Accreditation_type VARCHAR); CREATE TABLE screen_mode (pixels VARCHAR, Graphics_mode VARCHAR) ### Response: ### Response: SELECT t1.pixels FROM screen_mode AS t1 JOIN phone AS t2 ON t1.Graphics_mode = t2.screen_mode WHERE t2.Accreditation_type = 'Provisional' INTERSECT SELECT t1.pixels FROM screen_mode AS t1 JOIN phone AS t2 ON t1.Graphics_mode = t2.screen_mode WHERE t2.Accreditation_type = 'Full'</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: at the area of 113.12, what was the population? ### Context: CREATE TABLE table_170961_2 (population VARCHAR, area_km_2 VARCHAR) ### Response: ### Response: SELECT population FROM table_170961_2 WHERE area_km_2 = "113.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: How many were the show's average weekly ranking when it reached No. 2 in average nightly ranking? ### Context: CREATE TABLE table_15358729_6 (average_weekly_rank VARCHAR, average_nightly_rank VARCHAR) ### Response: ### Response: SELECT COUNT(average_weekly_rank) FROM table_15358729_6 WHERE average_nightly_rank = "No. 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: Driver at larger than 10 with a Q1 of 18. ### Context: CREATE TABLE table_name_28 (driver VARCHAR, q1_order VARCHAR, q1_pos VARCHAR) ### Response: ### Response: SELECT driver FROM table_name_28 WHERE q1_order > 10 AND q1_pos = 18</s>