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_17080868_8 (high_points VARCHAR, team VARCHAR)", "role": "system" }, { "content": "All high points are team new york.", "role": "user" }, { "content": "SELECT high_points FROM table_17080868_8 WHERE team = \"New York\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (position VARCHAR, lost VARCHAR, points VARCHAR, drawn VARCHAR)", "role": "system" }, { "content": "What is the total number of positions for teams with more than 5 points, 3 draws, and under 2 losses?", "role": "user" }, { "content": "SELECT COUNT(position) FROM table_name_56 WHERE points > 5 AND drawn = 3 AND lost < 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_12 (time VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What is the time associated with August 16, 2008?", "role": "user" }, { "content": "SELECT time FROM table_name_12 WHERE date = \"august 16, 2008\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_49 (december INTEGER, points VARCHAR, record VARCHAR)", "role": "system" }, { "content": "Which December has Points of 38, and a Record of 18–6–2?", "role": "user" }, { "content": "SELECT AVG(december) FROM table_name_49 WHERE points = 38 AND record = \"18–6–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_21 (team_1 VARCHAR, team_2 VARCHAR)", "role": "system" }, { "content": "Which team 1 played against team 2 of Tours FC (D2)?", "role": "user" }, { "content": "SELECT team_1 FROM table_name_21 WHERE team_2 = \"tours fc (d2)\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (league_goals INTEGER, name VARCHAR, fa_cup_apps VARCHAR)", "role": "system" }, { "content": "What is the highest league goals that have barry endean as the name, wirh FA cup apps greater than 0?", "role": "user" }, { "content": "SELECT MAX(league_goals) FROM table_name_46 WHERE name = \"barry endean\" AND fa_cup_apps > 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_24 (player VARCHAR, previous_team VARCHAR)", "role": "system" }, { "content": "Which player was previously on the New York Knicks?", "role": "user" }, { "content": "SELECT player FROM table_name_24 WHERE previous_team = \"new york knicks\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (drawn INTEGER, difference VARCHAR)", "role": "system" }, { "content": "Which Drawn has a Difference of 14?", "role": "user" }, { "content": "SELECT AVG(drawn) FROM table_name_58 WHERE difference = \"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_12451376_2 (writer_s_ VARCHAR, production_code VARCHAR)", "role": "system" }, { "content": "Provide me with the name of the writer with the production code 210. ", "role": "user" }, { "content": "SELECT writer_s_ FROM table_12451376_2 WHERE production_code = 210", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27744844_7 (high_rebounds VARCHAR, date VARCHAR)", "role": "system" }, { "content": "Who had the most rebounds and how many did they have on January 19? ", "role": "user" }, { "content": "SELECT high_rebounds FROM table_27744844_7 WHERE date = \"January 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_name_68 (home VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What home is dated march 19?", "role": "user" }, { "content": "SELECT home FROM table_name_68 WHERE date = \"march 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_28059992_2 (cfl_team VARCHAR, player VARCHAR)", "role": "system" }, { "content": "Name the cfl team for patrice denis", "role": "user" }, { "content": "SELECT cfl_team FROM table_28059992_2 WHERE player = \"Patrice Denis\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE CLASS (PROF_NUM VARCHAR, CRS_CODE VARCHAR)", "role": "system" }, { "content": "How many professors are teaching class with code ACCT-211?", "role": "user" }, { "content": "SELECT COUNT(DISTINCT PROF_NUM) FROM CLASS WHERE CRS_CODE = \"ACCT-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_40 (fastest_time__s_ VARCHAR, athlete VARCHAR)", "role": "system" }, { "content": "What is the fastest time for athlete Jason Smyth?", "role": "user" }, { "content": "SELECT fastest_time__s_ FROM table_name_40 WHERE athlete = \"jason smyth\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (college VARCHAR, conf VARCHAR, pos VARCHAR)", "role": "system" }, { "content": "What is the College of the WR Player from SWC Conf?", "role": "user" }, { "content": "SELECT college FROM table_name_70 WHERE conf = \"swc\" AND pos = \"wr\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE Assessment_Notes (date_of_notes VARCHAR)", "role": "system" }, { "content": "List all information about the assessment notes sorted by date in ascending order.", "role": "user" }, { "content": "SELECT * FROM Assessment_Notes ORDER BY date_of_notes", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_24565004_20 (goals¹ VARCHAR, name VARCHAR)", "role": "system" }, { "content": "Name the goals for daniel sanchez", "role": "user" }, { "content": "SELECT goals¹ FROM table_24565004_20 WHERE name = \"Daniel Sanchez\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (current_version VARCHAR, rtm_build VARCHAR, name VARCHAR)", "role": "system" }, { "content": "What is the current version of windows 8 with an RTM build of 9200?", "role": "user" }, { "content": "SELECT current_version FROM table_name_14 WHERE rtm_build = \"9200\" AND name = \"windows 8\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE wrestler (Wrestler_ID VARCHAR, Days_held INTEGER); CREATE TABLE elimination (Time VARCHAR, Wrestler_ID VARCHAR)", "role": "system" }, { "content": "Show times of elimination of wrestlers with days held more than 50.", "role": "user" }, { "content": "SELECT T1.Time FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID = T2.Wrestler_ID WHERE T2.Days_held > 50", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE Payments (Payment_ID VARCHAR, Date_Payment_Made VARCHAR, Amount_Payment VARCHAR, Payment_Method_Code VARCHAR)", "role": "system" }, { "content": "Which Payments were processed with Visa? List the payment Id, the date and the amount.", "role": "user" }, { "content": "SELECT Payment_ID, Date_Payment_Made, Amount_Payment FROM Payments WHERE Payment_Method_Code = 'Visa'", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (player VARCHAR, score VARCHAR)", "role": "system" }, { "content": "What is Player, when Score is \"68-67-75-70=280\"?", "role": "user" }, { "content": "SELECT player FROM table_name_71 WHERE score = 68 - 67 - 75 - 70 = 280", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (genre VARCHAR, english_title__chinese_title_ VARCHAR)", "role": "system" }, { "content": "What genre is revolving doors of vengeance 酒店風雲?", "role": "user" }, { "content": "SELECT genre FROM table_name_30 WHERE english_title__chinese_title_ = \"revolving doors of vengeance 酒店風雲\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_15412381_5 (wheels VARCHAR, lms_nos VARCHAR)", "role": "system" }, { "content": "How many figures are there for wheels for LMS numbers 16377-9?", "role": "user" }, { "content": "SELECT COUNT(wheels) FROM table_15412381_5 WHERE lms_nos = \"16377-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_78 (score VARCHAR, date VARCHAR, competition_round VARCHAR, away_team VARCHAR)", "role": "system" }, { "content": "What is the score of the copa libertadores group 4 competition round on 14 March 1972 with universitario as the away team?", "role": "user" }, { "content": "SELECT score FROM table_name_78 WHERE competition_round = \"copa libertadores group 4\" AND away_team = \"universitario\" AND date = \"14 march 1972\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_23214833_1 (team_captain VARCHAR, club VARCHAR)", "role": "system" }, { "content": "How many different team captains does the club Sliven 2000 have?", "role": "user" }, { "content": "SELECT COUNT(team_captain) FROM table_23214833_1 WHERE club = \"Sliven 2000\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (partial_thromboplastin_time VARCHAR, condition VARCHAR, prothrombin_time VARCHAR, bleeding_time VARCHAR)", "role": "system" }, { "content": "Which Partial thromboplastin time has a Prothrombin time of prolonged, and a Bleeding time of unaffected, and a Condition of vitamin k deficiency or warfarin? Question 6", "role": "user" }, { "content": "SELECT partial_thromboplastin_time FROM table_name_1 WHERE prothrombin_time = \"prolonged\" AND bleeding_time = \"unaffected\" AND condition = \"vitamin k deficiency or warfarin\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (hessen VARCHAR, saar VARCHAR)", "role": "system" }, { "content": "Who was the Hessen the year that Saar was FK Pirmasens?", "role": "user" }, { "content": "SELECT hessen FROM table_name_23 WHERE saar = \"fk pirmasens\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_24329520_4 (fate_in_1832 VARCHAR, county VARCHAR)", "role": "system" }, { "content": "Name the fate in 1832 for pembrokeshire", "role": "user" }, { "content": "SELECT fate_in_1832 FROM table_24329520_4 WHERE county = \"Pembrokeshire\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_12419515_5 (season__number VARCHAR, directed_by VARCHAR)", "role": "system" }, { "content": "Name the season number for the direction of patrick norris", "role": "user" }, { "content": "SELECT season__number FROM table_12419515_5 WHERE directed_by = \"Patrick Norris\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_22538587_3 (total_apps INTEGER, player VARCHAR)", "role": "system" }, { "content": "Name the least total apps for jaime", "role": "user" }, { "content": "SELECT MIN(total_apps) FROM table_22538587_3 WHERE player = \"Jaime\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (vacated_throne VARCHAR, archbishop VARCHAR)", "role": "system" }, { "content": "When did Archbishop Albert Daeger vacate the throne?", "role": "user" }, { "content": "SELECT vacated_throne FROM table_name_63 WHERE archbishop = \"albert daeger\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_52 (opponent VARCHAR, week VARCHAR)", "role": "system" }, { "content": "Who was the opponent at the week 6 game?", "role": "user" }, { "content": "SELECT opponent FROM table_name_52 WHERE week = 6", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_4 (res VARCHAR, round VARCHAR, opponent VARCHAR)", "role": "system" }, { "content": "What was the result when he went 1 round against jeremy beck?", "role": "user" }, { "content": "SELECT res FROM table_name_4 WHERE round = 1 AND opponent = \"jeremy beck\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (player VARCHAR, début VARCHAR, opposition VARCHAR, last_game VARCHAR)", "role": "system" }, { "content": "Which player debuted in 1973 against Limerick and played his last game at the Munster semi-final?", "role": "user" }, { "content": "SELECT player FROM table_name_18 WHERE opposition = \"limerick\" AND last_game = \"munster semi-final\" AND début = 1973", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_48 (crowd INTEGER, venue VARCHAR)", "role": "system" }, { "content": "What was the highest crowd count seen in the Windy Hill venue?", "role": "user" }, { "content": "SELECT MAX(crowd) FROM table_name_48 WHERE venue = \"windy hill\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_15331868_1 (won INTEGER, difference VARCHAR)", "role": "system" }, { "content": "What is the highest number won with a difference of 1?", "role": "user" }, { "content": "SELECT MAX(won) FROM table_15331868_1 WHERE difference = \"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_3 (overall INTEGER, pick__number VARCHAR, name VARCHAR)", "role": "system" }, { "content": "Which Overall is the highest one that has a Pick # smaller than 9, and a Name of mike pearson?", "role": "user" }, { "content": "SELECT MAX(overall) FROM table_name_3 WHERE pick__number < 9 AND name = \"mike pearson\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_15055594_6 (fall_06 INTEGER)", "role": "system" }, { "content": "What is the lowest number of students from a state during the Fall 06 semester?", "role": "user" }, { "content": "SELECT MIN(fall_06) FROM table_15055594_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 stadium (capacity INTEGER, opening_year VARCHAR)", "role": "system" }, { "content": "What is the average capacity of the stadiums that were opened in year 2005?", "role": "user" }, { "content": "SELECT AVG(capacity) FROM stadium WHERE opening_year = 2005", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_10 (grid INTEGER, time VARCHAR, laps VARCHAR, manufacturer VARCHAR)", "role": "system" }, { "content": "What is the lowest Grid, when Laps is 21, when Manufacturer is Yamaha, and when Time is +18.802?", "role": "user" }, { "content": "SELECT MIN(grid) FROM table_name_10 WHERE laps = 21 AND manufacturer = \"yamaha\" AND time = \"+18.802\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (date VARCHAR, tournament VARCHAR)", "role": "system" }, { "content": "What is the date of the tournament played in Madrid, Spain?", "role": "user" }, { "content": "SELECT date FROM table_name_90 WHERE tournament = \"madrid, spain\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_99 (to_par VARCHAR, country VARCHAR)", "role": "system" }, { "content": "What is the To Par score for the player from France?", "role": "user" }, { "content": "SELECT to_par FROM table_name_99 WHERE country = \"france\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE cars_data (weight INTEGER, cylinders VARCHAR, year VARCHAR)", "role": "system" }, { "content": "What is the smallest weight of the car produced with 8 cylinders on 1974 ?", "role": "user" }, { "content": "SELECT MIN(weight) FROM cars_data WHERE cylinders = 8 AND year = 1974", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (tournament VARCHAR)", "role": "system" }, { "content": "Which tournament has a value of 2R in 2008?", "role": "user" }, { "content": "SELECT tournament FROM table_name_54 WHERE 2008 = \"2r\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (writer_s_ VARCHAR, recipient VARCHAR)", "role": "system" }, { "content": "Who is the writer for Red Rose Chain LTD?", "role": "user" }, { "content": "SELECT writer_s_ FROM table_name_4 WHERE recipient = \"red rose chain ltd\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 VARCHAR, score VARCHAR)", "role": "system" }, { "content": "Name the date for score of 1-5", "role": "user" }, { "content": "SELECT date FROM table_name_38 WHERE score = \"1-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_19229713_4 (_number INTEGER, us_viewers__million_ VARCHAR)", "role": "system" }, { "content": "Name the number for viewers being 1.87", "role": "user" }, { "content": "SELECT MAX(_number) FROM table_19229713_4 WHERE us_viewers__million_ = \"1.87\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (loss VARCHAR, date VARCHAR)", "role": "system" }, { "content": "Who lost on June 29?", "role": "user" }, { "content": "SELECT loss FROM table_name_84 WHERE date = \"june 29\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_222198_1 (orchestra VARCHAR, year_of_recording VARCHAR)", "role": "system" }, { "content": "Which orchestra has a recording year of 1951?", "role": "user" }, { "content": "SELECT orchestra FROM table_222198_1 WHERE year_of_recording = 1951", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (track_s_ VARCHAR, date VARCHAR)", "role": "system" }, { "content": "Which Track(s) is on 18 november 1985?", "role": "user" }, { "content": "SELECT track_s_ FROM table_name_86 WHERE date = \"18 november 1985\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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, avg_attendance VARCHAR)", "role": "system" }, { "content": "When was the year that had an average attendance of 5,445?", "role": "user" }, { "content": "SELECT year FROM table_name_64 WHERE avg_attendance = \"5,445\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_25355501_2 (march_27_29 VARCHAR, june_10_11 VARCHAR)", "role": "system" }, { "content": " march 27-29 where june 10-11 is 127?", "role": "user" }, { "content": "SELECT march_27_29 FROM table_25355501_2 WHERE june_10_11 = \"127\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_83 (time VARCHAR, opponent VARCHAR)", "role": "system" }, { "content": "How long was the match with Jaime Fletcher?", "role": "user" }, { "content": "SELECT time FROM table_name_83 WHERE opponent = \"jaime fletcher\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (record VARCHAR, boxscore VARCHAR, loss VARCHAR)", "role": "system" }, { "content": "Which record has a Boxscore of w2, and a Loss of kline (2–3)?", "role": "user" }, { "content": "SELECT record FROM table_name_89 WHERE boxscore = \"w2\" AND loss = \"kline (2–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_27 (score VARCHAR, location_attendance VARCHAR, game VARCHAR)", "role": "system" }, { "content": "What is Score, when Location Attendance is \"US Airways Center 18,422\", and when Game is less than 22?", "role": "user" }, { "content": "SELECT score FROM table_name_27 WHERE location_attendance = \"us airways center 18,422\" AND 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_22 (home_team VARCHAR, away_team VARCHAR)", "role": "system" }, { "content": "What Home team played Richmond?", "role": "user" }, { "content": "SELECT home_team FROM table_name_22 WHERE away_team = \"richmond\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_45 (years VARCHAR, soap_opera VARCHAR, actor VARCHAR)", "role": "system" }, { "content": "What are the years that have un posto al sole as the soap opera, with riccardo polizzy carbonelli as the actor?", "role": "user" }, { "content": "SELECT years FROM table_name_45 WHERE soap_opera = \"un posto al sole\" AND actor = \"riccardo polizzy carbonelli\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_6 (date VARCHAR, record VARCHAR)", "role": "system" }, { "content": "When is Record of 16–16 taken?", "role": "user" }, { "content": "SELECT date FROM table_name_6 WHERE record = \"16–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_36 (winning_driver VARCHAR, constructor VARCHAR, race VARCHAR)", "role": "system" }, { "content": "What driver was the winner when constructor was Maserati at the Monaco grand prix?", "role": "user" }, { "content": "SELECT winning_driver FROM table_name_36 WHERE constructor = \"maserati\" AND race = \"monaco 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 table_name_50 (party VARCHAR, leader VARCHAR)", "role": "system" }, { "content": "Which party does Timothy Kirkhope lead?", "role": "user" }, { "content": "SELECT party FROM table_name_50 WHERE leader = \"timothy kirkhope\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_25256368_1 (february_2010 VARCHAR, june_2010 VARCHAR)", "role": "system" }, { "content": "Name the bed 2010 for 6.5%", "role": "user" }, { "content": "SELECT february_2010 FROM table_25256368_1 WHERE june_2010 = \"6.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_13 (power VARCHAR, name VARCHAR)", "role": "system" }, { "content": "what is the power when the name is 1.2 16v lpg?", "role": "user" }, { "content": "SELECT power FROM table_name_13 WHERE name = \"1.2 16v lpg\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (home_team VARCHAR)", "role": "system" }, { "content": "What was Melbourne's score as the home team?", "role": "user" }, { "content": "SELECT home_team AS score FROM table_name_16 WHERE home_team = \"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_42 (player VARCHAR, to_par VARCHAR, score VARCHAR)", "role": "system" }, { "content": "Who is the player with a +3 to par and a 74-71-68=213 score?", "role": "user" }, { "content": "SELECT player FROM table_name_42 WHERE to_par = \"+3\" AND score = 74 - 71 - 68 = 213", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2562572_56 (cyrillic_name_other_names VARCHAR, settlement VARCHAR)", "role": "system" }, { "content": "What is the Cyrillic name for Novi Vladimirovac? ", "role": "user" }, { "content": "SELECT cyrillic_name_other_names FROM table_2562572_56 WHERE settlement = \"Novi Vladimirovac\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (manuals VARCHAR, opus VARCHAR)", "role": "system" }, { "content": "What are the manuals with an opus of 147?", "role": "user" }, { "content": "SELECT manuals FROM table_name_2 WHERE opus = \"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_13 (attendance VARCHAR, result VARCHAR, week VARCHAR)", "role": "system" }, { "content": "What was the total attendance with a result of W 31-21 before week 9?", "role": "user" }, { "content": "SELECT COUNT(attendance) FROM table_name_13 WHERE result = \"w 31-21\" AND week < 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_49 (date VARCHAR, score VARCHAR)", "role": "system" }, { "content": "Name the date with score of 9-2", "role": "user" }, { "content": "SELECT date FROM table_name_49 WHERE score = \"9-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_1028356_3 (score VARCHAR, opponents VARCHAR)", "role": "system" }, { "content": "What is the score of the match with opponents Gretchen Magers Kelly Jones?", "role": "user" }, { "content": "SELECT score FROM table_1028356_3 WHERE opponents = \"Gretchen Magers Kelly Jones\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE institution (institution VARCHAR, LOCATION VARCHAR, founded VARCHAR, TYPE VARCHAR)", "role": "system" }, { "content": "Show the names and locations of institutions that are founded after 1990 and have the type \"Private\".", "role": "user" }, { "content": "SELECT institution, LOCATION FROM institution WHERE founded > 1990 AND TYPE = 'Private'", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (try_bonus VARCHAR, tries_for VARCHAR)", "role": "system" }, { "content": "What was the try bonus for the team with 25 tries for?", "role": "user" }, { "content": "SELECT try_bonus FROM table_name_56 WHERE tries_for = \"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_63 (player VARCHAR, position VARCHAR, pick VARCHAR)", "role": "system" }, { "content": "What is the name of the Outfielder that was picked prior to Pick 42?", "role": "user" }, { "content": "SELECT player FROM table_name_63 WHERE position = \"outfielder\" AND pick < 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_28461589_2 (player VARCHAR, passes VARCHAR)", "role": "system" }, { "content": "Which player made exactly 223 passes?", "role": "user" }, { "content": "SELECT player FROM table_28461589_2 WHERE passes = 223", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE Movie (mID VARCHAR, title VARCHAR); CREATE TABLE Reviewer (name VARCHAR, rID VARCHAR); CREATE TABLE Rating (mID VARCHAR, rID VARCHAR)", "role": "system" }, { "content": "Find the names of all reviewers who rated Gone with the Wind.", "role": "user" }, { "content": "SELECT DISTINCT T3.name FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T2.title = 'Gone with the Wind'", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (team_name VARCHAR, losses VARCHAR, season VARCHAR)", "role": "system" }, { "content": "Which team had more than 15 losses in 1988?", "role": "user" }, { "content": "SELECT team_name FROM table_name_23 WHERE losses > 15 AND season = \"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 table_name_38 (province VARCHAR, party VARCHAR, date VARCHAR)", "role": "system" }, { "content": "Which province had a liberal party member on December 31, 2006?", "role": "user" }, { "content": "SELECT province FROM table_name_38 WHERE party = \"liberal\" AND date = \"december 31, 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_18052353_4 (state_assembly VARCHAR, year VARCHAR)", "role": "system" }, { "content": "What was the composition of the state assembly in 2008?", "role": "user" }, { "content": "SELECT state_assembly FROM table_18052353_4 WHERE year = \"2008\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_35 (sr INTEGER, runs_scored VARCHAR, average VARCHAR)", "role": "system" }, { "content": "How many S.R. that has Runs Scored of 161 and an Average larger than 26.83?", "role": "user" }, { "content": "SELECT SUM(sr) FROM table_name_35 WHERE runs_scored = 161 AND average > 26.83", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_57 (position VARCHAR, player VARCHAR)", "role": "system" }, { "content": "What position does Barry Richter play?", "role": "user" }, { "content": "SELECT position FROM table_name_57 WHERE player = \"barry richter\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_14465871_1 (unix_shell VARCHAR, powershell__cmdlet_ VARCHAR)", "role": "system" }, { "content": "What are the names of all unix shell with PowerShell (Cmdlet) of select-string?", "role": "user" }, { "content": "SELECT unix_shell FROM table_14465871_1 WHERE powershell__cmdlet_ = \"Select-String\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (prince_xml VARCHAR, gecko VARCHAR, webkit VARCHAR)", "role": "system" }, { "content": "What is the Prince XML value for the engine that has a Gecko value of 'no' and webkit value of 'nightly build'?", "role": "user" }, { "content": "SELECT prince_xml FROM table_name_63 WHERE gecko = \"no\" AND webkit = \"nightly build\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_72 (political_party VARCHAR, name VARCHAR)", "role": "system" }, { "content": "Which Political Party has a Name of ibrahim bej biçakçiu?", "role": "user" }, { "content": "SELECT political_party FROM table_name_72 WHERE name = \"ibrahim bej biçakçiu\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (type VARCHAR, nat VARCHAR)", "role": "system" }, { "content": "Which Type has a Nat of geo?", "role": "user" }, { "content": "SELECT type FROM table_name_58 WHERE nat = \"geo\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_72 (wins INTEGER, against VARCHAR, losses VARCHAR)", "role": "system" }, { "content": "WHAT IS THE HIGHEST WINS WITH AGAINST SMALLER THAN 924, LOSSES SMALLER THAN 2?", "role": "user" }, { "content": "SELECT MAX(wins) FROM table_name_72 WHERE against < 924 AND losses < 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_82 (game VARCHAR, record VARCHAR)", "role": "system" }, { "content": "What was the number of the game when the record was 11-12?", "role": "user" }, { "content": "SELECT game FROM table_name_82 WHERE record = \"11-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_76 (date VARCHAR, goal VARCHAR)", "role": "system" }, { "content": "What day has 34 goals?", "role": "user" }, { "content": "SELECT date FROM table_name_76 WHERE goal = 34", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_52 (to_par VARCHAR, winning_score VARCHAR)", "role": "system" }, { "content": "What is the To Par of winning score 71-66-70-67=274?", "role": "user" }, { "content": "SELECT to_par FROM table_name_52 WHERE winning_score = 71 - 66 - 70 - 67 = 274", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (against VARCHAR, venue VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What is Against, when Venue is \"Twickenham , London\", and when Date is \"04/03/2000\"?", "role": "user" }, { "content": "SELECT against FROM table_name_55 WHERE venue = \"twickenham , london\" AND date = \"04/03/2000\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_21977704_1 (no VARCHAR, entrant VARCHAR, driver VARCHAR)", "role": "system" }, { "content": "Name the number for automóvil club argentino for juan manuel fangio", "role": "user" }, { "content": "SELECT no FROM table_21977704_1 WHERE entrant = \"Automóvil Club Argentino\" AND driver = \"Juan Manuel Fangio\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (date VARCHAR, week VARCHAR)", "role": "system" }, { "content": "What is the date of the week 4 game?", "role": "user" }, { "content": "SELECT date FROM table_name_76 WHERE week = 4", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_64 (college VARCHAR, position VARCHAR, pick__number VARCHAR)", "role": "system" }, { "content": "Which College has a Position of ol, and a Pick # smaller than 32?", "role": "user" }, { "content": "SELECT college FROM table_name_64 WHERE position = \"ol\" AND pick__number < 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_22673956_1 (race_name VARCHAR, date VARCHAR)", "role": "system" }, { "content": "How many races took place on October 1?", "role": "user" }, { "content": "SELECT COUNT(race_name) FROM table_22673956_1 WHERE date = \"October 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_12576536_1 (year INTEGER, population__woocoo_ VARCHAR)", "role": "system" }, { "content": "Name the most year when population of woocoo is 2700", "role": "user" }, { "content": "SELECT MAX(year) FROM table_12576536_1 WHERE population__woocoo_ = 2700", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (game__number INTEGER, home VARCHAR, points VARCHAR)", "role": "system" }, { "content": "Which average Game # has a Home of san jose, and Points smaller than 71?", "role": "user" }, { "content": "SELECT AVG(game__number) FROM table_name_95 WHERE home = \"san jose\" AND points < 71", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_25647137_2 (touchdowns INTEGER)", "role": "system" }, { "content": "What was the highest number of touchdowns by a player?", "role": "user" }, { "content": "SELECT MAX(touchdowns) FROM table_25647137_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_1965650_7 (college_junior_club_team VARCHAR, player VARCHAR)", "role": "system" }, { "content": "Who did Dan Follet play for before the draft?", "role": "user" }, { "content": "SELECT college_junior_club_team FROM table_1965650_7 WHERE player = \"Dan Follet\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_22645714_5 (tournament_venue__city_ VARCHAR, tournament_winner VARCHAR)", "role": "system" }, { "content": "How many locations are listed for the winner Temple?", "role": "user" }, { "content": "SELECT COUNT(tournament_venue__city_) FROM table_22645714_5 WHERE tournament_winner = \"Temple\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_65 (rank VARCHAR, country VARCHAR)", "role": "system" }, { "content": "What is the Rank of the Athletes from Ukraine?", "role": "user" }, { "content": "SELECT COUNT(rank) FROM table_name_65 WHERE country = \"ukraine\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_93 (fl_cup_apps__sub_ INTEGER, fl_cup_goals VARCHAR, other_apps VARCHAR)", "role": "system" }, { "content": "What is the average FL Cup Apps, with a FL Cup Goals greater than 0, but a Other Apps less than 0?", "role": "user" }, { "content": "SELECT AVG(fl_cup_apps__sub_) FROM table_name_93 WHERE fl_cup_goals > 0 AND other_apps < 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_55 (championship VARCHAR, outcome VARCHAR, opponents_in_final VARCHAR)", "role": "system" }, { "content": "What is Championship, when Outcome is \"runner-up\", and when Opponents In Final is \"Gigi Fernández Natalia Zvereva\"?", "role": "user" }, { "content": "SELECT championship FROM table_name_55 WHERE outcome = \"runner-up\" AND opponents_in_final = \"gigi fernández natalia zvereva\"", "role": "assistant" } ]