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_41 (average INTEGER, goals VARCHAR, matches VARCHAR)", "role": "system" }, { "content": "What is the highest Average, when Goals is \"34\", and when Matches is less than 37?", "role": "user" }, { "content": "SELECT MAX(average) FROM table_name_41 WHERE goals = 34 AND matches < 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_14 (elevator VARCHAR, cardinalatial_title VARCHAR)", "role": "system" }, { "content": "Who is the elevator with the cardinalatial title of Deacon of SS. Sergio e Bacco?", "role": "user" }, { "content": "SELECT elevator FROM table_name_14 WHERE cardinalatial_title = \"deacon of ss. sergio e bacco\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (wins VARCHAR, year VARCHAR)", "role": "system" }, { "content": "How many wins in 1992?", "role": "user" }, { "content": "SELECT wins FROM table_name_52 WHERE year = 1992", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (country VARCHAR, year_s__won VARCHAR)", "role": "system" }, { "content": "What county won in 1991?", "role": "user" }, { "content": "SELECT country FROM table_name_14 WHERE year_s__won = \"1991\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2196127_1 (average_speed__mph_ VARCHAR, race_time VARCHAR)", "role": "system" }, { "content": "What was the average speed for a racetime of 3:08:08?", "role": "user" }, { "content": "SELECT average_speed__mph_ FROM table_2196127_1 WHERE race_time = \"3:08:08\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_64 (points VARCHAR, draw VARCHAR, artist VARCHAR)", "role": "system" }, { "content": "How many Points were awarded to Sabahudin Kurt with a Draw is greater than 7?", "role": "user" }, { "content": "SELECT points FROM table_name_64 WHERE draw > 7 AND artist = \"sabahudin kurt\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (film VARCHAR, date VARCHAR, recipient VARCHAR)", "role": "system" }, { "content": "What is the film dated 22/3/06 and redhouse lane / perfect world was the recipient?", "role": "user" }, { "content": "SELECT film FROM table_name_35 WHERE date = \"22/3/06\" AND recipient = \"redhouse lane / perfect 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_93 (total VARCHAR, gold VARCHAR, silver VARCHAR, bronze VARCHAR)", "role": "system" }, { "content": "Which Total has a Silver larger than 8, and a Bronze of 20, and a Gold smaller than 20?", "role": "user" }, { "content": "SELECT COUNT(total) FROM table_name_93 WHERE silver > 8 AND bronze = 20 AND gold < 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 table_name_10 (nationality VARCHAR, player VARCHAR)", "role": "system" }, { "content": "What is Trevor Cann's nationality?", "role": "user" }, { "content": "SELECT nationality FROM table_name_10 WHERE player = \"trevor cann\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (label VARCHAR, region VARCHAR)", "role": "system" }, { "content": "What is Label, when Region is Japan?", "role": "user" }, { "content": "SELECT label FROM table_name_40 WHERE region = \"japan\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_84 (first_match VARCHAR, last_match VARCHAR)", "role": "system" }, { "content": "Name the first match for 11 may 2008", "role": "user" }, { "content": "SELECT first_match FROM table_name_84 WHERE last_match = \"11 may 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_name_37 (length VARCHAR, stage VARCHAR)", "role": "system" }, { "content": "Which length has a Stage of 9?", "role": "user" }, { "content": "SELECT length FROM table_name_37 WHERE stage = \"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_24786958_2 (attendance INTEGER, game_site VARCHAR)", "role": "system" }, { "content": "How many people attended the game at Jahn-sportpark?", "role": "user" }, { "content": "SELECT MIN(attendance) FROM table_24786958_2 WHERE game_site = \"Jahn-Sportpark\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (winners INTEGER, runners_up INTEGER)", "role": "system" }, { "content": "When the Runners-Up is larger than 0, what's the sum of winners?", "role": "user" }, { "content": "SELECT SUM(winners) FROM table_name_38 WHERE runners_up > 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_83 (apps VARCHAR, transfer_window VARCHAR, name VARCHAR)", "role": "system" }, { "content": "how many times is the transfer window, summer and the name sinclair?", "role": "user" }, { "content": "SELECT COUNT(apps) FROM table_name_83 WHERE transfer_window = \"summer\" AND name = \"sinclair\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_25 (score VARCHAR, year VARCHAR)", "role": "system" }, { "content": "What was the Score in 2002?", "role": "user" }, { "content": "SELECT score FROM table_name_25 WHERE year = 2002", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_73 (rank INTEGER, candidate_name VARCHAR, votes VARCHAR)", "role": "system" }, { "content": "What rank is aliyya qadi with less than 1421 votes?", "role": "user" }, { "content": "SELECT MIN(rank) FROM table_name_73 WHERE candidate_name = \"aliyya qadi\" AND votes < 1421", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_23 (grand_prix VARCHAR, pole_position VARCHAR)", "role": "system" }, { "content": "Name the Grand Prix for pole position of kimi räikkönen", "role": "user" }, { "content": "SELECT grand_prix FROM table_name_23 WHERE pole_position = \"kimi räikkönen\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (runner_up VARCHAR, third_place VARCHAR, score VARCHAR)", "role": "system" }, { "content": "What is the name of the runner up when yevgeny kafelnikov was third place and the score was 3–6, 6–4, [10–3]?", "role": "user" }, { "content": "SELECT runner_up FROM table_name_18 WHERE third_place = \"yevgeny kafelnikov\" AND score = \"3–6, 6–4, [10–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_19753079_36 (party VARCHAR, district VARCHAR)", "role": "system" }, { "content": "Name the total party for north carolina 7", "role": "user" }, { "content": "SELECT COUNT(party) FROM table_19753079_36 WHERE district = \"North Carolina 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_148386_2 (casino_theatre_1888 VARCHAR, savoy_theatre_1906 VARCHAR)", "role": "system" }, { "content": "Who plays Overton Moyle in casino theatre 1888 & savoy theatre 1906?", "role": "user" }, { "content": "SELECT casino_theatre_1888 FROM table_148386_2 WHERE savoy_theatre_1906 = \"Overton Moyle\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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_8 (attendance VARCHAR, tie_no VARCHAR)", "role": "system" }, { "content": "When there was a tie of 16 what was the attendance?", "role": "user" }, { "content": "SELECT attendance FROM table_name_8 WHERE tie_no = \"16\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (home_team VARCHAR, venue VARCHAR)", "role": "system" }, { "content": "Who played home team at the Arden Street Oval game?", "role": "user" }, { "content": "SELECT home_team FROM table_name_99 WHERE venue = \"arden street oval\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_12591022_2 (teaching_language VARCHAR, focus VARCHAR)", "role": "system" }, { "content": "what is teaching language where the focus is auditing?", "role": "user" }, { "content": "SELECT teaching_language FROM table_12591022_2 WHERE focus = \"Auditing\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_22485543_1 (play_by_play VARCHAR, studio_analysts VARCHAR, ice_level_reporters VARCHAR)", "role": "system" }, { "content": "Which play-by-play has mike milbury as the studio analyst and darren pang as the ice level reporters?", "role": "user" }, { "content": "SELECT play_by_play FROM table_22485543_1 WHERE studio_analysts = \"Mike Milbury\" AND ice_level_reporters = \"Darren Pang\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_24222929_4 (episode_number_production_number VARCHAR, title VARCHAR)", "role": "system" }, { "content": "Name the episode number for tasers and mind erasers", "role": "user" }, { "content": "SELECT episode_number_production_number FROM table_24222929_4 WHERE title = \"Tasers and Mind Erasers\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (name VARCHAR, winning_team VARCHAR, pole_position VARCHAR)", "role": "system" }, { "content": "Who won for Forsythe Racing when Bobby Rahal had pole position?", "role": "user" }, { "content": "SELECT name FROM table_name_49 WHERE winning_team = \"forsythe racing\" AND pole_position = \"bobby rahal\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1277350_3 (saturday_shani__saturn_ VARCHAR, wednesday_budha__mercury_ VARCHAR)", "role": "system" }, { "content": "In language where Wednesday is برھ وار budh'var, what is Saturday?", "role": "user" }, { "content": "SELECT saturday_shani__saturn_ FROM table_1277350_3 WHERE wednesday_budha__mercury_ = \"برھ وار Budh'var\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_90 (value VARCHAR, other VARCHAR)", "role": "system" }, { "content": "What number value has the Other transliteration of muoy roy?", "role": "user" }, { "content": "SELECT value FROM table_name_90 WHERE other = \"muoy roy\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (home_team VARCHAR, away_team VARCHAR)", "role": "system" }, { "content": "What home team has Southampton as the away team?", "role": "user" }, { "content": "SELECT home_team FROM table_name_71 WHERE away_team = \"southampton\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (record VARCHAR, game VARCHAR)", "role": "system" }, { "content": "What was the Maple Leafs' record on game 52?", "role": "user" }, { "content": "SELECT record FROM table_name_51 WHERE game = 52", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1140116_6 (race_name VARCHAR, winning_driver VARCHAR)", "role": "system" }, { "content": "Which races did Paul Greifzu win?", "role": "user" }, { "content": "SELECT race_name FROM table_1140116_6 WHERE winning_driver = \"Paul Greifzu\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_56 (velocity__km_h_ INTEGER, date VARCHAR)", "role": "system" }, { "content": "on august 16, 1963, what is the velocity?", "role": "user" }, { "content": "SELECT SUM(velocity__km_h_) FROM table_name_56 WHERE date = \"august 16, 1963\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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_8 (molecules VARCHAR, percent_of_mass VARCHAR)", "role": "system" }, { "content": "what is the molecules when the percent mass is 1.0?", "role": "user" }, { "content": "SELECT molecules FROM table_name_8 WHERE percent_of_mass = \"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_30049462_3 (high_points VARCHAR, team VARCHAR)", "role": "system" }, { "content": "in the milwaukee team who made the high points", "role": "user" }, { "content": "SELECT high_points FROM table_30049462_3 WHERE team = \"Milwaukee\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_214920_1 (seat_of_rcm VARCHAR, density__pop_per_km2_ VARCHAR)", "role": "system" }, { "content": "What is the seat of the county that has a density of 14.1?", "role": "user" }, { "content": "SELECT seat_of_rcm FROM table_214920_1 WHERE density__pop_per_km2_ = \"14.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_53 (reigns VARCHAR, days_held VARCHAR)", "role": "system" }, { "content": "Which Reigns has 92 days held?", "role": "user" }, { "content": "SELECT reigns FROM table_name_53 WHERE days_held = 92", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_84 (round VARCHAR, time VARCHAR)", "role": "system" }, { "content": "Which round lasted 2:32?", "role": "user" }, { "content": "SELECT round FROM table_name_84 WHERE time = \"2:32\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (home_team VARCHAR, away_team VARCHAR)", "role": "system" }, { "content": "What is the home team score that played away team carlton?", "role": "user" }, { "content": "SELECT home_team AS score FROM table_name_60 WHERE away_team = \"carlton\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (income_inequality_1994_2011__latest_available_ VARCHAR, country VARCHAR)", "role": "system" }, { "content": "What is the current income inequality for the country of Seychelles?", "role": "user" }, { "content": "SELECT income_inequality_1994_2011__latest_available_ FROM table_name_15 WHERE country = \"seychelles\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_17155250_1 (year__ceremony_ VARCHAR, original_title VARCHAR)", "role": "system" }, { "content": "For what ceremony was \"Fire Dancer\" not nominated? ", "role": "user" }, { "content": "SELECT year__ceremony_ FROM table_17155250_1 WHERE original_title = \"Fire Dancer\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27533947_1 (best_winning_average VARCHAR, games_won VARCHAR)", "role": "system" }, { "content": "If the games won are 5, what is the best winning average?", "role": "user" }, { "content": "SELECT best_winning_average FROM table_27533947_1 WHERE games_won = 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_20061872_1 (year__ceremony_ VARCHAR, original_title VARCHAR)", "role": "system" }, { "content": "When was the film Här har du ditt liv used in nomination?", "role": "user" }, { "content": "SELECT year__ceremony_ FROM table_20061872_1 WHERE original_title = \"Här har du ditt liv\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (crowd VARCHAR, away_team VARCHAR)", "role": "system" }, { "content": "How big was the crowd when the away team was Richmond?", "role": "user" }, { "content": "SELECT crowd FROM table_name_4 WHERE away_team = \"richmond\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_211615_2 (cancelled VARCHAR, station VARCHAR)", "role": "system" }, { "content": "Name the number of cancelled for turnham green", "role": "user" }, { "content": "SELECT COUNT(cancelled) FROM table_211615_2 WHERE station = \"Turnham Green\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE GENRE (GenreId VARCHAR, Name VARCHAR); CREATE TABLE TRACK (UnitPrice INTEGER, GenreId VARCHAR)", "role": "system" }, { "content": "What is the average unit price of rock tracks?", "role": "user" }, { "content": "SELECT AVG(T2.UnitPrice) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = \"Rock\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_14325808_1 (area__km²_ VARCHAR, density__pop_km²_ VARCHAR)", "role": "system" }, { "content": "What is the area in kilometers squared the population density is 137.61?", "role": "user" }, { "content": "SELECT area__km²_ FROM table_14325808_1 WHERE density__pop_km²_ = \"137.61\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (points VARCHAR, lost INTEGER)", "role": "system" }, { "content": "Tell me the total number of points for lost less than 4", "role": "user" }, { "content": "SELECT COUNT(points) FROM table_name_72 WHERE lost < 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_24018430_3 (written_by VARCHAR, directed_by VARCHAR)", "role": "system" }, { "content": "what is writtenand directed by shannon flynn?", "role": "user" }, { "content": "SELECT written_by FROM table_24018430_3 WHERE directed_by = \"Shannon Flynn\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (country VARCHAR, player VARCHAR)", "role": "system" }, { "content": "What country is Paul Lawrie from?", "role": "user" }, { "content": "SELECT country FROM table_name_39 WHERE player = \"paul lawrie\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE phone (chip_model VARCHAR, Company_name VARCHAR); CREATE TABLE chip_model (RAM_MiB INTEGER, Model_name VARCHAR)", "role": "system" }, { "content": "What is maximum and minimum RAM size of phone produced by company named \"Nokia Corporation\"?", "role": "user" }, { "content": "SELECT MAX(T1.RAM_MiB), MIN(T1.RAM_MiB) FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name = T2.chip_model WHERE T2.Company_name = \"Nokia Corporation\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE teachers (firstname VARCHAR, classroom VARCHAR)", "role": "system" }, { "content": "Find the first names of all the teachers that teach in classroom 110.", "role": "user" }, { "content": "SELECT firstname FROM teachers WHERE classroom = 110", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (part_number_s_ VARCHAR, sspec_number VARCHAR, l2_cache VARCHAR, release_date VARCHAR)", "role": "system" }, { "content": "what is the part number(s) when l2 cache is 512 kb, release date is june 2001 and sSpec number is sl5lv, sl5pu, sl6bw, sl6jm?", "role": "user" }, { "content": "SELECT part_number_s_ FROM table_name_71 WHERE l2_cache = \"512 kb\" AND release_date = \"june 2001\" AND sspec_number = \"sl5lv, sl5pu, sl6bw, sl6jm\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (current_club VARCHAR, height VARCHAR)", "role": "system" }, { "content": "What current club has a Height of 1.96?", "role": "user" }, { "content": "SELECT current_club FROM table_name_50 WHERE height = 1.96", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE Rating (stars INTEGER)", "role": "system" }, { "content": "What is the total number of ratings that has more than 3 stars?", "role": "user" }, { "content": "SELECT COUNT(*) FROM Rating WHERE stars > 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_36 (completions VARCHAR, yards VARCHAR)", "role": "system" }, { "content": "Which Completions has Yards of 10,098?", "role": "user" }, { "content": "SELECT completions FROM table_name_36 WHERE yards = \"10,098\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (record VARCHAR, february VARCHAR, opponent VARCHAR)", "role": "system" }, { "content": "Which Record has a February smaller than 8, and an Opponent of montreal canadiens?", "role": "user" }, { "content": "SELECT record FROM table_name_51 WHERE february < 8 AND opponent = \"montreal canadiens\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (title VARCHAR, appointed_by VARCHAR)", "role": "system" }, { "content": "Which Title has an Appointed by of Millard Fillmore?", "role": "user" }, { "content": "SELECT title FROM table_name_21 WHERE appointed_by = \"millard fillmore\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (round VARCHAR, against VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What was the round for 29 January 1949, when the against was 1?", "role": "user" }, { "content": "SELECT round FROM table_name_52 WHERE against = 1 AND date = \"29 january 1949\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_23799417_2 (rating VARCHAR)", "role": "system" }, { "content": "What is the rating if the rating/share (18-49) is 3.6?", "role": "user" }, { "content": "SELECT rating FROM table_23799417_2 WHERE rating / SHARE(18 AS –49) = 3.6", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_69 (venue VARCHAR, competition VARCHAR)", "role": "system" }, { "content": "Competition of fa cup rd 1 had what venue?", "role": "user" }, { "content": "SELECT venue FROM table_name_69 WHERE competition = \"fa cup rd 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_18894744_6 (opponent VARCHAR, record VARCHAR)", "role": "system" }, { "content": "How many opponents was a game with a record 17-6 played against?", "role": "user" }, { "content": "SELECT COUNT(opponent) FROM table_18894744_6 WHERE record = \"17-6\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_86 (game VARCHAR, record VARCHAR, points VARCHAR)", "role": "system" }, { "content": "How many games have a record of 30–25–9 and more points than 69?", "role": "user" }, { "content": "SELECT COUNT(game) FROM table_name_86 WHERE record = \"30–25–9\" AND points > 69", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (captain_s_ VARCHAR, competition VARCHAR)", "role": "system" }, { "content": "Who is the captain of the 2012 NRL season competition?", "role": "user" }, { "content": "SELECT captain_s_ FROM table_name_75 WHERE competition = \"2012 nrl season\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (pct INTEGER, years VARCHAR, wins VARCHAR)", "role": "system" }, { "content": "Which Pct has Years of 1957–1970, and Wins smaller than 78?", "role": "user" }, { "content": "SELECT SUM(pct) FROM table_name_89 WHERE years = \"1957–1970\" AND wins < 78", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (time VARCHAR, period VARCHAR, player VARCHAR)", "role": "system" }, { "content": "What time does Dustin Byfuglien have in 1st period?", "role": "user" }, { "content": "SELECT time FROM table_name_36 WHERE period = \"1st\" AND player = \"dustin byfuglien\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (oricon INTEGER, romaji_title VARCHAR)", "role": "system" }, { "content": "Which Oricon has a Romaji title of nakitakunalu?", "role": "user" }, { "content": "SELECT MAX(oricon) FROM table_name_17 WHERE romaji_title = \"nakitakunalu\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (Group VARCHAR, name VARCHAR)", "role": "system" }, { "content": "What Group Song of Shine 王幸儿?", "role": "user" }, { "content": "SELECT Group AS song FROM table_name_60 WHERE name = \"shine 王幸儿\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_24725951_1 (episode VARCHAR, celebrities VARCHAR)", "role": "system" }, { "content": "How many episodes had celebrity guest stars Frank Skinner and Lee Mack?", "role": "user" }, { "content": "SELECT COUNT(episode) FROM table_24725951_1 WHERE celebrities = \"Frank Skinner and Lee Mack\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27723228_3 (team VARCHAR, game VARCHAR)", "role": "system" }, { "content": "What team did the Hornets play in game 4?", "role": "user" }, { "content": "SELECT team FROM table_27723228_3 WHERE game = 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_70 (number_of_households INTEGER, county VARCHAR)", "role": "system" }, { "content": "How many households are in highlands county?", "role": "user" }, { "content": "SELECT AVG(number_of_households) FROM table_name_70 WHERE county = \"highlands\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (overall VARCHAR, name VARCHAR, pick VARCHAR, college VARCHAR)", "role": "system" }, { "content": "What is the overall pick number for a draft pick smaller than 9, named buck mystrom from Michigan State college?", "role": "user" }, { "content": "SELECT overall FROM table_name_72 WHERE pick < 9 AND college = \"michigan state\" AND name = \"buck mystrom\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (score VARCHAR, place VARCHAR, player VARCHAR)", "role": "system" }, { "content": "What score did Lee Trevino get in T1?", "role": "user" }, { "content": "SELECT score FROM table_name_53 WHERE place = \"t1\" AND player = \"lee trevino\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_30120556_1 (area__acres__ VARCHAR, civil_parish VARCHAR, townland VARCHAR)", "role": "system" }, { "content": "What is the area of the civil parish kilworth and townland monadrishane?", "role": "user" }, { "content": "SELECT area__acres__ FROM table_30120556_1 WHERE civil_parish = \"Kilworth\" AND townland = \"Monadrishane\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE users (user_name VARCHAR, password VARCHAR, role_code VARCHAR)", "role": "system" }, { "content": "List all the username and passwords of users with the most popular role.", "role": "user" }, { "content": "SELECT user_name, password FROM users GROUP BY role_code 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_97 (year INTEGER, team VARCHAR, games VARCHAR)", "role": "system" }, { "content": "What year did Willis McGahee play fewer than 15 games with the Baltimore Ravens?", "role": "user" }, { "content": "SELECT MIN(year) FROM table_name_97 WHERE team = \"baltimore ravens\" AND games < 15", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_66 (time___gmt__ VARCHAR, serial VARCHAR)", "role": "system" }, { "content": "What is the time (GMT) for the 4A Serial?", "role": "user" }, { "content": "SELECT time___gmt__ FROM table_name_66 WHERE serial = \"4a\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_25143284_1 (location VARCHAR, score_qualifying VARCHAR)", "role": "system" }, { "content": "Where was the competition with a qualifying score of 58.425?", "role": "user" }, { "content": "SELECT location FROM table_25143284_1 WHERE score_qualifying = \"58.425\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE music_festival (Date_of_ceremony VARCHAR, Volume VARCHAR); CREATE TABLE volume (Volume_ID VARCHAR, Weeks_on_Top INTEGER)", "role": "system" }, { "content": "Please show the date of ceremony of the volumes that last more than 2 weeks on top.", "role": "user" }, { "content": "SELECT T1.Date_of_ceremony FROM music_festival AS T1 JOIN volume AS T2 ON T1.Volume = T2.Volume_ID WHERE T2.Weeks_on_Top > 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_6 (city VARCHAR, third VARCHAR)", "role": "system" }, { "content": "WHAT IS THE CITY WITH THIRD AS LORI OLSON-JOHNS?", "role": "user" }, { "content": "SELECT city FROM table_name_6 WHERE third = \"lori olson-johns\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_17625749_1 (points_against VARCHAR, drawn VARCHAR, points VARCHAR)", "role": "system" }, { "content": "Name the points aginst when drawn is 1 and points is 51", "role": "user" }, { "content": "SELECT points_against FROM table_17625749_1 WHERE drawn = \"1\" AND points = \"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_name_89 (version INTEGER, name VARCHAR, year VARCHAR)", "role": "system" }, { "content": "Give the sum of the version with the coptic small letter sampi, and a year after 2005.", "role": "user" }, { "content": "SELECT SUM(version) FROM table_name_89 WHERE name = \"coptic small letter sampi\" AND year > 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_1342393_17 (party VARCHAR, incumbent VARCHAR)", "role": "system" }, { "content": " how many party with incumbent being whitmell p. martin", "role": "user" }, { "content": "SELECT COUNT(party) FROM table_1342393_17 WHERE incumbent = \"Whitmell P. Martin\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE Dogs (name VARCHAR, dog_id VARCHAR, breed_code VARCHAR); CREATE TABLE Treatments (date_of_treatment VARCHAR, dog_id VARCHAR); CREATE TABLE Dogs (breed_code VARCHAR)", "role": "system" }, { "content": "List the names of the dogs of the rarest breed and the treatment dates of them.", "role": "user" }, { "content": "SELECT T1.name, T2.date_of_treatment FROM Dogs AS T1 JOIN Treatments AS T2 ON T1.dog_id = T2.dog_id WHERE T1.breed_code = (SELECT breed_code FROM Dogs GROUP BY breed_code ORDER BY COUNT(*) 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_1837570_1 (language VARCHAR, coverage_area VARCHAR)", "role": "system" }, { "content": "Which languages are offered in the coverage area of klang petaling jaya shah alam?", "role": "user" }, { "content": "SELECT language FROM table_1837570_1 WHERE coverage_area = \"Klang Petaling Jaya Shah Alam\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_79 (year VARCHAR, chassis VARCHAR)", "role": "system" }, { "content": "how many times is the chassis brabham bt33?", "role": "user" }, { "content": "SELECT COUNT(year) FROM table_name_79 WHERE chassis = \"brabham bt33\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (place VARCHAR, player VARCHAR)", "role": "system" }, { "content": "Where is Miller Barber from?", "role": "user" }, { "content": "SELECT place FROM table_name_52 WHERE player = \"miller barber\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (week INTEGER, result VARCHAR, attendance VARCHAR)", "role": "system" }, { "content": "Which Week has a Result of w 24-0, and an Attendance smaller than 10,000?", "role": "user" }, { "content": "SELECT MAX(week) FROM table_name_40 WHERE result = \"w 24-0\" AND attendance < 10 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_2110959_1 (standing VARCHAR, pct__percentage VARCHAR)", "role": "system" }, { "content": "What was the standing in the season that the pct% was 0.769? ", "role": "user" }, { "content": "SELECT standing FROM table_2110959_1 WHERE pct__percentage = \"0.769\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_17641206_4 (directed_by VARCHAR, written_by VARCHAR)", "role": "system" }, { "content": "Who was the director when the writer was John Sullivan?", "role": "user" }, { "content": "SELECT directed_by FROM table_17641206_4 WHERE written_by = \"John Sullivan\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (player VARCHAR, position VARCHAR, year VARCHAR)", "role": "system" }, { "content": "What player played center in 2010?", "role": "user" }, { "content": "SELECT player FROM table_name_9 WHERE position = \"center\" AND year = 2010", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (top_25 INTEGER, top_5 INTEGER)", "role": "system" }, { "content": "Which Top-25 has a Top-5 smaller than 0?", "role": "user" }, { "content": "SELECT SUM(top_25) FROM table_name_3 WHERE top_5 < 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_78 (city VARCHAR, results¹ VARCHAR)", "role": "system" }, { "content": "what city scored 0:0", "role": "user" }, { "content": "SELECT city FROM table_name_78 WHERE results¹ = \"0: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_1266602_2 (team VARCHAR, crew_chief VARCHAR)", "role": "system" }, { "content": "Which teams used Wally Rogers as their crew chief?", "role": "user" }, { "content": "SELECT team FROM table_1266602_2 WHERE crew_chief = \"Wally Rogers\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (result VARCHAR, attendance VARCHAR)", "role": "system" }, { "content": "What is the result of the game with 67,715 fans attending?", "role": "user" }, { "content": "SELECT result FROM table_name_54 WHERE attendance = \"67,715\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_25016824_2 (reward VARCHAR, immunity VARCHAR, finish VARCHAR)", "role": "system" }, { "content": "What was the reward when immunity went to martin and finish is 13th voted out 8th jury member day 46?", "role": "user" }, { "content": "SELECT reward FROM table_25016824_2 WHERE immunity = \"Martin\" AND finish = \"13th voted Out 8th Jury Member Day 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_99 (format VARCHAR, catalog VARCHAR)", "role": "system" }, { "content": "What is the Format o Catalog F4 87199?", "role": "user" }, { "content": "SELECT format FROM table_name_99 WHERE catalog = \"f4 87199\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (score VARCHAR, location_attendance VARCHAR, record VARCHAR)", "role": "system" }, { "content": "What was the score for the game played in Alexander Memorial Coliseum when the record was 0-1?", "role": "user" }, { "content": "SELECT score FROM table_name_32 WHERE location_attendance = \"alexander memorial coliseum\" AND 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_173103_1 (max_pressure VARCHAR, cartridge VARCHAR)", "role": "system" }, { "content": "What is the max pressure of the .38 long colt cartridge?", "role": "user" }, { "content": "SELECT max_pressure FROM table_173103_1 WHERE cartridge = \".38 Long Colt\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (extra_points INTEGER, player VARCHAR, points VARCHAR)", "role": "system" }, { "content": "Which Extra points is the lowest one that has a Player of ross kidston, and Points smaller than 5?", "role": "user" }, { "content": "SELECT MIN(extra_points) FROM table_name_86 WHERE player = \"ross kidston\" AND points < 5", "role": "assistant" } ]