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_1305623_20 (gold_medals INTEGER, ensemble VARCHAR)", "role": "system" }, { "content": "What is the highest number of gold medals Naugatuck HS won?", "role": "user" }, { "content": "SELECT MAX(gold_medals) FROM table_1305623_20 WHERE ensemble = \"Naugatuck HS\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_73 (record VARCHAR, method VARCHAR)", "role": "system" }, { "content": "With a method of tko (kick) what is the record of the match?", "role": "user" }, { "content": "SELECT record FROM table_name_73 WHERE method = \"tko (kick)\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE book_club (publisher VARCHAR, YEAR VARCHAR)", "role": "system" }, { "content": "Show publishers with a book published in 1989 and a book in 1990.", "role": "user" }, { "content": "SELECT publisher FROM book_club WHERE YEAR = 1989 INTERSECT SELECT publisher FROM book_club WHERE YEAR = 1990", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (round VARCHAR, college VARCHAR, overall VARCHAR)", "role": "system" }, { "content": "Which Round has a College of appalachian state, and an Overall smaller than 156?", "role": "user" }, { "content": "SELECT COUNT(round) FROM table_name_64 WHERE college = \"appalachian state\" AND overall < 156", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (mountain_range VARCHAR, region VARCHAR, location VARCHAR)", "role": "system" }, { "content": "Which Mountain Range has a Region of haiti, and a Location of 18.3601°n 71.9764°w?", "role": "user" }, { "content": "SELECT mountain_range FROM table_name_82 WHERE region = \"haiti\" AND location = \"18.3601°n 71.9764°w\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27743641_2 (lmp2_winning_driver VARCHAR, lmp1_winning_team VARCHAR)", "role": "system" }, { "content": "Who was the LMP2 winner when the LMP1 winning team was No. 20 Oryx Dyson Racing?", "role": "user" }, { "content": "SELECT lmp2_winning_driver FROM table_27743641_2 WHERE lmp1_winning_team = \"No. 20 Oryx Dyson Racing\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (opponents_in_final VARCHAR, partner VARCHAR, year VARCHAR)", "role": "system" }, { "content": "What is Opponents in Final, when Partner is \"Jill Hetherington\", and when Year is after 1988?", "role": "user" }, { "content": "SELECT opponents_in_final FROM table_name_96 WHERE partner = \"jill hetherington\" AND year > 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_83 (comp VARCHAR, ryds VARCHAR)", "role": "system" }, { "content": "What is the comp when the ryds is 2?", "role": "user" }, { "content": "SELECT comp FROM table_name_83 WHERE ryds = \"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_73 (team__number1 VARCHAR)", "role": "system" }, { "content": "What was the team Unics Kazan's 1st leg score?", "role": "user" }, { "content": "SELECT 1 AS st_leg FROM table_name_73 WHERE team__number1 = \"unics kazan\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1974545_2 (location VARCHAR, nickname VARCHAR)", "role": "system" }, { "content": "Where is the school whose students are nicknamed falcons located?", "role": "user" }, { "content": "SELECT location FROM table_1974545_2 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_2517159_1 (record VARCHAR, name_of_bowl VARCHAR)", "role": "system" }, { "content": "Name the record for cotton bowl classic", "role": "user" }, { "content": "SELECT record FROM table_2517159_1 WHERE name_of_bowl = \"Cotton Bowl Classic\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1571238_2 (fourth_place INTEGER, team VARCHAR)", "role": "system" }, { "content": "When the team is yale what is max amount of times they placed fourth?", "role": "user" }, { "content": "SELECT MAX(fourth_place) FROM table_1571238_2 WHERE team = \"Yale\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_11964047_8 (leading_scorer VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What is the leading scorer on february 1?", "role": "user" }, { "content": "SELECT leading_scorer FROM table_11964047_8 WHERE date = \"February 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_20 (event VARCHAR, method VARCHAR)", "role": "system" }, { "content": "What is the event name when the method is submission (brabo choke)?", "role": "user" }, { "content": "SELECT event FROM table_name_20 WHERE method = \"submission (brabo choke)\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE festival_detail (Num_of_Audience VARCHAR, YEAR VARCHAR)", "role": "system" }, { "content": "Show the number of audience in year 2008 or 2010.", "role": "user" }, { "content": "SELECT Num_of_Audience FROM festival_detail WHERE YEAR = 2008 OR YEAR = 2010", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_84 (crowd VARCHAR, away_team VARCHAR)", "role": "system" }, { "content": "What was the crowd size of the match featuring Hawthorn as the Away team?", "role": "user" }, { "content": "SELECT crowd FROM table_name_84 WHERE away_team = \"hawthorn\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_11254821_2 (points_awarded__platinum_ INTEGER, points_awarded__gold_ VARCHAR)", "role": "system" }, { "content": "How many platinum points were awarded when 6 gold points were awarded?", "role": "user" }, { "content": "SELECT MAX(points_awarded__platinum_) FROM table_11254821_2 WHERE points_awarded__gold_ = 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_23829490_1 (media_type VARCHAR, genre VARCHAR)", "role": "system" }, { "content": "What is every media type for the Dub genre?", "role": "user" }, { "content": "SELECT media_type FROM table_23829490_1 WHERE genre = \"Dub\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (original_airdate VARCHAR, written_by VARCHAR)", "role": "system" }, { "content": "What was the original air date when ed horowitz wrote it?", "role": "user" }, { "content": "SELECT original_airdate FROM table_name_89 WHERE written_by = \"ed horowitz\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_77 (opponent VARCHAR, date VARCHAR)", "role": "system" }, { "content": "Who did the Eagle's play on November 5, 1961?", "role": "user" }, { "content": "SELECT opponent FROM table_name_77 WHERE date = \"november 5, 1961\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_18710512_3 (single VARCHAR, date VARCHAR, other_details VARCHAR)", "role": "system" }, { "content": "What single(s) released in 2008 and had 4000 copies?", "role": "user" }, { "content": "SELECT single FROM table_18710512_3 WHERE date = 2008 AND other_details = \"4000 copies\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_25923164_1 (original_air_date VARCHAR, directed_by VARCHAR)", "role": "system" }, { "content": "What was the original air date of the episode directed by gloria muzio?", "role": "user" }, { "content": "SELECT original_air_date FROM table_25923164_1 WHERE directed_by = \"Gloria Muzio\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (week INTEGER, attendance VARCHAR)", "role": "system" }, { "content": "Tell me the average week for attendance of 48,113", "role": "user" }, { "content": "SELECT AVG(week) FROM table_name_74 WHERE attendance = \"48,113\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_33 (total_deaths VARCHAR, total_casualties VARCHAR)", "role": "system" }, { "content": "How many deaths were there when the total casualties were 6?", "role": "user" }, { "content": "SELECT total_deaths FROM table_name_33 WHERE total_casualties = \"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_76 (tournaments INTEGER, name VARCHAR)", "role": "system" }, { "content": "What is the lowest Tournaments, when Name is \"Baruto\"?", "role": "user" }, { "content": "SELECT MIN(tournaments) FROM table_name_76 WHERE name = \"baruto\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (score VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What was the result of April 27's game?", "role": "user" }, { "content": "SELECT score FROM table_name_21 WHERE date = \"april 27\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (ice_level_reporters VARCHAR, year VARCHAR, color_commentator_s_ VARCHAR, play_by_play VARCHAR)", "role": "system" }, { "content": "Who is the Ice level reporter after 1992 with the color commentator John Davidson and the play-by-play Marv Albert?", "role": "user" }, { "content": "SELECT ice_level_reporters FROM table_name_58 WHERE color_commentator_s_ = \"john davidson\" AND play_by_play = \"marv albert\" AND year > 1992", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE All_documents (document_type_code VARCHAR)", "role": "system" }, { "content": "Show the number of documents with document type code CV or BK.", "role": "user" }, { "content": "SELECT COUNT(*) FROM All_documents WHERE document_type_code = \"CV\" OR document_type_code = \"BK\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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, competition VARCHAR)", "role": "system" }, { "content": "On what Date did the friendly Competition take place?", "role": "user" }, { "content": "SELECT date FROM table_name_49 WHERE competition = \"friendly\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_25 (score_in_the_final VARCHAR, opponent_in_the_final VARCHAR)", "role": "system" }, { "content": "What is the score of the match that was against alberto berasategui?", "role": "user" }, { "content": "SELECT score_in_the_final FROM table_name_25 WHERE opponent_in_the_final = \"alberto berasategui\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_80 (events INTEGER, top_10 VARCHAR, top_5 VARCHAR)", "role": "system" }, { "content": "What is the sum of Events, when Top-10 is 7, and when Top-5 is greater than 4?", "role": "user" }, { "content": "SELECT SUM(events) FROM table_name_80 WHERE top_10 = 7 AND top_5 > 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_19 (tries_against VARCHAR, drawn VARCHAR, points VARCHAR)", "role": "system" }, { "content": "How many tries against did the club with 1 drawn and 41 points have?", "role": "user" }, { "content": "SELECT tries_against FROM table_name_19 WHERE drawn = \"1\" AND points = \"41\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_13557843_7 (location_attendance VARCHAR, team VARCHAR)", "role": "system" }, { "content": " how many location attendance with team being charlotte", "role": "user" }, { "content": "SELECT COUNT(location_attendance) FROM table_13557843_7 WHERE team = \"Charlotte\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE albums (label VARCHAR)", "role": "system" }, { "content": "How many unique labels are there for albums?", "role": "user" }, { "content": "SELECT COUNT(DISTINCT label) FROM albums", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (pick__number INTEGER, name VARCHAR, round VARCHAR)", "role": "system" }, { "content": "Which Pick # is the highest one that has a Name of william middleton, and a Round larger than 5?", "role": "user" }, { "content": "SELECT MAX(pick__number) FROM table_name_32 WHERE name = \"william middleton\" AND round > 5", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_26561506_1 (directed_by VARCHAR, production_code VARCHAR)", "role": "system" }, { "content": "Who directed the episode with production code 177605?", "role": "user" }, { "content": "SELECT directed_by FROM table_26561506_1 WHERE production_code = 177605", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_77 (overall INTEGER, executive_appointments VARCHAR, background VARCHAR)", "role": "system" }, { "content": "What's the most overall when the executive appointments were 28 and the background was smaller than 37?", "role": "user" }, { "content": "SELECT MAX(overall) FROM table_name_77 WHERE executive_appointments = 28 AND background < 37", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_80 (attendance VARCHAR, opponent VARCHAR, venue VARCHAR)", "role": "system" }, { "content": "What was the Attendance during the Home game where St. Johnstone was the Opponent?", "role": "user" }, { "content": "SELECT COUNT(attendance) FROM table_name_80 WHERE opponent = \"st. johnstone\" AND venue = \"home\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_15869204_6 (team VARCHAR, date VARCHAR)", "role": "system" }, { "content": "WHO DID THE RAPTORS PLAY ON JANUARY 9?", "role": "user" }, { "content": "SELECT team FROM table_15869204_6 WHERE date = \"January 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_14 (country VARCHAR, time VARCHAR)", "role": "system" }, { "content": "What country had a Time of 6:14.84?", "role": "user" }, { "content": "SELECT country FROM table_name_14 WHERE time = \"6:14.84\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_23944514_15 (sprint_classification VARCHAR, aggressive_rider VARCHAR)", "role": "system" }, { "content": "Name the sprint classification for michael barry", "role": "user" }, { "content": "SELECT sprint_classification FROM table_23944514_15 WHERE aggressive_rider = \"Michael Barry\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (position INTEGER, lost INTEGER)", "role": "system" }, { "content": "What is the position when lost is less than 7?", "role": "user" }, { "content": "SELECT AVG(position) FROM table_name_60 WHERE lost < 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_75 (home_team VARCHAR, away_team VARCHAR)", "role": "system" }, { "content": "Which team played as the home team when north melbourne played as away?", "role": "user" }, { "content": "SELECT home_team FROM table_name_75 WHERE away_team = \"north melbourne\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_11961582_7 (location_attendance VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What was the attendance on March 17?", "role": "user" }, { "content": "SELECT location_attendance FROM table_11961582_7 WHERE date = \"March 17\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_95 (away_team VARCHAR, crowd INTEGER)", "role": "system" }, { "content": "Which away team had a crowd of over 23,000 people?", "role": "user" }, { "content": "SELECT away_team FROM table_name_95 WHERE crowd > 23 OFFSET 000", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE club (name VARCHAR, Start_year VARCHAR)", "role": "system" }, { "content": "List all club names in ascending order of start year.", "role": "user" }, { "content": "SELECT name FROM club ORDER BY Start_year", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE parties (payment_method_code VARCHAR, party_phone VARCHAR, party_email VARCHAR)", "role": "system" }, { "content": "Find the payment method and phone of the party with email \"enrico09@example.com\".", "role": "user" }, { "content": "SELECT payment_method_code, party_phone FROM parties WHERE party_email = \"enrico09@example.com\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27512025_1 (ab_ripper_x VARCHAR, length VARCHAR)", "role": "system" }, { "content": "What is the ab ripper x when the length is 92:24?", "role": "user" }, { "content": "SELECT ab_ripper_x FROM table_27512025_1 WHERE length = \"92:24\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (date VARCHAR, athlete VARCHAR, event VARCHAR)", "role": "system" }, { "content": "What day did Chris Maddocks compete in the 35000 m?", "role": "user" }, { "content": "SELECT date FROM table_name_83 WHERE athlete = \"chris maddocks\" AND event = \"35000 m\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_2 (rank INTEGER, rating VARCHAR, change VARCHAR, centre VARCHAR)", "role": "system" }, { "content": "Which Rank is the highest one that has a Change smaller than 44, and a Centre of buenos aires, and a Rating larger than 628?", "role": "user" }, { "content": "SELECT MAX(rank) FROM table_name_2 WHERE change < 44 AND centre = \"buenos aires\" AND rating > 628", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_23508196_2 (officers_o_s INTEGER, total_usaaf VARCHAR)", "role": "system" }, { "content": "How many officers o/s were there on the day when the number of USAAF was 2373882?", "role": "user" }, { "content": "SELECT MAX(officers_o_s) FROM table_23508196_2 WHERE total_usaaf = 2373882", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2850912_1 (pick__number VARCHAR, college_junior_club_team VARCHAR)", "role": "system" }, { "content": "What daft pick number is the player coming from Regina Pats (WHL)?", "role": "user" }, { "content": "SELECT pick__number FROM table_2850912_1 WHERE college_junior_club_team = \"Regina Pats (WHL)\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (year_s__retired VARCHAR, serial_numbers VARCHAR)", "role": "system" }, { "content": "What year were the retired serial numbers 27317–27336?", "role": "user" }, { "content": "SELECT year_s__retired FROM table_name_32 WHERE serial_numbers = \"27317–27336\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (finish INTEGER, year VARCHAR, start VARCHAR, engine VARCHAR)", "role": "system" }, { "content": "What is the average finish that has a start greater than 3, with honda as the engine, and 2011 as the year?", "role": "user" }, { "content": "SELECT AVG(finish) FROM table_name_35 WHERE start > 3 AND engine = \"honda\" AND year = 2011", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_12 (home_team VARCHAR, attendance VARCHAR)", "role": "system" }, { "content": "What Home team had an Attendance of 2,776?", "role": "user" }, { "content": "SELECT home_team FROM table_name_12 WHERE attendance = \"2,776\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_22977424_8 (name VARCHAR, promoted_to_league VARCHAR)", "role": "system" }, { "content": "Name the name for doncaster newbury", "role": "user" }, { "content": "SELECT name FROM table_22977424_8 WHERE promoted_to_league = \"Doncaster Newbury\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (against INTEGER, team VARCHAR, position VARCHAR)", "role": "system" }, { "content": "Team Estudantes Paulista with a position less than 4 has what average against?", "role": "user" }, { "content": "SELECT AVG(against) FROM table_name_78 WHERE team = \"estudantes paulista\" AND position < 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_63 (home_team VARCHAR, venue VARCHAR)", "role": "system" }, { "content": "What was the Home Team Score for the Windy Hill Venue?", "role": "user" }, { "content": "SELECT home_team AS score FROM table_name_63 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_name_31 (prize VARCHAR, entrants VARCHAR)", "role": "system" }, { "content": "What prize amount was awarded at the event with 453 entrants?", "role": "user" }, { "content": "SELECT prize FROM table_name_31 WHERE entrants = 453", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (attendance INTEGER, week VARCHAR)", "role": "system" }, { "content": "What is the lowest attendance for week 2?", "role": "user" }, { "content": "SELECT MIN(attendance) FROM table_name_50 WHERE week = 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_15346009_1 (location VARCHAR, tournament VARCHAR)", "role": "system" }, { "content": "Where was Outback Steakhouse Pro-AM held?", "role": "user" }, { "content": "SELECT location FROM table_15346009_1 WHERE tournament = \"Outback Steakhouse Pro-Am\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_20996923_20 (date VARCHAR, city VARCHAR)", "role": "system" }, { "content": "What is the date when the city is San Antonio, Texas?", "role": "user" }, { "content": "SELECT date FROM table_20996923_20 WHERE city = \"San Antonio, Texas\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_28286776_50 (cap_s_ VARCHAR, goal_s_ VARCHAR, player VARCHAR)", "role": "system" }, { "content": "When tommy smith category:articles with hcards is the player and 1 is the goal how many cap(s) are there?", "role": "user" }, { "content": "SELECT COUNT(cap_s_) FROM table_28286776_50 WHERE goal_s_ = 1 AND player = \"Tommy Smith Category:Articles with hCards\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_21 (plyff VARCHAR, opponent VARCHAR)", "role": "system" }, { "content": "What is the Plyff team that plays the Billings Outlaws?", "role": "user" }, { "content": "SELECT plyff FROM table_name_21 WHERE opponent = \"billings outlaws\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (win_draw_lose VARCHAR, venue VARCHAR, team VARCHAR)", "role": "system" }, { "content": "What was the result of the home game against Derby County?", "role": "user" }, { "content": "SELECT win_draw_lose FROM table_name_71 WHERE venue = \"home\" AND team = \"derby county\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (january VARCHAR, opponent VARCHAR)", "role": "system" }, { "content": "What is the number in January for Philadelphia Flyers as opponents?", "role": "user" }, { "content": "SELECT COUNT(january) FROM table_name_30 WHERE opponent = \"philadelphia flyers\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_8 (week VARCHAR, date VARCHAR)", "role": "system" }, { "content": "Which week's date was September 27, 1953?", "role": "user" }, { "content": "SELECT week FROM table_name_8 WHERE date = \"september 27, 1953\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (name VARCHAR, locomotive VARCHAR)", "role": "system" }, { "content": "What is the name for the locomotive n464?", "role": "user" }, { "content": "SELECT name FROM table_name_95 WHERE locomotive = \"n464\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_87 (opponent VARCHAR, record VARCHAR)", "role": "system" }, { "content": "Who was the opponent when the Seattle Seahawks had a record of 8-7?", "role": "user" }, { "content": "SELECT opponent FROM table_name_87 WHERE record = \"8-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_37 (date VARCHAR, venue VARCHAR)", "role": "system" }, { "content": "The Western Oval venue has what date?", "role": "user" }, { "content": "SELECT date FROM table_name_37 WHERE venue = \"western oval\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_46 (name VARCHAR, license VARCHAR, actual_version VARCHAR)", "role": "system" }, { "content": "What name has a License of gpl, and an Actual version of 0.8.29wip4?", "role": "user" }, { "content": "SELECT name FROM table_name_46 WHERE license = \"gpl\" AND actual_version = \"0.8.29wip4\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (place VARCHAR, country VARCHAR)", "role": "system" }, { "content": "What place did the golfer take whose country is South Africa?", "role": "user" }, { "content": "SELECT place FROM table_name_72 WHERE country = \"south africa\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_25 (constructor VARCHAR, grid VARCHAR)", "role": "system" }, { "content": "Who is the constructor with the grid of 8?", "role": "user" }, { "content": "SELECT constructor FROM table_name_25 WHERE grid = 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 table_name_89 (ship_size VARCHAR)", "role": "system" }, { "content": "What ship size had a cargo value of $46,000 in 2006?", "role": "user" }, { "content": "SELECT ship_size FROM table_name_89 WHERE 2006 = \"$46,000\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_89 (release_date VARCHAR, english_title VARCHAR)", "role": "system" }, { "content": "What is the Release date of the Album Your Friend?", "role": "user" }, { "content": "SELECT release_date FROM table_name_89 WHERE english_title = \"your friend\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1341718_14 (party VARCHAR, incumbent VARCHAR)", "role": "system" }, { "content": "what is the party when the incumbent is sidney r. yates?", "role": "user" }, { "content": "SELECT party FROM table_1341718_14 WHERE incumbent = \"Sidney R. Yates\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (country VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What is the country when the date shows October 24, 2008?", "role": "user" }, { "content": "SELECT country FROM table_name_30 WHERE date = \"october 24, 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_36 (wins VARCHAR, races_† VARCHAR)", "role": "system" }, { "content": "How many wins are there for the Races of 12/12?", "role": "user" }, { "content": "SELECT wins FROM table_name_36 WHERE races_† = \"12/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_26336739_1 (elected INTEGER, incumbent VARCHAR)", "role": "system" }, { "content": "What date was the district incumbent Saxby Chambliss elected? ", "role": "user" }, { "content": "SELECT MAX(elected) FROM table_26336739_1 WHERE incumbent = \"Saxby Chambliss\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_77 (visitor VARCHAR, home VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What is the name of the visitor team who played home team Chicago Black Hawks on March 20?", "role": "user" }, { "content": "SELECT visitor FROM table_name_77 WHERE home = \"chicago black hawks\" AND date = \"march 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_23248967_9 (location_attendance VARCHAR, date VARCHAR)", "role": "system" }, { "content": "How many game locations occurred on March 6?", "role": "user" }, { "content": "SELECT COUNT(location_attendance) FROM table_23248967_9 WHERE date = \"March 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_56 (ri_song_hui___prk__ VARCHAR)", "role": "system" }, { "content": "What's the 102kg when the Ri Song-Hui was 226kg?", "role": "user" }, { "content": "SELECT 102 AS kg FROM table_name_56 WHERE ri_song_hui___prk__ = \"226kg\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE airlines (country VARCHAR, name VARCHAR)", "role": "system" }, { "content": "Find the country of the airlines whose name starts with 'Orbit'.", "role": "user" }, { "content": "SELECT country FROM airlines WHERE name LIKE 'Orbit%'", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (pommel_horse VARCHAR, rings VARCHAR, total VARCHAR)", "role": "system" }, { "content": "How many pommel Horses have Rings of 37.461, and a Total smaller than 229.507?", "role": "user" }, { "content": "SELECT COUNT(pommel_horse) FROM table_name_16 WHERE rings = 37.461 AND total < 229.507", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_44 (lead_envoy VARCHAR, ryūkyūan_king VARCHAR)", "role": "system" }, { "content": "Who was the lead envoy with the Ryūkyūan King shō kō?", "role": "user" }, { "content": "SELECT lead_envoy FROM table_name_44 WHERE ryūkyūan_king = \"shō kō\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (leading_scorer VARCHAR, home VARCHAR)", "role": "system" }, { "content": "Who is the leading scorer when they were at home of the Clippers?", "role": "user" }, { "content": "SELECT leading_scorer FROM table_name_51 WHERE home = \"clippers\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (date VARCHAR, away_team VARCHAR)", "role": "system" }, { "content": "What is the date where the away team is Richmond?", "role": "user" }, { "content": "SELECT date FROM table_name_30 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_92 (attendance INTEGER, opponent VARCHAR, week VARCHAR)", "role": "system" }, { "content": "What is the highest number of people in attendance in the game against the Buffalo Bills in a week later than 14?", "role": "user" }, { "content": "SELECT MAX(attendance) FROM table_name_92 WHERE opponent = \"buffalo bills\" AND week > 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_2668378_18 (party VARCHAR, incumbent VARCHAR)", "role": "system" }, { "content": "What party represents the district with john g. jackson?", "role": "user" }, { "content": "SELECT party FROM table_2668378_18 WHERE incumbent = \"John G. Jackson\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_17765888_1 (game_site VARCHAR, opponent VARCHAR)", "role": "system" }, { "content": "What was the game site against the Dallas Texans?", "role": "user" }, { "content": "SELECT game_site FROM table_17765888_1 WHERE opponent = \"Dallas Texans\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_20849830_1 (game INTEGER)", "role": "system" }, { "content": "How many games were there in the 1966 season?", "role": "user" }, { "content": "SELECT MAX(game) FROM table_20849830_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_88 (opponent_in_final VARCHAR, date VARCHAR)", "role": "system" }, { "content": "Who is the opponent in the final of the tournament on May 22, 2006?", "role": "user" }, { "content": "SELECT opponent_in_final FROM table_name_88 WHERE date = \"may 22, 2006\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_90 (venue VARCHAR, extra VARCHAR, year VARCHAR)", "role": "system" }, { "content": "Tell me the venue for extra of short race and year less than 1999", "role": "user" }, { "content": "SELECT venue FROM table_name_90 WHERE extra = \"short race\" AND year < 1999", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_22546460_4 (best_male_mc VARCHAR, best_male_lyricist VARCHAR)", "role": "system" }, { "content": "Who was the Best Male MC if Best Album won the Best Male Lyricist?", "role": "user" }, { "content": "SELECT best_male_mc FROM table_22546460_4 WHERE best_male_lyricist = \"Best Album\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE perpetrator (People_ID VARCHAR, Injured VARCHAR); CREATE TABLE people (Height VARCHAR, People_ID VARCHAR)", "role": "system" }, { "content": "What are the heights of perpetrators in descending order of the number of people they injured?", "role": "user" }, { "content": "SELECT T1.Height FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Injured DESC", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_25037577_1 (middlesex_principal VARCHAR, year VARCHAR)", "role": "system" }, { "content": "How many middlesex principals were there in 2000-2001?", "role": "user" }, { "content": "SELECT COUNT(middlesex_principal) FROM table_25037577_1 WHERE year = \"2000-2001\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (status VARCHAR, name VARCHAR)", "role": "system" }, { "content": "What status has paleopanax as the name?", "role": "user" }, { "content": "SELECT status FROM table_name_78 WHERE name = \"paleopanax\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_23249053_8 (score VARCHAR, game INTEGER)", "role": "system" }, { "content": "What is the score when the game is bigger than 29.0?", "role": "user" }, { "content": "SELECT score FROM table_23249053_8 WHERE game > 29.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_1682026_3 (rank INTEGER, company VARCHAR)", "role": "system" }, { "content": "What is the ranking of BNP Paribas?", "role": "user" }, { "content": "SELECT MIN(rank) FROM table_1682026_3 WHERE company = \"BNP Paribas\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27293285_6 (points VARCHAR, won VARCHAR)", "role": "system" }, { "content": "For teams that won exactly 15, how many points were scored?", "role": "user" }, { "content": "SELECT points FROM table_27293285_6 WHERE won = \"15\"", "role": "assistant" } ]