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_26847237_1 (location VARCHAR, opposition VARCHAR)", "role": "system" }, { "content": "What was the location when the opposition was East Coast?", "role": "user" }, { "content": "SELECT location FROM table_26847237_1 WHERE opposition = \"East Coast\"", "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_1342218_17 (first_elected VARCHAR, incumbent VARCHAR)", "role": "system" }, { "content": "How many times was incumbent Noble Jones Gregory first elected?", "role": "user" }, { "content": "SELECT COUNT(first_elected) FROM table_1342218_17 WHERE incumbent = \"Noble Jones Gregory\"", "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 (position VARCHAR, player VARCHAR)", "role": "system" }, { "content": "What position is Sal Martinez?", "role": "user" }, { "content": "SELECT position FROM table_name_32 WHERE player = \"sal martinez\"", "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 (round VARCHAR, player VARCHAR)", "role": "system" }, { "content": "What round was Nick Gillis?", "role": "user" }, { "content": "SELECT round FROM table_name_32 WHERE player = \"nick gillis\"", "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 of the event held on July 23, 2009?", "role": "user" }, { "content": "SELECT score FROM table_name_78 WHERE date = \"july 23, 2009\"", "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 (position VARCHAR, round VARCHAR)", "role": "system" }, { "content": "Which position is round 7?", "role": "user" }, { "content": "SELECT position FROM table_name_27 WHERE round = 7", "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 (rank INTEGER, country VARCHAR)", "role": "system" }, { "content": "What was the lowest ranking rower from Great Britain?", "role": "user" }, { "content": "SELECT MIN(rank) FROM table_name_86 WHERE country = \"great britain\"", "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 (played INTEGER, lost VARCHAR, against VARCHAR)", "role": "system" }, { "content": "Which Played has a Lost of 3, and an Against of 23?", "role": "user" }, { "content": "SELECT AVG(played) FROM table_name_63 WHERE lost = 3 AND against = 23", "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 (coombe_road VARCHAR, woodside VARCHAR)", "role": "system" }, { "content": "What is the Coombe Road with a Woodside time of 07:23?", "role": "user" }, { "content": "SELECT coombe_road FROM table_name_14 WHERE woodside = \"07:23\"", "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_71 (elimination VARCHAR, wrestler VARCHAR)", "role": "system" }, { "content": "What's Jorge Santana's elimination?", "role": "user" }, { "content": "SELECT elimination FROM table_name_71 WHERE wrestler = \"jorge santana\"", "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 TRANSACTIONS (amount_of_transaction INTEGER)", "role": "system" }, { "content": "Show the maximum amount of transaction.", "role": "user" }, { "content": "SELECT MAX(amount_of_transaction) FROM TRANSACTIONS", "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_29 (points INTEGER, opponent VARCHAR, game VARCHAR)", "role": "system" }, { "content": "What is the total Points for the Opponent of @ New Jersey Devils and a Game bigger than 7?", "role": "user" }, { "content": "SELECT SUM(points) FROM table_name_29 WHERE opponent = \"@ new jersey devils\" AND game > 7", "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 (opponent VARCHAR, points VARCHAR)", "role": "system" }, { "content": "Which opponent has 63 points?", "role": "user" }, { "content": "SELECT opponent FROM table_name_98 WHERE points = 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_name_60 (score_in_the_final VARCHAR, surface VARCHAR, opponent_in_the_final VARCHAR)", "role": "system" }, { "content": "What is the score in the final with a hard surface and is against Hiromi Nagano?", "role": "user" }, { "content": "SELECT score_in_the_final FROM table_name_60 WHERE surface = \"hard\" AND opponent_in_the_final = \"hiromi nagano\"", "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_53 (attendance VARCHAR, opponent VARCHAR)", "role": "system" }, { "content": "What is the Attendance of the game against Jacksonville Jaguars?", "role": "user" }, { "content": "SELECT attendance FROM table_name_53 WHERE opponent = \"jacksonville jaguars\"", "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_1255110_7 (goals_against INTEGER)", "role": "system" }, { "content": "What is the highest value under the column goals against?", "role": "user" }, { "content": "SELECT MAX(goals_against) FROM table_1255110_7", "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 (time_retired VARCHAR, driver VARCHAR)", "role": "system" }, { "content": "What time or retired does Scott Dixon have?", "role": "user" }, { "content": "SELECT time_retired FROM table_name_7 WHERE driver = \"scott dixon\"", "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_29395291_2 (subscribers__2006___thousands_ INTEGER, provider VARCHAR)", "role": "system" }, { "content": "What is the maximum number of 2006 subscribers for Mobilis?", "role": "user" }, { "content": "SELECT MAX(subscribers__2006___thousands_) FROM table_29395291_2 WHERE provider = \"Mobilis\"", "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 (date VARCHAR, time VARCHAR, meet VARCHAR, nationality VARCHAR)", "role": "system" }, { "content": "What is Date, when Meet is \"World Championships\", when Nationality is \"United States\", and when Time is \"1:46.68\"?", "role": "user" }, { "content": "SELECT date FROM table_name_86 WHERE meet = \"world championships\" AND nationality = \"united states\" AND time = \"1:46.68\"", "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_38 (average INTEGER, matches VARCHAR, wickets VARCHAR, career VARCHAR)", "role": "system" }, { "content": "Name the least average with wickets more than 265 and career of 1888/89-1913/14 and matches more than 51", "role": "user" }, { "content": "SELECT MIN(average) FROM table_name_38 WHERE wickets > 265 AND career = \"1888/89-1913/14\" AND matches > 51", "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_1305623_18 (gold_medals VARCHAR, silver_medals INTEGER)", "role": "system" }, { "content": "what are all the gold medals when the silver medals is smaller than 1.0?", "role": "user" }, { "content": "SELECT gold_medals FROM table_1305623_18 WHERE silver_medals < 1.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_75 (episode VARCHAR, airdate__usa_ VARCHAR)", "role": "system" }, { "content": "Which episode aired in the USA on 20 May 2005?", "role": "user" }, { "content": "SELECT episode FROM table_name_75 WHERE airdate__usa_ = \"20 may 2005\"", "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 (team VARCHAR, founded VARCHAR, type VARCHAR)", "role": "system" }, { "content": "What public team was founded prior to 1883?", "role": "user" }, { "content": "SELECT team FROM table_name_45 WHERE founded < 1883 AND type = \"public\"", "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 (date VARCHAR, week VARCHAR, result VARCHAR)", "role": "system" }, { "content": "When was the game before week 15 with the result of bye?", "role": "user" }, { "content": "SELECT date FROM table_name_26 WHERE week < 15 AND result = \"bye\"", "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 (crowd INTEGER, venue VARCHAR)", "role": "system" }, { "content": "What is the highest crowd at windy hill?", "role": "user" }, { "content": "SELECT MAX(crowd) FROM table_name_51 WHERE venue = \"windy hill\"", "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 (opponent VARCHAR, week VARCHAR)", "role": "system" }, { "content": "Who was the opponent in week 6?", "role": "user" }, { "content": "SELECT opponent FROM table_name_89 WHERE week = 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_24329520_8 (county VARCHAR, borough VARCHAR, members VARCHAR, franchise_type VARCHAR)", "role": "system" }, { "content": "Which county has a membership of 1, a franchise type of corporation and a borough of Ennis?", "role": "user" }, { "content": "SELECT county FROM table_24329520_8 WHERE members = 1 AND franchise_type = \"Corporation\" AND borough = \"Ennis\"", "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_41 (april VARCHAR, june VARCHAR)", "role": "system" }, { "content": "Name the april for candice cassidy", "role": "user" }, { "content": "SELECT april FROM table_name_41 WHERE june = \"candice cassidy\"", "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_30 (moroccan_population VARCHAR, name VARCHAR, population__2004_ VARCHAR)", "role": "system" }, { "content": "What is the number for the Moroccan population when the name is Sebt Saiss and the 2004 population is more than 11212?", "role": "user" }, { "content": "SELECT COUNT(moroccan_population) FROM table_name_30 WHERE name = \"sebt saiss\" AND population__2004_ > 11212", "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_27734286_7 (high_assists VARCHAR, date VARCHAR)", "role": "system" }, { "content": "Who had the high assist total on january 8?", "role": "user" }, { "content": "SELECT high_assists FROM table_27734286_7 WHERE date = \"January 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 artists (id VARCHAR, name VARCHAR); CREATE TABLE albums (title VARCHAR, artist_id VARCHAR)", "role": "system" }, { "content": "List Aerosmith's albums.", "role": "user" }, { "content": "SELECT T1.title FROM albums AS T1 JOIN artists AS T2 ON T1.artist_id = T2.id WHERE T2.name = \"Aerosmith\"", "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_25055040_22 (sprint_classification VARCHAR, youth_classification VARCHAR, most_courageous VARCHAR)", "role": "system" }, { "content": "When Peter Sagan won the youth classification and Thomas Rabou won the most corageous, who won the sprint classification?", "role": "user" }, { "content": "SELECT sprint_classification FROM table_25055040_22 WHERE youth_classification = \"Peter Sagan\" AND most_courageous = \"Thomas Rabou\"", "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_25773116_2 (pole_position VARCHAR, fastest_lap VARCHAR, location VARCHAR)", "role": "system" }, { "content": "Who had pole position for the races in Braselton, Georgia where Victor Carbone had fastest lap?", "role": "user" }, { "content": "SELECT pole_position FROM table_25773116_2 WHERE fastest_lap = \"Victor Carbone\" AND location = \"Braselton, Georgia\"", "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_225100_4 (vacator VARCHAR, district VARCHAR)", "role": "system" }, { "content": "Who is the vacator when south carolina 4th is the district?", "role": "user" }, { "content": "SELECT vacator FROM table_225100_4 WHERE district = \"South Carolina 4th\"", "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 (pick VARCHAR, player VARCHAR)", "role": "system" }, { "content": "What number pick is Ray Hall?", "role": "user" }, { "content": "SELECT pick FROM table_name_91 WHERE player = \"ray hall\"", "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 (record VARCHAR, opponent VARCHAR, date VARCHAR)", "role": "system" }, { "content": "On August 10, what was the record against the Expos?", "role": "user" }, { "content": "SELECT record FROM table_name_21 WHERE opponent = \"expos\" AND date = \"august 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_25084227_1 (written_by VARCHAR, us_viewers__in_millions_ VARCHAR)", "role": "system" }, { "content": "if the 2.09 million US viewers watched this episode, who was it written by", "role": "user" }, { "content": "SELECT written_by FROM table_25084227_1 WHERE us_viewers__in_millions_ = \"2.09\"", "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 (name VARCHAR, cerclis_id VARCHAR)", "role": "system" }, { "content": "Which site has the CERCLIS ID fld004092532?", "role": "user" }, { "content": "SELECT name FROM table_name_88 WHERE cerclis_id = \"fld004092532\"", "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 (time___et__ VARCHAR, opponent VARCHAR)", "role": "system" }, { "content": "When is the Opponent of new england patriots?", "role": "user" }, { "content": "SELECT time___et__ FROM table_name_3 WHERE opponent = \"new england patriots\"", "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_35 (qual VARCHAR, laps VARCHAR, year VARCHAR)", "role": "system" }, { "content": "What was the qualification with more than 162 laps in 1953?", "role": "user" }, { "content": "SELECT qual FROM table_name_35 WHERE laps > 162 AND year = \"1953\"", "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 (away_team VARCHAR, home_team VARCHAR)", "role": "system" }, { "content": "What was the away team for the game in Slough Town?", "role": "user" }, { "content": "SELECT away_team FROM table_name_75 WHERE home_team = \"slough town\"", "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_founded INTEGER, county_or_counties VARCHAR)", "role": "system" }, { "content": "what is the most recent date founded in elk county?", "role": "user" }, { "content": "SELECT MAX(date_founded) FROM table_name_6 WHERE county_or_counties = \"elk county\"", "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 person (name VARCHAR, job VARCHAR, age INTEGER); CREATE TABLE Person (name VARCHAR, job VARCHAR, age INTEGER)", "role": "system" }, { "content": "Who is the oldest person whose job is student?", "role": "user" }, { "content": "SELECT name FROM Person WHERE job = 'student' AND age = (SELECT MAX(age) FROM person WHERE job = 'student')", "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 (points INTEGER, name VARCHAR, position VARCHAR)", "role": "system" }, { "content": "what is the lowest points when name is ehc münchen ii and position is less than 7?", "role": "user" }, { "content": "SELECT MIN(points) FROM table_name_24 WHERE name = \"ehc münchen ii\" AND position < 7", "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 (torque VARCHAR, engine VARCHAR)", "role": "system" }, { "content": "Which torque value is associated with the 1.3 16V multijet engine?", "role": "user" }, { "content": "SELECT torque FROM table_name_86 WHERE engine = \"1.3 16v multijet\"", "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 (score_in_the_final VARCHAR, surface VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What score in the final has hard as the surface, and june 13, 2011 as the date?", "role": "user" }, { "content": "SELECT score_in_the_final FROM table_name_57 WHERE surface = \"hard\" AND date = \"june 13, 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_1439045_5 (opengl VARCHAR, model VARCHAR)", "role": "system" }, { "content": "Which version of opengl is used by model sgx520?", "role": "user" }, { "content": "SELECT opengl AS ES FROM table_1439045_5 WHERE model = \"SGX520\"", "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_77 (attendance VARCHAR, week VARCHAR)", "role": "system" }, { "content": "What was the attendance total for week 10?", "role": "user" }, { "content": "SELECT attendance FROM table_name_77 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 Student (Major VARCHAR)", "role": "system" }, { "content": "Which major has least number of students? List the major and the number of students.", "role": "user" }, { "content": "SELECT Major, COUNT(*) FROM Student GROUP BY Major ORDER BY COUNT(Major) 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_17 (gold VARCHAR, silver VARCHAR, bronze VARCHAR, rank VARCHAR)", "role": "system" }, { "content": "What is the total number of gold medals for the skater with less than 3 bronze medals, more than 0 silver medals and a rank smaller than 11?", "role": "user" }, { "content": "SELECT COUNT(gold) FROM table_name_17 WHERE bronze < 3 AND rank < 11 AND silver > 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_37 (Chief VARCHAR, judge VARCHAR)", "role": "system" }, { "content": "Who was Judge Jack Edward Tanner's chief judge?", "role": "user" }, { "content": "SELECT Chief AS judge FROM table_name_37 WHERE judge = \"jack edward tanner\"", "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 Products (Product_Name VARCHAR, Product_ID VARCHAR); CREATE TABLE Products_in_Events (Product_ID VARCHAR)", "role": "system" }, { "content": "Show the names of products and the number of events they are in, sorted by the number of events in descending order.", "role": "user" }, { "content": "SELECT T1.Product_Name, COUNT(*) FROM Products AS T1 JOIN Products_in_Events AS T2 ON T1.Product_ID = T2.Product_ID GROUP BY T1.Product_Name ORDER BY COUNT(*) DESC", "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_71 (Id VARCHAR)", "role": "system" }, { "content": "What was 2002, when 2011 was, \"atp masters series\"?", "role": "user" }, { "content": "SELECT 2002 FROM table_name_71 WHERE 2011 = \"atp masters series\"", "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_30058355_7 (sat_27_aug VARCHAR, thurs_25_aug VARCHAR)", "role": "system" }, { "content": "What is every entry for Saturday August 27 when the entry for Thursday August 25 is 23' 56.90 94.528mph?", "role": "user" }, { "content": "SELECT sat_27_aug FROM table_30058355_7 WHERE thurs_25_aug = \"23' 56.90 94.528mph\"", "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 (opponents VARCHAR, attendance VARCHAR, h___a VARCHAR, result_f___a VARCHAR)", "role": "system" }, { "content": "Which Opponent has a H / A of a, and a Result F – A of 2 – 0, and a Attendance larger than 30,000?", "role": "user" }, { "content": "SELECT opponents FROM table_name_50 WHERE h___a = \"a\" AND result_f___a = \"2 – 0\" AND attendance > 30 OFFSET 000", "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 (metas_volantes_classification VARCHAR, points_classification VARCHAR)", "role": "system" }, { "content": "Who won the Metas Volantes Classification in the stage in which Damiano Cunego won the points classification?", "role": "user" }, { "content": "SELECT metas_volantes_classification FROM table_name_16 WHERE points_classification = \"damiano cunego\"", "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 (name VARCHAR, career_caps VARCHAR, tour_apps VARCHAR, tests VARCHAR)", "role": "system" }, { "content": "What name has tour Apps larger than 7, tests larger than 4, and a Career caps of 20?", "role": "user" }, { "content": "SELECT name FROM table_name_22 WHERE tour_apps > 7 AND tests > 4 AND career_caps = 20", "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 payments (payment_date VARCHAR, amount_paid VARCHAR, payment_type_code VARCHAR)", "role": "system" }, { "content": "What are the payment date of the payment with amount paid higher than 300 or with payment type is 'Check'", "role": "user" }, { "content": "SELECT payment_date FROM payments WHERE amount_paid > 300 OR payment_type_code = 'Check'", "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 (laps VARCHAR, time_retired VARCHAR, grid VARCHAR)", "role": "system" }, { "content": "How many laps for a Time/Retired of tyre, and a Grid larger than 10?", "role": "user" }, { "content": "SELECT COUNT(laps) FROM table_name_66 WHERE time_retired = \"tyre\" AND grid > 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_67 (points VARCHAR, team VARCHAR)", "role": "system" }, { "content": "Cumulative point total for all teams playing on the Discovery Channel?", "role": "user" }, { "content": "SELECT COUNT(points) FROM table_name_67 WHERE team = \"discovery channel\"", "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 (round VARCHAR, position VARCHAR, college VARCHAR)", "role": "system" }, { "content": "Name the total number of round for wide receiver for kent state", "role": "user" }, { "content": "SELECT COUNT(round) FROM table_name_51 WHERE position = \"wide receiver\" AND college = \"kent state\"", "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 submission (Id VARCHAR)", "role": "system" }, { "content": "How many submissions are there?", "role": "user" }, { "content": "SELECT COUNT(*) FROM submission", "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 (isotopic_mass___u__ VARCHAR, nuclide VARCHAR)", "role": "system" }, { "content": "What is the isotopic mass (u) when the nuclide is 89 y?", "role": "user" }, { "content": "SELECT isotopic_mass___u__ FROM table_name_6 WHERE nuclide = \"89 y\"", "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 (state VARCHAR, electorate VARCHAR)", "role": "system" }, { "content": "What state shows for Cunningham?", "role": "user" }, { "content": "SELECT state FROM table_name_3 WHERE electorate = \"cunningham\"", "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 (crowd VARCHAR, venue VARCHAR)", "role": "system" }, { "content": "How many people came to the game at Victoria Park?", "role": "user" }, { "content": "SELECT COUNT(crowd) FROM table_name_17 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_14708760_3 (round_1 INTEGER, round_2 VARCHAR)", "role": "system" }, { "content": "What is the highest score of round 1 where they also shot 90 in round 2", "role": "user" }, { "content": "SELECT MAX(round_1) FROM table_14708760_3 WHERE round_2 = 90", "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_16799784_11 (latitude VARCHAR, diameter__km_ VARCHAR)", "role": "system" }, { "content": "At what latitude can you find the diameter (km) of 500.0?", "role": "user" }, { "content": "SELECT latitude FROM table_16799784_11 WHERE diameter__km_ = \"500.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_18220102_1 (award_winning_film VARCHAR, opening_film VARCHAR)", "role": "system" }, { "content": "How many award-winning films have the opening film of encounters at the end of the world?", "role": "user" }, { "content": "SELECT COUNT(award_winning_film) FROM table_18220102_1 WHERE opening_film = \"Encounters at the End of the 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_29 (commissioned VARCHAR, operator VARCHAR)", "role": "system" }, { "content": "What is the commissioned for Vietnam?", "role": "user" }, { "content": "SELECT commissioned FROM table_name_29 WHERE operator = \"vietnam\"", "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 (song VARCHAR, weeks_at_number_one VARCHAR, issue_date_s_ VARCHAR)", "role": "system" }, { "content": "Which Song has a Weeks at number one larger than 2, and an Issue date(s) of 17 april - 8 may?", "role": "user" }, { "content": "SELECT song FROM table_name_52 WHERE weeks_at_number_one > 2 AND issue_date_s_ = \"17 april - 8 may\"", "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_23466021_4 (opponent VARCHAR, attendance VARCHAR)", "role": "system" }, { "content": "Which opponent has 36102 is the attendance?", "role": "user" }, { "content": "SELECT opponent FROM table_23466021_4 WHERE attendance = 36102", "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 (record VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What is the record of the buccaneers on December 4, 1983?", "role": "user" }, { "content": "SELECT record FROM table_name_9 WHERE date = \"december 4, 1983\"", "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_54 (type VARCHAR, title VARCHAR)", "role": "system" }, { "content": "What type of state did the ruler have a title?", "role": "user" }, { "content": "SELECT type FROM table_name_54 WHERE title = \"ruler\"", "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_97 (gold INTEGER, silver VARCHAR, bronze VARCHAR, rank VARCHAR)", "role": "system" }, { "content": "What is the lowest number of Gold, when the number of Bronze is less than 36, when the Rank is 2, and when Silver is less than 37?", "role": "user" }, { "content": "SELECT MIN(gold) FROM table_name_97 WHERE bronze < 36 AND rank = \"2\" AND silver < 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 table_name_98 (event VARCHAR, method VARCHAR)", "role": "system" }, { "content": "What event did Mikhail Avetisyan win by method of DQ (eye gouging)?", "role": "user" }, { "content": "SELECT event FROM table_name_98 WHERE method = \"dq (eye gouging)\"", "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_24396664_2 (game_site VARCHAR, kickoff VARCHAR)", "role": "system" }, { "content": "Where was the game played that started at 7:00 p.m.?", "role": "user" }, { "content": "SELECT game_site FROM table_24396664_2 WHERE kickoff = \"7:00 p.m.\"", "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 (supplier VARCHAR, year VARCHAR)", "role": "system" }, { "content": "Which Supplier has a Year of 2006-2008?", "role": "user" }, { "content": "SELECT supplier FROM table_name_83 WHERE year = \"2006-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_12280396_1 (county VARCHAR, isolation__km_ VARCHAR)", "role": "system" }, { "content": "What county is in isolation of 29?", "role": "user" }, { "content": "SELECT county FROM table_12280396_1 WHERE isolation__km_ = 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_name_51 (goals INTEGER, games VARCHAR)", "role": "system" }, { "content": "How many goals are associated with 75 games?", "role": "user" }, { "content": "SELECT MAX(goals) FROM table_name_51 WHERE games = 75", "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 (erp_w INTEGER, call_sign VARCHAR)", "role": "system" }, { "content": "Call sign k216fo has what average ERP W?", "role": "user" }, { "content": "SELECT AVG(erp_w) FROM table_name_76 WHERE call_sign = \"k216fo\"", "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_22357065_1 (league VARCHAR, nation VARCHAR)", "role": "system" }, { "content": "Name the league cup for northern ireland", "role": "user" }, { "content": "SELECT league AS Cup FROM table_22357065_1 WHERE nation = \"Northern Ireland\"", "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_171356_2 (census_ranking VARCHAR, area_km_2 VARCHAR)", "role": "system" }, { "content": "What rank is the parish with 482.81 km^2?", "role": "user" }, { "content": "SELECT census_ranking FROM table_171356_2 WHERE area_km_2 = \"482.81\"", "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_2 (date VARCHAR, week VARCHAR)", "role": "system" }, { "content": "On what date was Tampa Bay's Week 4 game?", "role": "user" }, { "content": "SELECT date FROM table_name_2 WHERE week = \"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_4 (against INTEGER, wins VARCHAR, byes VARCHAR)", "role": "system" }, { "content": "What is the highest score with 0 wins and more than 2 Byes?", "role": "user" }, { "content": "SELECT MAX(against) FROM table_name_4 WHERE wins = 0 AND byes > 2", "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_11 (fineness VARCHAR, year VARCHAR, reverse VARCHAR)", "role": "system" }, { "content": "What is the fineness of the 2008 chinese cuju sport Reverse?", "role": "user" }, { "content": "SELECT fineness FROM table_name_11 WHERE year = 2008 AND reverse = \"chinese cuju sport\"", "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 (record VARCHAR, method VARCHAR, opponent VARCHAR)", "role": "system" }, { "content": "What is Record, when Method is KO, and when Opponent is Rich Guerin?", "role": "user" }, { "content": "SELECT record FROM table_name_99 WHERE method = \"ko\" AND opponent = \"rich guerin\"", "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 (rank VARCHAR, gold VARCHAR, silver VARCHAR)", "role": "system" }, { "content": "What Rank has a gold smaller than 1, and a silver larger than 0?", "role": "user" }, { "content": "SELECT rank FROM table_name_25 WHERE gold < 1 AND silver > 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_42 (staying_councillors INTEGER, new_council VARCHAR, election_result VARCHAR, party VARCHAR)", "role": "system" }, { "content": "How many staying councillors were there when the election result was larger than 0, the new council less than 27 and the party conservatives?", "role": "user" }, { "content": "SELECT AVG(staying_councillors) FROM table_name_42 WHERE election_result > 0 AND party = \"conservatives\" AND new_council < 27", "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_11934032_1 (registrations VARCHAR, station_number VARCHAR)", "role": "system" }, { "content": "what are all the registrations where station number is c26", "role": "user" }, { "content": "SELECT registrations FROM table_11934032_1 WHERE station_number = \"C26\"", "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 (hardness VARCHAR, liquid_at__°c_ VARCHAR)", "role": "system" }, { "content": "What is the hardness for the alloy that is liquid at 243 degrees C?", "role": "user" }, { "content": "SELECT hardness FROM table_name_45 WHERE liquid_at__°c_ = \"243\"", "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 (result VARCHAR, category VARCHAR)", "role": "system" }, { "content": "Which Result has a Category of best book of a musical?", "role": "user" }, { "content": "SELECT result FROM table_name_45 WHERE category = \"best book of a musical\"", "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_41 (winner_or_2nd VARCHAR, weight VARCHAR, result VARCHAR)", "role": "system" }, { "content": "What is the the name of the winner or 2nd with a weight more than 7.3, and the result was –?", "role": "user" }, { "content": "SELECT winner_or_2nd FROM table_name_41 WHERE weight > 7.3 AND result = \"–\"", "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 (to_par VARCHAR, total VARCHAR)", "role": "system" }, { "content": "What is the To par when there was a total of 291?", "role": "user" }, { "content": "SELECT to_par FROM table_name_10 WHERE total = 291", "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 DEPARTMENT (DPhone VARCHAR, Room VARCHAR)", "role": "system" }, { "content": "What are the phones of departments in Room 268?", "role": "user" }, { "content": "SELECT DPhone FROM DEPARTMENT WHERE Room = 268", "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_22683369_8 (p VARCHAR, player VARCHAR)", "role": "system" }, { "content": "What is bryan hodge's player number", "role": "user" }, { "content": "SELECT COUNT(p) FROM table_22683369_8 WHERE player = \"Bryan Hodge\"", "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 (type VARCHAR, year VARCHAR, artist VARCHAR)", "role": "system" }, { "content": "What is the type of disc by Logistics after 2004?", "role": "user" }, { "content": "SELECT type FROM table_name_95 WHERE year > 2004 AND artist = \"logistics\"", "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 (call_sign VARCHAR, frequency VARCHAR)", "role": "system" }, { "content": "What is the call sign of 1200 am?", "role": "user" }, { "content": "SELECT call_sign FROM table_name_9 WHERE frequency = \"1200 am\"", "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 (revenue__ INTEGER, rank VARCHAR, country VARCHAR, team VARCHAR)", "role": "system" }, { "content": "Name the least revenue for chelsea of england with rank less than 7", "role": "user" }, { "content": "SELECT MIN(revenue__) AS $m_ FROM table_name_73 WHERE country = \"england\" AND team = \"chelsea\" AND rank < 7", "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_1717824_1 (_percentage_2011 VARCHAR, province VARCHAR)", "role": "system" }, { "content": "What was the percentage in Manitoba in 2011?", "role": "user" }, { "content": "SELECT _percentage_2011 FROM table_1717824_1 WHERE province = \"Manitoba\"", "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 country (Name VARCHAR, Population VARCHAR, LifeExpectancy VARCHAR, Continent VARCHAR, SurfaceArea VARCHAR)", "role": "system" }, { "content": "Find the name, population and expected life length of asian country with the largest area?", "role": "user" }, { "content": "SELECT Name, Population, LifeExpectancy FROM country WHERE Continent = \"Asia\" ORDER BY SurfaceArea DESC LIMIT 1", "role": "assistant" } ]