messages
listlengths
3
3
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_19 (result VARCHAR, attendance VARCHAR)", "role": "system" }, { "content": "What was the result of the game played in front of 65,473?", "role": "user" }, { "content": "SELECT result FROM table_name_19 WHERE attendance = \"65,473\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_79 (rank INTEGER, name VARCHAR, status VARCHAR, floors VARCHAR)", "role": "system" }, { "content": "What rank has a status of proposed, with 80 floors for Celestia Spaces 4?", "role": "user" }, { "content": "SELECT AVG(rank) FROM table_name_79 WHERE status = \"proposed\" AND floors = 80 AND name = \"celestia spaces 4\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_64 (draw VARCHAR, performer VARCHAR, points VARCHAR)", "role": "system" }, { "content": "What is the total number of draws for songs performed by Miranda with fewer than 48 points?", "role": "user" }, { "content": "SELECT COUNT(draw) FROM table_name_64 WHERE performer = \"miranda\" AND points < 48", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_20 (network VARCHAR, language VARCHAR, origin_of_programming VARCHAR, genre VARCHAR)", "role": "system" }, { "content": "What network has an origin in India, a genre of general, and broadcasts in Bengali?", "role": "user" }, { "content": "SELECT network FROM table_name_20 WHERE origin_of_programming = \"india\" AND genre = \"general\" AND language = \"bengali\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_25042332_31 (incarceration_rate_total VARCHAR, incarceration_rate_female VARCHAR)", "role": "system" }, { "content": "How many regions had an incarceration rate for females of 63?", "role": "user" }, { "content": "SELECT COUNT(incarceration_rate_total) FROM table_25042332_31 WHERE incarceration_rate_female = 63", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_26565936_2 (no_in_season INTEGER, directed_by VARCHAR)", "role": "system" }, { "content": "What was the first episode in the season directed by nelson mccormick?", "role": "user" }, { "content": "SELECT MIN(no_in_season) FROM table_26565936_2 WHERE directed_by = \"Nelson McCormick\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_12146068_2 (gt1_winning_team VARCHAR, rnd VARCHAR)", "role": "system" }, { "content": "What is the number of gt1 winning team for rnd 5?", "role": "user" }, { "content": "SELECT COUNT(gt1_winning_team) FROM table_12146068_2 WHERE rnd = 5", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_85 (season VARCHAR, engine VARCHAR, team VARCHAR)", "role": "system" }, { "content": "What is the total number of Seasons, when the Engine is Cosworth, and when the Team is Kraco Racing?", "role": "user" }, { "content": "SELECT COUNT(season) FROM table_name_85 WHERE engine = \"cosworth\" AND team = \"kraco racing\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_51 (losses VARCHAR, conference VARCHAR, season VARCHAR)", "role": "system" }, { "content": "What is the Losses at the western conference and the 2004–05 season?", "role": "user" }, { "content": "SELECT losses FROM table_name_51 WHERE conference = \"western\" AND season = \"2004–05\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_225102_4 (reason_for_change VARCHAR, district VARCHAR)", "role": "system" }, { "content": "Name the reason for change pennsylvania 13th", "role": "user" }, { "content": "SELECT reason_for_change FROM table_225102_4 WHERE district = \"Pennsylvania 13th\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_56 (shooter VARCHAR, rank_points VARCHAR, score_points VARCHAR)", "role": "system" }, { "content": "Who is the shooter with 15 rank points, and 0 score points?", "role": "user" }, { "content": "SELECT shooter FROM table_name_56 WHERE rank_points = \"15\" AND score_points = \"0\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_68 (date VARCHAR, record VARCHAR)", "role": "system" }, { "content": "What is the Date with a game with a Record of 2–1–1?", "role": "user" }, { "content": "SELECT date FROM table_name_68 WHERE record = \"2–1–1\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_11147852_1 (channel_tv___dt__ VARCHAR, year_of_affiliation VARCHAR)", "role": "system" }, { "content": "What channels have stations that were affiliated in 2002?", "role": "user" }, { "content": "SELECT channel_tv___dt__ FROM table_11147852_1 WHERE year_of_affiliation = \"2002\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_64 (record VARCHAR, home VARCHAR)", "role": "system" }, { "content": "What was the record when Minnesota was the home team?", "role": "user" }, { "content": "SELECT record FROM table_name_64 WHERE home = \"minnesota\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_52 (year INTEGER, competition VARCHAR)", "role": "system" }, { "content": "What is the first year of the European Championships competition?", "role": "user" }, { "content": "SELECT MIN(year) FROM table_name_52 WHERE competition = \"european championships\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_9 (result VARCHAR, competition VARCHAR, location VARCHAR, year VARCHAR)", "role": "system" }, { "content": "What is the result of the europe/africa group i, round robin game in Murcia (esp) before 1999?", "role": "user" }, { "content": "SELECT result FROM table_name_9 WHERE location = \"murcia (esp)\" AND year < 1999 AND competition = \"europe/africa group i, round robin\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_14345690_15 (co_presenter VARCHAR, series VARCHAR)", "role": "system" }, { "content": "Who is the co-presenter of the series Seven (2007)?", "role": "user" }, { "content": "SELECT co_presenter FROM table_14345690_15 WHERE series = \"Seven (2007)\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_15887683_10 (package_option VARCHAR, television_service VARCHAR)", "role": "system" }, { "content": "Name the number of package options for music box italia", "role": "user" }, { "content": "SELECT COUNT(package_option) FROM table_15887683_10 WHERE television_service = \"Music Box Italia\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_23 (bats VARCHAR, first VARCHAR)", "role": "system" }, { "content": "Which bats did mitchell play first?", "role": "user" }, { "content": "SELECT bats FROM table_name_23 WHERE first = \"mitchell\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_3 (tie_no VARCHAR, home_team VARCHAR)", "role": "system" }, { "content": "minehead has what tie number?", "role": "user" }, { "content": "SELECT tie_no FROM table_name_3 WHERE home_team = \"minehead\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_26137666_3 (pole_position VARCHAR, circuit VARCHAR, winning_driver VARCHAR)", "role": "system" }, { "content": "What is every pole position for the Castle Combe circuit and Robbie Kerr is the winning driver?", "role": "user" }, { "content": "SELECT pole_position FROM table_26137666_3 WHERE circuit = \"Castle Combe\" AND winning_driver = \"Robbie Kerr\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_14 (score VARCHAR, december VARCHAR, record VARCHAR)", "role": "system" }, { "content": "What's the Score that's got a listing of December that larger than 8 and Record of 25-8-3?", "role": "user" }, { "content": "SELECT score FROM table_name_14 WHERE december > 8 AND record = \"25-8-3\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_87 (home__2nd_leg_ VARCHAR, aggregate VARCHAR)", "role": "system" }, { "content": "What is the home of aggregate's 3-4?", "role": "user" }, { "content": "SELECT home__2nd_leg_ FROM table_name_87 WHERE aggregate = \"3-4\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_7 (api_level INTEGER, distribution VARCHAR)", "role": "system" }, { "content": "with Distribution of 10.6% what is the average api level?", "role": "user" }, { "content": "SELECT AVG(api_level) FROM table_name_7 WHERE distribution = \"10.6%\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_85 (county VARCHAR, mascot VARCHAR)", "role": "system" }, { "content": "What counties mascot are the Red Ramblers?", "role": "user" }, { "content": "SELECT county FROM table_name_85 WHERE mascot = \"red ramblers\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_68 (games INTEGER, team VARCHAR, rebounds VARCHAR)", "role": "system" }, { "content": "How many Games for the Player from Lietuvos Rytas Vilnius with less the 43 Rebounds?", "role": "user" }, { "content": "SELECT SUM(games) FROM table_name_68 WHERE team = \"lietuvos rytas vilnius\" AND rebounds < 43", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_51 (airline VARCHAR, notes VARCHAR)", "role": "system" }, { "content": "What is the Airline when the notes show aoc 135?", "role": "user" }, { "content": "SELECT airline FROM table_name_51 WHERE notes = \"aoc 135\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_59 (winner VARCHAR, date VARCHAR)", "role": "system" }, { "content": "Who was the winner on 28 December 2007?", "role": "user" }, { "content": "SELECT winner FROM table_name_59 WHERE date = \"28 december 2007\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_5 (away_team VARCHAR, venue VARCHAR)", "role": "system" }, { "content": "Who was the away team at punt road oval?", "role": "user" }, { "content": "SELECT away_team FROM table_name_5 WHERE venue = \"punt road oval\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_57 (qual INTEGER, grid VARCHAR)", "role": "system" }, { "content": "What is the total qual where the grid number is 24?", "role": "user" }, { "content": "SELECT SUM(qual) FROM table_name_57 WHERE grid = 24", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_27 (bronze VARCHAR, year VARCHAR)", "role": "system" }, { "content": "How many bronze medals were won in 1998?", "role": "user" }, { "content": "SELECT bronze FROM table_name_27 WHERE year = \"1998\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_72 (ryuji_hijikata VARCHAR, block_a VARCHAR)", "role": "system" }, { "content": "Tell me the Ryuji Hijikata for Block A of Ryuji Hijikata", "role": "user" }, { "content": "SELECT ryuji_hijikata FROM table_name_72 WHERE block_a = \"ryuji hijikata\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE problem_log (problem_log_id VARCHAR, problem_id VARCHAR, log_entry_date VARCHAR)", "role": "system" }, { "content": "What is the oldest log id and its corresponding problem id?", "role": "user" }, { "content": "SELECT problem_log_id, problem_id FROM problem_log ORDER BY log_entry_date LIMIT 1", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_3 (year VARCHAR, nominee VARCHAR)", "role": "system" }, { "content": "In what year was Martin Sheen nominated?", "role": "user" }, { "content": "SELECT year FROM table_name_3 WHERE nominee = \"martin sheen\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_37 (competition VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What is the competition on October 15, 2008?", "role": "user" }, { "content": "SELECT competition FROM table_name_37 WHERE date = \"october 15, 2008\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1226250_1 (prothrombin_time VARCHAR, bleeding_time VARCHAR, partial_thromboplastin_time VARCHAR)", "role": "system" }, { "content": "Is prothrombin time long when thromboplastin is prolonged?", "role": "user" }, { "content": "SELECT prothrombin_time FROM table_1226250_1 WHERE bleeding_time = \"Prolonged\" AND partial_thromboplastin_time = \"Prolonged\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE school (enrollment INTEGER)", "role": "system" }, { "content": "What are the total and average enrollment of all schools?", "role": "user" }, { "content": "SELECT SUM(enrollment), AVG(enrollment) FROM school", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_20 (total VARCHAR, year_s__won VARCHAR)", "role": "system" }, { "content": "What was the total for the golfer who had a year won of 1987?", "role": "user" }, { "content": "SELECT total FROM table_name_20 WHERE year_s__won = \"1987\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_86 (save VARCHAR, opponent VARCHAR, date VARCHAR)", "role": "system" }, { "content": "Name the save for braves for may 15", "role": "user" }, { "content": "SELECT save FROM table_name_86 WHERE opponent = \"braves\" AND date = \"may 15\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_84 (college_junior_club_team__league_ VARCHAR, player VARCHAR, position VARCHAR, round VARCHAR)", "role": "system" }, { "content": "What league has a D position, a round smaller than 11 and is with Dennis Vial?", "role": "user" }, { "content": "SELECT college_junior_club_team__league_ FROM table_name_84 WHERE position = \"d\" AND round < 11 AND player = \"dennis vial\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_15 (time VARCHAR, rider VARCHAR)", "role": "system" }, { "content": "What time has jules croft as the rider?", "role": "user" }, { "content": "SELECT time FROM table_name_15 WHERE rider = \"jules croft\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE instructor (salary VARCHAR)", "role": "system" }, { "content": "List the information of all instructors ordered by their salary in ascending order.", "role": "user" }, { "content": "SELECT * FROM instructor ORDER BY salary", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE company (Name VARCHAR, Company_ID VARCHAR); CREATE TABLE people (People_ID VARCHAR); CREATE TABLE employment (People_ID VARCHAR, Company_ID VARCHAR)", "role": "system" }, { "content": "Show the names of companies and the number of employees they have", "role": "user" }, { "content": "SELECT T3.Name, COUNT(*) 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 GROUP BY T3.Name", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_56 (result VARCHAR, round VARCHAR)", "role": "system" }, { "content": "What was the result in round qf?", "role": "user" }, { "content": "SELECT result FROM table_name_56 WHERE round = \"qf\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_12407546_2 (running VARCHAR, athlete VARCHAR)", "role": "system" }, { "content": "What is the running of marlene sanchez?", "role": "user" }, { "content": "SELECT running FROM table_12407546_2 WHERE athlete = \"Marlene Sanchez\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE WINE (Appelation VARCHAR, Score INTEGER); CREATE TABLE APPELLATIONS (County VARCHAR, Appelation VARCHAR)", "role": "system" }, { "content": "Find the county where produces the most number of wines with score higher than 90.", "role": "user" }, { "content": "SELECT T1.County FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T2.Score > 90 GROUP BY T1.County ORDER BY COUNT(*) DESC LIMIT 1", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_90 (home_team VARCHAR, away_team VARCHAR)", "role": "system" }, { "content": "Who was Melbourne's home team opponent?", "role": "user" }, { "content": "SELECT home_team FROM table_name_90 WHERE away_team = \"melbourne\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_79 (wins INTEGER, cuts_made INTEGER)", "role": "system" }, { "content": "How many wins of average has cuts made less than 0?", "role": "user" }, { "content": "SELECT AVG(wins) FROM table_name_79 WHERE cuts_made < 0", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_1 (year INTEGER, date VARCHAR)", "role": "system" }, { "content": "What is the sum of the year for 5 february?", "role": "user" }, { "content": "SELECT SUM(year) FROM table_name_1 WHERE date = \"5 february\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_21 (against VARCHAR, drawn VARCHAR)", "role": "system" }, { "content": "What is the Against when the drawn is 5?", "role": "user" }, { "content": "SELECT against FROM table_name_21 WHERE drawn = 5", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_27 (home VARCHAR, attendance VARCHAR)", "role": "system" }, { "content": "Who was the home team with 3305 in attendance?", "role": "user" }, { "content": "SELECT home FROM table_name_27 WHERE attendance = 3305", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_63 (record VARCHAR, loss VARCHAR)", "role": "system" }, { "content": "For the Loss of Plesac (1-5), what is the Record?", "role": "user" }, { "content": "SELECT record FROM table_name_63 WHERE loss = \"plesac (1-5)\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_5 (frequency VARCHAR, model_number VARCHAR)", "role": "system" }, { "content": "Which Frequency has a Model Number of c3 1.4a?", "role": "user" }, { "content": "SELECT frequency FROM table_name_5 WHERE model_number = \"c3 1.4a\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_1 (video VARCHAR, channel VARCHAR, programming VARCHAR)", "role": "system" }, { "content": "Which Video has a Channel smaller than 35.66, and a Programming of nhk world?", "role": "user" }, { "content": "SELECT video FROM table_name_1 WHERE channel < 35.66 AND programming = \"nhk world\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_86 (proto_oceanic VARCHAR, animal VARCHAR)", "role": "system" }, { "content": "What proto-oceanic has louse as the animal?", "role": "user" }, { "content": "SELECT proto_oceanic FROM table_name_86 WHERE animal = \"louse\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_76 (chassis VARCHAR, engine VARCHAR)", "role": "system" }, { "content": "Which chassis has an Alfa Romeo flat-12 engine.", "role": "user" }, { "content": "SELECT chassis FROM table_name_76 WHERE engine = \"alfa romeo flat-12\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_85 (played INTEGER, lost INTEGER)", "role": "system" }, { "content": "What is the lowest played with a lost bigger than 10?", "role": "user" }, { "content": "SELECT MIN(played) FROM table_name_85 WHERE lost > 10", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_62 (tournament VARCHAR)", "role": "system" }, { "content": "Name the 2011 for tokyo tournament", "role": "user" }, { "content": "SELECT 2011 FROM table_name_62 WHERE tournament = \"tokyo\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_88 (year VARCHAR, vehicle VARCHAR)", "role": "system" }, { "content": "Which year had a vehicle of Mitsubishi?", "role": "user" }, { "content": "SELECT year FROM table_name_88 WHERE vehicle = \"mitsubishi\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE student (name VARCHAR, id VARCHAR); CREATE TABLE takes (course_id VARCHAR, id VARCHAR); CREATE TABLE course (course_id VARCHAR, dept_name VARCHAR)", "role": "system" }, { "content": "Find the name of students who took some course offered by Statistics department.", "role": "user" }, { "content": "SELECT T3.name FROM course AS T1 JOIN takes AS T2 ON T1.course_id = T2.course_id JOIN student AS T3 ON T2.id = T3.id WHERE T1.dept_name = 'Statistics'", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_25 (block VARCHAR, area VARCHAR)", "role": "system" }, { "content": "Which Block does Northamptonshire Area have?", "role": "user" }, { "content": "SELECT block FROM table_name_25 WHERE area = \"northamptonshire\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_14 (score VARCHAR, visitor VARCHAR)", "role": "system" }, { "content": "what team visited chicago", "role": "user" }, { "content": "SELECT score FROM table_name_14 WHERE visitor = \"chicago\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_76 (year VARCHAR, album VARCHAR)", "role": "system" }, { "content": "What year was the version with a remixes album?", "role": "user" }, { "content": "SELECT year FROM table_name_76 WHERE album = \"remixes\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_12165135_1 (college VARCHAR, afl_team VARCHAR)", "role": "system" }, { "content": "What is the college of the afl team of buffalo bills?", "role": "user" }, { "content": "SELECT college FROM table_12165135_1 WHERE afl_team = \"Buffalo Bills\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2668401_12 (party VARCHAR, district VARCHAR)", "role": "system" }, { "content": "What are the parties listed for Pennsylvania 8?", "role": "user" }, { "content": "SELECT party FROM table_2668401_12 WHERE district = \"Pennsylvania 8\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_95 (year INTEGER, competition VARCHAR, waterford_score VARCHAR)", "role": "system" }, { "content": "What is the lowest year that has all-ireland hurling final as the competition, and 6-08 (24) as the waterford score?", "role": "user" }, { "content": "SELECT MIN(year) FROM table_name_95 WHERE competition = \"all-ireland hurling final\" AND waterford_score = \"6-08 (24)\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_5 (sign VARCHAR, fall VARCHAR)", "role": "system" }, { "content": "Which sign has a fall of Venus?", "role": "user" }, { "content": "SELECT sign FROM table_name_5 WHERE fall = \"venus\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_14937957_1 (masters VARCHAR, martial_art_style VARCHAR)", "role": "system" }, { "content": "How many masters fought using a boxing style?", "role": "user" }, { "content": "SELECT COUNT(masters) FROM table_14937957_1 WHERE martial_art_style = \"Boxing\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_48 (season VARCHAR, goals VARCHAR, country VARCHAR, team VARCHAR)", "role": "system" }, { "content": "What Season, when Country is China, when Team is Dalian Shide, and when Goals are 0?", "role": "user" }, { "content": "SELECT season FROM table_name_48 WHERE country = \"china\" AND team = \"dalian shide\" AND goals = 0", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_30008638_1 (miss_water INTEGER, country_territory VARCHAR)", "role": "system" }, { "content": "How many Miss Waters has Canada had?", "role": "user" }, { "content": "SELECT MAX(miss_water) FROM table_30008638_1 WHERE country_territory = \"Canada\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_98 (home_team VARCHAR)", "role": "system" }, { "content": "What is the Home team score for the Home team of Melbourne?", "role": "user" }, { "content": "SELECT home_team AS score FROM table_name_98 WHERE home_team = \"melbourne\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_17200372_2 (departure VARCHAR, going_to VARCHAR)", "role": "system" }, { "content": "Name the departure for spalding", "role": "user" }, { "content": "SELECT departure FROM table_17200372_2 WHERE going_to = \"Spalding\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_89 (date VARCHAR, week VARCHAR)", "role": "system" }, { "content": "What date was the week 10 game?", "role": "user" }, { "content": "SELECT date FROM table_name_89 WHERE week = 10", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_40 (rank VARCHAR, rider VARCHAR)", "role": "system" }, { "content": "What ran has noel patterson as the rider?", "role": "user" }, { "content": "SELECT rank FROM table_name_40 WHERE rider = \"noel patterson\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_60 (rider VARCHAR, points VARCHAR)", "role": "system" }, { "content": "Which rider had a points score equal to 10?", "role": "user" }, { "content": "SELECT rider FROM table_name_60 WHERE points = 10", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_14 (name VARCHAR, event VARCHAR)", "role": "system" }, { "content": "Who set the record in the 500 metres event?", "role": "user" }, { "content": "SELECT name FROM table_name_14 WHERE event = \"500 metres\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_72 (nation VARCHAR, second VARCHAR)", "role": "system" }, { "content": "Which Nation has a Second of tomas pitonak?", "role": "user" }, { "content": "SELECT nation FROM table_name_72 WHERE second = \"tomas pitonak\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_42 (source_version VARCHAR, license VARCHAR)", "role": "system" }, { "content": "What is Source Version, when License is LGPL or MPL?", "role": "user" }, { "content": "SELECT source_version FROM table_name_42 WHERE license = \"lgpl or mpl\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_80 (location_attendance VARCHAR, team VARCHAR)", "role": "system" }, { "content": "For the game played against the L.A. Lakers, where was the match played and what was the attendance level?", "role": "user" }, { "content": "SELECT location_attendance FROM table_name_80 WHERE team = \"l.a. lakers\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_22737506_1 (team_name VARCHAR, races VARCHAR)", "role": "system" }, { "content": "When 1 (5) is the races what is the team name?", "role": "user" }, { "content": "SELECT team_name FROM table_22737506_1 WHERE races = \"1 (5)\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE film_market_estimation (TYPE VARCHAR, YEAR VARCHAR)", "role": "system" }, { "content": "What are the types of film market estimations in year 1995?", "role": "user" }, { "content": "SELECT TYPE FROM film_market_estimation WHERE YEAR = 1995", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_17288825_6 (date VARCHAR, high_assists VARCHAR)", "role": "system" }, { "content": "When aaron brooks (6) had the highest amount of assists what is the date?", "role": "user" }, { "content": "SELECT date FROM table_17288825_6 WHERE high_assists = \"Aaron Brooks (6)\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_25173505_13 (special_edition VARCHAR, english_version VARCHAR)", "role": "system" }, { "content": "what is the special edition for the english version of james baskett?", "role": "user" }, { "content": "SELECT special_edition FROM table_25173505_13 WHERE english_version = \"James Baskett\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2409041_5 (production_code INTEGER, original_air_date VARCHAR)", "role": "system" }, { "content": "What is the production code for the episode that originally aired on January 8, 1993?", "role": "user" }, { "content": "SELECT MAX(production_code) FROM table_2409041_5 WHERE original_air_date = \"January 8, 1993\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_25 (score VARCHAR, att VARCHAR)", "role": "system" }, { "content": "What was the score for the matchup having attendance of 354?", "role": "user" }, { "content": "SELECT score FROM table_name_25 WHERE att = 354", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_15635768_1 (date_of_issue VARCHAR, face_value VARCHAR)", "role": "system" }, { "content": "When the face value is 42¢, what was the issue's date?", "role": "user" }, { "content": "SELECT date_of_issue FROM table_15635768_1 WHERE face_value = \"42¢\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_6 (week INTEGER, transition VARCHAR)", "role": "system" }, { "content": "What was the first week that had a transition with Pat Mccready?", "role": "user" }, { "content": "SELECT MIN(week) FROM table_name_6 WHERE transition = \"pat mccready\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1553485_1 (city_of_license__market VARCHAR, channel_tv___dt__ VARCHAR)", "role": "system" }, { "content": "Which city of license/market has 3 (26) as their channel tv (dt)?", "role": "user" }, { "content": "SELECT city_of_license__market FROM table_1553485_1 WHERE channel_tv___dt__ = \"3 (26)\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_21321804_1 (cfl_team VARCHAR, pick__number VARCHAR)", "role": "system" }, { "content": "How many clf teams have a pick # of 5?", "role": "user" }, { "content": "SELECT COUNT(cfl_team) FROM table_21321804_1 WHERE pick__number = 5", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_13 (silver INTEGER, bronze VARCHAR, total VARCHAR)", "role": "system" }, { "content": "How many total Silver has a Bronze larger than 19 and a Total smaller than 125?", "role": "user" }, { "content": "SELECT SUM(silver) FROM table_name_13 WHERE bronze > 19 AND total < 125", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_11677100_18 (school VARCHAR, hometown VARCHAR)", "role": "system" }, { "content": "What school did the player attend who's hometown was Montvale, NJ?", "role": "user" }, { "content": "SELECT school FROM table_11677100_18 WHERE hometown = \"Montvale, NJ\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_83 (d_41_√ VARCHAR, d_47_√ VARCHAR)", "role": "system" }, { "content": "What is the D 41 √ when the D 47 √ is d 34?", "role": "user" }, { "content": "SELECT d_41_√ FROM table_name_83 WHERE d_47_√ = \"d 34\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_24027047_1 (population_density___km²_2011_ VARCHAR, area__km²__2011 VARCHAR)", "role": "system" }, { "content": "What was the population density in km2 for 2011 in the division where area in km2 was 684.37 in 2011? ", "role": "user" }, { "content": "SELECT population_density___km²_2011_ FROM table_24027047_1 WHERE area__km²__2011 * * = \"684.37\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE countries (country_name VARCHAR, country_id VARCHAR); CREATE TABLE departments (department_id VARCHAR, location_id VARCHAR); CREATE TABLE locations (location_id VARCHAR, country_id VARCHAR); CREATE TABLE employees (employee_id VARCHAR, department_id VARCHAR)", "role": "system" }, { "content": "Find employee with ID and name of the country presently where (s)he is working.", "role": "user" }, { "content": "SELECT T1.employee_id, T4.country_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id JOIN countries AS T4 ON T3.country_id = T4.country_id", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_24 (laps VARCHAR, time_retired VARCHAR)", "role": "system" }, { "content": "How many laps were ridden in the race that had a Time/Retired of +37.351?", "role": "user" }, { "content": "SELECT COUNT(laps) FROM table_name_24 WHERE time_retired = \"+37.351\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_99 (total INTEGER, place VARCHAR, draw VARCHAR)", "role": "system" }, { "content": "Which average Total has a Place smaller than 2, and a Draw smaller than 5?", "role": "user" }, { "content": "SELECT AVG(total) FROM table_name_99 WHERE place < 2 AND draw < 5", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_48 (team VARCHAR, founded VARCHAR)", "role": "system" }, { "content": "Which team was founded in 1970?", "role": "user" }, { "content": "SELECT team FROM table_name_48 WHERE founded = \"1970\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1708014_1 (starts VARCHAR, winnings VARCHAR)", "role": "system" }, { "content": "Which start won $1,301,370?", "role": "user" }, { "content": "SELECT starts FROM table_1708014_1 WHERE winnings = \"$1,301,370\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_86 (pct VARCHAR, years VARCHAR)", "role": "system" }, { "content": "What was the winning percent of Notre Dame in 1905?", "role": "user" }, { "content": "SELECT pct FROM table_name_86 WHERE years = \"1905\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2508633_3 (player VARCHAR, college VARCHAR)", "role": "system" }, { "content": "Which player went to college at Tennessee?", "role": "user" }, { "content": "SELECT player FROM table_2508633_3 WHERE college = \"Tennessee\"", "role": "assistant" } ]