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_16967990_1 (score VARCHAR, _number VARCHAR)",
"role": "system"
},
{
"content": "Name the score for number 4",
"role": "user"
},
{
"content": "SELECT score FROM table_16967990_1 WHERE _number = \"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_99 (transmission VARCHAR, engine VARCHAR, acceleration_0_100km_h__0_62mph_ VARCHAR)",
"role": "system"
},
{
"content": "What is the transmission when the engine is 2.0l, and acceleration 0β100km/h (0β62mph) is 10.5 s?",
"role": "user"
},
{
"content": "SELECT transmission FROM table_name_99 WHERE engine = \"2.0l\" AND acceleration_0_100km_h__0_62mph_ = \"10.5 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_name_73 (liberal_ticket VARCHAR, socialist_workers_ticket VARCHAR)",
"role": "system"
},
{
"content": "What is the liberal ticket that has judith white as the socialist workers?",
"role": "user"
},
{
"content": "SELECT liberal_ticket FROM table_name_73 WHERE socialist_workers_ticket = \"judith 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_1 (lost VARCHAR, played INTEGER)",
"role": "system"
},
{
"content": "How many lost stats have a played number of less than 8?",
"role": "user"
},
{
"content": "SELECT COUNT(lost) FROM table_name_1 WHERE played < 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_22 (senior_status VARCHAR, reason_for_termination VARCHAR, chief_judge VARCHAR)",
"role": "system"
},
{
"content": "What was the senior status for the judge who was terminated because of death, with a Chief Judge entry of β?",
"role": "user"
},
{
"content": "SELECT senior_status FROM table_name_22 WHERE reason_for_termination = \"death\" AND chief_judge = \"β\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE EMPLOYEE (BirthDate VARCHAR, City VARCHAR)",
"role": "system"
},
{
"content": "What are the birth dates of employees living in Edmonton?",
"role": "user"
},
{
"content": "SELECT BirthDate FROM EMPLOYEE WHERE City = \"Edmonton\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_5 (attendance INTEGER, visitor VARCHAR)",
"role": "system"
},
{
"content": "What was the attendance at the game against Ottawa?",
"role": "user"
},
{
"content": "SELECT AVG(attendance) FROM table_name_5 WHERE visitor = \"ottawa\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_19396259_1 (title VARCHAR, directed_by VARCHAR, written_by VARCHAR)",
"role": "system"
},
{
"content": "Name the title directed by charles beeson by jeremy carver",
"role": "user"
},
{
"content": "SELECT title FROM table_19396259_1 WHERE directed_by = \"Charles Beeson\" AND written_by = \"Jeremy Carver\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (date VARCHAR, catalog VARCHAR)",
"role": "system"
},
{
"content": "What was the date for the catalog 32xa-112?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_42 WHERE catalog = \"32xa-112\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_26259391_1 (no_in_series VARCHAR, production_code VARCHAR)",
"role": "system"
},
{
"content": "how many series have production code 8acx05",
"role": "user"
},
{
"content": "SELECT no_in_series FROM table_26259391_1 WHERE production_code = \"8ACX05\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_12032893_1 (_number VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "What number (#) is associated with the Name Ron Baxter?",
"role": "user"
},
{
"content": "SELECT COUNT(_number) FROM table_12032893_1 WHERE name = \"Ron Baxter\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1341930_38 (candidates VARCHAR, incumbent VARCHAR)",
"role": "system"
},
{
"content": "How many incumbents come from alvin bush's district?",
"role": "user"
},
{
"content": "SELECT COUNT(candidates) FROM table_1341930_38 WHERE incumbent = \"Alvin Bush\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (grid INTEGER, time VARCHAR)",
"role": "system"
},
{
"content": "With a Time of +1:37.055, which has the lowest Grid?",
"role": "user"
},
{
"content": "SELECT MIN(grid) FROM table_name_84 WHERE time = \"+1:37.055\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1341577_43 (first_elected VARCHAR, district VARCHAR)",
"role": "system"
},
{
"content": "In the district called Tennessee 6, how many in total of first elected are there?",
"role": "user"
},
{
"content": "SELECT COUNT(first_elected) FROM table_1341577_43 WHERE district = \"Tennessee 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_19982699_1 (_number VARCHAR, director VARCHAR)",
"role": "system"
},
{
"content": "How many total number have robert young as the director?",
"role": "user"
},
{
"content": "SELECT COUNT(_number) FROM table_19982699_1 WHERE director = \"Robert Young\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE musical (RESULT VARCHAR)",
"role": "system"
},
{
"content": "List the most common result of the musicals.",
"role": "user"
},
{
"content": "SELECT RESULT FROM musical GROUP BY RESULT ORDER BY COUNT(*) DESC LIMIT 1",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_5 (winner VARCHAR, mountains_classification VARCHAR, combativity_award VARCHAR)",
"role": "system"
},
{
"content": "Name the winner with mountains classification of franco pellizotti and combativity award of martijn maaskant",
"role": "user"
},
{
"content": "SELECT winner FROM table_name_5 WHERE mountains_classification = \"franco pellizotti\" AND combativity_award = \"martijn maaskant\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (score VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "What is Curtis Strange's Score?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_11 WHERE player = \"curtis strange\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1342218_5 (candidates VARCHAR, district VARCHAR)",
"role": "system"
},
{
"content": "Who is the candidate for the district Arkansas 2?",
"role": "user"
},
{
"content": "SELECT candidates FROM table_1342218_5 WHERE district = \"Arkansas 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_2226817_2 (no_in_series VARCHAR, production_code VARCHAR)",
"role": "system"
},
{
"content": "How many number of series have a production code of 1.11?",
"role": "user"
},
{
"content": "SELECT no_in_series FROM table_2226817_2 WHERE production_code = \"1.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_25 (original_canadian_air_date VARCHAR, director VARCHAR)",
"role": "system"
},
{
"content": "What was the Original Canadian air-date for the episode directed by mark rydell?",
"role": "user"
},
{
"content": "SELECT original_canadian_air_date FROM table_name_25 WHERE director = \"mark rydell\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (name__pinyin_ VARCHAR, name__wade_giles_ VARCHAR)",
"role": "system"
},
{
"content": "Which Name (pinyin) is named fu-ching?",
"role": "user"
},
{
"content": "SELECT name__pinyin_ FROM table_name_64 WHERE name__wade_giles_ = \"fu-ching\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (driver VARCHAR, engine VARCHAR, chassis VARCHAR)",
"role": "system"
},
{
"content": "who is the driver with the engine era 1.5 l6 s and the chassis is era b?",
"role": "user"
},
{
"content": "SELECT driver FROM table_name_17 WHERE engine = \"era 1.5 l6 s\" AND chassis = \"era b\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (points INTEGER, game INTEGER)",
"role": "system"
},
{
"content": "How many points was before game 14?",
"role": "user"
},
{
"content": "SELECT SUM(points) FROM table_name_82 WHERE game < 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_27 (number_of_seasons_in_liga_mx INTEGER, club VARCHAR)",
"role": "system"
},
{
"content": "What is the highest Number of seasons in Liga MX for Club cruz azul?",
"role": "user"
},
{
"content": "SELECT MAX(number_of_seasons_in_liga_mx) FROM table_name_27 WHERE club = \"cruz azul\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (gold INTEGER, silver VARCHAR, total VARCHAR)",
"role": "system"
},
{
"content": "What is the total number of gold medals won by nations that won 2 silver medals but fewer than 7 in total?",
"role": "user"
},
{
"content": "SELECT SUM(gold) FROM table_name_24 WHERE silver = 2 AND total < 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_52 (weight INTEGER, player VARCHAR)",
"role": "system"
},
{
"content": "What does DeShawn Stevenson weigh?",
"role": "user"
},
{
"content": "SELECT SUM(weight) FROM table_name_52 WHERE player = \"deshawn stevenson\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (position VARCHAR, pick__number VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "What position does Bobby Micho, who was picked later than 186 others, play on the Broncos team?",
"role": "user"
},
{
"content": "SELECT position FROM table_name_30 WHERE pick__number > 186 AND player = \"bobby micho\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (chassis VARCHAR, points VARCHAR, entrant VARCHAR)",
"role": "system"
},
{
"content": "What was the chassis when the points were greater than 0 and the entrant was March Engineering?",
"role": "user"
},
{
"content": "SELECT chassis FROM table_name_74 WHERE points > 0 AND entrant = \"march engineering\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (record VARCHAR, game VARCHAR)",
"role": "system"
},
{
"content": "What is Record, when Game is \"24\"?",
"role": "user"
},
{
"content": "SELECT record FROM table_name_24 WHERE game = 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_23 (college VARCHAR, pick VARCHAR)",
"role": "system"
},
{
"content": "What is the college pick for 213?",
"role": "user"
},
{
"content": "SELECT college FROM table_name_23 WHERE pick = 213",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_99 (tournament VARCHAR)",
"role": "system"
},
{
"content": "What is 2011, when 2012 is \"A\", and when Tournament is \"French Open\"?",
"role": "user"
},
{
"content": "SELECT 2011 FROM table_name_99 WHERE 2012 = \"a\" AND tournament = \"french open\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_26614365_1 (latin VARCHAR, english VARCHAR)",
"role": "system"
},
{
"content": "What is the Latin for \"you sang\"?",
"role": "user"
},
{
"content": "SELECT latin FROM table_26614365_1 WHERE english = \"you sang\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1598533_8 (public_debt__percentage_of_gdp__2013_q1_ VARCHAR, gdp__percentage_of_eu__2012_ VARCHAR)",
"role": "system"
},
{
"content": "What is the public debt % of GDP in 2013 Q1 with a 4.7% GDP of EU in 2012?",
"role": "user"
},
{
"content": "SELECT public_debt__percentage_of_gdp__2013_q1_ FROM table_1598533_8 WHERE gdp__percentage_of_eu__2012_ = \"4.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_89 (year VARCHAR, location VARCHAR)",
"role": "system"
},
{
"content": "What is Year, when Location is Philadelphia Municipal Stadium?",
"role": "user"
},
{
"content": "SELECT year FROM table_name_89 WHERE location = \"philadelphia municipal 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_23292220_4 (first_broadcast VARCHAR, episode VARCHAR)",
"role": "system"
},
{
"content": "What was the first broadcast date of episode 4x03?",
"role": "user"
},
{
"content": "SELECT first_broadcast FROM table_23292220_4 WHERE episode = \"4x03\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_99 (end_date VARCHAR, to_club VARCHAR)",
"role": "system"
},
{
"content": "A player was moved to celtic had an end of what date?",
"role": "user"
},
{
"content": "SELECT end_date FROM table_name_99 WHERE to_club = \"celtic\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (record VARCHAR, opponent VARCHAR)",
"role": "system"
},
{
"content": "Who won when the Patriots played the Denver Broncos?",
"role": "user"
},
{
"content": "SELECT record FROM table_name_38 WHERE opponent = \"denver broncos\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_69 (high_points VARCHAR, record VARCHAR)",
"role": "system"
},
{
"content": "For the game that had an end record of 2-4, who was the high points scorer?",
"role": "user"
},
{
"content": "SELECT high_points FROM table_name_69 WHERE record = \"2-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_9 (played INTEGER, against VARCHAR, drawn VARCHAR)",
"role": "system"
},
{
"content": "What is the average Played when the against is 51, and the drawn is more than 1?",
"role": "user"
},
{
"content": "SELECT AVG(played) FROM table_name_9 WHERE against = 51 AND drawn > 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_80 (venue VARCHAR, result VARCHAR)",
"role": "system"
},
{
"content": "Which Venue resulted in AUS by 229 runs?",
"role": "user"
},
{
"content": "SELECT venue FROM table_name_80 WHERE result = \"aus by 229 runs\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_18 (position VARCHAR, round VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "Akin Ayodele drafted before round 7 plays what position?",
"role": "user"
},
{
"content": "SELECT position FROM table_name_18 WHERE round < 7 AND name = \"akin ayodele\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (rank VARCHAR, react VARCHAR, nationality VARCHAR)",
"role": "system"
},
{
"content": "What the rank of the Virgin Islands athlete with react under 0.168?",
"role": "user"
},
{
"content": "SELECT rank FROM table_name_44 WHERE react < 0.168 AND nationality = \"virgin islands\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_287159_1 (other_abbreviation VARCHAR, brightest_star VARCHAR)",
"role": "system"
},
{
"content": "What is the other abbreviation of the constellation that has Ξ² trianguli as its brightest star?",
"role": "user"
},
{
"content": "SELECT other_abbreviation FROM table_287159_1 WHERE brightest_star = \"Ξ² Trianguli\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_28768925_1 (written_by VARCHAR, directed_by VARCHAR, no_in_series VARCHAR)",
"role": "system"
},
{
"content": "Who wrote episode 27 in the series that was directed by Wendey Stanzler?",
"role": "user"
},
{
"content": "SELECT written_by FROM table_28768925_1 WHERE directed_by = \"Wendey Stanzler\" AND no_in_series = 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_35 (opponent VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What is the opponent from April 19?",
"role": "user"
},
{
"content": "SELECT opponent FROM table_name_35 WHERE date = \"april 19\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_46 (longitude INTEGER, water__sqmi_ VARCHAR, geo_id VARCHAR)",
"role": "system"
},
{
"content": "What is the average longitude for the water area of 0.093 and has a GEO ID tag larger than 3808174460?",
"role": "user"
},
{
"content": "SELECT AVG(longitude) FROM table_name_46 WHERE water__sqmi_ = 0.093 AND geo_id > 3808174460",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (gold INTEGER, bronze INTEGER)",
"role": "system"
},
{
"content": "Which is the highest gold that has a bronze greater than 4?",
"role": "user"
},
{
"content": "SELECT MAX(gold) FROM table_name_96 WHERE bronze > 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 student_course_registrations (student_id VARCHAR, registration_date VARCHAR); CREATE TABLE students (student_details VARCHAR, student_id VARCHAR)",
"role": "system"
},
{
"content": "What is detail of the student who most recently registered course?",
"role": "user"
},
{
"content": "SELECT T2.student_details FROM student_course_registrations AS T1 JOIN students AS T2 ON T1.student_id = T2.student_id ORDER BY T1.registration_date DESC LIMIT 1",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_55 (result_f_a VARCHAR, league_position VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What was the Result FβA on 21 February 2009, when the league position was 1st?",
"role": "user"
},
{
"content": "SELECT result_f_a FROM table_name_55 WHERE league_position = \"1st\" AND date = \"21 february 2009\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_28243691_1 (team_nickname VARCHAR, institution VARCHAR)",
"role": "system"
},
{
"content": "What is the mascot for texas tech university?",
"role": "user"
},
{
"content": "SELECT team_nickname FROM table_28243691_1 WHERE institution = \"Texas Tech University\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (results VARCHAR, runner_up VARCHAR)",
"role": "system"
},
{
"content": "What were the overall event results when Michael Demichele was runner-up?",
"role": "user"
},
{
"content": "SELECT results FROM table_name_78 WHERE runner_up = \"michael demichele\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27988408_1 (production_code INTEGER, written_by VARCHAR)",
"role": "system"
},
{
"content": "Name the least production code for bryan moore & chris peterson",
"role": "user"
},
{
"content": "SELECT MIN(production_code) FROM table_27988408_1 WHERE written_by = \"Bryan Moore & Chris Peterson\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_18733814_2 (points_classification VARCHAR, winner VARCHAR)",
"role": "system"
},
{
"content": "When philippe gilbert is the winner who is the points classification?",
"role": "user"
},
{
"content": "SELECT points_classification FROM table_18733814_2 WHERE winner = \"Philippe Gilbert\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_68 (result VARCHAR, goal VARCHAR)",
"role": "system"
},
{
"content": "What is the Result where Goal is 9?",
"role": "user"
},
{
"content": "SELECT result FROM table_name_68 WHERE goal = 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_5 (opponent VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "Name the opponent for april 24",
"role": "user"
},
{
"content": "SELECT opponent FROM table_name_5 WHERE date = \"april 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_52 (pos VARCHAR, team VARCHAR, year VARCHAR)",
"role": "system"
},
{
"content": "What position did the driver from Audi Sport North America finish in the race after 2008?",
"role": "user"
},
{
"content": "SELECT pos FROM table_name_52 WHERE team = \"audi sport north america\" AND year > 2008",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_24231638_3 (replaced_by VARCHAR, date_of_appointment VARCHAR)",
"role": "system"
},
{
"content": "Who replaced on the date of appointment 2 november 2010?",
"role": "user"
},
{
"content": "SELECT replaced_by FROM table_24231638_3 WHERE date_of_appointment = \"2 November 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_25572068_1 (location VARCHAR, winning_driver VARCHAR)",
"role": "system"
},
{
"content": "What was the location when the winning driver was NathanaΓ«l Berthon?",
"role": "user"
},
{
"content": "SELECT location FROM table_25572068_1 WHERE winning_driver = \"NathanaΓ«l Berthon\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_1 (school_club_team VARCHAR, draft VARCHAR)",
"role": "system"
},
{
"content": "Which team had a 2008-3 2008 draft?",
"role": "user"
},
{
"content": "SELECT school_club_team FROM table_name_1 WHERE draft = \"2008-3 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_83 (method VARCHAR, record VARCHAR)",
"role": "system"
},
{
"content": "Which method has a record of 4-0?",
"role": "user"
},
{
"content": "SELECT method FROM table_name_83 WHERE record = \"4-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_16799784_11 (latitude VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "At what latitude can the name origin of yuzut-arkh fossae be found?",
"role": "user"
},
{
"content": "SELECT latitude FROM table_16799784_11 WHERE name = \"Yuzut-Arkh Fossae\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2869837_1 (Shared VARCHAR, last_final VARCHAR)",
"role": "system"
},
{
"content": "How many shared titles does the club whose last final was 2012 have?",
"role": "user"
},
{
"content": "SELECT Shared AS titles FROM table_2869837_1 WHERE last_final = 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_name_89 (year VARCHAR, chassis VARCHAR, points VARCHAR)",
"role": "system"
},
{
"content": "Name the total number of year for chassis of kurtis kraft 4000 and points more than 2",
"role": "user"
},
{
"content": "SELECT COUNT(year) FROM table_name_89 WHERE chassis = \"kurtis kraft 4000\" AND points > 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_86 (captain VARCHAR, team VARCHAR)",
"role": "system"
},
{
"content": "What is the captain's name of team Leeds United?",
"role": "user"
},
{
"content": "SELECT captain FROM table_name_86 WHERE team = \"leeds united\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2417340_3 (vacator VARCHAR, date_of_successors_formal_installation VARCHAR)",
"role": "system"
},
{
"content": "List the number of vacators when successors were formally installed on June 22, 1868.",
"role": "user"
},
{
"content": "SELECT COUNT(vacator) FROM table_2417340_3 WHERE date_of_successors_formal_installation = \"June 22, 1868\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_53 (director_s_ VARCHAR, rank VARCHAR, film VARCHAR)",
"role": "system"
},
{
"content": "Who directed the nominated film, Badmouth?",
"role": "user"
},
{
"content": "SELECT director_s_ FROM table_name_53 WHERE rank = \"nominated\" AND film = \"badmouth\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (entrant VARCHAR, chassis VARCHAR, year VARCHAR, pts VARCHAR)",
"role": "system"
},
{
"content": "Who had 8 points, later than 1980, and a theodore ty02 chassis?",
"role": "user"
},
{
"content": "SELECT entrant FROM table_name_73 WHERE year > 1980 AND pts = 8 AND chassis = \"theodore ty02\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (class VARCHAR, call_sign VARCHAR)",
"role": "system"
},
{
"content": "\\What is the class of the station with the call sign w254ah?",
"role": "user"
},
{
"content": "SELECT class FROM table_name_35 WHERE call_sign = \"w254ah\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (total INTEGER, to_par VARCHAR)",
"role": "system"
},
{
"content": "What is the maximum total when the To par is +3?",
"role": "user"
},
{
"content": "SELECT MAX(total) FROM table_name_16 WHERE to_par = \"+3\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27553627_2 (season VARCHAR, viewers__in_millions_ VARCHAR)",
"role": "system"
},
{
"content": "How many season premieres had 15.27 million viewers?",
"role": "user"
},
{
"content": "SELECT COUNT(season) AS premiere FROM table_27553627_2 WHERE viewers__in_millions_ = \"15.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_21021796_1 (valves INTEGER)",
"role": "system"
},
{
"content": "What is the greatest number of valves?",
"role": "user"
},
{
"content": "SELECT MIN(valves) FROM table_21021796_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_63 (name VARCHAR, street_address VARCHAR)",
"role": "system"
},
{
"content": "WHAT IS THE NAME WITH 01.0 10 light street?",
"role": "user"
},
{
"content": "SELECT name FROM table_name_63 WHERE street_address = \"01.0 10 light street\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_30120556_1 (civil_parish VARCHAR, townland VARCHAR, area__acres__ VARCHAR)",
"role": "system"
},
{
"content": "What civil paris appears when Ballynamona is the townland with 126 acres?",
"role": "user"
},
{
"content": "SELECT civil_parish FROM table_30120556_1 WHERE townland = \"Ballynamona\" AND area__acres__ = 126",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (winning_score VARCHAR, runner_s__up VARCHAR)",
"role": "system"
},
{
"content": "What is the winning score of the tournament with Charles Coody as the runner-up?",
"role": "user"
},
{
"content": "SELECT winning_score FROM table_name_91 WHERE runner_s__up = \"charles coody\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (game INTEGER, opponent VARCHAR, december VARCHAR)",
"role": "system"
},
{
"content": "Which game has an opponent of Phoenix Coyotes and was before Dec 9?",
"role": "user"
},
{
"content": "SELECT AVG(game) FROM table_name_96 WHERE opponent = \"phoenix coyotes\" AND december < 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_86 (established INTEGER, country_territory VARCHAR)",
"role": "system"
},
{
"content": "What is the average year that the medical school in dominican republic was established?",
"role": "user"
},
{
"content": "SELECT AVG(established) FROM table_name_86 WHERE country_territory = \"dominican 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_name_92 (points_for VARCHAR, games VARCHAR, total_points VARCHAR)",
"role": "system"
},
{
"content": "What points for have 30 as the game, and 73 as the total points?",
"role": "user"
},
{
"content": "SELECT points_for FROM table_name_92 WHERE games = \"30\" AND total_points = \"73\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_275023_1 (formed_from VARCHAR, province VARCHAR)",
"role": "system"
},
{
"content": "What province was New Plymouth formed from?",
"role": "user"
},
{
"content": "SELECT formed_from FROM table_275023_1 WHERE province = \"New Plymouth\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_29261823_10 (team VARCHAR, aggregate_score VARCHAR)",
"role": "system"
},
{
"content": "what is the name of the team which aggregate score is l 1β2",
"role": "user"
},
{
"content": "SELECT team FROM table_29261823_10 WHERE aggregate_score = \"L 1β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_62 (gold VARCHAR, rank VARCHAR, bronze VARCHAR, silver VARCHAR)",
"role": "system"
},
{
"content": "How many golds does the nation having a rank of 8, fewer than 5 bronzes and more than 1 silver have?",
"role": "user"
},
{
"content": "SELECT COUNT(gold) FROM table_name_62 WHERE bronze < 5 AND silver > 1 AND rank > 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_35 (fastest_lap VARCHAR, winning_driver VARCHAR, circuit VARCHAR)",
"role": "system"
},
{
"content": "Tell me the fastest lapf or jim clark being the winning driver for prince george",
"role": "user"
},
{
"content": "SELECT fastest_lap FROM table_name_35 WHERE winning_driver = \"jim clark\" AND circuit = \"prince george\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE company (company VARCHAR, headquarters VARCHAR, market_value VARCHAR)",
"role": "system"
},
{
"content": "Show all company names and headquarters in the descending order of market value.",
"role": "user"
},
{
"content": "SELECT company, headquarters FROM company ORDER BY market_value 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_name_65 (yards INTEGER, average INTEGER)",
"role": "system"
},
{
"content": "What is the least amount of yards when the average is less than 2.6?",
"role": "user"
},
{
"content": "SELECT MIN(yards) FROM table_name_65 WHERE average < 2.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_14 (country VARCHAR, icao VARCHAR)",
"role": "system"
},
{
"content": "Tell me the country for ICAO tjvq",
"role": "user"
},
{
"content": "SELECT country FROM table_name_14 WHERE icao = \"tjvq\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (attendance VARCHAR, venue VARCHAR)",
"role": "system"
},
{
"content": "Which Attendance has Mandalay Bay Resort",
"role": "user"
},
{
"content": "SELECT attendance FROM table_name_75 WHERE venue = \"mandalay bay resort\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (venue VARCHAR, runs VARCHAR)",
"role": "system"
},
{
"content": "During runs 332, what was the venue?",
"role": "user"
},
{
"content": "SELECT venue FROM table_name_60 WHERE runs = \"332\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE course_arrange (Course_ID VARCHAR, Teacher_ID VARCHAR); CREATE TABLE course (Course_ID VARCHAR, Course VARCHAR); CREATE TABLE teacher (Name VARCHAR, Teacher_ID VARCHAR)",
"role": "system"
},
{
"content": "Show the name of the teacher for the math course.",
"role": "user"
},
{
"content": "SELECT T3.Name FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID WHERE T2.Course = \"Math\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_24489942_10 (rank VARCHAR, nationality VARCHAR)",
"role": "system"
},
{
"content": "Name the rank for switzerland",
"role": "user"
},
{
"content": "SELECT COUNT(rank) FROM table_24489942_10 WHERE nationality = \"Switzerland\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_19018191_5 (player VARCHAR, l_apps VARCHAR)",
"role": "system"
},
{
"content": "Name the player for l apps is 27",
"role": "user"
},
{
"content": "SELECT player FROM table_19018191_5 WHERE l_apps = 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_89 (iata VARCHAR, city VARCHAR)",
"role": "system"
},
{
"content": "What shows for IATA for the City of sapporo?",
"role": "user"
},
{
"content": "SELECT iata FROM table_name_89 WHERE city = \"sapporo\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_99 (category VARCHAR, year VARCHAR, nominated_work VARCHAR)",
"role": "system"
},
{
"content": "What categories had a Nominated work of yerma before 1992?",
"role": "user"
},
{
"content": "SELECT category FROM table_name_99 WHERE year < 1992 AND nominated_work = \"yerma\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (points VARCHAR, place VARCHAR, draw VARCHAR, artist VARCHAR)",
"role": "system"
},
{
"content": "What is the total point value when there are less than 12 draws, the rank is less than 17, and Philipp Kirkorov is the artist?",
"role": "user"
},
{
"content": "SELECT COUNT(points) FROM table_name_24 WHERE draw < 12 AND artist = \"philipp kirkorov\" AND place < 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_83 (date VARCHAR, result VARCHAR, venue VARCHAR)",
"role": "system"
},
{
"content": "On what date was there a draw at Sydney Cricket Ground?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_83 WHERE result = \"draw\" AND venue = \"sydney cricket ground\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (venue VARCHAR, score VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "Where did the competition take place at on August 3, 2005 with a score of 5-0?",
"role": "user"
},
{
"content": "SELECT venue FROM table_name_21 WHERE score = \"5-0\" AND date = \"august 3, 2005\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_23649244_2 (song_1_title VARCHAR, artist_1 VARCHAR)",
"role": "system"
},
{
"content": "What is song 1 title is the artist is Danny Byrd?",
"role": "user"
},
{
"content": "SELECT song_1_title FROM table_23649244_2 WHERE artist_1 = \"Danny Byrd\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (goals_scored VARCHAR, played VARCHAR, points VARCHAR, goals_conceded VARCHAR)",
"role": "system"
},
{
"content": "What is the total goals scored with more than 11 points, 18 goals conceded, and played fewer than 18 times?",
"role": "user"
},
{
"content": "SELECT COUNT(goals_scored) FROM table_name_17 WHERE points > 11 AND goals_conceded = 18 AND played < 18",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_256862_1 (legs INTEGER, winning_yacht VARCHAR)",
"role": "system"
},
{
"content": "Name the most legs for steinlager 2",
"role": "user"
},
{
"content": "SELECT MAX(legs) FROM table_256862_1 WHERE winning_yacht = \"Steinlager 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_16 (record VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What is Record, when Date is November 23?",
"role": "user"
},
{
"content": "SELECT record FROM table_name_16 WHERE date = \"november 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_15988037_24 (perfect_40s INTEGER)",
"role": "system"
},
{
"content": "What is the minimum number of perfect 40s?",
"role": "user"
},
{
"content": "SELECT MIN(perfect_40s) FROM table_15988037_24",
"role": "assistant"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.