messages
listlengths 3
3
|
---|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_26 (year VARCHAR, movie_title VARCHAR)",
"role": "system"
},
{
"content": "What year was Jamboree made?",
"role": "user"
},
{
"content": "SELECT year FROM table_name_26 WHERE movie_title = \"jamboree\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (game INTEGER, opponent VARCHAR, february VARCHAR)",
"role": "system"
},
{
"content": "How many games have the New York Islanders as an opponent before February 7?",
"role": "user"
},
{
"content": "SELECT SUM(game) FROM table_name_63 WHERE opponent = \"new york islanders\" AND february < 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_45 (nhl_team VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "What NHL team does Rob White play on?",
"role": "user"
},
{
"content": "SELECT nhl_team FROM table_name_45 WHERE player = \"rob white\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (division_record VARCHAR, school VARCHAR)",
"role": "system"
},
{
"content": "For the Delmar school what is the division record?",
"role": "user"
},
{
"content": "SELECT division_record FROM table_name_93 WHERE school = \"delmar\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (constructor VARCHAR, laps VARCHAR, driver VARCHAR)",
"role": "system"
},
{
"content": "Who built michael schumacher's car that went under 31 laps?",
"role": "user"
},
{
"content": "SELECT constructor FROM table_name_24 WHERE laps < 31 AND driver = \"michael schumacher\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_37 (opponent VARCHAR, home_away VARCHAR, result VARCHAR)",
"role": "system"
},
{
"content": "Name the opponent when the result is w 16-15 and has home/away of home",
"role": "user"
},
{
"content": "SELECT opponent FROM table_name_37 WHERE home_away = \"home\" AND result = \"w 16-15\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (place_of_birth VARCHAR, committee VARCHAR, took_office VARCHAR, district VARCHAR)",
"role": "system"
},
{
"content": "Where was the place of birth for the delegate who took office after 1982, delegates a district smaller than 43 and belongs to a Health and Government operations committee?",
"role": "user"
},
{
"content": "SELECT place_of_birth FROM table_name_31 WHERE took_office > 1982 AND district < 43 AND committee = \"health and government operations\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_20887670_1 (affiliation VARCHAR, mascot VARCHAR)",
"role": "system"
},
{
"content": "what is the affiliation of the hilltoppers mascot?",
"role": "user"
},
{
"content": "SELECT affiliation FROM table_20887670_1 WHERE mascot = \"Hilltoppers\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_16432167_1 (written_by VARCHAR, production_code VARCHAR)",
"role": "system"
},
{
"content": "Who wrote the episode with the production code of 942A?",
"role": "user"
},
{
"content": "SELECT written_by FROM table_16432167_1 WHERE production_code = \"942A\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE city (city_id VARCHAR, city VARCHAR); CREATE TABLE temperature (Jan VARCHAR, city_id VARCHAR)",
"role": "system"
},
{
"content": "Give me the temperature of Shanghai in January.",
"role": "user"
},
{
"content": "SELECT T2.Jan FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T1.city = \"Shanghai\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_7 (player VARCHAR, to_par VARCHAR, country VARCHAR)",
"role": "system"
},
{
"content": "Which Player has a To par of β2, and a Country of wales?",
"role": "user"
},
{
"content": "SELECT player FROM table_name_7 WHERE to_par = \"β2\" AND country = \"wales\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27547668_2 (title VARCHAR, prod_code VARCHAR)",
"role": "system"
},
{
"content": "What is the title of the episode with production code 102?",
"role": "user"
},
{
"content": "SELECT title FROM table_27547668_2 WHERE prod_code = 102",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2071644_1 (moment_of_inertia_in_torsion__j___cm_4__ VARCHAR, beam_height__mm_ VARCHAR)",
"role": "system"
},
{
"content": "What is the moment of intertia in torsion (j) Cm4) for the beam height (mm) 120??=",
"role": "user"
},
{
"content": "SELECT COUNT(moment_of_inertia_in_torsion__j___cm_4__) FROM table_2071644_1 WHERE beam_height__mm_ = 120",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE bank (state VARCHAR)",
"role": "system"
},
{
"content": "Find the number of different states which banks are located at.",
"role": "user"
},
{
"content": "SELECT COUNT(DISTINCT state) FROM bank",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_91 (team_2 VARCHAR)",
"role": "system"
},
{
"content": "What is the 1st leg when team 2 is Asil Lysi?",
"role": "user"
},
{
"content": "SELECT 1 AS st_leg FROM table_name_91 WHERE team_2 = \"asil lysi\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_22597626_2 (surface VARCHAR, opponents_in_the_final VARCHAR)",
"role": "system"
},
{
"content": "What is the surface made of if the opponent in the final is Hewitt McMillan?",
"role": "user"
},
{
"content": "SELECT surface FROM table_22597626_2 WHERE opponents_in_the_final = \"Hewitt McMillan\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_26561509_1 (directed_by VARCHAR, production_code VARCHAR)",
"role": "system"
},
{
"content": "How many are directed by episodes with the production code 3T5009?",
"role": "user"
},
{
"content": "SELECT COUNT(directed_by) FROM table_26561509_1 WHERE production_code = \"3T5009\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_26282750_1 (participants_recipients VARCHAR, category VARCHAR)",
"role": "system"
},
{
"content": "Who was the participant or recipient for the Best Female Actor?",
"role": "user"
},
{
"content": "SELECT participants_recipients FROM table_26282750_1 WHERE category = \"Best Female Actor\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27734286_1 (record VARCHAR, high_points VARCHAR)",
"role": "system"
},
{
"content": "What record has c. j. miles (20) in the high points?",
"role": "user"
},
{
"content": "SELECT record FROM table_27734286_1 WHERE high_points = \"C. J. Miles (20)\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_81 (attendance VARCHAR, week VARCHAR, record VARCHAR)",
"role": "system"
},
{
"content": "How many were in attendance in a week less than 4 with a record of 2β1?",
"role": "user"
},
{
"content": "SELECT attendance FROM table_name_81 WHERE week < 4 AND record = \"2β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_11677691_7 (player VARCHAR, college VARCHAR)",
"role": "system"
},
{
"content": "Which player is from Utah?",
"role": "user"
},
{
"content": "SELECT player FROM table_11677691_7 WHERE college = \"Utah\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE Person (job VARCHAR, age INTEGER)",
"role": "system"
},
{
"content": "What is average age for different job title?",
"role": "user"
},
{
"content": "SELECT AVG(age), job FROM Person GROUP BY job",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1346118_5 (result VARCHAR, candidates VARCHAR)",
"role": "system"
},
{
"content": "What was the net seat gain in the race john a. elston (r) 88.4% luella twining (s) 11.6%?",
"role": "user"
},
{
"content": "SELECT result FROM table_1346118_5 WHERE candidates = \"John A. Elston (R) 88.4% Luella Twining (S) 11.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_15 (format_s_ VARCHAR, label VARCHAR, catalog VARCHAR)",
"role": "system"
},
{
"content": "What are the formats associated with the Atlantic Records label, catalog number 512336?",
"role": "user"
},
{
"content": "SELECT format_s_ FROM table_name_15 WHERE label = \"atlantic records\" AND catalog = \"512336\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_67 (place VARCHAR, to_par VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "What is the Place of the Player with a To par of +4 and Score of 70-76-71=217?",
"role": "user"
},
{
"content": "SELECT place FROM table_name_67 WHERE to_par = \"+4\" AND score = 70 - 76 - 71 = 217",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_14425454_1 (ground VARCHAR, crowd VARCHAR)",
"role": "system"
},
{
"content": "What stadiums had an attendance of 8,256?",
"role": "user"
},
{
"content": "SELECT ground FROM table_14425454_1 WHERE crowd = \"8,256\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (pole_position VARCHAR, location VARCHAR)",
"role": "system"
},
{
"content": "Who had the pole position in Jerez?",
"role": "user"
},
{
"content": "SELECT pole_position FROM table_name_82 WHERE location = \"jerez\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE student (dept_code VARCHAR); CREATE TABLE department (dept_name VARCHAR, dept_code VARCHAR)",
"role": "system"
},
{
"content": "What is the department name of the students with lowest gpa belongs to?",
"role": "user"
},
{
"content": "SELECT T2.dept_name FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code ORDER BY stu_gpa LIMIT 1",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_29 (pick INTEGER, school VARCHAR)",
"role": "system"
},
{
"content": "Which is the biggest pick for Naperville Central High School?",
"role": "user"
},
{
"content": "SELECT MAX(pick) FROM table_name_29 WHERE school = \"naperville central high school\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (model_number VARCHAR, order_part_number VARCHAR)",
"role": "system"
},
{
"content": "Which model number has an order part number of TMSMT37BQX5LD?",
"role": "user"
},
{
"content": "SELECT model_number FROM table_name_57 WHERE order_part_number = \"tmsmt37bqx5ld\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_17 (attendance VARCHAR, venue VARCHAR)",
"role": "system"
},
{
"content": "What was the attendance for St Andrew's?",
"role": "user"
},
{
"content": "SELECT attendance FROM table_name_17 WHERE venue = \"st andrew's\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_17798548_4 (_number_of_discs INTEGER, season VARCHAR)",
"role": "system"
},
{
"content": "How many discs for the complete 4th series?",
"role": "user"
},
{
"content": "SELECT MAX(_number_of_discs) FROM table_17798548_4 WHERE season = \"The Complete 4th Series\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (duration VARCHAR, character VARCHAR)",
"role": "system"
},
{
"content": "How many years did the soap opera run in which the character Clemens Richter was included?",
"role": "user"
},
{
"content": "SELECT duration FROM table_name_2 WHERE character = \"clemens 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_name_40 (date VARCHAR, result VARCHAR)",
"role": "system"
},
{
"content": "On what Date was the Result of the game W 30β15?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_40 WHERE result = \"w 30β15\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (loses INTEGER, points INTEGER)",
"role": "system"
},
{
"content": "Which Loses has Points smaller than 6?",
"role": "user"
},
{
"content": "SELECT AVG(loses) FROM table_name_38 WHERE points < 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_60 (win__percentage VARCHAR)",
"role": "system"
},
{
"content": "What is 2012 that has a winning % of 67%?",
"role": "user"
},
{
"content": "SELECT 2012 FROM table_name_60 WHERE win__percentage = \"67%\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (location_attendance VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "Where did the game on March 11 take place and how many people attended?",
"role": "user"
},
{
"content": "SELECT location_attendance FROM table_name_68 WHERE date = \"march 11\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_3 (date INTEGER, length VARCHAR, builder VARCHAR)",
"role": "system"
},
{
"content": "Which Date has a Length of feet 9inches (m), and a Builder of portland terminal company?",
"role": "user"
},
{
"content": "SELECT AVG(date) FROM table_name_3 WHERE length = \"feet 9inches (m)\" AND builder = \"portland terminal company\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1213511_6 (nationality VARCHAR, nhl_team VARCHAR)",
"role": "system"
},
{
"content": "What is the nationality of the player from the Detroit Red Wings?",
"role": "user"
},
{
"content": "SELECT nationality FROM table_1213511_6 WHERE nhl_team = \"Detroit Red Wings\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2351952_1 (country VARCHAR, order_number VARCHAR)",
"role": "system"
},
{
"content": "What country has the order number 711871-711880?",
"role": "user"
},
{
"content": "SELECT country FROM table_2351952_1 WHERE order_number = \"711871-711880\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_13337302_16 (stumpings INTEGER, player VARCHAR)",
"role": "system"
},
{
"content": "How many stumpings did the player Tim Latham have?",
"role": "user"
},
{
"content": "SELECT MAX(stumpings) FROM table_13337302_16 WHERE player = \"Tim Latham\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (grid INTEGER, time VARCHAR, bike VARCHAR)",
"role": "system"
},
{
"content": "Which suzuki gsx-r1000 k7 has the highest time of retirement?",
"role": "user"
},
{
"content": "SELECT MAX(grid) FROM table_name_8 WHERE time = \"retirement\" AND bike = \"suzuki gsx-r1000 k7\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (pick__number INTEGER, overall VARCHAR, college VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "Which Pick # is the lowest one that has a College of troy state, and a Name of reggie dwight, and an Overall smaller than 217?",
"role": "user"
},
{
"content": "SELECT MIN(pick__number) FROM table_name_92 WHERE college = \"troy state\" AND name = \"reggie dwight\" AND overall < 217",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (games_played INTEGER, goals_scored VARCHAR)",
"role": "system"
},
{
"content": "How many games had 2 goals scored?",
"role": "user"
},
{
"content": "SELECT SUM(games_played) FROM table_name_89 WHERE goals_scored = \"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_50 (airing_date VARCHAR, english_title__chinese_title_ VARCHAR, genre VARCHAR, official_website VARCHAR, number_of_episodes VARCHAR)",
"role": "system"
},
{
"content": "What's the airing date of Armed Reaction ιζ§εΈ«ε§ with 20 episodes in the Modern Action genre having an official website?",
"role": "user"
},
{
"content": "SELECT airing_date FROM table_name_50 WHERE official_website = \"official website\" AND number_of_episodes = 20 AND genre = \"modern action\" AND english_title__chinese_title_ = \"armed reaction ιζ§εΈ«ε§\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (island VARCHAR, area___ha__ VARCHAR, population VARCHAR, height__m_ VARCHAR)",
"role": "system"
},
{
"content": "What island has a population over 76, a height over 210, and an area larger than 12068?",
"role": "user"
},
{
"content": "SELECT island FROM table_name_3 WHERE population > 76 AND height__m_ > 210 AND area___ha__ > 12068",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (week VARCHAR, date VARCHAR, attendance VARCHAR)",
"role": "system"
},
{
"content": "How many Weeks are on september 8, 1980 and Attendances larger than 55,045? Question 4",
"role": "user"
},
{
"content": "SELECT COUNT(week) FROM table_name_22 WHERE date = \"september 8, 1980\" AND attendance > 55 OFFSET 045",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (venue VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What was the venue for the dates 1,2,3,4,6,7 jan 1908?",
"role": "user"
},
{
"content": "SELECT venue FROM table_name_64 WHERE date = \"1,2,3,4,6,7 jan 1908\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (individual VARCHAR, event VARCHAR)",
"role": "system"
},
{
"content": "Who was the individual in the event of 1998 Pokljuka?",
"role": "user"
},
{
"content": "SELECT individual FROM table_name_33 WHERE event = \"1998 pokljuka\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_43 (player VARCHAR, place VARCHAR)",
"role": "system"
},
{
"content": "What is Player, when Place is \"1\"?",
"role": "user"
},
{
"content": "SELECT player FROM table_name_43 WHERE place = \"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_28 (played INTEGER, points VARCHAR, position VARCHAR)",
"role": "system"
},
{
"content": "Which Played has a Points of 2, and a Position smaller than 8?",
"role": "user"
},
{
"content": "SELECT AVG(played) FROM table_name_28 WHERE points = 2 AND position < 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_25213146_2 (date VARCHAR, winning_team VARCHAR)",
"role": "system"
},
{
"content": "On what date(s) was the winning team Prema Powerteam?",
"role": "user"
},
{
"content": "SELECT date FROM table_25213146_2 WHERE winning_team = \"Prema Powerteam\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_47 (opponent VARCHAR, record VARCHAR, game VARCHAR, february VARCHAR)",
"role": "system"
},
{
"content": "Who was the opponent in games over 58, after Feb 16, and having a record of 40-20-4?",
"role": "user"
},
{
"content": "SELECT opponent FROM table_name_47 WHERE game > 58 AND february > 16 AND record = \"40-20-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_54 (score VARCHAR, january VARCHAR, record VARCHAR)",
"role": "system"
},
{
"content": "What is the score of the game before January 22 with a 30-7-7 record?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_54 WHERE january < 22 AND record = \"30-7-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_91 (date VARCHAR, margin_of_victory VARCHAR)",
"role": "system"
},
{
"content": "What date had a margin victory of 2 strokes?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_91 WHERE margin_of_victory = \"2 strokes\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_39 (points_1 INTEGER, goal_difference VARCHAR, lost VARCHAR)",
"role": "system"
},
{
"content": "What is the most points 1 when the goal difference is +28 and lost is larger than 12?",
"role": "user"
},
{
"content": "SELECT MAX(points_1) FROM table_name_39 WHERE goal_difference = \"+28\" AND lost > 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_18118221_1 (main_services VARCHAR, total_passengers__millions__2011_12 VARCHAR)",
"role": "system"
},
{
"content": "What is the main service for the station with 14.849 million passengers 2011-12? ",
"role": "user"
},
{
"content": "SELECT main_services FROM table_18118221_1 WHERE total_passengers__millions__2011_12 = \"14.849\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_22825058_23 (w_l VARCHAR, against VARCHAR)",
"role": "system"
},
{
"content": "Name the w/l for czech republic",
"role": "user"
},
{
"content": "SELECT w_l FROM table_22825058_23 WHERE against = \"Czech Republic\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_20704243_3 (directed_by VARCHAR, season__number VARCHAR)",
"role": "system"
},
{
"content": "How many directors were in Season 2?",
"role": "user"
},
{
"content": "SELECT COUNT(directed_by) FROM table_20704243_3 WHERE season__number = 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_29446183_2 (fourth_place VARCHAR, winner VARCHAR)",
"role": "system"
},
{
"content": "How many teams came in fourth when Otsuka Pharmaceuticals won?",
"role": "user"
},
{
"content": "SELECT COUNT(fourth_place) FROM table_29446183_2 WHERE winner = \"Otsuka Pharmaceuticals\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_11 (place VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "WHAT IS THE PLACE WITH THE SCORE 69-71-66-73=279?",
"role": "user"
},
{
"content": "SELECT place FROM table_name_11 WHERE score = 69 - 71 - 66 - 73 = 279",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_30121046_1 (poor_law_union VARCHAR, townland VARCHAR)",
"role": "system"
},
{
"content": "What is the poor law union of the Lackenagobidane townland?",
"role": "user"
},
{
"content": "SELECT poor_law_union FROM table_30121046_1 WHERE townland = \"Lackenagobidane\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (silver VARCHAR, gold VARCHAR, bronze VARCHAR)",
"role": "system"
},
{
"content": "How many silver medals were won by the participant(s) that had more than 12 gold medals and 11 bronze medals?",
"role": "user"
},
{
"content": "SELECT silver FROM table_name_54 WHERE gold > 12 AND bronze = 11",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_97 (against INTEGER, losses VARCHAR, wins VARCHAR)",
"role": "system"
},
{
"content": "What is the highest number listed under against when there were 15 losses and more than 1 win?",
"role": "user"
},
{
"content": "SELECT MAX(against) FROM table_name_97 WHERE losses = 15 AND wins > 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_22133191_3 (date_of_vacancy VARCHAR, manner_of_departure VARCHAR)",
"role": "system"
},
{
"content": "What is the date of vacancy for the person that left because of end of caretaker contract?",
"role": "user"
},
{
"content": "SELECT date_of_vacancy FROM table_22133191_3 WHERE manner_of_departure = \"End of caretaker contract\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_94 (scored INTEGER, result VARCHAR)",
"role": "system"
},
{
"content": "What is the scored figure when the result is 40-22?",
"role": "user"
},
{
"content": "SELECT SUM(scored) FROM table_name_94 WHERE result = \"40-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_21 (home_team VARCHAR, tie_no VARCHAR)",
"role": "system"
},
{
"content": "WHAT IS THE HOME TEAM WITH A TIE OF 14?",
"role": "user"
},
{
"content": "SELECT home_team FROM table_name_21 WHERE tie_no = \"14\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_38 (surname VARCHAR, first VARCHAR)",
"role": "system"
},
{
"content": "What is Marc's Surname?",
"role": "user"
},
{
"content": "SELECT surname FROM table_name_38 WHERE first = \"marc\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_41 (district VARCHAR, party VARCHAR, results VARCHAR)",
"role": "system"
},
{
"content": "What district is the incumbent Republican and the incumbent retired to run for governor democratic gain?",
"role": "user"
},
{
"content": "SELECT district FROM table_name_41 WHERE party = \"republican\" AND results = \"retired to run for governor democratic gain\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (label VARCHAR, format VARCHAR, region VARCHAR)",
"role": "system"
},
{
"content": "What was the label in the region of Argentina and had a format of CD?",
"role": "user"
},
{
"content": "SELECT label FROM table_name_82 WHERE format = \"cd\" AND region = \"argentina\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (date VARCHAR, tie_no VARCHAR)",
"role": "system"
},
{
"content": "on what date was tie number 4?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_80 WHERE tie_no = \"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_78 (goals INTEGER, year VARCHAR, national_team VARCHAR, apps VARCHAR)",
"role": "system"
},
{
"content": "How many Goals have a National team of england, and Apps smaller than 6, and a Year of 2012?",
"role": "user"
},
{
"content": "SELECT SUM(goals) FROM table_name_78 WHERE national_team = \"england\" AND apps < 6 AND year = \"2012\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_186468_1 (v_band VARCHAR, k_band VARCHAR)",
"role": "system"
},
{
"content": "When 2 is the k-band what is the v-band?",
"role": "user"
},
{
"content": "SELECT v_band FROM table_186468_1 WHERE k_band = \"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_43 (grid INTEGER, time VARCHAR, laps VARCHAR)",
"role": "system"
},
{
"content": "What is the smallest grid when the time is +8.051 and there were less than 23 laps?",
"role": "user"
},
{
"content": "SELECT MIN(grid) FROM table_name_43 WHERE time = \"+8.051\" AND laps < 23",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_28 (gold INTEGER, silver VARCHAR, bronze VARCHAR)",
"role": "system"
},
{
"content": "What is the sum for gold when there is more than 17 silver and more than 24 bronze?",
"role": "user"
},
{
"content": "SELECT SUM(gold) FROM table_name_28 WHERE silver > 17 AND bronze > 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_95 (result VARCHAR, event VARCHAR, method VARCHAR)",
"role": "system"
},
{
"content": "What was the result for the 2012 ibjjf world jiu-jitsu championships event when the method was points (4 x 0)?",
"role": "user"
},
{
"content": "SELECT result FROM table_name_95 WHERE event = \"2012 ibjjf world jiu-jitsu championships\" AND method = \"points (4 x 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_57 (drawn VARCHAR, percentage VARCHAR, lost VARCHAR)",
"role": "system"
},
{
"content": "How many matches were drawn associated with a percentage of 7.14% and more than 12 losses?",
"role": "user"
},
{
"content": "SELECT COUNT(drawn) FROM table_name_57 WHERE percentage = \"7.14%\" AND lost > 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_33 (team_2 VARCHAR)",
"role": "system"
},
{
"content": "What is the second leg that Valencia was on?",
"role": "user"
},
{
"content": "SELECT 2 AS nd_leg FROM table_name_33 WHERE team_2 = \"valencia\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_59 (administrative_panel VARCHAR, nominated_by_the_taoiseach VARCHAR, labour_panel VARCHAR, total VARCHAR)",
"role": "system"
},
{
"content": "Tell me the total number of administrative panel with labour panel more than 2, nominated by taoiseach more than 6 and total of 28",
"role": "user"
},
{
"content": "SELECT COUNT(administrative_panel) FROM table_name_59 WHERE labour_panel > 2 AND total = 28 AND nominated_by_the_taoiseach > 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_67 (circuit VARCHAR, winning_team VARCHAR, fastest_lap VARCHAR)",
"role": "system"
},
{
"content": "What circuit did marlboro team penske win with an unknown fastest lap?",
"role": "user"
},
{
"content": "SELECT circuit FROM table_name_67 WHERE winning_team = \"marlboro team penske\" AND fastest_lap = \"unknown\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (fa_trophy VARCHAR, player VARCHAR, total VARCHAR)",
"role": "system"
},
{
"content": "How many FA trophies did Ceri Williams get with a smaller total than 19?",
"role": "user"
},
{
"content": "SELECT COUNT(fa_trophy) FROM table_name_27 WHERE player = \"ceri williams\" AND total < 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_23963073_1 (french_title VARCHAR, date_of_publication VARCHAR)",
"role": "system"
},
{
"content": "What was the French title of the story published in 1968?",
"role": "user"
},
{
"content": "SELECT french_title FROM table_23963073_1 WHERE date_of_publication = 1968",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_59 (venue VARCHAR, date VARCHAR, status VARCHAR, against VARCHAR)",
"role": "system"
},
{
"content": "Which venue had a status of five nations, an against larger than 12 and took place on 15/02/1975?",
"role": "user"
},
{
"content": "SELECT venue FROM table_name_59 WHERE status = \"five nations\" AND against > 12 AND date = \"15/02/1975\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (outcome VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What is the outcome on March 20, 1994?",
"role": "user"
},
{
"content": "SELECT outcome FROM table_name_89 WHERE date = \"march 20, 1994\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_41 (record VARCHAR, visitor VARCHAR)",
"role": "system"
},
{
"content": "Name the record when the visitor is st. louis",
"role": "user"
},
{
"content": "SELECT record FROM table_name_41 WHERE visitor = \"st. louis\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_15624586_2 (deficit___surplus_ VARCHAR, country VARCHAR)",
"role": "system"
},
{
"content": "What is the deficit (-surplus) of France?",
"role": "user"
},
{
"content": "SELECT deficit___surplus_ FROM table_15624586_2 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 table_name_38 (score VARCHAR, location_attendance VARCHAR)",
"role": "system"
},
{
"content": "What was the score of the game at the Chicago Stadium?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_38 WHERE location_attendance = \"chicago stadium\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_98 (laps VARCHAR, driver VARCHAR, grid VARCHAR, time_retired VARCHAR)",
"role": "system"
},
{
"content": "How many laps did Emerson Fittipaldi do on a grid larger than 14, and when was the Time/Retired of accident?",
"role": "user"
},
{
"content": "SELECT COUNT(laps) FROM table_name_98 WHERE grid > 14 AND time_retired = \"accident\" AND driver = \"emerson fittipaldi\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (attempts VARCHAR, team VARCHAR, yards VARCHAR)",
"role": "system"
},
{
"content": "What was the number of attempts for Vanderberg on Iowa when the recorded yards were 2,249?",
"role": "user"
},
{
"content": "SELECT attempts FROM table_name_42 WHERE team = \"iowa\" AND yards = \"2,249\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (stage INTEGER, category VARCHAR, year VARCHAR)",
"role": "system"
},
{
"content": "What is the sum of the stages for category 1 races after the year 2003?",
"role": "user"
},
{
"content": "SELECT SUM(stage) FROM table_name_73 WHERE category = \"1\" AND year > 2003",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_17288825_10 (high_assists VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What was the high assists on April 7?",
"role": "user"
},
{
"content": "SELECT high_assists FROM table_17288825_10 WHERE date = \"April 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_22 (wins VARCHAR, events INTEGER)",
"role": "system"
},
{
"content": "How many wins did he have when he played under 2 events?",
"role": "user"
},
{
"content": "SELECT COUNT(wins) FROM table_name_22 WHERE events < 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_96 (location VARCHAR, opponenent VARCHAR)",
"role": "system"
},
{
"content": "Where was the opponent Germany?",
"role": "user"
},
{
"content": "SELECT location FROM table_name_96 WHERE opponenent = \"germany\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_11 (ns VARCHAR, normal_total VARCHAR)",
"role": "system"
},
{
"content": "Name the NS with normal total of 102",
"role": "user"
},
{
"content": "SELECT ns FROM table_name_11 WHERE normal_total = \"102\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_104858_1 (admits_boys_girls VARCHAR, name_of_member_organization VARCHAR)",
"role": "system"
},
{
"content": "Does the Scout Association of Hong Kong admit boys, girls, or both?",
"role": "user"
},
{
"content": "SELECT admits_boys_girls FROM table_104858_1 WHERE name_of_member_organization = \"The Scout Association of Hong Kong\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_79 (pts INTEGER, year VARCHAR, chassis VARCHAR)",
"role": "system"
},
{
"content": "What is the highest pts after 1952 with connaught type a?",
"role": "user"
},
{
"content": "SELECT MAX(pts) FROM table_name_79 WHERE year > 1952 AND chassis = \"connaught type a\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (iata VARCHAR, icao VARCHAR)",
"role": "system"
},
{
"content": "I want the IATA for ICAO of zgkl",
"role": "user"
},
{
"content": "SELECT iata FROM table_name_32 WHERE icao = \"zgkl\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1348989_2 (season VARCHAR, viewers__in_millions_ VARCHAR)",
"role": "system"
},
{
"content": "What year did the season finale have a total of 10.29 million viewers?",
"role": "user"
},
{
"content": "SELECT season AS Finale FROM table_1348989_2 WHERE viewers__in_millions_ = \"10.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_12962773_10 (height VARCHAR, no VARCHAR)",
"role": "system"
},
{
"content": "How tall was Player #10?",
"role": "user"
},
{
"content": "SELECT height FROM table_12962773_10 WHERE no = 10",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_33 (score VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What is the score for 17 April 2013?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_33 WHERE date = \"17 april 2013\"",
"role": "assistant"
}
] |