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_95 (time VARCHAR, release_date VARCHAR, song_title VARCHAR)", "role": "system" }, { "content": "Tell me the time for 6/6/77 release date and song title of way down", "role": "user" }, { "content": "SELECT time FROM table_name_95 WHERE release_date = \"6/6/77\" AND song_title = \"way down\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_1 (course VARCHAR, race_leader VARCHAR)", "role": "system" }, { "content": "Which course had a rest day for the Race Leader?", "role": "user" }, { "content": "SELECT course FROM table_name_1 WHERE race_leader = \"rest day\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_31 (nationality VARCHAR, round VARCHAR)", "role": "system" }, { "content": "What is the nationality of the player from round 5?", "role": "user" }, { "content": "SELECT nationality FROM table_name_31 WHERE round = 5", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_10 (constructor VARCHAR, driver VARCHAR)", "role": "system" }, { "content": "Tell me the constructor for david coulthard", "role": "user" }, { "content": "SELECT constructor FROM table_name_10 WHERE driver = \"david coulthard\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE accelerator_compatible_browser (compatible_since_year VARCHAR, browser_id VARCHAR, accelerator_id VARCHAR); CREATE TABLE browser (id VARCHAR, name VARCHAR); CREATE TABLE web_client_accelerator (id VARCHAR, name VARCHAR)", "role": "system" }, { "content": "When did the web accelerator 'CACHEbox' and browser 'Internet Explorer' become compatible?", "role": "user" }, { "content": "SELECT T1.compatible_since_year FROM accelerator_compatible_browser AS T1 JOIN browser AS T2 ON T1.browser_id = T2.id JOIN web_client_accelerator AS T3 ON T1.accelerator_id = T3.id WHERE T3.name = 'CACHEbox' AND T2.name = 'Internet Explorer'", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (rank INTEGER, capacity___mw__ VARCHAR, type VARCHAR, name VARCHAR)", "role": "system" }, { "content": "what is the lowest rank when the type is hydro, the name is grand rapids generating station and the capacity (mw) is more than 479?", "role": "user" }, { "content": "SELECT MIN(rank) FROM table_name_67 WHERE type = \"hydro\" AND name = \"grand rapids generating station\" AND capacity___mw__ > 479", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_31 (pick INTEGER, player VARCHAR)", "role": "system" }, { "content": "What was the highest pick for the player Adam Jones?", "role": "user" }, { "content": "SELECT MAX(pick) FROM table_name_31 WHERE player = \"adam jones\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (player VARCHAR, score VARCHAR)", "role": "system" }, { "content": "Which player has a score of 74-74-73-70=291?", "role": "user" }, { "content": "SELECT player FROM table_name_72 WHERE score = 74 - 74 - 73 - 70 = 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 table_name_37 (decile INTEGER, roll VARCHAR, area VARCHAR)", "role": "system" }, { "content": "What is the decile sum with a roll smaller than 25, and franz josef area?", "role": "user" }, { "content": "SELECT SUM(decile) FROM table_name_37 WHERE roll < 25 AND area = \"franz josef\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (skip VARCHAR, second VARCHAR)", "role": "system" }, { "content": "Which Skip has a Second of vicki adams?", "role": "user" }, { "content": "SELECT skip FROM table_name_21 WHERE second = \"vicki adams\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (date VARCHAR, nationality VARCHAR, ship VARCHAR)", "role": "system" }, { "content": "What is the date for the ship Afrika, with nationality Great Britain?", "role": "user" }, { "content": "SELECT date FROM table_name_73 WHERE nationality = \"great britain\" AND ship = \"afrika\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_94 (pick__number INTEGER, position VARCHAR, team_from VARCHAR)", "role": "system" }, { "content": "What is the total pick # for the D position from a team from Chilliwack Bruins?", "role": "user" }, { "content": "SELECT SUM(pick__number) FROM table_name_94 WHERE position = \"d\" AND team_from = \"chilliwack bruins\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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, home VARCHAR, visitor VARCHAR)", "role": "system" }, { "content": "What record has detroit as the home and mtl. maroons as the visitor?", "role": "user" }, { "content": "SELECT record FROM table_name_99 WHERE home = \"detroit\" AND visitor = \"mtl. maroons\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (date VARCHAR, away VARCHAR)", "role": "system" }, { "content": "On what date were the Ottawa Swans the away team?", "role": "user" }, { "content": "SELECT date FROM table_name_25 WHERE away = \"ottawa swans\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_5 (enrollment INTEGER, team_nickname VARCHAR)", "role": "system" }, { "content": "The school nicknamed the wildcats has what sum of enrollment?", "role": "user" }, { "content": "SELECT SUM(enrollment) FROM table_name_5 WHERE team_nickname = \"wildcats\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_87 (title VARCHAR, release_date VARCHAR)", "role": "system" }, { "content": "What is the title released on 24 July 2005?", "role": "user" }, { "content": "SELECT title FROM table_name_87 WHERE release_date = \"24 july 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 visitor (age INTEGER)", "role": "system" }, { "content": "How many visitors below age 30 are there?", "role": "user" }, { "content": "SELECT COUNT(*) FROM visitor WHERE age < 30", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (location VARCHAR, coach VARCHAR, founded VARCHAR)", "role": "system" }, { "content": "Where is the club that was founded in 1946 located that has an unknown coach?", "role": "user" }, { "content": "SELECT location FROM table_name_45 WHERE coach = \"unknown\" AND founded = 1946", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (host_city VARCHAR, games VARCHAR)", "role": "system" }, { "content": "Can you tell me the Host City that has the Games of vii?", "role": "user" }, { "content": "SELECT host_city FROM table_name_35 WHERE games = \"vii\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_65 (venue VARCHAR, score VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What Venue on October 27, 2005 had a Score of 5-0?", "role": "user" }, { "content": "SELECT venue FROM table_name_65 WHERE score = \"5-0\" AND date = \"october 27, 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_12962773_12 (player VARCHAR, height VARCHAR)", "role": "system" }, { "content": "WHat is the number for the player whose height is 2.01?", "role": "user" }, { "content": "SELECT COUNT(player) FROM table_12962773_12 WHERE height = \"2.01\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_65 (romaji_title VARCHAR, tv_station VARCHAR, average_ratings VARCHAR)", "role": "system" }, { "content": "Which Romaji Title has a TV Station of fuji tv, and Average Ratings of 12.41%?", "role": "user" }, { "content": "SELECT romaji_title FROM table_name_65 WHERE tv_station = \"fuji tv\" AND average_ratings = \"12.41%\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_81 (week VARCHAR, stadium VARCHAR)", "role": "system" }, { "content": "How many weeks in total were games played at Cleveland Browns Stadium?", "role": "user" }, { "content": "SELECT COUNT(week) FROM table_name_81 WHERE stadium = \"cleveland browns stadium\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (language VARCHAR, category VARCHAR, original_title VARCHAR)", "role": "system" }, { "content": "What language was the film Pelle Erobreren, which received the best actor nomination, in?", "role": "user" }, { "content": "SELECT language FROM table_name_11 WHERE category = \"best actor\" AND original_title = \"pelle erobreren\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1930857_1 (language VARCHAR, grades VARCHAR)", "role": "system" }, { "content": "What's the language in the school teaching grades 4-12?", "role": "user" }, { "content": "SELECT language FROM table_1930857_1 WHERE grades = \"4-12\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2472711_32 (up_down VARCHAR, total VARCHAR)", "role": "system" }, { "content": "How many values of up/down have a total value of exactly 301470?", "role": "user" }, { "content": "SELECT COUNT(up_down) FROM table_2472711_32 WHERE total = 301470", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (monotone VARCHAR, clone_independence VARCHAR, pareto_efficiency VARCHAR, non_dictatorship VARCHAR)", "role": "system" }, { "content": "what is the monotone when pareto efficiency is yes, non-dictatorship is yes, and clone independence is yes?", "role": "user" }, { "content": "SELECT monotone FROM table_name_41 WHERE pareto_efficiency = \"yes\" AND non_dictatorship = \"yes\" AND clone_independence = \"yes\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_30 (tournament VARCHAR)", "role": "system" }, { "content": "What is the 2008 value of the hamburg masters?", "role": "user" }, { "content": "SELECT 2008 FROM table_name_30 WHERE tournament = \"hamburg masters\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_68 (chart VARCHAR, peak_position VARCHAR)", "role": "system" }, { "content": "Which Chart has a Peak Position of 1?", "role": "user" }, { "content": "SELECT chart FROM table_name_68 WHERE peak_position = 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 enroll (stu_num VARCHAR, class_code VARCHAR); CREATE TABLE course (crs_description VARCHAR, crs_code VARCHAR); CREATE TABLE CLASS (class_code VARCHAR, crs_code VARCHAR); CREATE TABLE student (stu_fname VARCHAR, stu_lname VARCHAR, stu_num VARCHAR)", "role": "system" }, { "content": "Find names of all students who took some course and the course description.", "role": "user" }, { "content": "SELECT T1.stu_fname, T1.stu_lname, T4.crs_description FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T2.class_code = T3.class_code JOIN course AS T4 ON T3.crs_code = T4.crs_code", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (year VARCHAR, laps VARCHAR)", "role": "system" }, { "content": "How many years was the number of laps 71?", "role": "user" }, { "content": "SELECT COUNT(year) FROM table_name_49 WHERE laps = 71", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (method VARCHAR, record VARCHAR)", "role": "system" }, { "content": "What was the method when 4-2 was the record?", "role": "user" }, { "content": "SELECT method FROM table_name_56 WHERE record = \"4-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_95 (total INTEGER, silver VARCHAR, gold VARCHAR)", "role": "system" }, { "content": "What's the total when the gold is less than 0 and silver is less than 1?", "role": "user" }, { "content": "SELECT AVG(total) FROM table_name_95 WHERE silver = 1 AND gold < 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_24291077_4 (sydney VARCHAR, melbourne VARCHAR)", "role": "system" }, { "content": "How many viewers were there in Sydney for the episode when there were 334000 in Melbourne?", "role": "user" }, { "content": "SELECT sydney FROM table_24291077_4 WHERE melbourne = 334000", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_25438110_5 (county VARCHAR, casinos VARCHAR)", "role": "system" }, { "content": "What county has exactly 17 casinos?", "role": "user" }, { "content": "SELECT county FROM table_25438110_5 WHERE casinos = 17", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_10848177_1 (lyricist VARCHAR, length VARCHAR)", "role": "system" }, { "content": "Who is the lyricist for the song with a length of 3:05?", "role": "user" }, { "content": "SELECT lyricist FROM table_10848177_1 WHERE length = \"3:05\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2668329_25 (incumbent VARCHAR, district VARCHAR)", "role": "system" }, { "content": "Who is the incumbent in the Virginia 6 district?", "role": "user" }, { "content": "SELECT incumbent FROM table_2668329_25 WHERE district = \"Virginia 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_98 (place VARCHAR, year VARCHAR, points VARCHAR)", "role": "system" }, { "content": "What is the place later than 2007, with 141 (sf:83) points?", "role": "user" }, { "content": "SELECT place FROM table_name_98 WHERE year > 2007 AND points = \"141 (sf:83)\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_65 (school VARCHAR, nationality VARCHAR, pick VARCHAR)", "role": "system" }, { "content": "Which school's nationality was United States when its pick was 595?", "role": "user" }, { "content": "SELECT school FROM table_name_65 WHERE nationality = \"united states\" AND pick = \"595\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (circumstances VARCHAR, nature_of_incident VARCHAR, location VARCHAR)", "role": "system" }, { "content": "What were the circumstances of the Hostile incident on the road to Jalalabad?", "role": "user" }, { "content": "SELECT circumstances FROM table_name_18 WHERE nature_of_incident = \"hostile\" AND location = \"road to jalalabad\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (record VARCHAR, visitor VARCHAR)", "role": "system" }, { "content": "Visitor of calgary has what record?", "role": "user" }, { "content": "SELECT record FROM table_name_30 WHERE visitor = \"calgary\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (week INTEGER, result VARCHAR)", "role": "system" }, { "content": "What week number saw a w 31-16 result?", "role": "user" }, { "content": "SELECT MIN(week) FROM table_name_21 WHERE result = \"w 31-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_120778_1 (for_prohibition INTEGER)", "role": "system" }, { "content": "Name the minimum for prohibition?", "role": "user" }, { "content": "SELECT MIN(for_prohibition) FROM table_120778_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_2361911_2 (division INTEGER)", "role": "system" }, { "content": "Name the least division", "role": "user" }, { "content": "SELECT MIN(division) FROM table_2361911_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_86 (laps VARCHAR, grid VARCHAR, rider VARCHAR)", "role": "system" }, { "content": "How many laps did ben spies do on the grid less than 7?", "role": "user" }, { "content": "SELECT COUNT(laps) FROM table_name_86 WHERE grid < 7 AND rider = \"ben spies\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (turbo VARCHAR, release_price___usd__ VARCHAR)", "role": "system" }, { "content": "What Turbo has the Release price (USD) of $583?", "role": "user" }, { "content": "SELECT turbo FROM table_name_29 WHERE release_price___usd__ = \"$583\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (year VARCHAR, nominated_work VARCHAR, category VARCHAR)", "role": "system" }, { "content": "what year has general nominated in the category or choice breakthrough artist?", "role": "user" }, { "content": "SELECT COUNT(year) FROM table_name_77 WHERE nominated_work = \"general\" AND category = \"choice breakthrough artist\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (info VARCHAR, album VARCHAR)", "role": "system" }, { "content": "Which Info has an Album of romeo?", "role": "user" }, { "content": "SELECT info FROM table_name_95 WHERE album = \"romeo\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_18475946_2 (rnag__mhz_ VARCHAR)", "role": "system" }, { "content": "What is the 2fm for rnag 94.4?", "role": "user" }, { "content": "SELECT 2 AS fm__mhz_ FROM table_18475946_2 WHERE rnag__mhz_ = \"94.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_16388439_3 (home_team VARCHAR)", "role": "system" }, { "content": "Name the home team score for brisbane lions", "role": "user" }, { "content": "SELECT home_team AS score FROM table_16388439_3 WHERE home_team = \"Brisbane Lions\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (playoffs_1 VARCHAR, season VARCHAR)", "role": "system" }, { "content": "What is the playoffs 1 result of season 2004-05?", "role": "user" }, { "content": "SELECT playoffs_1 FROM table_name_41 WHERE season = \"2004-05\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE institution (institution VARCHAR, institution_id VARCHAR); CREATE TABLE protein (protein_name VARCHAR, institution_id VARCHAR)", "role": "system" }, { "content": "Show the protein name and the institution name.", "role": "user" }, { "content": "SELECT T2.protein_name, T1.institution FROM institution AS T1 JOIN protein AS T2 ON T1.institution_id = T2.institution_id", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_2 (date VARCHAR, opponent VARCHAR, match VARCHAR, ground VARCHAR)", "role": "system" }, { "content": "On what date was the match higher than 8 on ground A against Guiseley?", "role": "user" }, { "content": "SELECT date FROM table_name_2 WHERE match > 8 AND ground = \"a\" AND opponent = \"guiseley\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_261946_3 (enrollment VARCHAR, location__all_in_ohio_ VARCHAR)", "role": "system" }, { "content": "What is the enrollment for Ashland University?", "role": "user" }, { "content": "SELECT enrollment FROM table_261946_3 WHERE location__all_in_ohio_ = \"Ashland\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1004033_1 (college VARCHAR, team VARCHAR)", "role": "system" }, { "content": "What college did the Rookie of the Year from the Columbus Crew attend?", "role": "user" }, { "content": "SELECT college FROM table_1004033_1 WHERE team = \"Columbus Crew\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (singapore_gross VARCHAR, director VARCHAR)", "role": "system" }, { "content": "For the directed by 1991, what was the gross in Singapore?", "role": "user" }, { "content": "SELECT singapore_gross FROM table_name_66 WHERE director = \"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_name_8 (voltage VARCHAR, socket VARCHAR, model_number VARCHAR)", "role": "system" }, { "content": "What is the voltage of the Pentiumiii866 microprocessor with a socket 370?", "role": "user" }, { "content": "SELECT voltage FROM table_name_8 WHERE socket = \"socket 370\" AND model_number = \"pentiumiii866\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_47 (competition VARCHAR, date VARCHAR)", "role": "system" }, { "content": "Which competition was on 17/9/00?", "role": "user" }, { "content": "SELECT competition FROM table_name_47 WHERE date = \"17/9/00\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE instructor (name VARCHAR, dept_name VARCHAR, salary VARCHAR)", "role": "system" }, { "content": "Find the names of all instructors in Comp. Sci. department with salary > 80000.", "role": "user" }, { "content": "SELECT name FROM instructor WHERE dept_name = 'Comp. Sci.' AND salary > 80000", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (tournament VARCHAR, margin_of_victory VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What is the name of the tournament played on Sep 20, 1981, ending with a margin of vicroty of 2 strokes?", "role": "user" }, { "content": "SELECT tournament FROM table_name_56 WHERE margin_of_victory = \"2 strokes\" AND date = \"sep 20, 1981\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_25391981_20 (episode_number VARCHAR, episode VARCHAR)", "role": "system" }, { "content": "What number episode was Week 4, Part 2?", "role": "user" }, { "content": "SELECT episode_number FROM table_25391981_20 WHERE episode = \"Week 4, Part 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_70 (date VARCHAR, score_in_final VARCHAR)", "role": "system" }, { "content": "On what Date was the Score in Final 6–3, 6–3?", "role": "user" }, { "content": "SELECT date FROM table_name_70 WHERE score_in_final = \"6–3, 6–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_23186738_6 (record VARCHAR, team VARCHAR)", "role": "system" }, { "content": "Name the record for houston", "role": "user" }, { "content": "SELECT record FROM table_23186738_6 WHERE team = \"Houston\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_33 (name VARCHAR, qual_2 VARCHAR)", "role": "system" }, { "content": "What name has a qual 2 of 1:46.025?", "role": "user" }, { "content": "SELECT name FROM table_name_33 WHERE qual_2 = \"1:46.025\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_43 (body VARCHAR, year VARCHAR)", "role": "system" }, { "content": "What body participated in 1973?", "role": "user" }, { "content": "SELECT body FROM table_name_43 WHERE year = \"1973\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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_6 (bronze_medals INTEGER)", "role": "system" }, { "content": "What's the smallest number of bronze medals that any one if the ensembles has? ", "role": "user" }, { "content": "SELECT MIN(bronze_medals) FROM table_1305623_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_80 (year INTEGER, city VARCHAR)", "role": "system" }, { "content": "What is the lowest year when the city is casablanca?", "role": "user" }, { "content": "SELECT MIN(year) FROM table_name_80 WHERE city = \"casablanca\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_23819979_3 (final_position VARCHAR, competition VARCHAR)", "role": "system" }, { "content": "Name the final position for copa libertadores", "role": "user" }, { "content": "SELECT final_position FROM table_23819979_3 WHERE competition = \"Copa Libertadores\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (player VARCHAR, to_par VARCHAR)", "role": "system" }, { "content": "Which player had a to par score of +2?", "role": "user" }, { "content": "SELECT player FROM table_name_66 WHERE to_par = \"+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_55 (name VARCHAR)", "role": "system" }, { "content": "What is the 2012 club for the Billy Miller Category:Articles with hcards (Name)?", "role": "user" }, { "content": "SELECT 2012 AS _club FROM table_name_55 WHERE name = \"billy miller category:articles with hcards\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_17244483_1 (fin_pos VARCHAR, time_retired VARCHAR)", "role": "system" }, { "content": "How many positions did the car with a final time of +10.8098 finish in?", "role": "user" }, { "content": "SELECT COUNT(fin_pos) FROM table_17244483_1 WHERE time_retired = \"+10.8098\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (poverty__2009__hpi_1__percentage VARCHAR, gdp__ppp___2012__us$_per_capita VARCHAR)", "role": "system" }, { "content": "What is the sum of poverty (2009) HPI-1 % when the GDP (PPP) (2012) US$ per capita of 11,284?", "role": "user" }, { "content": "SELECT COUNT(poverty__2009__hpi_1__percentage) FROM table_name_69 WHERE gdp__ppp___2012__us$_per_capita = \"11,284\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_47 (points INTEGER, year VARCHAR, chassis VARCHAR)", "role": "system" }, { "content": "Name the sumof points for year less than 1994 and chassis of lola lc89b", "role": "user" }, { "content": "SELECT SUM(points) FROM table_name_47 WHERE year < 1994 AND chassis = \"lola lc89b\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_26593762_2 (chairman VARCHAR, manager VARCHAR)", "role": "system" }, { "content": "Who is the chairman of Mark Robins team?", "role": "user" }, { "content": "SELECT chairman FROM table_26593762_2 WHERE manager = \"Mark Robins\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (goals_for INTEGER, goals_against VARCHAR, drawn VARCHAR)", "role": "system" }, { "content": "What is the highest goals entry with drawn larger than 6 and goals against 85?", "role": "user" }, { "content": "SELECT MAX(goals_for) FROM table_name_84 WHERE goals_against = 85 AND drawn > 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_23285805_8 (team VARCHAR, location_attendance VARCHAR)", "role": "system" }, { "content": "Which team has the location attendance of American Airlines Center 19954?", "role": "user" }, { "content": "SELECT team FROM table_23285805_8 WHERE location_attendance = \"American Airlines Center 19954\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_24066938_1 (population__percentage_of_eu VARCHAR, pop_density_people_km_2 VARCHAR)", "role": "system" }, { "content": "What percentage of the EU's population lives in the country with a population density of 110.8 people per square kilometer?", "role": "user" }, { "content": "SELECT population__percentage_of_eu FROM table_24066938_1 WHERE pop_density_people_km_2 = \"110.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 department (school_code VARCHAR, dept_code VARCHAR); CREATE TABLE CLASS (crs_code VARCHAR); CREATE TABLE course (crs_code VARCHAR, dept_code VARCHAR)", "role": "system" }, { "content": "Find the number of classes in each school.", "role": "user" }, { "content": "SELECT COUNT(*), T3.school_code FROM CLASS AS T1 JOIN course AS T2 ON T1.crs_code = T2.crs_code JOIN department AS T3 ON T2.dept_code = T3.dept_code GROUP BY T3.school_code", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_18943444_1 (producer VARCHAR, product VARCHAR)", "role": "system" }, { "content": "What are the producers of 磊磊牌嬰幼兒配方乳粉 ?", "role": "user" }, { "content": "SELECT producer FROM table_18943444_1 WHERE product = \"磊磊牌嬰幼兒配方乳粉\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (points INTEGER, time_retired VARCHAR, laps VARCHAR)", "role": "system" }, { "content": "How many average points did the player with a time/retired of +16.789 and have more laps than 68 have?", "role": "user" }, { "content": "SELECT AVG(points) FROM table_name_8 WHERE time_retired = \"+16.789\" AND laps > 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_92 (vote__percentage VARCHAR, seats VARCHAR)", "role": "system" }, { "content": "Name the vote % for seats of 9", "role": "user" }, { "content": "SELECT vote__percentage FROM table_name_92 WHERE seats = 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_18600760_4 (latitude VARCHAR, township VARCHAR)", "role": "system" }, { "content": "Name the latitude for deer lake", "role": "user" }, { "content": "SELECT latitude FROM table_18600760_4 WHERE township = \"Deer Lake\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (country VARCHAR, rank INTEGER)", "role": "system" }, { "content": "What country is ranked higher than 5?", "role": "user" }, { "content": "SELECT country FROM table_name_29 WHERE rank > 5", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_82 (opponent VARCHAR, attendance VARCHAR)", "role": "system" }, { "content": "Who did the Chiefs play at the game attended by 34,063?", "role": "user" }, { "content": "SELECT opponent FROM table_name_82 WHERE attendance = \"34,063\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_3005999_1 (intermediate_stops VARCHAR, destination VARCHAR)", "role": "system" }, { "content": "What is every entry for intermediate stops for the destination of Manchester?", "role": "user" }, { "content": "SELECT intermediate_stops FROM table_3005999_1 WHERE destination = \"Manchester\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_14951643_1 (record VARCHAR, result VARCHAR)", "role": "system" }, { "content": "what's the record with result being w 21–7", "role": "user" }, { "content": "SELECT record FROM table_14951643_1 WHERE result = \"W 21–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_54 (webcast VARCHAR, website VARCHAR)", "role": "system" }, { "content": "The KTRH.com website includes which type of webcast?", "role": "user" }, { "content": "SELECT webcast FROM table_name_54 WHERE website = \"ktrh.com\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_14902507_2 (channel VARCHAR, year VARCHAR)", "role": "system" }, { "content": "How many channels were the games shown on in 2001-02?", "role": "user" }, { "content": "SELECT COUNT(channel) FROM table_14902507_2 WHERE year = \"2001-02\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (goals VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What were the goals on 3/10/97?", "role": "user" }, { "content": "SELECT goals FROM table_name_86 WHERE date = \"3/10/97\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_12 (year INTEGER, runner_s__up VARCHAR)", "role": "system" }, { "content": "What was the most recent year that Kathy Ahern was a runner-up?", "role": "user" }, { "content": "SELECT MAX(year) FROM table_name_12 WHERE runner_s__up = \"kathy ahern\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (ravg VARCHAR, year VARCHAR)", "role": "system" }, { "content": "In 1984, what was the RAvg?", "role": "user" }, { "content": "SELECT ravg FROM table_name_51 WHERE year = \"1984\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_46 (cover VARCHAR, title VARCHAR)", "role": "system" }, { "content": "What cover has Throne of Aquilonia as the title?", "role": "user" }, { "content": "SELECT cover FROM table_name_46 WHERE title = \"throne of aquilonia\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (venue VARCHAR, discipline VARCHAR)", "role": "system" }, { "content": "What was the venue with a 3.3km c prologue discipline?", "role": "user" }, { "content": "SELECT venue FROM table_name_95 WHERE discipline = \"3.3km c prologue\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (round VARCHAR, name VARCHAR, overall VARCHAR)", "role": "system" }, { "content": "What is the number of the round in which Ron Hansen was drafted and the overall is greater than 332?", "role": "user" }, { "content": "SELECT COUNT(round) FROM table_name_60 WHERE name = \"ron hansen\" AND overall > 332", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_13 (away_team VARCHAR, venue VARCHAR)", "role": "system" }, { "content": "What team played away at vfl park?", "role": "user" }, { "content": "SELECT away_team FROM table_name_13 WHERE venue = \"vfl park\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_44 (game INTEGER, points INTEGER)", "role": "system" }, { "content": "What hame has points larger than 81?", "role": "user" }, { "content": "SELECT SUM(game) FROM table_name_44 WHERE points > 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_11111116_6 (written_by VARCHAR, original_air_date VARCHAR)", "role": "system" }, { "content": "Who wrote the episode that aired on April 17, 2011? ", "role": "user" }, { "content": "SELECT written_by FROM table_11111116_6 WHERE original_air_date = \"April 17, 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_name_79 (linkedin VARCHAR, site VARCHAR, myspace VARCHAR)", "role": "system" }, { "content": "How many linkedin have Facebook as the site, with a myspace less than 64?", "role": "user" }, { "content": "SELECT COUNT(linkedin) FROM table_name_79 WHERE site = \"facebook\" AND myspace < 64", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (rank VARCHAR, bronze VARCHAR, gold VARCHAR)", "role": "system" }, { "content": "What is the rank of the team with 1 bronze and 0 gold medals?", "role": "user" }, { "content": "SELECT rank FROM table_name_2 WHERE bronze = 1 AND gold = 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_1140117_5 (report VARCHAR, race_name VARCHAR)", "role": "system" }, { "content": "What's the report for the race name, XIII Grand Prix de l'Albigeois?", "role": "user" }, { "content": "SELECT report FROM table_1140117_5 WHERE race_name = \"XIII Grand Prix de l'Albigeois\"", "role": "assistant" } ]