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 designer has a restaurant named The Citizen? ### Context: CREATE TABLE table_name_42 (designer VARCHAR, restaurant_name VARCHAR) ### Response: ### Response: SELECT designer FROM table_name_42 WHERE restaurant_name = "the citizen"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the name of the player with the High points when there was a Record of 31–48? ### Context: CREATE TABLE table_name_66 (high_points VARCHAR, record VARCHAR) ### Response: ### Response: SELECT high_points FROM table_name_66 WHERE record = "31–48"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 4 clubs are involved, what is the average number of fixtures? ### Context: CREATE TABLE table_name_3 (fixtures INTEGER, clubs_involved VARCHAR) ### Response: ### Response: SELECT AVG(fixtures) FROM table_name_3 WHERE clubs_involved = 4</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the attendance of the Browns' September 7, 1953 game? ### Context: CREATE TABLE table_name_78 (attendance VARCHAR, date VARCHAR) ### Response: ### Response: SELECT attendance FROM table_name_78 WHERE date = "september 7, 1953"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the score of the game that had a loss of Williams (1-1)? ### Context: CREATE TABLE table_name_48 (score VARCHAR, loss VARCHAR) ### Response: ### Response: SELECT score FROM table_name_48 WHERE loss = "williams (1-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 second leg score from the group stage on matchday 5? ### Context: CREATE TABLE table_name_35 (second_leg VARCHAR, phase VARCHAR, round VARCHAR) ### Response: ### Response: SELECT second_leg FROM table_name_35 WHERE phase = "group stage" AND round = "matchday 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: Which Country has a Top Team of jam, and an Edition of 31st? ### Context: CREATE TABLE table_name_93 (country VARCHAR, top_team VARCHAR, edition VARCHAR) ### Response: ### Response: SELECT country FROM table_name_93 WHERE top_team = "jam" AND edition = "31st"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Socialist ticket when the Democratic ticket is george k. shuler? ### Context: CREATE TABLE table_name_6 (socialist_ticket VARCHAR, democratic_ticket VARCHAR) ### Response: ### Response: SELECT socialist_ticket FROM table_name_6 WHERE democratic_ticket = "george k. shuler"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 candidate in the election in the California 8 district where the incumbent was first elected in 1932? ### Context: CREATE TABLE table_1342331_6 (candidates VARCHAR, first_elected VARCHAR, district VARCHAR) ### Response: ### Response: SELECT candidates FROM table_1342331_6 WHERE first_elected = 1932 AND district = "California 8"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the games played when the category is points per game? ### Context: CREATE TABLE table_28628309_8 (games_played INTEGER, category VARCHAR) ### Response: ### Response: SELECT MIN(games_played) FROM table_28628309_8 WHERE category = "Points per game"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 1986 value with A in 1991 and A in 1987? ### Context: CREATE TABLE table_name_17 (Id VARCHAR) ### Response: ### Response: SELECT 1986 FROM table_name_17 WHERE 1991 = "a" AND 1987 = "a"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: At what location did the event that used electric traction and system name ATM (1880–1911) GETA (1911–1944) occur? ### Context: CREATE TABLE table_name_5 (location VARCHAR, name_of_system VARCHAR, traction_type VARCHAR) ### Response: ### Response: SELECT location FROM table_name_5 WHERE name_of_system = "atm (1880–1911) geta (1911–1944)" AND traction_type = "electric"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the record when the score was 11-10? ### Context: CREATE TABLE table_name_85 (record VARCHAR, score VARCHAR) ### Response: ### Response: SELECT record FROM table_name_85 WHERE score = "11-10"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Draws have a Lexton Plains of skipton, and an Against larger than 1212? ### Context: CREATE TABLE table_name_85 (draws INTEGER, lexton_plains VARCHAR, against VARCHAR) ### Response: ### Response: SELECT MAX(draws) FROM table_name_85 WHERE lexton_plains = "skipton" AND against > 1212</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What provinces were formed from New Munster? ### Context: CREATE TABLE table_275023_1 (province VARCHAR, formed_from VARCHAR) ### Response: ### Response: SELECT province FROM table_275023_1 WHERE formed_from = "New Munster"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which player is from Utah? ### Context: CREATE TABLE table_11677691_7 (player VARCHAR, college VARCHAR) ### Response: ### Response: SELECT player FROM table_11677691_7 WHERE college = "Utah"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 the opponent was irena pavlovic and the surface was hard? ### Context: CREATE TABLE table_name_94 (score VARCHAR, surface VARCHAR, opponent_in_the_final VARCHAR) ### Response: ### Response: SELECT score FROM table_name_94 WHERE surface = "hard" AND opponent_in_the_final = "irena pavlovic"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 enrollments of schools whose denomination is not "Catholic"? ### Context: CREATE TABLE school (Enrollment VARCHAR, Denomination VARCHAR) ### Response: ### Response: SELECT Enrollment FROM school WHERE Denomination <> "Catholic"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 visitor on October 31? ### Context: CREATE TABLE table_name_75 (visitor VARCHAR, date VARCHAR) ### Response: ### Response: SELECT visitor FROM table_name_75 WHERE date = "october 31"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What date was Wet Hare, directed by Robert McKimson, released? ### Context: CREATE TABLE table_name_61 (release_date VARCHAR, director VARCHAR, title VARCHAR) ### Response: ### Response: SELECT release_date FROM table_name_61 WHERE director = "robert mckimson" AND title = "wet hare"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Runner(s)-up of the 1972 Championship? ### Context: CREATE TABLE table_name_41 (runner_s__up VARCHAR, year VARCHAR) ### Response: ### Response: SELECT runner_s__up FROM table_name_41 WHERE year = "1972"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What song has a draw more than 4 in 1st place? ### Context: CREATE TABLE table_name_65 (song VARCHAR, draw VARCHAR, place VARCHAR) ### Response: ### Response: SELECT song FROM table_name_65 WHERE draw > 4 AND place = "1st"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 biggest clean and jerk number when snatch was less than 150 and the bodyweight was bigger than 93.13? ### Context: CREATE TABLE table_name_91 (_jerk VARCHAR, clean_ INTEGER, snatch VARCHAR, bodyweight VARCHAR) ### Response: ### Response: SELECT MAX(clean_) & _jerk FROM table_name_91 WHERE snatch < 150 AND bodyweight > 93.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: The game in week 11 has what result? ### Context: CREATE TABLE table_name_70 (result VARCHAR, week VARCHAR) ### Response: ### Response: SELECT result FROM table_name_70 WHERE week = 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: How many tournaments recorded a score of 206 (-7)? ### Context: CREATE TABLE table_11622840_1 (tournament VARCHAR, score VARCHAR) ### Response: ### Response: SELECT COUNT(tournament) FROM table_11622840_1 WHERE score = "206 (-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: Name the total number of hdtv for eurotic tv ### Context: CREATE TABLE table_15887683_17 (hdtv VARCHAR, television_service VARCHAR) ### Response: ### Response: SELECT COUNT(hdtv) FROM table_15887683_17 WHERE television_service = "Eurotic TV"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 courtside reporter for the year 2009-10? ### Context: CREATE TABLE table_14902507_2 (courtside_reporter VARCHAR, year VARCHAR) ### Response: ### Response: SELECT courtside_reporter FROM table_14902507_2 WHERE year = "2009-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's the smallest draw of Warrnambool when the against was less than 1299, more than 7 wins, and less than 2 losses? ### Context: CREATE TABLE table_name_29 (draws INTEGER, losses VARCHAR, club VARCHAR, against VARCHAR, wins VARCHAR) ### Response: ### Response: SELECT MIN(draws) FROM table_name_29 WHERE against < 1299 AND wins > 7 AND club = "warrnambool" AND losses < 2</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the hometown of Plutonic? ### Context: CREATE TABLE table_27529608_21 (hometown VARCHAR, name_name_of_act VARCHAR) ### Response: ### Response: SELECT hometown FROM table_27529608_21 WHERE name_name_of_act = "PLUtonic"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 silver medals does China have? ### Context: CREATE TABLE table_name_93 (silver VARCHAR, nation VARCHAR) ### Response: ### Response: SELECT COUNT(silver) FROM table_name_93 WHERE nation = "china"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 total wins he had for any year? ### Context: CREATE TABLE table_22839669_12 (total_wins INTEGER) ### Response: ### Response: SELECT MAX(total_wins) FROM table_22839669_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 class to 1928 value had years of manufacture of 1921/23 and class from 1928 of BCi-21? ### Context: CREATE TABLE table_name_21 (class_to_1928 VARCHAR, year_s__of_manufacture VARCHAR, class_from_1928 VARCHAR) ### Response: ### Response: SELECT class_to_1928 FROM table_name_21 WHERE year_s__of_manufacture = "1921/23" AND class_from_1928 = "bci-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 class of vessel of the ship Hyundai Smart? ### Context: CREATE TABLE table_name_85 (class VARCHAR, vessel_name VARCHAR) ### Response: ### Response: SELECT class FROM table_name_85 WHERE vessel_name = "hyundai smart"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Where is the service pattern sydenham then fast to norwood junction? ### Context: CREATE TABLE table_1569516_1 (destination VARCHAR, service_pattern VARCHAR) ### Response: ### Response: SELECT destination FROM table_1569516_1 WHERE service_pattern = "Sydenham then fast to Norwood Junction"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which game modes have Pinyin of chāojí mǎlìōu shìjiè? ### Context: CREATE TABLE table_name_13 (game_modes VARCHAR, pinyin VARCHAR) ### Response: ### Response: SELECT game_modes FROM table_name_13 WHERE pinyin = "chāojí mǎlìōu shìjiè"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Points against has a Lost of lost? ### Context: CREATE TABLE table_name_97 (points_against VARCHAR) ### Response: ### Response: SELECT points_against FROM table_name_97 WHERE "lost" = "lost"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Team/Chassis has a Year larger than 1987? ### Context: CREATE TABLE table_name_46 (team_chassis VARCHAR, year INTEGER) ### Response: ### Response: SELECT team_chassis FROM table_name_46 WHERE year > 1987</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many districts does gary condit represent? ### Context: CREATE TABLE table_1341453_7 (district VARCHAR, incumbent VARCHAR) ### Response: ### Response: SELECT COUNT(district) FROM table_1341453_7 WHERE incumbent = "Gary Condit"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What drawn has 416 as the points for and 533 as the points against? ### Context: CREATE TABLE table_name_49 (drawn VARCHAR, points_for VARCHAR, points_against VARCHAR) ### Response: ### Response: SELECT drawn FROM table_name_49 WHERE points_for = "416" AND points_against = "533"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the average total of halifax town club, which has a league less than 30 and more than 3 FA cups? ### Context: CREATE TABLE table_name_18 (total INTEGER, fa_cup VARCHAR, club VARCHAR, league VARCHAR) ### Response: ### Response: SELECT AVG(total) FROM table_name_18 WHERE club = "halifax town" AND league < 30 AND fa_cup > 3</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the number of result for maroa ### Context: CREATE TABLE table_18123274_1 (result VARCHAR, film_title_used_in_nomination VARCHAR) ### Response: ### Response: SELECT COUNT(result) FROM table_18123274_1 WHERE film_title_used_in_nomination = "Maroa"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 the Diamondbacks go 2-7? ### Context: CREATE TABLE table_name_92 (date VARCHAR, opponent VARCHAR, score VARCHAR) ### Response: ### Response: SELECT date FROM table_name_92 WHERE opponent = "diamondbacks" AND score = "2-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: When the Score was kapunda 7-7-49 angaston 6-8-44, who was the Runner-up? ### Context: CREATE TABLE table_name_14 (runner_up VARCHAR, score VARCHAR) ### Response: ### Response: SELECT runner_up FROM table_name_14 WHERE score = "kapunda 7-7-49 angaston 6-8-44"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 name of the party that has the most delegates. ### Context: CREATE TABLE election (Party VARCHAR); CREATE TABLE party (Party VARCHAR, Party_ID VARCHAR) ### Response: ### Response: SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID GROUP BY T1.Party 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 years did Lou Graham win in? ### Context: CREATE TABLE table_name_41 (year_s__won VARCHAR, player VARCHAR) ### Response: ### Response: SELECT year_s__won FROM table_name_41 WHERE player = "lou graham"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Drawn have a Position of 7, and Points larger than 18? ### Context: CREATE TABLE table_name_70 (drawn VARCHAR, position VARCHAR, points VARCHAR) ### Response: ### Response: SELECT COUNT(drawn) FROM table_name_70 WHERE position = 7 AND points > 18</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: List the names of all courses ordered by their titles and credits. ### Context: CREATE TABLE course (title VARCHAR, credits VARCHAR) ### Response: ### Response: SELECT title FROM course ORDER BY title, credits</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 that anna thompson had an 8th place result in team competition at the world cross country championships in st etienne, france with ### Context: CREATE TABLE table_name_22 (year INTEGER, result VARCHAR, extra VARCHAR, tournament VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT AVG(year) FROM table_name_22 WHERE tournament = "world cross country championships" AND venue = "st etienne, france" AND extra = "team competition" AND result = "8th"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the sum of losses for Against values over 1510? ### Context: CREATE TABLE table_name_70 (losses INTEGER, against INTEGER) ### Response: ### Response: SELECT SUM(losses) FROM table_name_70 WHERE against > 1510</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 points does the year after 1986 with a AGS JH23B chassis have? ### Context: CREATE TABLE table_name_52 (points VARCHAR, year VARCHAR, chassis VARCHAR) ### Response: ### Response: SELECT points FROM table_name_52 WHERE year > 1986 AND chassis = "ags jh23b"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What platform is nds4droid on for the nintendo ds with a license of gpl v2? ### Context: CREATE TABLE table_name_93 (platform VARCHAR, name VARCHAR, system VARCHAR, license VARCHAR) ### Response: ### Response: SELECT platform FROM table_name_93 WHERE system = "nintendo ds" AND license = "gpl v2" AND name = "nds4droid"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Set 1, when Set 2 is 17-25? ### Context: CREATE TABLE table_name_22 (set_1 VARCHAR, set_2 VARCHAR) ### Response: ### Response: SELECT set_1 FROM table_name_22 WHERE set_2 = "17-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: List all department names ordered by their starting date. ### Context: CREATE TABLE department (dname VARCHAR, mgr_start_date VARCHAR) ### Response: ### Response: SELECT dname FROM department ORDER BY mgr_start_date</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 hometown of the player who is headed to Duke? ### Context: CREATE TABLE table_name_83 (hometown VARCHAR, college VARCHAR) ### Response: ### Response: SELECT hometown FROM table_name_83 WHERE college = "duke"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Can you tell me the total number of Gain that has the Name of williams, jonathan, and the Loss larger than 3? ### Context: CREATE TABLE table_name_55 (gain VARCHAR, name VARCHAR, loss VARCHAR) ### Response: ### Response: SELECT COUNT(gain) FROM table_name_55 WHERE name = "williams, jonathan" AND loss > 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 winning drivers were there in the race that had a fastest lap time of 56.920? ### Context: CREATE TABLE table_10706961_2 (winning_driver VARCHAR, fastest_lap VARCHAR) ### Response: ### Response: SELECT COUNT(winning_driver) FROM table_10706961_2 WHERE fastest_lap = "56.920"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Left is the lowest one that has a School of calumet, and a Year Joined larger than 1993? ### Context: CREATE TABLE table_name_13 (year_left INTEGER, school VARCHAR, year_joined VARCHAR) ### Response: ### Response: SELECT MIN(year_left) FROM table_name_13 WHERE school = "calumet" AND year_joined > 1993</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the average Rebounds, when Minutes Played is "113", and when Games Played is greater than "18"? ### Context: CREATE TABLE table_name_4 (rebounds INTEGER, minutes_played VARCHAR, games_played VARCHAR) ### Response: ### Response: SELECT AVG(rebounds) FROM table_name_4 WHERE minutes_played = 113 AND games_played > 18</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: where is citv located ### Context: CREATE TABLE table_1397655_1 (city VARCHAR, station VARCHAR) ### Response: ### Response: SELECT city FROM table_1397655_1 WHERE station = "CITV"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 bearing 297°? ### Context: CREATE TABLE table_name_27 (distance VARCHAR, bearing VARCHAR) ### Response: ### Response: SELECT distance FROM table_name_27 WHERE bearing = "297°"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: WHAT IS THE SCORE WITH A WINNER AND OPPONENT BYRON BLACK? ### Context: CREATE TABLE table_name_89 (score VARCHAR, outcome VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT score FROM table_name_89 WHERE outcome = "winner" AND opponent = "byron black"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What away team played at western oval? ### Context: CREATE TABLE table_name_11 (away_team VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT away_team FROM table_name_11 WHERE venue = "western oval"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the place of the player with a 72-70-67=209 score? ### Context: CREATE TABLE table_name_51 (place VARCHAR, score VARCHAR) ### Response: ### Response: SELECT place FROM table_name_51 WHERE score = 72 - 70 - 67 = 209</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 regular number of attendees that has 79 parishes? ### Context: CREATE TABLE table_name_36 (regular_attendees INTEGER, parishes VARCHAR) ### Response: ### Response: SELECT AVG(regular_attendees) FROM table_name_36 WHERE parishes = 79</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Ensemble Name Muxco Gloucestershire's Advertisement Date in Block 10C? ### Context: CREATE TABLE table_name_17 (advertisement_date VARCHAR, block VARCHAR, ensemble_name VARCHAR) ### Response: ### Response: SELECT advertisement_date FROM table_name_17 WHERE block = "10c" AND ensemble_name = "muxco gloucestershire"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: With a greater than 4 rank, and the silver medal greater than 0, and the bronze medal less than 1, what is the average total? ### Context: CREATE TABLE table_name_23 (total INTEGER, bronze VARCHAR, rank VARCHAR, silver VARCHAR) ### Response: ### Response: SELECT AVG(total) FROM table_name_23 WHERE rank > 4 AND silver > 0 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 is the result when the week is greater than 6 and the Buffalo Bills are the opponent? ### Context: CREATE TABLE table_name_43 (result VARCHAR, week VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT result FROM table_name_43 WHERE week > 6 AND opponent = "buffalo bills"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Last Appearance, when Wins is less than 1, when Losses is 1, and when School is Oklahoma State? ### Context: CREATE TABLE table_name_65 (last_appearance VARCHAR, school VARCHAR, wins VARCHAR, losses VARCHAR) ### Response: ### Response: SELECT last_appearance FROM table_name_65 WHERE wins < 1 AND losses = 1 AND school = "oklahoma 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 total distance (in miles) of the championship where the best conditioned horse was Freedom? ### Context: CREATE TABLE table_27833186_1 (distance__miles_ VARCHAR, best_conditioned_horse VARCHAR) ### Response: ### Response: SELECT distance__miles_ FROM table_27833186_1 WHERE best_conditioned_horse = "Freedom"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 husband of the image of renata of lorraine? ### Context: CREATE TABLE table_name_87 (husband VARCHAR, image VARCHAR) ### Response: ### Response: SELECT husband FROM table_name_87 WHERE image = "renata of lorraine"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 nickname Established in 2002? ### Context: CREATE TABLE table_16432543_3 (nickname VARCHAR, established VARCHAR) ### Response: ### Response: SELECT nickname FROM table_16432543_3 WHERE established = 2002</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 against value with less than 9 points and more than 6 lost? ### Context: CREATE TABLE table_name_29 (against INTEGER, points VARCHAR, lost VARCHAR) ### Response: ### Response: SELECT MIN(against) FROM table_name_29 WHERE points < 9 AND lost > 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 most recent date for a singles final with the score of 1–6, 4–6, 5–7? ### Context: CREATE TABLE table_name_77 (date INTEGER, score_in_the_final VARCHAR) ### Response: ### Response: SELECT MAX(date) FROM table_name_77 WHERE score_in_the_final = "1–6, 4–6, 5–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: Name the high assists for w 107–99 (ot) ### Context: CREATE TABLE table_27723228_7 (high_assists VARCHAR, score VARCHAR) ### Response: ### Response: SELECT high_assists FROM table_27723228_7 WHERE score = "W 107–99 (OT)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What office is held by Electorate Hume? ### Context: CREATE TABLE table_name_71 (in_office VARCHAR, electorate VARCHAR) ### Response: ### Response: SELECT in_office FROM table_name_71 WHERE electorate = "hume"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Team of Andretti Green Racing have a finish smaller than 8 with a Dallara chassis? ### Context: CREATE TABLE table_name_51 (year VARCHAR, finish VARCHAR, chassis VARCHAR, team VARCHAR) ### Response: ### Response: SELECT year FROM table_name_51 WHERE chassis = "dallara" AND team = "andretti green racing" AND finish < 8</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the second that has jordan moulton as the lead? ### Context: CREATE TABLE table_name_97 (second VARCHAR, lead VARCHAR) ### Response: ### Response: SELECT second FROM table_name_97 WHERE lead = "jordan moulton"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What percentage of the population is below 50% of the median income in the region where 10.4% of the population earns below 40% of the median income? ### Context: CREATE TABLE table_25042332_16 (below_50_percentage_of_median_income VARCHAR, below_40_percentage_of_median_income VARCHAR) ### Response: ### Response: SELECT COUNT(below_50_percentage_of_median_income) FROM table_25042332_16 WHERE below_40_percentage_of_median_income = "10.4%"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which game has an order larger than 975, Seasons of 2005 – 2007, and 46 goals? ### Context: CREATE TABLE table_name_5 (games VARCHAR, goals VARCHAR, order VARCHAR, seasons VARCHAR) ### Response: ### Response: SELECT games FROM table_name_5 WHERE order > 975 AND seasons = "2005 – 2007" AND goals = 46</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 on 8 September 1999? ### Context: CREATE TABLE table_name_93 (score VARCHAR, date VARCHAR) ### Response: ### Response: SELECT score FROM table_name_93 WHERE date = "8 september 1999"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the total number of Laps, when Ride is Aleix Espargaro? ### Context: CREATE TABLE table_name_54 (laps VARCHAR, rider VARCHAR) ### Response: ### Response: SELECT COUNT(laps) FROM table_name_54 WHERE rider = "aleix espargaro"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 12 in grid? ### Context: CREATE TABLE table_name_80 (driver VARCHAR, grid VARCHAR) ### Response: ### Response: SELECT driver FROM table_name_80 WHERE grid = 12</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the outcome in mari andersson's tournament? ### Context: CREATE TABLE table_name_41 (outcome VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT outcome FROM table_name_41 WHERE opponent = "mari andersson"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 flight had the aircraft avro rj-100? ### Context: CREATE TABLE table_name_28 (flight VARCHAR, aircraft VARCHAR) ### Response: ### Response: SELECT flight FROM table_name_28 WHERE aircraft = "avro rj-100"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 player raymond floyd's country? ### Context: CREATE TABLE table_name_64 (country VARCHAR, player VARCHAR) ### Response: ### Response: SELECT country FROM table_name_64 WHERE player = "raymond floyd"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 height with position being center and year born being bigger than 1980.0 ### Context: CREATE TABLE table_12962773_1 (height VARCHAR, position VARCHAR, year_born VARCHAR) ### Response: ### Response: SELECT height FROM table_12962773_1 WHERE position = "Center" AND year_born > 1980.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 epicenter on January 1, 1965? ### Context: CREATE TABLE table_name_88 (epicenter VARCHAR, date VARCHAR) ### Response: ### Response: SELECT epicenter FROM table_name_88 WHERE date = "january 1, 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: What is listed as the average Date that has U-boats destroyed (KuK) of 2 with Tonnage of 1,514,050? ### Context: CREATE TABLE table_name_13 (date INTEGER, u_boats_destroyed__kuk_ VARCHAR, tonnage VARCHAR) ### Response: ### Response: SELECT AVG(date) FROM table_name_13 WHERE u_boats_destroyed__kuk_ = "2" AND tonnage = "1,514,050"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 attendance when the opponent is the Los Angeles Rams and the week is less than 11? ### Context: CREATE TABLE table_name_82 (attendance INTEGER, opponent VARCHAR, week VARCHAR) ### Response: ### Response: SELECT MAX(attendance) FROM table_name_82 WHERE opponent = "los angeles rams" AND week < 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: Which Winnings have Starts larger than 34, and Poles smaller than 1, and a Top 10 of 5? ### Context: CREATE TABLE table_name_93 (winnings VARCHAR, top_10 VARCHAR, starts VARCHAR, poles VARCHAR) ### Response: ### Response: SELECT winnings FROM table_name_93 WHERE starts > 34 AND poles < 1 AND top_10 = 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: Who was the race leader for stage 5? ### Context: CREATE TABLE table_name_66 (race_leader VARCHAR, stage VARCHAR) ### Response: ### Response: SELECT race_leader FROM table_name_66 WHERE stage = "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 record after the game before Jan 7? ### Context: CREATE TABLE table_name_1 (record VARCHAR, january INTEGER) ### Response: ### Response: SELECT record FROM table_name_1 WHERE january < 7</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the player with the no. 14? ### Context: CREATE TABLE table_name_41 (player VARCHAR, no_s_ VARCHAR) ### Response: ### Response: SELECT player FROM table_name_41 WHERE no_s_ = "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 least number of miss united continents? ### Context: CREATE TABLE table_17522854_6 (miss_united_continent INTEGER) ### Response: ### Response: SELECT MIN(miss_united_continent) FROM table_17522854_6</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which author wrote Sironia, Texas in English? ### Context: CREATE TABLE table_name_42 (author VARCHAR, language VARCHAR, book_title VARCHAR) ### Response: ### Response: SELECT author FROM table_name_42 WHERE language = "english" AND book_title = "sironia, texas"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 average size for minor third ### Context: CREATE TABLE table_name_62 (size__steps_ INTEGER, interval_name VARCHAR) ### Response: ### Response: SELECT AVG(size__steps_) FROM table_name_62 WHERE interval_name = "minor third"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 grantee for las pulgas in 1795 ### Context: CREATE TABLE table_name_6 (grantee VARCHAR, date VARCHAR, concession VARCHAR) ### Response: ### Response: SELECT grantee FROM table_name_6 WHERE date = 1795 AND concession = "las pulgas"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 catalogs of releases from Sony Music Direct? ### Context: CREATE TABLE table_name_72 (catalog VARCHAR, label VARCHAR) ### Response: ### Response: SELECT catalog FROM table_name_72 WHERE label = "sony music direct"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 is the acquisition via that has a school or club team of state? ### Context: CREATE TABLE table_name_82 (acquisition_via VARCHAR, school_club_team VARCHAR) ### Response: ### Response: SELECT acquisition_via FROM table_name_82 WHERE school_club_team = "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 away team did Horsham play? ### Context: CREATE TABLE table_name_30 (away_team VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT away_team FROM table_name_30 WHERE home_team = "horsham"</s>