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_20 (mascot VARCHAR, enrollment__2010_ VARCHAR, school VARCHAR)", "role": "system" }, { "content": "What is the mascot with an enrollment (2010) less than 980, and heritage as the school?", "role": "user" }, { "content": "SELECT mascot FROM table_name_20 WHERE enrollment__2010_ < 980 AND school = \"heritage\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (race_name VARCHAR, round VARCHAR)", "role": "system" }, { "content": "Which race was in round 6?", "role": "user" }, { "content": "SELECT race_name FROM table_name_10 WHERE round = 6", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_11148572_1 (mls_cup_runner_up VARCHAR, mls_cup_winner VARCHAR)", "role": "system" }, { "content": "who is the of the shield winnerin which the mls cup runner-up and mls cup winner is real salt lake?", "role": "user" }, { "content": "SELECT mls_cup_runner_up FROM table_11148572_1 WHERE mls_cup_winner = \"Real Salt 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_10 (studio_host VARCHAR, year VARCHAR)", "role": "system" }, { "content": "Year of 2006-07 had what studio host?", "role": "user" }, { "content": "SELECT studio_host FROM table_name_10 WHERE year = \"2006-07\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (award VARCHAR, category VARCHAR, nominee VARCHAR)", "role": "system" }, { "content": "What award was Denis Lawson nominated for in the Best Actor in a Musical category?", "role": "user" }, { "content": "SELECT award FROM table_name_95 WHERE category = \"best actor in a musical\" AND nominee = \"denis lawson\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (method VARCHAR, opponent VARCHAR)", "role": "system" }, { "content": "Tell me the method for stanislav nuschik", "role": "user" }, { "content": "SELECT method FROM table_name_60 WHERE opponent = \"stanislav nuschik\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2897457_4 (player VARCHAR, position VARCHAR, nhl_team VARCHAR)", "role": "system" }, { "content": "Which player is the centre for the Detroit Red Wings?", "role": "user" }, { "content": "SELECT player FROM table_2897457_4 WHERE position = \"Centre\" AND nhl_team = \"Detroit Red Wings\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE people (first_name VARCHAR)", "role": "system" }, { "content": "List the first names of people in alphabetical order?", "role": "user" }, { "content": "SELECT first_name FROM people ORDER BY first_name", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_22078691_2 (title VARCHAR, us_viewers__millions_ VARCHAR)", "role": "system" }, { "content": "What is the title that had 13.59 u.s. viewers (millions)?", "role": "user" }, { "content": "SELECT title FROM table_22078691_2 WHERE us_viewers__millions_ = \"13.59\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (gwr_nos VARCHAR, quantity VARCHAR)", "role": "system" }, { "content": "What GWR is associated with 4?", "role": "user" }, { "content": "SELECT gwr_nos FROM table_name_56 WHERE quantity = 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_13 (home_team VARCHAR, venue VARCHAR)", "role": "system" }, { "content": "What was the home team's score at the game held at Junction Oval?", "role": "user" }, { "content": "SELECT home_team AS score FROM table_name_13 WHERE venue = \"junction oval\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_77 (club_province VARCHAR, date_of_birth__age_ VARCHAR)", "role": "system" }, { "content": "What is the club/province of the player born on 12 May 1984?", "role": "user" }, { "content": "SELECT club_province FROM table_name_77 WHERE date_of_birth__age_ = \"12 may 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_92 (name VARCHAR, time VARCHAR)", "role": "system" }, { "content": "What is the Name, when the Time is 8:10.1?", "role": "user" }, { "content": "SELECT name FROM table_name_92 WHERE time = \"8:10.1\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_49 (location_attendance VARCHAR, date VARCHAR)", "role": "system" }, { "content": "On February 10, what was the location attendance?", "role": "user" }, { "content": "SELECT location_attendance FROM table_name_49 WHERE date = \"february 10\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_30 (away_team VARCHAR, venue VARCHAR)", "role": "system" }, { "content": "Which away team was at windy hill?", "role": "user" }, { "content": "SELECT away_team FROM table_name_30 WHERE venue = \"windy hill\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE university (school VARCHAR, nickname VARCHAR, founded VARCHAR)", "role": "system" }, { "content": "List all schools and their nicknames in the order of founded year.", "role": "user" }, { "content": "SELECT school, nickname FROM university ORDER BY founded", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27603010_14 (team__number2 VARCHAR, team__number1 VARCHAR)", "role": "system" }, { "content": "Who was the team 2 that played against team 1 Atlético la Sabana?", "role": "user" }, { "content": "SELECT team__number2 FROM table_27603010_14 WHERE team__number1 = \"Atlético La Sabana\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (engine VARCHAR, year_to VARCHAR, model VARCHAR, year_from VARCHAR)", "role": "system" }, { "content": "How many engines have a Model of sl600, and a Year From of 1994, and a Year To smaller than 1995?", "role": "user" }, { "content": "SELECT COUNT(engine) FROM table_name_82 WHERE model = \"sl600\" AND year_from = 1994 AND year_to < 1995", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_79 (city_of_license VARCHAR, power VARCHAR)", "role": "system" }, { "content": "what is the City of license that has a 1,400 watts Power", "role": "user" }, { "content": "SELECT city_of_license FROM table_name_79 WHERE power = \"1,400 watts\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_48 (team VARCHAR, finish VARCHAR)", "role": "system" }, { "content": "What is the name of the team with a finish of 19?", "role": "user" }, { "content": "SELECT team FROM table_name_48 WHERE finish = \"19\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_23722304_2 (stroke__mm_ VARCHAR, vehicle_code VARCHAR)", "role": "system" }, { "content": "what is the stroke where the vehicle code is t211?", "role": "user" }, { "content": "SELECT stroke__mm_ FROM table_23722304_2 WHERE vehicle_code = \"T211\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE PersonFriend (name VARCHAR)", "role": "system" }, { "content": "Find the person who has exactly one friend.", "role": "user" }, { "content": "SELECT name FROM PersonFriend GROUP BY name HAVING COUNT(*) = 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_51 (mark VARCHAR, react VARCHAR, points VARCHAR, country VARCHAR)", "role": "system" }, { "content": "What mark has over 813 points in the United States, and a 0.152 react?", "role": "user" }, { "content": "SELECT mark FROM table_name_51 WHERE points > 813 AND country = \"united states\" AND react > 0.152", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_24856332_4 (minutes INTEGER, steals VARCHAR)", "role": "system" }, { "content": "What is the lowest number of minutes for a player with 47 steals?", "role": "user" }, { "content": "SELECT MIN(minutes) FROM table_24856332_4 WHERE steals = 47", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_24126606_2 (opponent VARCHAR, date VARCHAR)", "role": "system" }, { "content": "Name the total number of opponent for october 3", "role": "user" }, { "content": "SELECT COUNT(opponent) FROM table_24126606_2 WHERE date = \"October 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_84 (score VARCHAR, points VARCHAR, record VARCHAR)", "role": "system" }, { "content": "Which Score has Points of 88, and a Record of 38–22–12?", "role": "user" }, { "content": "SELECT score FROM table_name_84 WHERE points = 88 AND record = \"38–22–12\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_37 (losses INTEGER, matches VARCHAR, no_result VARCHAR)", "role": "system" }, { "content": "What is the number of losses when there were 14 matches, and the No Result was larger than 0?", "role": "user" }, { "content": "SELECT SUM(losses) FROM table_name_37 WHERE matches = 14 AND no_result > 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_43 (round VARCHAR, opponents VARCHAR)", "role": "system" }, { "content": "Name the round for southampton opponents", "role": "user" }, { "content": "SELECT round FROM table_name_43 WHERE opponents = \"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_38 (name VARCHAR, college VARCHAR)", "role": "system" }, { "content": "Who is from the College of Cincinnati?", "role": "user" }, { "content": "SELECT name FROM table_name_38 WHERE college = \"cincinnati\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_178398_1 (year_built INTEGER, location_of_the_church VARCHAR)", "role": "system" }, { "content": "What is the year that the oldest church was built in Jostedal? ", "role": "user" }, { "content": "SELECT MIN(year_built) FROM table_178398_1 WHERE location_of_the_church = \"Jostedal\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1346118_5 (result VARCHAR, incumbent VARCHAR)", "role": "system" }, { "content": "What was the result of the election when Clarence F. Lea was the incumbent?", "role": "user" }, { "content": "SELECT result FROM table_1346118_5 WHERE incumbent = \"Clarence F. Lea\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (season VARCHAR, car__number VARCHAR, sponsor VARCHAR)", "role": "system" }, { "content": "How many seasons has UPS sponsored a car with a number larger than 17?", "role": "user" }, { "content": "SELECT COUNT(season) FROM table_name_9 WHERE car__number > 17 AND sponsor = \"ups\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_17718005_2 (lost VARCHAR, drawn VARCHAR, goals_for VARCHAR)", "role": "system" }, { "content": "When 45 is the goals for and 10 is the drawn what is the lost?", "role": "user" }, { "content": "SELECT lost FROM table_17718005_2 WHERE drawn = 10 AND goals_for = 45", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE trip (id VARCHAR, duration VARCHAR)", "role": "system" }, { "content": "What is the id of the trip that has the shortest duration?", "role": "user" }, { "content": "SELECT id FROM trip ORDER BY duration 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_39 (position VARCHAR, points VARCHAR)", "role": "system" }, { "content": "What is the position of the winner with 792 points?", "role": "user" }, { "content": "SELECT position FROM table_name_39 WHERE points = \"792\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_11609814_1 (constancy VARCHAR, purity VARCHAR)", "role": "system" }, { "content": "what is the total number of constancy where purity is falling", "role": "user" }, { "content": "SELECT COUNT(constancy) FROM table_11609814_1 WHERE purity = \"falling\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (foundation VARCHAR, enterprise VARCHAR)", "role": "system" }, { "content": "Which Foundation has an Enterprise of 2?", "role": "user" }, { "content": "SELECT foundation FROM table_name_17 WHERE enterprise = \"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_84 (top_speed__km_h_ INTEGER, model VARCHAR)", "role": "system" }, { "content": "What is the top speed of the model 1.8 20v t?", "role": "user" }, { "content": "SELECT SUM(top_speed__km_h_) FROM table_name_84 WHERE model = \"1.8 20v t\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (director VARCHAR, english_title VARCHAR)", "role": "system" }, { "content": "Who is the Director of the Olsen Gang Sees Red?", "role": "user" }, { "content": "SELECT director FROM table_name_11 WHERE english_title = \"the olsen gang sees red\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_61 (original_channel VARCHAR, note VARCHAR, year VARCHAR)", "role": "system" }, { "content": "what is the original channel when the note is co-star in year 2012?", "role": "user" }, { "content": "SELECT original_channel FROM table_name_61 WHERE note = \"co-star\" AND year = 2012", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_25341765_1 (directed_by VARCHAR, us_viewers__million_ VARCHAR)", "role": "system" }, { "content": "Who directed the episode that had 5.92 million viewers?", "role": "user" }, { "content": "SELECT directed_by FROM table_25341765_1 WHERE us_viewers__million_ = \"5.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 STUDENT (Id VARCHAR)", "role": "system" }, { "content": "Find the number of students in total.", "role": "user" }, { "content": "SELECT COUNT(*) FROM STUDENT", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_21436373_5 (type_of_record VARCHAR, result_games VARCHAR)", "role": "system" }, { "content": "What type of record is the result of the game Montreal 31 @ Calgary 32?", "role": "user" }, { "content": "SELECT type_of_record FROM table_21436373_5 WHERE result_games = \"Montreal 31 @ Calgary 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_1053802_1 (main_presenters VARCHAR, region_country VARCHAR)", "role": "system" }, { "content": "What is the main presenter of bulgaria?", "role": "user" }, { "content": "SELECT main_presenters FROM table_1053802_1 WHERE region_country = \"Bulgaria\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (year VARCHAR, chassis VARCHAR, points VARCHAR)", "role": "system" }, { "content": "What year had the Chassis of march 762 and more than 0 points?", "role": "user" }, { "content": "SELECT COUNT(year) FROM table_name_64 WHERE chassis = \"march 762\" AND points > 0", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_13282157_1 (Reset INTEGER, events VARCHAR)", "role": "system" }, { "content": "What is the highest reset points where the events is 23?", "role": "user" }, { "content": "SELECT MAX(Reset) AS points FROM table_13282157_1 WHERE events = 23", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_22 (jersey_number_s_ VARCHAR, player VARCHAR)", "role": "system" }, { "content": "Tom Lagarde Category:Articles with hCards used what Jersey Number(s)?", "role": "user" }, { "content": "SELECT jersey_number_s_ FROM table_name_22 WHERE player = \"tom lagarde 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_name_26 (away_team VARCHAR, home_team VARCHAR)", "role": "system" }, { "content": "What is the Away Team when the Home Team is Fulham?", "role": "user" }, { "content": "SELECT away_team FROM table_name_26 WHERE home_team = \"fulham\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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, date VARCHAR)", "role": "system" }, { "content": "What Score has a Date of 11 september 2010?", "role": "user" }, { "content": "SELECT score FROM table_name_25 WHERE date = \"11 september 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_14118521_1 (primary_payload_s_ VARCHAR, shuttle VARCHAR, duration VARCHAR)", "role": "system" }, { "content": " how many primary payload(s) with shuttle being columbia and duration being 13 days, 19 hours, 30 minutes, 4 seconds", "role": "user" }, { "content": "SELECT COUNT(primary_payload_s_) FROM table_14118521_1 WHERE shuttle = \"Columbia\" AND duration = \"13 days, 19 hours, 30 minutes, 4 seconds\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE Students (current_address_id VARCHAR)", "role": "system" }, { "content": "How many different addresses do the students currently live?", "role": "user" }, { "content": "SELECT COUNT(DISTINCT current_address_id) FROM Students", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_59 (rank VARCHAR, name VARCHAR, assists VARCHAR)", "role": "system" }, { "content": "With more than 69 Assists, what is Dejuan Collins' Rank?", "role": "user" }, { "content": "SELECT COUNT(rank) FROM table_name_59 WHERE name = \"dejuan collins\" AND assists > 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_61 (date VARCHAR, attendance VARCHAR)", "role": "system" }, { "content": "Where attendance is 79,431 what is date?", "role": "user" }, { "content": "SELECT date FROM table_name_61 WHERE attendance = \"79,431\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (date VARCHAR, jurisdiction VARCHAR)", "role": "system" }, { "content": "Name the date for oregon jurisdiction", "role": "user" }, { "content": "SELECT date FROM table_name_92 WHERE jurisdiction = \"oregon\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (team__number1 VARCHAR, team__number2 VARCHAR)", "role": "system" }, { "content": "with team #2 as akasvayu girona what is team #1?", "role": "user" }, { "content": "SELECT team__number1 FROM table_name_12 WHERE team__number2 = \"akasvayu girona\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2850912_8 (position VARCHAR, nhl_team VARCHAR, player VARCHAR)", "role": "system" }, { "content": "how many parts does detroit red wings person urban nordin play", "role": "user" }, { "content": "SELECT COUNT(position) FROM table_2850912_8 WHERE nhl_team = \"Detroit Red Wings\" AND player = \"Urban Nordin\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE student (age INTEGER, stuid VARCHAR); CREATE TABLE has_pet (age INTEGER, stuid VARCHAR)", "role": "system" }, { "content": "Find the average age of students who do not have any pet .", "role": "user" }, { "content": "SELECT AVG(age) FROM student WHERE NOT stuid IN (SELECT stuid FROM has_pet)", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (playoffs VARCHAR, division VARCHAR, regular_season VARCHAR)", "role": "system" }, { "content": "Which Playoffs has a Division of 2 and a Regular Season of 4th, southeast?", "role": "user" }, { "content": "SELECT playoffs FROM table_name_50 WHERE division = \"2\" AND regular_season = \"4th, southeast\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_63 (goals VARCHAR, caps VARCHAR)", "role": "system" }, { "content": "How many goals were scored when there were 73 caps?", "role": "user" }, { "content": "SELECT goals FROM table_name_63 WHERE caps = \"73\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (name VARCHAR, locomotive VARCHAR)", "role": "system" }, { "content": "What is the name for the locomotive n474?", "role": "user" }, { "content": "SELECT name FROM table_name_9 WHERE locomotive = \"n474\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_25696729_8 (season VARCHAR)", "role": "system" }, { "content": "List all rebounds equal to 10 for Dennis Rodman 's 1991–92 season", "role": "user" }, { "content": "SELECT 10 AS _rebounds FROM table_25696729_8 WHERE season = \"1991–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_48 (frequency___hz__ INTEGER, helmholtz_pitch VARCHAR)", "role": "system" }, { "content": "What is the lowest Frequency where the Hemholtz pitch is d?", "role": "user" }, { "content": "SELECT MIN(frequency___hz__) FROM table_name_48 WHERE helmholtz_pitch = \"d\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_14603212_5 (school_year VARCHAR, class_aAA VARCHAR, Argyle VARCHAR)", "role": "system" }, { "content": "What are the school years where class \"AAA\" is argyle?", "role": "user" }, { "content": "SELECT school_year FROM table_14603212_5 WHERE class_aAA = Argyle", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_62 (location VARCHAR, game VARCHAR)", "role": "system" }, { "content": "Where was game 78 held?", "role": "user" }, { "content": "SELECT location FROM table_name_62 WHERE game = 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_44 (lner_class VARCHAR, wa VARCHAR, no_built VARCHAR)", "role": "system" }, { "content": "What LINER class has a W.A. of 0-6-0st with a 2 No. Built?", "role": "user" }, { "content": "SELECT lner_class FROM table_name_44 WHERE wa = \"0-6-0st\" AND no_built = 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_8 (type VARCHAR, location VARCHAR)", "role": "system" }, { "content": "What type of bridge is in Cooperstown?", "role": "user" }, { "content": "SELECT type FROM table_name_8 WHERE location = \"cooperstown\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_25042332_22 (tertiary__18_24_years_ VARCHAR, secondary__14_17_years_ VARCHAR)", "role": "system" }, { "content": "What is the enrollment ratio in tertiary in the region where the enrollment ration in secondary is 71.43?", "role": "user" }, { "content": "SELECT tertiary__18_24_years_ FROM table_25042332_22 WHERE secondary__14_17_years_ = \"71.43\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_70 (score VARCHAR, surface VARCHAR, rank VARCHAR)", "role": "system" }, { "content": "What was the score of the match played on hard with a person ranked 10?", "role": "user" }, { "content": "SELECT score FROM table_name_70 WHERE surface = \"hard\" AND rank = 10", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_86 (song VARCHAR, picturization VARCHAR)", "role": "system" }, { "content": "Which song has a Picturization of Vijay?", "role": "user" }, { "content": "SELECT song FROM table_name_86 WHERE picturization = \"vijay\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (karen_handel VARCHAR, eric_johnson VARCHAR, undecided VARCHAR)", "role": "system" }, { "content": "What percentage is Karen Handel at in the poll in which Eric Johnson is 13% and undecided is 22%?", "role": "user" }, { "content": "SELECT karen_handel FROM table_name_45 WHERE eric_johnson = \"13%\" AND undecided = \"22%\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1132568_3 (rd VARCHAR, pole_position VARCHAR, fastest_lap VARCHAR, constructor VARCHAR)", "role": "system" }, { "content": "What are the numbers for the raceways that are constructed by Ferrari, with Michael Schumacher holding the fastest lap and pole position?", "role": "user" }, { "content": "SELECT rd FROM table_1132568_3 WHERE fastest_lap = \"Michael Schumacher\" AND constructor = \"Ferrari\" AND pole_position = \"Michael Schumacher\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (frequency VARCHAR, part_number_s_ VARCHAR)", "role": "system" }, { "content": "What is Frequency, when Part Number(s) is au80610006240aa?", "role": "user" }, { "content": "SELECT frequency FROM table_name_11 WHERE part_number_s_ = \"au80610006240aa\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_74 (h_a_n VARCHAR, record VARCHAR)", "role": "system" }, { "content": "What is H/A/N, when Record is 2-5?", "role": "user" }, { "content": "SELECT h_a_n FROM table_name_74 WHERE record = \"2-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_16 (score VARCHAR, record VARCHAR)", "role": "system" }, { "content": "Record of 6–1 had what score?", "role": "user" }, { "content": "SELECT score FROM table_name_16 WHERE record = \"6–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_89 (technique VARCHAR, highest_rank VARCHAR, total VARCHAR)", "role": "system" }, { "content": "How much Technique has the Highest rank of yokozuna, and a Total larger than 11?", "role": "user" }, { "content": "SELECT COUNT(technique) FROM table_name_89 WHERE highest_rank = \"yokozuna\" AND total > 11", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_85 (name__german_ VARCHAR, ideology VARCHAR)", "role": "system" }, { "content": "WHAT IS THE GERMAN NAME OF LIBERALISM?", "role": "user" }, { "content": "SELECT name__german_ FROM table_name_85 WHERE ideology = \"liberalism\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (date VARCHAR, venue VARCHAR)", "role": "system" }, { "content": "On what date was the venue VFL Park?", "role": "user" }, { "content": "SELECT date FROM table_name_5 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_55 (venue VARCHAR, position VARCHAR)", "role": "system" }, { "content": "What venue did he finish 7th?", "role": "user" }, { "content": "SELECT venue FROM table_name_55 WHERE position = \"7th\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_7 (location_attendance VARCHAR, game VARCHAR)", "role": "system" }, { "content": "WHAT IS THE LOCATION ATTENDANCE FOR GAME 4?", "role": "user" }, { "content": "SELECT location_attendance FROM table_name_7 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_44 (year INTEGER, result VARCHAR)", "role": "system" }, { "content": "What is the latest year they were nominated?", "role": "user" }, { "content": "SELECT MAX(year) FROM table_name_44 WHERE result = \"nominated\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (sound VARCHAR, publisher VARCHAR, language VARCHAR, classifaction VARCHAR)", "role": "system" }, { "content": "What sound has cantonese as the language, N/A as the classification, and spectrum dvd as the publisher?", "role": "user" }, { "content": "SELECT sound FROM table_name_77 WHERE language = \"cantonese\" AND classifaction = \"n/a\" AND publisher = \"spectrum dvd\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2169966_2 (avg_finish VARCHAR, avg_start VARCHAR)", "role": "system" }, { "content": "What was his average finish when his average start was 27.7?", "role": "user" }, { "content": "SELECT avg_finish FROM table_2169966_2 WHERE avg_start = \"27.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_14 (home_team VARCHAR, game VARCHAR)", "role": "system" }, { "content": "Which was the home team for game 3?", "role": "user" }, { "content": "SELECT home_team FROM table_name_14 WHERE game = \"game 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_50 (away_team VARCHAR, home_team VARCHAR)", "role": "system" }, { "content": "What is the Away team score with north melbourne as home team?", "role": "user" }, { "content": "SELECT away_team AS score FROM table_name_50 WHERE home_team = \"north melbourne\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_19744915_17 (rank INTEGER, total VARCHAR)", "role": "system" }, { "content": "If the total is 17, what was the maximum rank amount?", "role": "user" }, { "content": "SELECT MAX(rank) FROM table_19744915_17 WHERE total = 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_16799784_7 (diameter__km_ VARCHAR, latitude VARCHAR)", "role": "system" }, { "content": "what is the diameter (km) of the feature of latitude 23.0s", "role": "user" }, { "content": "SELECT diameter__km_ FROM table_16799784_7 WHERE latitude = \"23.0S\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_13619053_9 (team VARCHAR, date VARCHAR)", "role": "system" }, { "content": "Which team played on April 1?", "role": "user" }, { "content": "SELECT team FROM table_13619053_9 WHERE date = \"April 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_87 (record VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What is the record of the game on 5 February 2008?", "role": "user" }, { "content": "SELECT record FROM table_name_87 WHERE date = \"5 february 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 manager (Country VARCHAR)", "role": "system" }, { "content": "Show the distinct countries of managers.", "role": "user" }, { "content": "SELECT DISTINCT Country FROM manager", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (wins INTEGER, year VARCHAR, drivers VARCHAR)", "role": "system" }, { "content": "In 2011, how many wins did Michael Meadows have?", "role": "user" }, { "content": "SELECT SUM(wins) FROM table_name_2 WHERE year = 2011 AND drivers = \"michael meadows\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_11734041_11 (position VARCHAR, years_for_rockets VARCHAR)", "role": "system" }, { "content": "What is the position for the player that played in 2006?", "role": "user" }, { "content": "SELECT position FROM table_11734041_11 WHERE years_for_rockets = \"2006\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_25 (dob VARCHAR, first VARCHAR, throws VARCHAR, position VARCHAR)", "role": "system" }, { "content": "Which DOB has Throws of r, and a Position of c, and a First of torey?", "role": "user" }, { "content": "SELECT dob FROM table_name_25 WHERE throws = \"r\" AND position = \"c\" AND first = \"torey\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (general_classification VARCHAR, points_classification VARCHAR)", "role": "system" }, { "content": "What is the General classification for a points classification leader of Bradley Wiggins?", "role": "user" }, { "content": "SELECT general_classification FROM table_name_47 WHERE points_classification = \"bradley wiggins\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (date VARCHAR, crowd INTEGER)", "role": "system" }, { "content": "When was the attendance at a venue bigger than 35,151?", "role": "user" }, { "content": "SELECT date FROM table_name_36 WHERE crowd > 35 OFFSET 151", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (year_of_release INTEGER, title VARCHAR)", "role": "system" }, { "content": "What was the latest year of release for the greatest hits title?", "role": "user" }, { "content": "SELECT MAX(year_of_release) FROM table_name_71 WHERE title = \"greatest hits\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE schedule (date VARCHAR, price VARCHAR, film_id VARCHAR, cinema_id VARCHAR); CREATE TABLE cinema (name VARCHAR, cinema_id VARCHAR); CREATE TABLE film (title VARCHAR, film_id VARCHAR)", "role": "system" }, { "content": "Show cinema name, film title, date, and price for each record in schedule.", "role": "user" }, { "content": "SELECT T3.name, T2.title, T1.date, T1.price FROM schedule AS T1 JOIN film AS T2 ON T1.film_id = T2.film_id JOIN cinema AS T3 ON T1.cinema_id = T3.cinema_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_49 (pick INTEGER, round VARCHAR, overall VARCHAR, name VARCHAR)", "role": "system" }, { "content": "what is the pick for alfred morris when the overall is less than 217, and the round is smaller than 6?", "role": "user" }, { "content": "SELECT MAX(pick) FROM table_name_49 WHERE overall < 217 AND name = \"alfred morris\" AND round < 6", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_55 (wickets INTEGER, maidens VARCHAR, best VARCHAR)", "role": "system" }, { "content": "What is the largest number of wickets when there are more than 630 maidens and a best of 7/72?", "role": "user" }, { "content": "SELECT MAX(wickets) FROM table_name_55 WHERE maidens > 630 AND best = \"7/72\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_91 (sixth VARCHAR, fourth VARCHAR, first VARCHAR)", "role": "system" }, { "content": "What team placed sixth during the season where Western Australia placed fourth and Tasmania placed first?", "role": "user" }, { "content": "SELECT sixth FROM table_name_91 WHERE fourth = \"western australia\" AND first = \"tasmania\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (status VARCHAR, total_votes VARCHAR, couples_team VARCHAR)", "role": "system" }, { "content": "Who had 0 total votes in the purple team?", "role": "user" }, { "content": "SELECT status FROM table_name_18 WHERE total_votes = \"0\" AND couples_team = \"purple team\"", "role": "assistant" } ]