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 party did the incumbent of the Arkansas 6 district belong to? ### Context: CREATE TABLE table_1342249_5 (party VARCHAR, district VARCHAR) ### Response: ### Response: SELECT party FROM table_1342249_5 WHERE district = "Arkansas 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: How many games were played against the Chicago Bears? ### Context: CREATE TABLE table_14966537_1 (record VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT COUNT(record) FROM table_14966537_1 WHERE opponent = "Chicago Bears"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 reasons are there for the change in Connecticut (3)? ### Context: CREATE TABLE table_18563954_3 (reason_for_change VARCHAR, state__class_ VARCHAR) ### Response: ### Response: SELECT COUNT(reason_for_change) FROM table_18563954_3 WHERE state__class_ = "Connecticut (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 is Result, when Date is "November 22"? ### Context: CREATE TABLE table_name_32 (result VARCHAR, date VARCHAR) ### Response: ### Response: SELECT result FROM table_name_32 WHERE date = "november 22"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What day did Footscray play as the home team? ### Context: CREATE TABLE table_name_20 (date VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT date FROM table_name_20 WHERE home_team = "footscray"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 high total for nations with 1 gold and over 1 bronze? ### Context: CREATE TABLE table_name_55 (total INTEGER, gold VARCHAR, bronze VARCHAR) ### Response: ### Response: SELECT MAX(total) FROM table_name_55 WHERE gold = 1 AND bronze > 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 College did Player Dorian Finney-Smith play for? ### Context: CREATE TABLE table_name_68 (college VARCHAR, player VARCHAR) ### Response: ### Response: SELECT college FROM table_name_68 WHERE player = "dorian finney-smith"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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, when Event is RITC 89 - Triple Main Event 89? ### Context: CREATE TABLE table_name_59 (round VARCHAR, event VARCHAR) ### Response: ### Response: SELECT round FROM table_name_59 WHERE event = "ritc 89 - triple main event 89"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 did they play the pittsburgh penguins? ### Context: CREATE TABLE table_27501030_8 (march VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT COUNT(march) FROM table_27501030_8 WHERE opponent = "Pittsburgh Penguins"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Team, when the Year is 2011? ### Context: CREATE TABLE table_name_14 (team VARCHAR, year VARCHAR) ### Response: ### Response: SELECT team FROM table_name_14 WHERE year = "2011"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 attendance at Memorial Stadium on December 12, 1965? ### Context: CREATE TABLE table_name_51 (attendance INTEGER, game_site VARCHAR, date VARCHAR) ### Response: ### Response: SELECT MAX(attendance) FROM table_name_51 WHERE game_site = "memorial stadium" AND date = "december 12, 1965"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 manager of the Stenhousemuir club? ### Context: CREATE TABLE table_name_16 (manager VARCHAR, club VARCHAR) ### Response: ### Response: SELECT manager FROM table_name_16 WHERE club = "stenhousemuir"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Show the names of companies and of employees. ### Context: CREATE TABLE company (Name VARCHAR, Company_ID VARCHAR); CREATE TABLE employment (People_ID VARCHAR, Company_ID VARCHAR); CREATE TABLE people (Name VARCHAR, People_ID VARCHAR) ### Response: ### Response: SELECT T3.Name, T2.Name FROM employment AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID JOIN company AS T3 ON T1.Company_ID = T3.Company_ID</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is Date, when Runner(s)-Up is Jonathan Kaye? ### Context: CREATE TABLE table_name_18 (date VARCHAR, runner_s__up VARCHAR) ### Response: ### Response: SELECT date FROM table_name_18 WHERE runner_s__up = "jonathan kaye"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Title, when the Lyricist(s) is Yarosake, and when the Composer(s) is Yarosake? ### Context: CREATE TABLE table_name_69 (title VARCHAR, lyricist_s_ VARCHAR, composer_s_ VARCHAR) ### Response: ### Response: SELECT title FROM table_name_69 WHERE lyricist_s_ = "yarosake" AND composer_s_ = "yarosake"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 3 players won the most player awards? List their full name and id. ### Context: CREATE TABLE player (name_first VARCHAR, name_last VARCHAR, player_id VARCHAR); CREATE TABLE player_award (player_id VARCHAR) ### Response: ### Response: SELECT T1.name_first, T1.name_last, T1.player_id FROM player AS T1 JOIN player_award AS T2 ON T1.player_id = T2.player_id GROUP BY T1.player_id ORDER BY COUNT(*) DESC LIMIT 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 is the average year when the title is baka to test to shōkanjū? ### Context: CREATE TABLE table_name_89 (year INTEGER, title VARCHAR) ### Response: ### Response: SELECT AVG(year) FROM table_name_89 WHERE title = "baka to test to shōkanjū"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Whose WSOP earnings were $36,372? ### Context: CREATE TABLE table_23696862_6 (name VARCHAR, wsop_earnings VARCHAR) ### Response: ### Response: SELECT name FROM table_23696862_6 WHERE wsop_earnings = "$36,372"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which film was Eddie Murphy nominated for? ### Context: CREATE TABLE table_name_19 (film VARCHAR, winner_nominee_s_ VARCHAR, result VARCHAR) ### Response: ### Response: SELECT film FROM table_name_19 WHERE winner_nominee_s_ = "eddie murphy" AND result = "nominated"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 highest revenue for schalke 04 with rank less than 10 ### Context: CREATE TABLE table_name_44 (revenue__ INTEGER, team VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT MAX(revenue__) AS $m_ FROM table_name_44 WHERE team = "schalke 04" AND rank < 10</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the record of the buccaneers on December 4, 1983? ### Context: CREATE TABLE table_name_9 (record VARCHAR, date VARCHAR) ### Response: ### Response: SELECT record FROM table_name_9 WHERE date = "december 4, 1983"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What country placed 3? ### Context: CREATE TABLE table_name_16 (country VARCHAR, place VARCHAR) ### Response: ### Response: SELECT country FROM table_name_16 WHERE place = "3"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: In the 1936 summer Olympics what was the date of a match that ended with a score of 6-1? ### Context: CREATE TABLE table_name_33 (date VARCHAR, competition VARCHAR, score VARCHAR) ### Response: ### Response: SELECT date FROM table_name_33 WHERE competition = "1936 summer olympics" AND score = "6-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 lowest amount of field goals on the chart? ### Context: CREATE TABLE table_14342480_7 (field_goals INTEGER) ### Response: ### Response: SELECT MIN(field_goals) FROM table_14342480_7</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What were all Yachts with a sail number of 6952? ### Context: CREATE TABLE table_14882588_3 (yacht VARCHAR, sail_number VARCHAR) ### Response: ### Response: SELECT yacht FROM table_14882588_3 WHERE sail_number = "6952"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 colour with the regisration number of mg-509? ### Context: CREATE TABLE table_11066073_1 (colour VARCHAR, registration_no VARCHAR) ### Response: ### Response: SELECT COUNT(colour) FROM table_11066073_1 WHERE registration_no = "MG-509"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 method had Travis Fulton as an opponent? ### Context: CREATE TABLE table_name_68 (method VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT method FROM table_name_68 WHERE opponent = "travis fulton"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 were the MLB draft with the hometown Opa-locka, Fl? ### Context: CREATE TABLE table_11677100_12 (mlb_draft VARCHAR, hometown VARCHAR) ### Response: ### Response: SELECT mlb_draft FROM table_11677100_12 WHERE hometown = "Opa-locka, FL"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 week when the date is october 6, 1975 and attendance is higher than 79,384? ### Context: CREATE TABLE table_name_80 (week INTEGER, date VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT MAX(week) FROM table_name_80 WHERE date = "october 6, 1975" AND attendance > 79 OFFSET 384</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 value for oklahoma when texas is kennedy? ### Context: CREATE TABLE table_name_6 (oklahoma VARCHAR, texas VARCHAR) ### Response: ### Response: SELECT oklahoma FROM table_name_6 WHERE texas = "kennedy"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Opponents in the final have a Score of 4–6, 6–4, 2–6, 4–6? ### Context: CREATE TABLE table_name_18 (opponents_in_the_final VARCHAR, score VARCHAR) ### Response: ### Response: SELECT opponents_in_the_final FROM table_name_18 WHERE score = "4–6, 6–4, 2–6, 4–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 year did the team based in the city of Winamac join the conference? ### Context: CREATE TABLE table_name_6 (year_joined VARCHAR, city VARCHAR) ### Response: ### Response: SELECT year_joined FROM table_name_6 WHERE city = "winamac"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 distance for mjåkollen? ### Context: CREATE TABLE table_name_89 (distance VARCHAR, name VARCHAR) ### Response: ### Response: SELECT distance FROM table_name_89 WHERE name = "mjåkollen"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 airport with IATA code DAC? ### Context: CREATE TABLE table_name_10 (airport VARCHAR, iata VARCHAR) ### Response: ### Response: SELECT airport FROM table_name_10 WHERE iata = "dac"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the value for INT YDS, when the Team is New Orleans Saints, and when the value for Sacks is greater than 0, and when the vale for Solo is 71? ### Context: CREATE TABLE table_name_68 (int_yds VARCHAR, solo VARCHAR, team VARCHAR, sacks VARCHAR) ### Response: ### Response: SELECT int_yds FROM table_name_68 WHERE team = "new orleans saints" AND sacks > 0 AND solo = 71</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 outgoing manager who departed due to fc energie cottbus purchased rights? ### Context: CREATE TABLE table_name_80 (outgoing_manager VARCHAR, manner_of_departure VARCHAR) ### Response: ### Response: SELECT outgoing_manager FROM table_name_80 WHERE manner_of_departure = "fc energie cottbus purchased rights"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 losses when the goal difference was -8, and position is smaller than 10? ### Context: CREATE TABLE table_name_37 (losses VARCHAR, goal_difference VARCHAR, position VARCHAR) ### Response: ### Response: SELECT COUNT(losses) FROM table_name_37 WHERE goal_difference = -8 AND position < 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: how many countries have remittances in 2008 of 9.07? ### Context: CREATE TABLE table_2941963_1 (country VARCHAR, remittances_2008 VARCHAR) ### Response: ### Response: SELECT COUNT(country) FROM table_2941963_1 WHERE remittances_2008 = "9.07"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 for November 4, with a decision made by Denis? ### Context: CREATE TABLE table_name_10 (record VARCHAR, decision VARCHAR, date VARCHAR) ### Response: ### Response: SELECT record FROM table_name_10 WHERE decision = "denis" AND date = "november 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 are the candidates in the election in the Ohio 9 district? ### Context: CREATE TABLE table_1342218_35 (candidates VARCHAR, district VARCHAR) ### Response: ### Response: SELECT candidates FROM table_1342218_35 WHERE district = "Ohio 9"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is 1996 Grand Slam Tournament if 1994 is LQ and 1992 is 3R? ### Context: CREATE TABLE table_name_4 (Id VARCHAR) ### Response: ### Response: SELECT 1996 FROM table_name_4 WHERE 1994 = "lq" AND 1992 = "3r"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Chick Harbert's To par? ### Context: CREATE TABLE table_name_21 (to_par VARCHAR, player VARCHAR) ### Response: ### Response: SELECT to_par FROM table_name_21 WHERE player = "chick harbert"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Date has a Stadium of giants stadium, and a Week smaller than 13, and an Opponent of seattle seahawks? ### Context: CREATE TABLE table_name_79 (date VARCHAR, opponent VARCHAR, stadium VARCHAR, week VARCHAR) ### Response: ### Response: SELECT date FROM table_name_79 WHERE stadium = "giants stadium" AND week < 13 AND opponent = "seattle seahawks"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the Best of rodolfo lavín ### Context: CREATE TABLE table_name_12 (best VARCHAR, name VARCHAR) ### Response: ### Response: SELECT best FROM table_name_12 WHERE name = "rodolfo lavín"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 round in 1968? ### Context: CREATE TABLE table_name_43 (round VARCHAR, year VARCHAR) ### Response: ### Response: SELECT round FROM table_name_43 WHERE year = 1968</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what is the total number of nicknames for southwestern college? ### Context: CREATE TABLE table_262527_1 (nickname VARCHAR, institution VARCHAR) ### Response: ### Response: SELECT COUNT(nickname) FROM table_262527_1 WHERE institution = "Southwestern 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 was the first airdate with a viewership of 4.77 million? ### Context: CREATE TABLE table_17641206_4 (original_airdate VARCHAR, viewership VARCHAR) ### Response: ### Response: SELECT original_airdate FROM table_17641206_4 WHERE viewership = "4.77 million"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Opponent in the final of the match played on Clay Surface with a Score in the final of 4–6, 3–6? ### Context: CREATE TABLE table_name_9 (opponent_in_the_final VARCHAR, surface VARCHAR, score_in_the_final VARCHAR) ### Response: ### Response: SELECT opponent_in_the_final FROM table_name_9 WHERE surface = "clay" AND score_in_the_final = "4–6, 3–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 are all the people where the entries is peugeot sport polska ### Context: CREATE TABLE table_28046929_2 (driver VARCHAR, entrant VARCHAR) ### Response: ### Response: SELECT driver FROM table_28046929_2 WHERE entrant = "Peugeot Sport Polska"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 runner-up in 1990? ### Context: CREATE TABLE table_name_59 (runner_up VARCHAR, year VARCHAR) ### Response: ### Response: SELECT runner_up FROM table_name_59 WHERE year = 1990</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When did the earliest tournament happened? ### Context: CREATE TABLE table_27611593_5 (year INTEGER) ### Response: ### Response: SELECT MIN(year) FROM table_27611593_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 was the evening gown score for the woman who scored 7.600 (9) in her interview? ### Context: CREATE TABLE table_16323766_3 (evening_gown VARCHAR, interview VARCHAR) ### Response: ### Response: SELECT evening_gown FROM table_16323766_3 WHERE interview = "7.600 (9)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who were the sideline reporter(s) in 2011? ### Context: CREATE TABLE table_name_72 (sideline_reporter_s_ VARCHAR, year VARCHAR) ### Response: ### Response: SELECT sideline_reporter_s_ FROM table_name_72 WHERE year = 2011</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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's surname is Cook? ### Context: CREATE TABLE table_name_76 (first VARCHAR, surname VARCHAR) ### Response: ### Response: SELECT first FROM table_name_76 WHERE surname = "cook"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 of Tampa Bay Buccaneers? ### Context: CREATE TABLE table_name_69 (record VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT record FROM table_name_69 WHERE opponent = "tampa bay buccaneers"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the highest number of ends lost? ### Context: CREATE TABLE table_17012578_37 (Ends INTEGER) ### Response: ### Response: SELECT MAX(Ends) AS lost FROM table_17012578_37</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Support Category had a Round score of 9? ### Context: CREATE TABLE table_name_67 (support_category VARCHAR, round VARCHAR) ### Response: ### Response: SELECT support_category FROM table_name_67 WHERE round = 9</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the status of the Hamaoka-3 unit? ### Context: CREATE TABLE table_name_33 (status VARCHAR, unit VARCHAR) ### Response: ### Response: SELECT status FROM table_name_33 WHERE unit = "hamaoka-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 Loss listed for the Opponent of California Angels and has an Attendance of 57,762? ### Context: CREATE TABLE table_name_31 (loss VARCHAR, opponent VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT loss FROM table_name_31 WHERE opponent = "california angels" AND attendance = "57,762"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 episode number? ### Context: CREATE TABLE table_23294081_11 (no INTEGER) ### Response: ### Response: SELECT MAX(no) FROM table_23294081_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: Who was the opponent at the game attended by 23,203? ### Context: CREATE TABLE table_name_63 (opponent VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_63 WHERE attendance = "23,203"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 in Week 17? ### Context: CREATE TABLE table_name_70 (attendance VARCHAR, week VARCHAR) ### Response: ### Response: SELECT attendance FROM table_name_70 WHERE week = 17</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the title of track 7? ### Context: CREATE TABLE table_name_83 (title VARCHAR, track VARCHAR) ### Response: ### Response: SELECT title FROM table_name_83 WHERE track = 7</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the largest capacity when the club was F.C. Igea Virtus Barcellona? ### Context: CREATE TABLE table_name_30 (capacity INTEGER, club VARCHAR) ### Response: ### Response: SELECT MAX(capacity) FROM table_name_30 WHERE club = "f.c. igea virtus barcellona"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 D 47 when it has a D 48 of d 49 and D 42 of r 42 ### Context: CREATE TABLE table_name_35 (d_47 VARCHAR, d_48 VARCHAR, d_42 VARCHAR) ### Response: ### Response: SELECT d_47 FROM table_name_35 WHERE d_48 = "d 49" AND d_42 = "r 42"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Result has a Game smaller than 37, and a Streak of lost 1, and a Record of 4-9? ### Context: CREATE TABLE table_name_40 (result VARCHAR, record VARCHAR, game VARCHAR, streak VARCHAR) ### Response: ### Response: SELECT result FROM table_name_40 WHERE game < 37 AND streak = "lost 1" AND record = "4-9"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many people attended the game at VFL Park? ### Context: CREATE TABLE table_name_71 (crowd INTEGER, venue VARCHAR) ### Response: ### Response: SELECT SUM(crowd) FROM table_name_71 WHERE venue = "vfl 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: What is the name of the national final main host at BBC Television Centre, and the selection show was Eurovision: Your Country Needs You? ### Context: CREATE TABLE table_name_75 (national_final_main_host VARCHAR, venue VARCHAR, selection_show VARCHAR) ### Response: ### Response: SELECT national_final_main_host FROM table_name_75 WHERE venue = "bbc television centre" AND selection_show = "eurovision: your country needs you"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 April 29? ### Context: CREATE TABLE table_name_5 (opponent VARCHAR, date VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_5 WHERE date = "april 29"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What unit of length is being used for the route with "replaced by us 81" in their remarks section? ### Context: CREATE TABLE table_11336756_6 (length VARCHAR, remarks VARCHAR) ### Response: ### Response: SELECT length FROM table_11336756_6 WHERE remarks = "Replaced by US 81"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 constructor that has 35 Laps with a grid more than 5 ### Context: CREATE TABLE table_name_61 (constructor VARCHAR, laps VARCHAR, grid VARCHAR) ### Response: ### Response: SELECT constructor FROM table_name_61 WHERE laps = 35 AND grid > 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 was the score with a 16–14–6 record? ### Context: CREATE TABLE table_name_37 (score VARCHAR, record VARCHAR) ### Response: ### Response: SELECT score FROM table_name_37 WHERE record = "16–14–6"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the latest year for a Emeryson 1006 chassis with more than 0 points? ### Context: CREATE TABLE table_name_37 (year INTEGER, chassis VARCHAR, points VARCHAR) ### Response: ### Response: SELECT MAX(year) FROM table_name_37 WHERE chassis = "emeryson 1006" AND points > 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: Which political party is involved where John J. Delaney is the sitting Representative? ### Context: CREATE TABLE table_1342256_32 (party VARCHAR, incumbent VARCHAR) ### Response: ### Response: SELECT party FROM table_1342256_32 WHERE incumbent = "John J. Delaney"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the total number of population 2000 census for mesquita ### Context: CREATE TABLE table_14986292_1 (population_2000_census VARCHAR, administrative_division VARCHAR) ### Response: ### Response: SELECT COUNT(population_2000_census) FROM table_14986292_1 WHERE administrative_division = "Mesquita"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 French Elector Elevated on 1288, May 16? ### Context: CREATE TABLE table_name_92 (elector VARCHAR, nationality VARCHAR, elevated VARCHAR) ### Response: ### Response: SELECT elector FROM table_name_92 WHERE nationality = "french" AND elevated = "1288, may 16"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 overall score prior to 1992 with a downhill score of 1? ### Context: CREATE TABLE table_name_57 (overall INTEGER, downhill VARCHAR, season VARCHAR) ### Response: ### Response: SELECT MIN(overall) FROM table_name_57 WHERE downhill = "1" AND season < 1992</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the guest on 24.11.07 when the result was 0:1 at 16:00? ### Context: CREATE TABLE table_name_25 (guest VARCHAR, time VARCHAR, date VARCHAR, result VARCHAR) ### Response: ### Response: SELECT guest FROM table_name_25 WHERE date = "24.11.07" AND result = "0:1" AND time = "16:00"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 big was the crowd at the game the away team geelong played at? ### Context: CREATE TABLE table_name_31 (crowd INTEGER, away_team VARCHAR) ### Response: ### Response: SELECT SUM(crowd) FROM table_name_31 WHERE away_team = "geelong"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Current Club of the PG/SG player with a Height of less than 1.9500000000000002? ### Context: CREATE TABLE table_name_87 (current_club VARCHAR, height VARCHAR, position VARCHAR) ### Response: ### Response: SELECT current_club FROM table_name_87 WHERE height < 1.9500000000000002 AND position = "pg/sg"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 A-League has a Pre-Season larger than 0? ### Context: CREATE TABLE table_name_85 (a_league VARCHAR, pre_season INTEGER) ### Response: ### Response: SELECT COUNT(a_league) FROM table_name_85 WHERE pre_season > 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 record for the game at home Los Angeles Lakers? ### Context: CREATE TABLE table_11964047_10 (record VARCHAR, home VARCHAR) ### Response: ### Response: SELECT record FROM table_11964047_10 WHERE home = "Los Angeles Lakers"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 total when the rank is 6 and there's less than 1 gold? ### Context: CREATE TABLE table_name_31 (total INTEGER, rank VARCHAR, gold VARCHAR) ### Response: ### Response: SELECT MAX(total) FROM table_name_31 WHERE rank = "6" AND gold < 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 date when Lebron James (25) was the lead scorer? ### Context: CREATE TABLE table_name_90 (date VARCHAR, leading_scorer VARCHAR) ### Response: ### Response: SELECT date FROM table_name_90 WHERE leading_scorer = "lebron james (25)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Captain 2 has a Result of final? ### Context: CREATE TABLE table_name_50 (captain_2 VARCHAR, result VARCHAR) ### Response: ### Response: SELECT captain_2 FROM table_name_50 WHERE result = "final"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Record of 42–16–8, and a March larger than 5 has what average points? ### Context: CREATE TABLE table_name_95 (points INTEGER, record VARCHAR, march VARCHAR) ### Response: ### Response: SELECT AVG(points) FROM table_name_95 WHERE record = "42–16–8" AND march > 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 was the country in which the agricultural use (m 3 /p/yr)(in %) was 794(86%)? ### Context: CREATE TABLE table_15909409_2 (country VARCHAR, agricultural_use__m_3__p_yr__in__percentage_ VARCHAR) ### Response: ### Response: SELECT country FROM table_15909409_2 WHERE agricultural_use__m_3__p_yr__in__percentage_ = "794(86%)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 placed second during the season where Western Australia placed fifth, South Australia placed sixth, and Tasmania placed fourth? ### Context: CREATE TABLE table_name_2 (second VARCHAR, fourth VARCHAR, fifth VARCHAR, sixth VARCHAR) ### Response: ### Response: SELECT second FROM table_name_2 WHERE fifth = "western australia" AND sixth = "south australia" AND fourth = "tasmania"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 on the Republican ticket when the Socialist ticket was louis waldman? ### Context: CREATE TABLE table_name_17 (republican_ticket VARCHAR, socialist_ticket VARCHAR) ### Response: ### Response: SELECT republican_ticket FROM table_name_17 WHERE socialist_ticket = "louis waldman"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Date, when Event is Billabong Pro? ### Context: CREATE TABLE table_name_34 (date VARCHAR, event VARCHAR) ### Response: ### Response: SELECT date FROM table_name_34 WHERE event = "billabong pro"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 GDP (in millions USD) of Indonesia in 2009? ### Context: CREATE TABLE table_1496582_1 (gdp_millions_of_usd__2009_ VARCHAR, country___territory VARCHAR) ### Response: ### Response: SELECT COUNT(gdp_millions_of_usd__2009_) FROM table_1496582_1 WHERE country___territory = "Indonesia"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What's the total value of សាមសិប? ### Context: CREATE TABLE table_name_2 (value INTEGER, word_form VARCHAR) ### Response: ### Response: SELECT SUM(value) FROM table_name_2 WHERE word_form = "សាមសិប"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 years in which orchestras that have given more than one performance are founded. ### Context: CREATE TABLE performance (Orchestra_ID VARCHAR); CREATE TABLE orchestra (Orchestra_ID VARCHAR) ### Response: ### Response: SELECT Year_of_Founded FROM orchestra AS T1 JOIN performance AS T2 ON T1.Orchestra_ID = T2.Orchestra_ID GROUP BY T2.Orchestra_ID HAVING COUNT(*) > 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's the sum of the Pick that has the Position of Tackle, the Player Woody Adams, and a Round that's larger than 22? ### Context: CREATE TABLE table_name_69 (pick VARCHAR, round VARCHAR, position VARCHAR, player VARCHAR) ### Response: ### Response: SELECT COUNT(pick) FROM table_name_69 WHERE position = "tackle" AND player = "woody adams" AND round > 22</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the date of the Sydney, Australia tournament with a hard surface? ### Context: CREATE TABLE table_name_50 (date VARCHAR, surface VARCHAR, tournament VARCHAR) ### Response: ### Response: SELECT date FROM table_name_50 WHERE surface = "hard" AND tournament = "sydney, australia"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: born on 1973-08-21, what is the cf's name? ### Context: CREATE TABLE table_name_8 (name VARCHAR, pos VARCHAR, date_of_birth VARCHAR) ### Response: ### Response: SELECT name FROM table_name_8 WHERE pos = "cf" AND date_of_birth = "1973-08-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 of Fleet size with a IATA of pr, and a Commenced operations smaller than 1941? ### Context: CREATE TABLE table_name_4 (fleet_size INTEGER, iata VARCHAR, commenced_operations VARCHAR) ### Response: ### Response: SELECT SUM(fleet_size) FROM table_name_4 WHERE iata = "pr" AND commenced_operations < 1941</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 big was the crowd when the South Dragons were the away team at the Gold Coast Convention Centre? ### Context: CREATE TABLE table_name_94 (crowd VARCHAR, away_team VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT crowd FROM table_name_94 WHERE away_team = "south dragons" AND venue = "gold coast convention centre"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Country has a Network of nelonen? ### Context: CREATE TABLE table_name_61 (country VARCHAR, network VARCHAR) ### Response: ### Response: SELECT country FROM table_name_61 WHERE network = "nelonen"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 average for the player with 13 matches and fewer than 7 catches? ### Context: CREATE TABLE table_name_82 (average INTEGER, matches VARCHAR, catches VARCHAR) ### Response: ### Response: SELECT MIN(average) FROM table_name_82 WHERE matches = 13 AND catches < 7</s>