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_49 (week INTEGER, opponent VARCHAR)", "role": "system" }, { "content": "What is the total number of weeks that the buffalo bills played against the San Diego Chargers?", "role": "user" }, { "content": "SELECT SUM(week) FROM table_name_49 WHERE opponent = \"san diego chargers\"", "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 INTEGER, player VARCHAR)", "role": "system" }, { "content": "What is the total of David Toms?", "role": "user" }, { "content": "SELECT SUM(total) FROM table_name_20 WHERE player = \"david toms\"", "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 (colony_name VARCHAR, date_founded VARCHAR)", "role": "system" }, { "content": "Which Colony Name was Founded on january 19, 2012?", "role": "user" }, { "content": "SELECT colony_name FROM table_name_1 WHERE date_founded = \"january 19, 2012\"", "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_24425976_7 (original_air_date VARCHAR, series VARCHAR)", "role": "system" }, { "content": "What date did episode 115 in the series originally air?", "role": "user" }, { "content": "SELECT original_air_date FROM table_24425976_7 WHERE series = 115", "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 city (city VARCHAR, city_id VARCHAR); CREATE TABLE hosting_city (host_city VARCHAR)", "role": "system" }, { "content": "Which city has hosted the most events?", "role": "user" }, { "content": "SELECT T1.city FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city GROUP BY T2.host_city 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_40 (variant_id VARCHAR, genbank_id VARCHAR)", "role": "system" }, { "content": "Which Variant id has the GenBank id of nm_005411.4?", "role": "user" }, { "content": "SELECT variant_id FROM table_name_40 WHERE genbank_id = \"nm_005411.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_46 (name VARCHAR, street_address VARCHAR)", "role": "system" }, { "content": "Street Address of 980 n. michigan avenue is what name?", "role": "user" }, { "content": "SELECT name FROM table_name_46 WHERE street_address = \"980 n. michigan avenue\"", "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_61 (natural_change__per_1000_ VARCHAR, crude_death_rate__per_1000_ VARCHAR)", "role": "system" }, { "content": "what is the natural change (per 1000) when the crude death rate (per 1000) is 10?", "role": "user" }, { "content": "SELECT natural_change__per_1000_ FROM table_name_61 WHERE crude_death_rate__per_1000_ = 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_13657883_2 (to_winning_team VARCHAR, tu_winning_team VARCHAR)", "role": "system" }, { "content": "What was the to winning team when the tu winning team was joe amato carson baird?", "role": "user" }, { "content": "SELECT to_winning_team FROM table_13657883_2 WHERE tu_winning_team = \"Joe Amato Carson Baird\"", "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_91 (outcome VARCHAR, surface VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What is the total outcome for the clay surface on April 21, 1996?", "role": "user" }, { "content": "SELECT outcome FROM table_name_91 WHERE surface = \"clay\" AND date = \"april 21, 1996\"", "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 (date VARCHAR, loss VARCHAR)", "role": "system" }, { "content": "When the Loss is Johnson (4-12), what is the date?", "role": "user" }, { "content": "SELECT date FROM table_name_9 WHERE loss = \"johnson (4-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 student_course_attendance (student_id VARCHAR); CREATE TABLE students (student_id VARCHAR)", "role": "system" }, { "content": "List the id of students who never attends courses?", "role": "user" }, { "content": "SELECT student_id FROM students WHERE NOT student_id IN (SELECT student_id FROM student_course_attendance)", "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_26757_4 (slovak VARCHAR, belarusian VARCHAR)", "role": "system" }, { "content": "When вуха (vúkha) is the belarusian how many slovaks are there?", "role": "user" }, { "content": "SELECT COUNT(slovak) FROM table_26757_4 WHERE belarusian = \"вуха (vúkha)\"", "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_27714985_1 (no_s__in_season INTEGER, production_code_s_ VARCHAR)", "role": "system" }, { "content": "What is the episode number of the episode whose production code is 226407?", "role": "user" }, { "content": "SELECT MIN(no_s__in_season) FROM table_27714985_1 WHERE production_code_s_ = 226407", "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 (points INTEGER, goal_difference INTEGER)", "role": "system" }, { "content": "What is the fewest points that has more than 29 goals?", "role": "user" }, { "content": "SELECT MIN(points) FROM table_name_42 WHERE goal_difference > 29", "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_1342270_3 (result VARCHAR, district VARCHAR)", "role": "system" }, { "content": "what are all the result with district being alabama 1", "role": "user" }, { "content": "SELECT result FROM table_1342270_3 WHERE district = \"Alabama 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_46 (defenses INTEGER, days_held VARCHAR)", "role": "system" }, { "content": "What is the lowest defense a champion with 345 days held has?", "role": "user" }, { "content": "SELECT MIN(defenses) FROM table_name_46 WHERE days_held = \"345\"", "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 (driver VARCHAR, laps VARCHAR, grid VARCHAR)", "role": "system" }, { "content": "Which driver had a grid of 18 with 68 laps?", "role": "user" }, { "content": "SELECT driver FROM table_name_88 WHERE laps = \"68\" AND grid = \"18\"", "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_45 (losses INTEGER, goal_difference INTEGER)", "role": "system" }, { "content": "What is the losses when the goal difference is larger than 26?", "role": "user" }, { "content": "SELECT MAX(losses) FROM table_name_45 WHERE goal_difference > 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_name_45 (extra_points INTEGER, touchdowns VARCHAR, points VARCHAR, player VARCHAR)", "role": "system" }, { "content": "Which Extra points has Points smaller than 12, and a Player of chuck bernard, and Touchdowns larger than 1?", "role": "user" }, { "content": "SELECT SUM(extra_points) FROM table_name_45 WHERE points < 12 AND player = \"chuck bernard\" AND touchdowns > 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_16 (date VARCHAR, road_team VARCHAR, game VARCHAR)", "role": "system" }, { "content": "Which Date has a Road team of portland, and a Game of game 5?", "role": "user" }, { "content": "SELECT date FROM table_name_16 WHERE road_team = \"portland\" AND game = \"game 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_14562722_2 (episodes VARCHAR, region_1 VARCHAR)", "role": "system" }, { "content": "Name the episodes when region 1 is september 19, 2006", "role": "user" }, { "content": "SELECT episodes FROM table_14562722_2 WHERE region_1 = \"September 19, 2006\"", "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 (transfer_window VARCHAR, name VARCHAR)", "role": "system" }, { "content": "Name the transfer wind for giuly", "role": "user" }, { "content": "SELECT transfer_window FROM table_name_15 WHERE name = \"giuly\"", "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_46 (fsb_speed VARCHAR, model_number VARCHAR)", "role": "system" }, { "content": "Which FSB Speed has a Model Number of c7-m 765?", "role": "user" }, { "content": "SELECT fsb_speed FROM table_name_46 WHERE model_number = \"c7-m 765\"", "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_10 (frequency VARCHAR, power__kw_ VARCHAR)", "role": "system" }, { "content": "What is the frequency where the power is 25kw?", "role": "user" }, { "content": "SELECT frequency FROM table_name_10 WHERE power__kw_ = \"25kw\"", "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 (country VARCHAR, city VARCHAR)", "role": "system" }, { "content": "what is the country when the city is gafsa?", "role": "user" }, { "content": "SELECT country FROM table_name_1 WHERE city = \"gafsa\"", "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_10 (game INTEGER, march VARCHAR, score VARCHAR)", "role": "system" }, { "content": "Which Game has a March smaller than 12, and a Score of 10–1?", "role": "user" }, { "content": "SELECT MIN(game) FROM table_name_10 WHERE march < 12 AND score = \"10–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_50 (ntfs VARCHAR, refs VARCHAR, hpfs VARCHAR)", "role": "system" }, { "content": "Which NTFS has a no for ReFS and a yes for HPFS?", "role": "user" }, { "content": "SELECT ntfs FROM table_name_50 WHERE refs = \"no\" AND hpfs = \"yes\"", "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 (score VARCHAR, record VARCHAR)", "role": "system" }, { "content": "What is the Score when the record was 9-3-0?", "role": "user" }, { "content": "SELECT score FROM table_name_76 WHERE record = \"9-3-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_13537940_1 (launched VARCHAR, name VARCHAR)", "role": "system" }, { "content": "Which launch date involved the Driade?", "role": "user" }, { "content": "SELECT launched FROM table_13537940_1 WHERE name = \"Driade\"", "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_43 (home_team VARCHAR, away_team VARCHAR)", "role": "system" }, { "content": "What was the home team that played Geelong?", "role": "user" }, { "content": "SELECT home_team AS score FROM table_name_43 WHERE away_team = \"geelong\"", "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_39 (total VARCHAR, league_a VARCHAR)", "role": "system" }, { "content": "What is the Total when the league shows 79 (221)?", "role": "user" }, { "content": "SELECT total FROM table_name_39 WHERE league_a = \"79 (221)\"", "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_26609690_1 (position VARCHAR, team_s_ VARCHAR)", "role": "system" }, { "content": "How many positions are there for RB1 Motorsports?", "role": "user" }, { "content": "SELECT COUNT(position) FROM table_26609690_1 WHERE team_s_ = \"RB1 Motorsports\"", "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_1974545_2 (nickname VARCHAR, institution VARCHAR)", "role": "system" }, { "content": "What's the nickname of Westfield State University's students?", "role": "user" }, { "content": "SELECT nickname FROM table_1974545_2 WHERE institution = \"Westfield State University\"", "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_78 (score VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What is the score on the 1 December 2007 game?", "role": "user" }, { "content": "SELECT score FROM table_name_78 WHERE date = \"1 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_40 (overall_pick VARCHAR, round INTEGER)", "role": "system" }, { "content": "What was the overall pick number of the player selected before round 3?", "role": "user" }, { "content": "SELECT COUNT(overall_pick) FROM table_name_40 WHERE round < 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_55 (money___ INTEGER, to_par VARCHAR, country VARCHAR)", "role": "system" }, { "content": "What is the average money for a to par of 15, and is from the United States?", "role": "user" }, { "content": "SELECT AVG(money___) AS $__ FROM table_name_55 WHERE to_par = 15 AND country = \"united states\"", "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 (record VARCHAR, high_rebounds VARCHAR)", "role": "system" }, { "content": "Which Record has a High rebounds of luc mbah a moute (11)?", "role": "user" }, { "content": "SELECT record FROM table_name_42 WHERE high_rebounds = \"luc mbah a moute (11)\"", "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_45 (country VARCHAR, player VARCHAR)", "role": "system" }, { "content": "What country is Tom Purtzer from?", "role": "user" }, { "content": "SELECT country FROM table_name_45 WHERE player = \"tom purtzer\"", "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 wrestler (Reign VARCHAR)", "role": "system" }, { "content": "Please show the most common reigns of wrestlers.", "role": "user" }, { "content": "SELECT Reign FROM wrestler GROUP BY Reign 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_93 (money___ INTEGER, country VARCHAR, player VARCHAR)", "role": "system" }, { "content": "What is the most money United States player Bob Gilder won?", "role": "user" }, { "content": "SELECT MAX(money___) AS $__ FROM table_name_93 WHERE country = \"united states\" AND player = \"bob gilder\"", "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 (result VARCHAR, attendance VARCHAR)", "role": "system" }, { "content": "What is the Result when the Attendance is 1,634?", "role": "user" }, { "content": "SELECT result FROM table_name_85 WHERE attendance = \"1,634\"", "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 (location VARCHAR, opponent VARCHAR)", "role": "system" }, { "content": "Where was the location where justin robbins fought against billy kidd?", "role": "user" }, { "content": "SELECT location FROM table_name_1 WHERE opponent = \"billy kidd\"", "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_69 (opponent VARCHAR, attendance VARCHAR)", "role": "system" }, { "content": "Which opponent had 38,642 attendance?", "role": "user" }, { "content": "SELECT opponent FROM table_name_69 WHERE attendance = \"38,642\"", "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_31 (method VARCHAR, record VARCHAR)", "role": "system" }, { "content": "What was the method of resolution when Katsuhisa Fujii's record was 0-1?", "role": "user" }, { "content": "SELECT method FROM table_name_31 WHERE record = \"0-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_85 (stage VARCHAR, time__eest_ VARCHAR)", "role": "system" }, { "content": "Name the stage for 08:46", "role": "user" }, { "content": "SELECT stage FROM table_name_85 WHERE time__eest_ = \"08:46\"", "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_36 (sportsperson VARCHAR, sport VARCHAR)", "role": "system" }, { "content": "Who playes the sport of athletics?", "role": "user" }, { "content": "SELECT sportsperson FROM table_name_36 WHERE sport = \"athletics\"", "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 (terminus VARCHAR, length VARCHAR)", "role": "system" }, { "content": "What terminus is 3.5km in lenght?", "role": "user" }, { "content": "SELECT terminus FROM table_name_37 WHERE length = \"3.5km\"", "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 (television_service VARCHAR, language VARCHAR, package_option VARCHAR)", "role": "system" }, { "content": "What television service has italian as the language, and sky famiglia as the package option?", "role": "user" }, { "content": "SELECT television_service FROM table_name_20 WHERE language = \"italian\" AND package_option = \"sky famiglia\"", "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 (number_of_broadband_subscribers VARCHAR, population VARCHAR)", "role": "system" }, { "content": "How many broadband subscribers are there where the population is ~3,644,070?", "role": "user" }, { "content": "SELECT number_of_broadband_subscribers FROM table_name_24 WHERE population = \"~3,644,070\"", "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_21501564_1 (week__number VARCHAR, theme VARCHAR)", "role": "system" }, { "content": "What week # featured first solo as the theme?", "role": "user" }, { "content": "SELECT week__number FROM table_21501564_1 WHERE theme = \"First Solo\"", "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_32 (pick__number VARCHAR, player VARCHAR, reg_gp VARCHAR)", "role": "system" }, { "content": "What is the total pick# played by Anton Rodin with a Reg GP over 0?", "role": "user" }, { "content": "SELECT COUNT(pick__number) FROM table_name_32 WHERE player = \"anton rodin\" AND reg_gp > 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_2618072_1 (original_air_date VARCHAR, written_by VARCHAR)", "role": "system" }, { "content": "When was the original air date written by michael s. chernuchin & joe morgenstern?", "role": "user" }, { "content": "SELECT original_air_date FROM table_2618072_1 WHERE written_by = \"Michael S. Chernuchin & Joe Morgenstern\"", "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 (top_10 VARCHAR, events VARCHAR, cuts_made VARCHAR)", "role": "system" }, { "content": "For events with under 3 times played and fewer than 1 cut made, what is the total number of top-10 finishes?", "role": "user" }, { "content": "SELECT COUNT(top_10) FROM table_name_24 WHERE events < 3 AND cuts_made < 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_17 (round VARCHAR, date VARCHAR, venue VARCHAR, result VARCHAR)", "role": "system" }, { "content": "What is the round of the match at venue A with a result of 1-2 on 7 December 2004?", "role": "user" }, { "content": "SELECT round FROM table_name_17 WHERE venue = \"a\" AND result = \"1-2\" AND date = \"7 december 2004\"", "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_14260687_3 (other VARCHAR, total VARCHAR)", "role": "system" }, { "content": "How man \"other\" millions of smartphones were shipped when 181.1 million total were shipped?", "role": "user" }, { "content": "SELECT COUNT(other) FROM table_14260687_3 WHERE total = \"181.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_27864661_6 (total_wins VARCHAR, first_title VARCHAR)", "role": "system" }, { "content": "How many wins are listed when the first title is 2004?", "role": "user" }, { "content": "SELECT total_wins FROM table_27864661_6 WHERE first_title = 2004", "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_25800134_2 (title VARCHAR, airdate VARCHAR)", "role": "system" }, { "content": "What is the title of the episode that aired on May 10, 1958?", "role": "user" }, { "content": "SELECT title FROM table_25800134_2 WHERE airdate = \"May 10, 1958\"", "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_10 (place VARCHAR, player VARCHAR)", "role": "system" }, { "content": "What is Tommy Bolt's place?", "role": "user" }, { "content": "SELECT place FROM table_name_10 WHERE player = \"tommy bolt\"", "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_78 (rating VARCHAR, player VARCHAR, comp VARCHAR)", "role": "system" }, { "content": "What is the sum rating with more than 1 comp for mark miller?", "role": "user" }, { "content": "SELECT COUNT(rating) FROM table_name_78 WHERE player = \"mark miller\" AND comp > 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_49 (author VARCHAR, title VARCHAR)", "role": "system" }, { "content": "Who is the author of Bludgeoning Angel Dokuro-Chan?", "role": "user" }, { "content": "SELECT author FROM table_name_49 WHERE title = \"bludgeoning angel dokuro-chan\"", "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_26173058_2 (amman VARCHAR, qadisiya VARCHAR)", "role": "system" }, { "content": "what is the place where the location is 2-1", "role": "user" }, { "content": "SELECT amman FROM table_26173058_2 WHERE qadisiya = \"2-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_73 (set_4 VARCHAR, score VARCHAR)", "role": "system" }, { "content": "What is the set 4 with a 2-3 score?", "role": "user" }, { "content": "SELECT set_4 FROM table_name_73 WHERE score = \"2-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_17 (team_1 VARCHAR, team_2 VARCHAR)", "role": "system" }, { "content": "Who is team 1 where team 2 is Fluminense (RJ)?", "role": "user" }, { "content": "SELECT team_1 FROM table_name_17 WHERE team_2 = \"fluminense (rj)\"", "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 APPELLATIONS (County VARCHAR, Appelation VARCHAR); CREATE TABLE WINE (Appelation VARCHAR)", "role": "system" }, { "content": "Find the country of all appelations who have at most three wines.", "role": "user" }, { "content": "SELECT T1.County FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation GROUP BY T2.Appelation HAVING COUNT(*) <= 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_19789597_6 (game INTEGER, high_assists VARCHAR)", "role": "system" }, { "content": "What's the lowest number of a game where S. Johnson (3) did the most high assists?", "role": "user" }, { "content": "SELECT MIN(game) FROM table_19789597_6 WHERE high_assists = \"S. Johnson (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_48 (museum VARCHAR, name VARCHAR)", "role": "system" }, { "content": "What city has the museum that holds the Sue specimen?", "role": "user" }, { "content": "SELECT museum AS city FROM table_name_48 WHERE name = \"sue\"", "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 (drawn INTEGER, team VARCHAR, lost VARCHAR)", "role": "system" }, { "content": "Team of corinthians, and a Lost larger than 15 has which highest drawn?", "role": "user" }, { "content": "SELECT MAX(drawn) FROM table_name_80 WHERE team = \"corinthians\" AND lost > 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_16083989_1 (citrate VARCHAR, species VARCHAR)", "role": "system" }, { "content": "What is the result for salmonella spp. if you use citrate?", "role": "user" }, { "content": "SELECT COUNT(citrate) FROM table_16083989_1 WHERE species = \"Salmonella spp.\"", "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_75 (home_team VARCHAR, away_team VARCHAR)", "role": "system" }, { "content": "What was the score for the away team at Collingwood?", "role": "user" }, { "content": "SELECT home_team AS score FROM table_name_75 WHERE away_team = \"collingwood\"", "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 (jockey VARCHAR, post_time_odds VARCHAR)", "role": "system" }, { "content": "Who was the jockey that had post time odds of 34-1?", "role": "user" }, { "content": "SELECT jockey FROM table_name_59 WHERE post_time_odds = \"34-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_24 (award VARCHAR, year VARCHAR, category VARCHAR)", "role": "system" }, { "content": "what is the award for the 2009 songwriter of the year?", "role": "user" }, { "content": "SELECT award FROM table_name_24 WHERE year = 2009 AND category = \"songwriter of the year\"", "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_18 (pos VARCHAR, date_to VARCHAR, name VARCHAR)", "role": "system" }, { "content": "What is Pos., when Date To is \"30 June 2009\", and when Name is \"Eddie Johnson\"?", "role": "user" }, { "content": "SELECT pos FROM table_name_18 WHERE date_to = \"30 june 2009\" AND name = \"eddie johnson\"", "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 (game INTEGER, record VARCHAR)", "role": "system" }, { "content": "What was the earliest game with a record of 23–6–4?", "role": "user" }, { "content": "SELECT MIN(game) FROM table_name_48 WHERE record = \"23–6–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_50 (score VARCHAR, date VARCHAR)", "role": "system" }, { "content": "WHAT SCORE WAS ON SEPTEMBER 21?", "role": "user" }, { "content": "SELECT score FROM table_name_50 WHERE date = \"september 21\"", "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 (team__number1 VARCHAR, time___cest__ INTEGER)", "role": "system" }, { "content": "What id the team with a smaller Time than 18?", "role": "user" }, { "content": "SELECT team__number1 FROM table_name_76 WHERE time___cest__ < 18", "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_26 (surface VARCHAR, tournament VARCHAR)", "role": "system" }, { "content": "What is the Surface of the Court in Napoli?", "role": "user" }, { "content": "SELECT surface FROM table_name_26 WHERE tournament = \"napoli\"", "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_29565541_2 (stolen_ends INTEGER, l VARCHAR)", "role": "system" }, { "content": "When 5 is the l what is the lowest amount of stolen ends?", "role": "user" }, { "content": "SELECT MIN(stolen_ends) FROM table_29565541_2 WHERE l = 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_4 (season VARCHAR, opponent VARCHAR)", "role": "system" }, { "content": "Which Season has an Opponent of hibernians?", "role": "user" }, { "content": "SELECT season FROM table_name_4 WHERE opponent = \"hibernians\"", "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_22815568_6 (county VARCHAR, poverty_rate VARCHAR)", "role": "system" }, { "content": "If the poverty rate is 12.9%, what is the county?", "role": "user" }, { "content": "SELECT county FROM table_22815568_6 WHERE poverty_rate = \"12.9%\"", "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 (score VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What is the score on 2 October 2011?", "role": "user" }, { "content": "SELECT score FROM table_name_72 WHERE date = \"2 october 2011\"", "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_13857700_1 (mens_doubles VARCHAR, year VARCHAR)", "role": "system" }, { "content": "who is the the mens doubles with year being 1978", "role": "user" }, { "content": "SELECT mens_doubles FROM table_13857700_1 WHERE year = 1978", "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_69 (bronze VARCHAR, rank VARCHAR, gold VARCHAR, silver VARCHAR)", "role": "system" }, { "content": "Which Bronze has a Gold larger than 1, and a Silver smaller than 3, and a Rank smaller than 5?", "role": "user" }, { "content": "SELECT bronze FROM table_name_69 WHERE gold > 1 AND silver < 3 AND rank < 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_76 (score_ VARCHAR, c_ VARCHAR, winner VARCHAR, season VARCHAR)", "role": "system" }, { "content": "What is the score of the event that Alianza Lima won in 1965?", "role": "user" }, { "content": "SELECT score_[c_] FROM table_name_76 WHERE winner = \"alianza lima\" AND season = 1965", "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_1620397_2 (featuring VARCHAR, author VARCHAR)", "role": "system" }, { "content": "Name the featuring for pat mills", "role": "user" }, { "content": "SELECT featuring FROM table_1620397_2 WHERE author = \"Pat Mills\"", "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 (erp__analog__digital_ VARCHAR, region_served VARCHAR)", "role": "system" }, { "content": "What is the ERP for the Rockhampton region?", "role": "user" }, { "content": "SELECT erp__analog__digital_ FROM table_name_27 WHERE region_served = \"rockhampton\"", "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 (first_cap VARCHAR, caps VARCHAR)", "role": "system" }, { "content": "When was the first cap associated with 74 caps?", "role": "user" }, { "content": "SELECT first_cap FROM table_name_27 WHERE caps = 74", "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_22 (crowd INTEGER, venue VARCHAR)", "role": "system" }, { "content": "What was the average crowd size at Victoria Park?", "role": "user" }, { "content": "SELECT AVG(crowd) FROM table_name_22 WHERE venue = \"victoria park\"", "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 (date VARCHAR, opponent VARCHAR)", "role": "system" }, { "content": "On what day was Utah Blaze the opponent?", "role": "user" }, { "content": "SELECT date FROM table_name_6 WHERE opponent = \"utah blaze\"", "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_66 (position VARCHAR, debut VARCHAR)", "role": "system" }, { "content": "What position had a debut in round 6?", "role": "user" }, { "content": "SELECT position FROM table_name_66 WHERE debut = \"round 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_25816476_2 (air_date VARCHAR, team_guest_captain VARCHAR)", "role": "system" }, { "content": "What was the air date when the team guest captain was john bishop?", "role": "user" }, { "content": "SELECT air_date FROM table_25816476_2 WHERE team_guest_captain = \"John Bishop\"", "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 (game VARCHAR, opponent VARCHAR)", "role": "system" }, { "content": "What is the total number of games for the opponent in Washington?", "role": "user" }, { "content": "SELECT COUNT(game) FROM table_name_89 WHERE opponent = \"washington\"", "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_2771237_1 (overall_attendance VARCHAR, average_attendance VARCHAR)", "role": "system" }, { "content": "How many times was the overall attendance 17807?", "role": "user" }, { "content": "SELECT COUNT(overall_attendance) FROM table_2771237_1 WHERE average_attendance = 17807", "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 festival_detail (Num_of_Audience INTEGER)", "role": "system" }, { "content": "What are the total number of the audiences who visited any of the festivals?", "role": "user" }, { "content": "SELECT SUM(Num_of_Audience) FROM festival_detail", "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 (type VARCHAR, year INTEGER)", "role": "system" }, { "content": "What was the type after 2004?", "role": "user" }, { "content": "SELECT type FROM table_name_14 WHERE year > 2004", "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_13741576_6 (points VARCHAR, points_for VARCHAR)", "role": "system" }, { "content": "Nantyglo RFC had 546 points for and how many points?", "role": "user" }, { "content": "SELECT points FROM table_13741576_6 WHERE points_for = \"546\"", "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_61 (position VARCHAR, country VARCHAR, pick VARCHAR)", "role": "system" }, { "content": "What position was picked for Canada on Pick 8?", "role": "user" }, { "content": "SELECT position FROM table_name_61 WHERE country = \"canada\" AND pick = \"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_91 (friday_shukra__venus_ VARCHAR, tuesday_mangala__mars_ VARCHAR)", "role": "system" }, { "content": "What is the result of Friday that's တ္ၚဲ အၚါ [ŋoa əŋɛ̀a] from sans. aṅgāra on Tuesday?", "role": "user" }, { "content": "SELECT friday_shukra__venus_ FROM table_name_91 WHERE tuesday_mangala__mars_ = \"တ္ၚဲ အၚါ [ŋoa əŋɛ̀a] from sans. aṅgāra\"", "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 (grand_finaldate VARCHAR, season VARCHAR)", "role": "system" }, { "content": "I want the Grand Final Date for season 1988", "role": "user" }, { "content": "SELECT grand_finaldate FROM table_name_40 WHERE season = 1988", "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_14903491_1 (year VARCHAR, womens_doubles VARCHAR, mens_singles VARCHAR)", "role": "system" }, { "content": "Name the number of years for womens doubles being diana koleva emilia dimitrova and jeliazko valkov", "role": "user" }, { "content": "SELECT COUNT(year) FROM table_14903491_1 WHERE womens_doubles = \"Diana Koleva Emilia Dimitrova\" AND mens_singles = \"Jeliazko Valkov\"", "role": "assistant" } ]