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_21995420_9 (stunts VARCHAR, school VARCHAR)", "role": "system" }, { "content": "If the school is Central Colleges of the Philippines CCP Bobcats, what is the stunts number?", "role": "user" }, { "content": "SELECT stunts FROM table_21995420_9 WHERE school = \"Central Colleges of the Philippines CCP Bobcats\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_14139408_1 (pts VARCHAR, team VARCHAR)", "role": "system" }, { "content": "what's the pts with team being kopron team scot", "role": "user" }, { "content": "SELECT pts FROM table_14139408_1 WHERE team = \"Kopron team Scot\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_58 (driver VARCHAR, constructor VARCHAR, time_retired VARCHAR, grid VARCHAR, laps VARCHAR)", "role": "system" }, { "content": "What is the name of the driver with a grid less than 14, laps smaller than 53 and a Time/Retired of collision, and a Constructor of ferrari?", "role": "user" }, { "content": "SELECT driver FROM table_name_58 WHERE grid < 14 AND laps < 53 AND time_retired = \"collision\" AND constructor = \"ferrari\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_4 (round VARCHAR, player VARCHAR, pick VARCHAR, draft VARCHAR)", "role": "system" }, { "content": "Which Round was Player Adam Cracknell Picked after 231 in a Draft year after 1988?", "role": "user" }, { "content": "SELECT round FROM table_name_4 WHERE pick > 231 AND draft > 1988 AND player = \"adam cracknell\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_20010140_10 (record VARCHAR, date VARCHAR)", "role": "system" }, { "content": "how many records were made on february 22", "role": "user" }, { "content": "SELECT COUNT(record) FROM table_20010140_10 WHERE date = \"February 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_name_90 (year_s__of_manufacture VARCHAR, quantity VARCHAR, type VARCHAR)", "role": "system" }, { "content": "Which Year(s) of manufacture has a Quantity larger than 39, and a Type of 1′c1′ h2t?", "role": "user" }, { "content": "SELECT year_s__of_manufacture FROM table_name_90 WHERE quantity > 39 AND type = \"1′c1′ h2t\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (money___ VARCHAR, to_par VARCHAR, player VARCHAR)", "role": "system" }, { "content": "What is the total number of Money ( $ ), when To Par is \"13\", and when Player is \"Julius Boros\"?", "role": "user" }, { "content": "SELECT COUNT(money___) AS $__ FROM table_name_2 WHERE to_par = 13 AND player = \"julius boros\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (week_4 VARCHAR, week_3 VARCHAR)", "role": "system" }, { "content": "What is week 4 if week 3 is 35.40?", "role": "user" }, { "content": "SELECT week_4 FROM table_name_26 WHERE week_3 = \"35.40\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_17933600_2 (team VARCHAR, outgoing_manage VARCHAR)", "role": "system" }, { "content": "What team(s) had an outgoing manager of joão alves?", "role": "user" }, { "content": "SELECT team FROM table_17933600_2 WHERE outgoing_manage = \"João Alves\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_25640730_7 (written_by VARCHAR, uk_air_date VARCHAR)", "role": "system" }, { "content": "If the UK air date is February 18, 2013, who was the episode written by?", "role": "user" }, { "content": "SELECT written_by FROM table_25640730_7 WHERE uk_air_date = \"February 18, 2013\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (goals_against VARCHAR, played INTEGER)", "role": "system" }, { "content": "What is the total number of goals scored against clubs that have played more than 42 times?", "role": "user" }, { "content": "SELECT COUNT(goals_against) FROM table_name_68 WHERE played > 42", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (attendance VARCHAR, opponent VARCHAR)", "role": "system" }, { "content": "What is Attendance, when Opponent is \"At Syracuse\"?", "role": "user" }, { "content": "SELECT attendance FROM table_name_79 WHERE opponent = \"at syracuse\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1302886_1 (kerry_number VARCHAR, county VARCHAR)", "role": "system" }, { "content": "In cook county Kerry# is?", "role": "user" }, { "content": "SELECT kerry_number FROM table_1302886_1 WHERE county = \"Cook\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (result VARCHAR, road_team VARCHAR, date VARCHAR)", "role": "system" }, { "content": "WHAT IS THE RESULT WITH THE BOSTON ROAD TEAM, ON APRIL 23?", "role": "user" }, { "content": "SELECT result FROM table_name_68 WHERE road_team = \"boston\" AND date = \"april 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_25711913_2 (touchdowns VARCHAR, points VARCHAR)", "role": "system" }, { "content": "How many touchdowns did the player took which gained 25 points?", "role": "user" }, { "content": "SELECT touchdowns FROM table_25711913_2 WHERE points = 25", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (type VARCHAR, builder VARCHAR, number VARCHAR)", "role": "system" }, { "content": "Which Type has a Builder of avonside engine company, and a Number of 9?", "role": "user" }, { "content": "SELECT type FROM table_name_55 WHERE builder = \"avonside engine company\" AND number = 9", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_23 (cat_no VARCHAR, label_s_ VARCHAR, release_format VARCHAR)", "role": "system" }, { "content": "What is the cat no for the label mute and the standard cd format?", "role": "user" }, { "content": "SELECT cat_no FROM table_name_23 WHERE label_s_ = \"mute\" AND release_format = \"standard cd\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_3 (attendance VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What was the attendance on the bye week?", "role": "user" }, { "content": "SELECT attendance FROM table_name_3 WHERE date = \"bye\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_63 (attendance INTEGER, date VARCHAR)", "role": "system" }, { "content": "What is the sum of the attendance on November 16?", "role": "user" }, { "content": "SELECT SUM(attendance) FROM table_name_63 WHERE date = \"november 16\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_92 (meet VARCHAR, time VARCHAR)", "role": "system" }, { "content": "I want to meet that has a time 2:15.93", "role": "user" }, { "content": "SELECT meet FROM table_name_92 WHERE time = \"2:15.93\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_18894744_6 (location_attendance VARCHAR, record VARCHAR)", "role": "system" }, { "content": "Where was the game with a 13-5 record played, and in front of how many people?", "role": "user" }, { "content": "SELECT location_attendance FROM table_18894744_6 WHERE record = \"13-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_32 (home_team VARCHAR, away_team VARCHAR)", "role": "system" }, { "content": "When the Away team is south melbourne, what's the Home team score?", "role": "user" }, { "content": "SELECT home_team AS score FROM table_name_32 WHERE away_team = \"south 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_name_92 (venue VARCHAR, season VARCHAR)", "role": "system" }, { "content": "During season 1935, what was the venue?", "role": "user" }, { "content": "SELECT venue FROM table_name_92 WHERE season = \"1935\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_78 (year INTEGER, wins VARCHAR, loses VARCHAR)", "role": "system" }, { "content": "What highest Year has Wins 15 and Losses less than 5?", "role": "user" }, { "content": "SELECT MAX(year) FROM table_name_78 WHERE wins = 15 AND loses < 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_26986076_5 (fri_27_aug VARCHAR, wed_25_aug VARCHAR)", "role": "system" }, { "content": "When 21' 05.83 107.304mph is Wednesday August 25th what is Friday August 27th?", "role": "user" }, { "content": "SELECT fri_27_aug FROM table_26986076_5 WHERE wed_25_aug = \"21' 05.83 107.304mph\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_19439864_2 (total VARCHAR, song VARCHAR)", "role": "system" }, { "content": "What was the total for radio luxembourg?", "role": "user" }, { "content": "SELECT total FROM table_19439864_2 WHERE song = \"Radio Luxembourg\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (game VARCHAR, score VARCHAR, january VARCHAR)", "role": "system" }, { "content": "How many games have a Score of 3–0, and a January larger than 12?", "role": "user" }, { "content": "SELECT COUNT(game) FROM table_name_16 WHERE score = \"3–0\" AND january > 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_4 (score VARCHAR, visitor VARCHAR)", "role": "system" }, { "content": "What was the score for the game in which the Edmonton Oilers were visitors?", "role": "user" }, { "content": "SELECT score FROM table_name_4 WHERE visitor = \"edmonton oilers\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (state VARCHAR, member VARCHAR, term_in_office VARCHAR, party VARCHAR)", "role": "system" }, { "content": "Which state has a Term in office of 1984–1996, a Party of labor, and a Member of robert tickner?", "role": "user" }, { "content": "SELECT state FROM table_name_48 WHERE term_in_office = \"1984–1996\" AND party = \"labor\" AND member = \"robert tickner\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (rank INTEGER, earnings__$__ INTEGER)", "role": "system" }, { "content": "Who is the highest ranked player that has earnings below 395,386?", "role": "user" }, { "content": "SELECT MAX(rank) FROM table_name_70 WHERE earnings__$__ < 395 OFFSET 386", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (_percentage__1960_ INTEGER, county VARCHAR, _percentage__2040_ VARCHAR, _percentage__2000_ VARCHAR)", "role": "system" }, { "content": "What is the % (1960) of Troms, which has a % (2040) smaller than 100 and a % (2000) smaller than 4.7?", "role": "user" }, { "content": "SELECT SUM(_percentage__1960_) FROM table_name_48 WHERE _percentage__2040_ < 100 AND _percentage__2000_ < 4.7 AND county = \"troms\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_25213146_2 (circuit VARCHAR, round VARCHAR)", "role": "system" }, { "content": "Where was the circuit for round 4?", "role": "user" }, { "content": "SELECT circuit FROM table_25213146_2 WHERE round = 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_75 (player VARCHAR, round INTEGER)", "role": "system" }, { "content": "What is the name of the player picked before round 2?", "role": "user" }, { "content": "SELECT player FROM table_name_75 WHERE round < 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_46 (date VARCHAR, score VARCHAR)", "role": "system" }, { "content": "WHAT DATE HAD A SCORE OF 71-64?", "role": "user" }, { "content": "SELECT date FROM table_name_46 WHERE score = \"71-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_49 (ring_name VARCHAR, stable VARCHAR, birthplace VARCHAR)", "role": "system" }, { "content": "What is Ring Name, when Stable is Kasugano, and when Birthplace is Z Mtskheta , Georgia?", "role": "user" }, { "content": "SELECT ring_name FROM table_name_49 WHERE stable = \"kasugano\" AND birthplace = \"z mtskheta , georgia\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_54 (attendance VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What was the attendance on 1997-12-14?", "role": "user" }, { "content": "SELECT attendance FROM table_name_54 WHERE date = \"1997-12-14\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (years VARCHAR, model VARCHAR)", "role": "system" }, { "content": "What year was the SL 350 Model?", "role": "user" }, { "content": "SELECT years FROM table_name_74 WHERE model = \"sl 350\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL 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 (dept_code VARCHAR); CREATE TABLE department (dept_name VARCHAR, dept_address VARCHAR, dept_code VARCHAR)", "role": "system" }, { "content": "Find the name, address, number of students in the departments that have the top 3 highest number of students.", "role": "user" }, { "content": "SELECT T2.dept_name, T2.dept_address, COUNT(*) FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.dept_code ORDER BY COUNT(*) DESC LIMIT 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_34 (head_coach VARCHAR, shirt_sponsor VARCHAR)", "role": "system" }, { "content": "Who is the head coach of the team, whose shirt sponsor is karstadt quelle versicherungen?", "role": "user" }, { "content": "SELECT head_coach FROM table_name_34 WHERE shirt_sponsor = \"karstadt quelle versicherungen\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (third VARCHAR, nation VARCHAR)", "role": "system" }, { "content": "Who came in third in England?", "role": "user" }, { "content": "SELECT third FROM table_name_60 WHERE nation = \"england\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_262495_1 (type VARCHAR, nickname VARCHAR)", "role": "system" }, { "content": "When falcons are the nickname what is the type?", "role": "user" }, { "content": "SELECT type FROM table_262495_1 WHERE nickname = \"Falcons\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1342256_6 (party VARCHAR, first_elected VARCHAR)", "role": "system" }, { "content": "what's the party with first elected being 1926", "role": "user" }, { "content": "SELECT party FROM table_1342256_6 WHERE first_elected = \"1926\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_42 (surface VARCHAR, partner VARCHAR)", "role": "system" }, { "content": "What is the surface when the partner was Robert Haybittel?", "role": "user" }, { "content": "SELECT surface FROM table_name_42 WHERE partner = \"robert haybittel\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (report VARCHAR, race VARCHAR)", "role": "system" }, { "content": "What was the report in the Belgian Grand Prix?", "role": "user" }, { "content": "SELECT report FROM table_name_5 WHERE race = \"belgian grand prix\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL 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 (Age INTEGER)", "role": "system" }, { "content": "What is the average age for all managers?", "role": "user" }, { "content": "SELECT AVG(Age) 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_88 (Id VARCHAR)", "role": "system" }, { "content": "What is the maximum 1985 GDP for the region where 1990 GDP is less than 267, 2000 GDP is 333 and 2005 GDP is less than 658?", "role": "user" }, { "content": "SELECT MAX(1985) FROM table_name_88 WHERE 1990 < 267 AND 2000 = 333 AND 2005 < 658", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_21269143_1 (date VARCHAR, round VARCHAR)", "role": "system" }, { "content": "Name the total number of date for round 26", "role": "user" }, { "content": "SELECT COUNT(date) FROM table_21269143_1 WHERE round = \"26\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_58 (gold VARCHAR, bronze VARCHAR, silver VARCHAR)", "role": "system" }, { "content": "Who ha the gold and 1 bronze, and more than 0 silver?", "role": "user" }, { "content": "SELECT gold FROM table_name_58 WHERE bronze = 1 AND silver > 0", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_95 (date VARCHAR, tournament VARCHAR, runner_s__up VARCHAR)", "role": "system" }, { "content": "Which Date has a Tournament of national jewish hospital open, and a Runner(s)-up of pat bradley?", "role": "user" }, { "content": "SELECT date FROM table_name_95 WHERE tournament = \"national jewish hospital open\" AND runner_s__up = \"pat bradley\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_22298383_1 (manufacturer VARCHAR, average_speed__mph_ VARCHAR)", "role": "system" }, { "content": "Who manufactured the car that won with an average speed of 126.259 mph?", "role": "user" }, { "content": "SELECT manufacturer FROM table_22298383_1 WHERE average_speed__mph_ = \"126.259\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (opponent VARCHAR, event VARCHAR)", "role": "system" }, { "content": "Which opponent has the event Jungle Fight 6?", "role": "user" }, { "content": "SELECT opponent FROM table_name_56 WHERE event = \"jungle fight 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_1 (rank INTEGER, games VARCHAR, rebounds VARCHAR)", "role": "system" }, { "content": "What's the lowest amount of 12 games and less than 48 rebounds?", "role": "user" }, { "content": "SELECT MIN(rank) FROM table_name_1 WHERE games = 12 AND rebounds < 48", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (score VARCHAR, venue VARCHAR)", "role": "system" }, { "content": "in riyadh, saudi arabia, what is the score?", "role": "user" }, { "content": "SELECT score FROM table_name_12 WHERE venue = \"riyadh, saudi arabia\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (current_club VARCHAR, apps VARCHAR, debut_year VARCHAR)", "role": "system" }, { "content": "What is the current club with more than 368 apps and a debut year earlier than 1994?", "role": "user" }, { "content": "SELECT current_club FROM table_name_51 WHERE apps > 368 AND debut_year < 1994", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (to_par VARCHAR, score VARCHAR)", "role": "system" }, { "content": "What is the To Par that has a 69-69-73=211 score?", "role": "user" }, { "content": "SELECT to_par FROM table_name_35 WHERE score = 69 - 69 - 73 = 211", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (home_ground VARCHAR, founded VARCHAR, coach VARCHAR)", "role": "system" }, { "content": "Where is the home ground for the club coached by nick pantsaras and founded before 1946?", "role": "user" }, { "content": "SELECT home_ground FROM table_name_48 WHERE founded < 1946 AND coach = \"nick pantsaras\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (field_goals INTEGER, touchdowns VARCHAR, extra_points VARCHAR)", "role": "system" }, { "content": "What is the highest field goals when there were more than 1 touchdown and 0 extra points?", "role": "user" }, { "content": "SELECT MAX(field_goals) FROM table_name_7 WHERE touchdowns > 1 AND extra_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 death (caused_by_ship_id VARCHAR); CREATE TABLE ship (Id VARCHAR)", "role": "system" }, { "content": "What is the ship id and name that caused most total injuries?", "role": "user" }, { "content": "SELECT T2.id, T2.name FROM death AS T1 JOIN ship AS t2 ON T1.caused_by_ship_id = T2.id GROUP BY T2.id ORDER BY COUNT(*) DESC LIMIT 1", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_91 (torque VARCHAR, model VARCHAR)", "role": "system" }, { "content": "Which Torque has a Model of s63 amg ('01)?", "role": "user" }, { "content": "SELECT torque FROM table_name_91 WHERE model = \"s63 amg ('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_29 (venue VARCHAR, year VARCHAR, competition VARCHAR)", "role": "system" }, { "content": "What venue had a competition of World Junior Championships before 2011?", "role": "user" }, { "content": "SELECT venue FROM table_name_29 WHERE year < 2011 AND competition = \"world junior championships\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE course_arrange (Course_ID VARCHAR, Teacher_ID VARCHAR); CREATE TABLE teacher (Name VARCHAR, Teacher_ID VARCHAR); CREATE TABLE course (Course VARCHAR, Course_ID VARCHAR)", "role": "system" }, { "content": "Show names of teachers and the courses they are arranged to teach in ascending alphabetical order of the teacher's name.", "role": "user" }, { "content": "SELECT T3.Name, T2.Course FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID ORDER BY T3.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_21220720_1 (to VARCHAR, league_apps VARCHAR)", "role": "system" }, { "content": "Name the to for 19 league apps", "role": "user" }, { "content": "SELECT to FROM table_21220720_1 WHERE league_apps = 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_28768469_2 (location_attendance VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What is the location for the game on October 20 with it's corresponding attendance?", "role": "user" }, { "content": "SELECT location_attendance FROM table_28768469_2 WHERE date = \"October 20\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1974782_1 (institution VARCHAR, location VARCHAR)", "role": "system" }, { "content": "What school is located in Worcester, Massachusetts?", "role": "user" }, { "content": "SELECT institution FROM table_1974782_1 WHERE location = \"Worcester, Massachusetts\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_75 (margin_of_victory VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What is the margin of victory of the tournament on 5 Jun 1988?", "role": "user" }, { "content": "SELECT margin_of_victory FROM table_name_75 WHERE date = \"5 jun 1988\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE affected_region (storm_id VARCHAR); CREATE TABLE storm (name VARCHAR, storm_id VARCHAR)", "role": "system" }, { "content": "List the name for storms and the number of affected regions for each storm.", "role": "user" }, { "content": "SELECT T1.name, COUNT(*) FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_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_38 (date_s__administered VARCHAR, meg_whitman VARCHAR)", "role": "system" }, { "content": "When did Meg Whitman get 60%?", "role": "user" }, { "content": "SELECT date_s__administered FROM table_name_38 WHERE meg_whitman = \"60%\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_96 (year VARCHAR, laps VARCHAR, start VARCHAR)", "role": "system" }, { "content": "Tell me the year with Laps less than 197 and start of 2", "role": "user" }, { "content": "SELECT year FROM table_name_96 WHERE laps < 197 AND start = \"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_30120556_1 (area__acres__ INTEGER, townland VARCHAR)", "role": "system" }, { "content": "What is the fewest area in Derrynanool townland?", "role": "user" }, { "content": "SELECT MIN(area__acres__) FROM table_30120556_1 WHERE townland = \"Derrynanool\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (region VARCHAR, date VARCHAR)", "role": "system" }, { "content": "Which region had the date of November 18, 2002?", "role": "user" }, { "content": "SELECT region FROM table_name_41 WHERE date = \"november 18, 2002\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_12962773_2 (position VARCHAR, player VARCHAR)", "role": "system" }, { "content": "What is Ido Kozikaro's position?", "role": "user" }, { "content": "SELECT position FROM table_12962773_2 WHERE player = \"Ido Kozikaro\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_88 (place VARCHAR, singer VARCHAR, points VARCHAR)", "role": "system" }, { "content": "What is the total for the place when the singer is Mariza Ikonomi when points are larger than 20?", "role": "user" }, { "content": "SELECT COUNT(place) FROM table_name_88 WHERE singer = \"mariza ikonomi\" AND points > 20", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_31 (location VARCHAR, round VARCHAR, opponent VARCHAR)", "role": "system" }, { "content": "At what Location was the match against Opponent of Mostapha Al-Turk lasting less than 2 Rounds?", "role": "user" }, { "content": "SELECT location FROM table_name_31 WHERE round < 2 AND opponent = \"mostapha al-turk\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (player VARCHAR, score VARCHAR)", "role": "system" }, { "content": "Who had a score of 70-69-70=209?", "role": "user" }, { "content": "SELECT player FROM table_name_50 WHERE score = 70 - 69 - 70 = 209", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (date VARCHAR, away_team VARCHAR)", "role": "system" }, { "content": "What was the date of the game for the Wrexham away team?", "role": "user" }, { "content": "SELECT date FROM table_name_17 WHERE away_team = \"wrexham\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27756014_6 (date VARCHAR, game VARCHAR)", "role": "system" }, { "content": "What date was game number 22 on?", "role": "user" }, { "content": "SELECT date FROM table_27756014_6 WHERE game = 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_name_78 (discovery___publication_of_name VARCHAR, species VARCHAR)", "role": "system" }, { "content": "Tell me the discovery/publicatio of name for h.heidelbergensis", "role": "user" }, { "content": "SELECT discovery___publication_of_name FROM table_name_78 WHERE species = \"h.heidelbergensis\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_26352332_4 (cylinder_layout VARCHAR, years_produced VARCHAR, engine_family VARCHAR)", "role": "system" }, { "content": "The engine family MaxxForce 5\t in the years produced 2007-current, have what cylinder layout?", "role": "user" }, { "content": "SELECT cylinder_layout FROM table_26352332_4 WHERE years_produced = \"2007-current\" AND engine_family = \"MaxxForce 5\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_76 (asts VARCHAR, rebs INTEGER)", "role": "system" }, { "content": "What is the number of asts when rebs are larger than 1,189?", "role": "user" }, { "content": "SELECT asts FROM table_name_76 WHERE rebs > 1 OFFSET 189", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_32 (notes VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What do the notes say for 1989 May 7?", "role": "user" }, { "content": "SELECT notes FROM table_name_32 WHERE date = \"1989 may 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_64 (opponent_in_the_final VARCHAR, tournament VARCHAR)", "role": "system" }, { "content": "who is the opponent in the final when the tournament is cagnes-sur-mer?", "role": "user" }, { "content": "SELECT opponent_in_the_final FROM table_name_64 WHERE tournament = \"cagnes-sur-mer\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (name VARCHAR, round VARCHAR)", "role": "system" }, { "content": "What is the name of the player taken in round 23?", "role": "user" }, { "content": "SELECT name FROM table_name_2 WHERE round = 23", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_14 (assist_pass VARCHAR, score VARCHAR, competition VARCHAR)", "role": "system" }, { "content": "Which Assist/pass has a Score of 1-0,a Competition of 2010 concacaf world cup qualifying – group stage?", "role": "user" }, { "content": "SELECT assist_pass FROM table_name_14 WHERE score = \"1-0\" AND competition = \"2010 concacaf world cup qualifying – group stage\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_27 (school VARCHAR, national_championships VARCHAR, city VARCHAR)", "role": "system" }, { "content": "Which School has a National Championships of 2, and a City of orlando?", "role": "user" }, { "content": "SELECT school FROM table_name_27 WHERE national_championships = 2 AND city = \"orlando\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (year VARCHAR, box_office VARCHAR)", "role": "system" }, { "content": "The box office was $961,147 in what year?", "role": "user" }, { "content": "SELECT year FROM table_name_18 WHERE box_office = \"$961,147\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (target_version VARCHAR, license VARCHAR)", "role": "system" }, { "content": "What is Target Version, when License is LGPL or MPL?", "role": "user" }, { "content": "SELECT target_version FROM table_name_68 WHERE license = \"lgpl or mpl\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_29391888_1 (season__number VARCHAR, production_code VARCHAR)", "role": "system" }, { "content": "What is the season # for the production code 3.89?", "role": "user" }, { "content": "SELECT season__number FROM table_29391888_1 WHERE production_code = \"3.89\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE country (Population VARCHAR, Region VARCHAR, Name VARCHAR)", "role": "system" }, { "content": "What are the region and population of Angola?", "role": "user" }, { "content": "SELECT Population, Region FROM country WHERE Name = \"Angola\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2679061_11 (pick__number VARCHAR, nhl_team VARCHAR)", "role": "system" }, { "content": "How many picks did the Chicago Black Hawks get?", "role": "user" }, { "content": "SELECT COUNT(pick__number) FROM table_2679061_11 WHERE nhl_team = \"Chicago Black Hawks\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_19 (psip_short_name VARCHAR, video VARCHAR, programming VARCHAR)", "role": "system" }, { "content": "What is the short name having video of 720p and programming of Main KSTC-TV programming?", "role": "user" }, { "content": "SELECT psip_short_name FROM table_name_19 WHERE video = \"720p\" AND programming = \"main kstc-tv programming\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (date VARCHAR, result VARCHAR, opponent VARCHAR)", "role": "system" }, { "content": "When has a Result of 0–2 and a Opponent of aberdeen?", "role": "user" }, { "content": "SELECT date FROM table_name_13 WHERE result = \"0–2\" AND opponent = \"aberdeen\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE song (song_name VARCHAR, rating INTEGER, genre_is VARCHAR)", "role": "system" }, { "content": "What are the names of all songs that have a lower rating than some song of blues genre?", "role": "user" }, { "content": "SELECT song_name FROM song WHERE rating < (SELECT MAX(rating) FROM song WHERE genre_is = \"blues\")", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1825751_14 (hometown VARCHAR, pageant VARCHAR)", "role": "system" }, { "content": "Where is the miss global teen?", "role": "user" }, { "content": "SELECT hometown FROM table_1825751_14 WHERE pageant = \"Miss Global Teen\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_42 (overall VARCHAR, player VARCHAR)", "role": "system" }, { "content": "How many drafts featured fred hoaglin?", "role": "user" }, { "content": "SELECT COUNT(overall) FROM table_name_42 WHERE player = \"fred hoaglin\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (pinnacle_height VARCHAR, name VARCHAR)", "role": "system" }, { "content": "What is Pinnacle height of chimney of orot rabin?", "role": "user" }, { "content": "SELECT pinnacle_height FROM table_name_31 WHERE name = \"chimney of orot rabin\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (goals_for INTEGER, team VARCHAR, drawn VARCHAR)", "role": "system" }, { "content": "What is the highest Goals For, when Team is \"Cheadle Town\", and when Drawn is greater than 7?", "role": "user" }, { "content": "SELECT MAX(goals_for) FROM table_name_2 WHERE team = \"cheadle town\" AND drawn > 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_17 (opposition VARCHAR, city VARCHAR)", "role": "system" }, { "content": "Which Opposition has a City of taunton?", "role": "user" }, { "content": "SELECT opposition FROM table_name_17 WHERE city = \"taunton\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (year VARCHAR, game VARCHAR)", "role": "system" }, { "content": "What is the sum number of year when Call of Duty 4: Modern Warfare was the game?", "role": "user" }, { "content": "SELECT COUNT(year) FROM table_name_55 WHERE game = \"call of duty 4: modern warfare\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (outcome VARCHAR, partner VARCHAR, opponents VARCHAR)", "role": "system" }, { "content": "What is Outcome, when Partner is \"Byron Black\", and when Opponents is \"Goran Ivanišević Brian Macphie\"?", "role": "user" }, { "content": "SELECT outcome FROM table_name_94 WHERE partner = \"byron black\" AND opponents = \"goran ivanišević brian macphie\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (msdn_integration VARCHAR, intellitrace VARCHAR)", "role": "system" }, { "content": "Which MSDN integration has a IntelliTrace of yes?", "role": "user" }, { "content": "SELECT msdn_integration FROM table_name_12 WHERE intellitrace = \"yes\"", "role": "assistant" } ]