training_input stringlengths 118 1.06k |
|---|
###context:CREATE TABLE matches (tourney_name VARCHAR)
###human: Find the name of tourney that has more than 10 matches.
###assistant: SELECT tourney_name FROM matches GROUP BY tourney_name HAVING COUNT(*) > 10 |
###context:CREATE TABLE matches (winner_name VARCHAR, YEAR VARCHAR)
###human: List the names of all winners who played in both 2013 and 2016.
###assistant: SELECT winner_name FROM matches WHERE YEAR = 2013 INTERSECT SELECT winner_name FROM matches WHERE YEAR = 2016 |
###context:CREATE TABLE matches (YEAR VARCHAR)
###human: List the number of all matches who played in years of 2013 or 2016.
###assistant: SELECT COUNT(*) FROM matches WHERE YEAR = 2013 OR YEAR = 2016 |
###context:CREATE TABLE matches (winner_id VARCHAR, tourney_name VARCHAR); CREATE TABLE players (country_code VARCHAR, first_name VARCHAR, player_id VARCHAR)
###human: What are the country code and first name of the players who won in both tourney WTA Championships and Australian Open?
###assistant: SELECT T1.c... |
###context:CREATE TABLE players (first_name VARCHAR, country_code VARCHAR, birth_date VARCHAR)
###human: Find the first name and country code of the oldest player.
###assistant: SELECT first_name, country_code FROM players ORDER BY birth_date LIMIT 1 |
###context:CREATE TABLE players (first_name VARCHAR, last_name VARCHAR, birth_date VARCHAR)
###human: List the first and last name of all players in the order of birth date.
###assistant: SELECT first_name, last_name FROM players ORDER BY birth_date |
###context:CREATE TABLE players (first_name VARCHAR, last_name VARCHAR, hand VARCHAR, birth_date VARCHAR)
###human: List the first and last name of all players who are left / L hand in the order of birth date.
###assistant: SELECT first_name, last_name FROM players WHERE hand = 'L' ORDER BY birth_date |
###context:CREATE TABLE players (country_code VARCHAR, first_name VARCHAR, player_id VARCHAR); CREATE TABLE rankings (player_id VARCHAR, tours VARCHAR)
###human: Find the first name and country code of the player who did the most number of tours.
###assistant: SELECT T1.country_code, T1.first_name FROM players ... |
###context:CREATE TABLE matches (YEAR VARCHAR)
###human: Find the year that has the most number of matches.
###assistant: SELECT YEAR FROM matches GROUP BY YEAR ORDER BY COUNT(*) DESC LIMIT 1 |
###context:CREATE TABLE matches (winner_name VARCHAR, winner_rank_points VARCHAR)
###human: Find the name and rank points of the winner who won the most times.
###assistant: SELECT winner_name, winner_rank_points FROM matches GROUP BY winner_name ORDER BY COUNT(*) DESC LIMIT 1 |
###context:CREATE TABLE matches (winner_name VARCHAR, tourney_name VARCHAR, winner_rank_points VARCHAR)
###human: Find the name of the winner who has the highest rank points and participated in the Australian Open tourney.
###assistant: SELECT winner_name FROM matches WHERE tourney_name = 'Australian Open' ORDE... |
###context:CREATE TABLE matches (winner_name VARCHAR, loser_name VARCHAR, minutes VARCHAR)
###human: find the names of loser and winner who played in the match with greatest number of minutes.
###assistant: SELECT winner_name, loser_name FROM matches ORDER BY minutes DESC LIMIT 1 |
###context:CREATE TABLE players (first_name VARCHAR, player_id VARCHAR); CREATE TABLE rankings (player_id VARCHAR)
###human: Find the average ranking for each player and their first name.
###assistant: SELECT AVG(ranking), T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id GROUP... |
###context:CREATE TABLE players (first_name VARCHAR, player_id VARCHAR); CREATE TABLE rankings (player_id VARCHAR)
###human: Find the total ranking points for each player and their first name.
###assistant: SELECT SUM(ranking_points), T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.pla... |
###context:CREATE TABLE players (country_code VARCHAR)
###human: find the number of players for each country.
###assistant: SELECT COUNT(*), country_code FROM players GROUP BY country_code |
###context:CREATE TABLE players (country_code VARCHAR)
###human: find the code of the country where has the greatest number of players.
###assistant: SELECT country_code FROM players GROUP BY country_code ORDER BY COUNT(*) DESC LIMIT 1 |
###context:CREATE TABLE players (country_code VARCHAR)
###human: Find the codes of countries that have more than 50 players.
###assistant: SELECT country_code FROM players GROUP BY country_code HAVING COUNT(*) > 50 |
###context:CREATE TABLE rankings (ranking_date VARCHAR, tours INTEGER)
###human: Find the total number of tours for each ranking date.
###assistant: SELECT SUM(tours), ranking_date FROM rankings GROUP BY ranking_date |
###context:CREATE TABLE matches (YEAR VARCHAR)
###human: Find the number of matches happened in each year.
###assistant: SELECT COUNT(*), YEAR FROM matches GROUP BY YEAR |
###context:CREATE TABLE matches (winner_name VARCHAR, winner_rank VARCHAR, winner_age VARCHAR)
###human: Find the name and rank of the 3 youngest winners across all matches.
###assistant: SELECT DISTINCT winner_name, winner_rank FROM matches ORDER BY winner_age LIMIT 3 |
###context:CREATE TABLE matches (winner_name VARCHAR, tourney_name VARCHAR, winner_hand VARCHAR)
###human: How many different winners both participated in the WTA Championships and were left handed?
###assistant: SELECT COUNT(DISTINCT winner_name) FROM matches WHERE tourney_name = 'WTA Championships' AND winner... |
###context:CREATE TABLE players (first_name VARCHAR, country_code VARCHAR, birth_date VARCHAR, player_id VARCHAR); CREATE TABLE matches (winner_id VARCHAR, winner_rank_points VARCHAR)
###human: Find the first name, country code and birth date of the winner who has the highest rank points in all matches.
###assi... |
###context:CREATE TABLE players (hand VARCHAR)
###human: Find the number of players for each hand type.
###assistant: SELECT COUNT(*), hand FROM players GROUP BY hand |
###context:CREATE TABLE ship (disposition_of_ship VARCHAR)
###human: How many ships ended up being 'Captured'?
###assistant: SELECT COUNT(*) FROM ship WHERE disposition_of_ship = 'Captured' |
###context:CREATE TABLE ship (name VARCHAR, tonnage VARCHAR)
###human: List the name and tonnage ordered by in descending alphaetical order for the names.
###assistant: SELECT name, tonnage FROM ship ORDER BY name DESC |
###context:CREATE TABLE battle (name VARCHAR, date VARCHAR)
###human: List the name, date and result of each battle.
###assistant: SELECT name, date FROM battle |
###context:CREATE TABLE death (killed INTEGER)
###human: What is maximum and minimum death toll caused each time?
###assistant: SELECT MAX(killed), MIN(killed) FROM death |
###context:CREATE TABLE death (injured INTEGER)
###human: What is the average number of injuries caused each time?
###assistant: SELECT AVG(injured) FROM death |
###context:CREATE TABLE ship (Id VARCHAR); CREATE TABLE death (killed VARCHAR, injured VARCHAR, caused_by_ship_id VARCHAR)
###human: What are the death and injury situations caused by the ship with tonnage 't'?
###assistant: SELECT T1.killed, T1.injured FROM death AS T1 JOIN ship AS t2 ON T1.caused_by_ship_id =... |
###context:CREATE TABLE battle (name VARCHAR, RESULT VARCHAR, bulgarian_commander VARCHAR)
###human: What are the name and results of the battles when the bulgarian commander is not 'Boril'
###assistant: SELECT name, RESULT FROM battle WHERE bulgarian_commander <> 'Boril' |
###context:CREATE TABLE ship (lost_in_battle VARCHAR, ship_type VARCHAR); CREATE TABLE battle (id VARCHAR, name VARCHAR)
###human: What are the different ids and names of the battles that lost any 'Brig' type shipes?
###assistant: SELECT DISTINCT T1.id, T1.name FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lo... |
###context:CREATE TABLE death (caused_by_ship_id VARCHAR, killed INTEGER); CREATE TABLE battle (id VARCHAR, name VARCHAR); CREATE TABLE ship (lost_in_battle VARCHAR, id VARCHAR)
###human: What are the ids and names of the battles that led to more than 10 people killed in total.
###assistant: SELECT T1.id, T1.na... |
###context:CREATE TABLE death (caused_by_ship_id VARCHAR); CREATE TABLE ship (Id VARCHAR)
###human: What is the ship id and name that caused most total injuries?
###assistant: SELECT T2.id, T2.name FROM death AS T1 JOIN ship AS t2 ON T1.caused_by_ship_id = T2.id GROUP BY T2.id ORDER BY COUNT(*) DESC LIMIT 1 |
###context:CREATE TABLE battle (name VARCHAR, bulgarian_commander VARCHAR, latin_commander VARCHAR)
###human: What are the distinct battle names which are between bulgarian commander 'Kaloyan' and latin commander 'Baldwin I'?
###assistant: SELECT name FROM battle WHERE bulgarian_commander = 'Kaloyan' AND latin_... |
###context:CREATE TABLE battle (RESULT VARCHAR)
###human: How many different results are there for the battles?
###assistant: SELECT COUNT(DISTINCT RESULT) FROM battle |
###context:CREATE TABLE ship (id VARCHAR, lost_in_battle VARCHAR, tonnage VARCHAR); CREATE TABLE battle (id VARCHAR, lost_in_battle VARCHAR, tonnage VARCHAR)
###human: How many battles did not lose any ship with tonnage '225'?
###assistant: SELECT COUNT(*) FROM battle WHERE NOT id IN (SELECT lost_in_battle FROM... |
###context:CREATE TABLE ship (lost_in_battle VARCHAR, name VARCHAR); CREATE TABLE battle (name VARCHAR, date VARCHAR, id VARCHAR)
###human: List the name and date the battle that has lost the ship named 'Lettice' and the ship named 'HMS Atalanta'
###assistant: SELECT T1.name, T1.date FROM battle AS T1 JOIN ship... |
###context:CREATE TABLE ship (lost_in_battle VARCHAR, location VARCHAR); CREATE TABLE battle (name VARCHAR, RESULT VARCHAR, bulgarian_commander VARCHAR); CREATE TABLE battle (name VARCHAR, result VARCHAR, bulgarian_commander VARCHAR, id VARCHAR)
###human: Show names, results and bulgarian commanders of the battles ... |
###context:CREATE TABLE death (note VARCHAR)
###human: What are the notes of the death events which has substring 'East'?
###assistant: SELECT note FROM death WHERE note LIKE '%East%' |
###context:CREATE TABLE addresses (line_1 VARCHAR, line_2 VARCHAR)
###human: what are all the addresses including line 1 and line 2?
###assistant: SELECT line_1, line_2 FROM addresses |
###context:CREATE TABLE Courses (Id VARCHAR)
###human: How many courses in total are listed?
###assistant: SELECT COUNT(*) FROM Courses |
###context:CREATE TABLE Courses (course_description VARCHAR, course_name VARCHAR)
###human: How is the math course described?
###assistant: SELECT course_description FROM Courses WHERE course_name = 'math' |
###context:CREATE TABLE Addresses (zip_postcode VARCHAR, city VARCHAR)
###human: What is the zip code of the address in the city Port Chelsea?
###assistant: SELECT zip_postcode FROM Addresses WHERE city = 'Port Chelsea' |
###context:CREATE TABLE Degree_Programs (department_id VARCHAR); CREATE TABLE Departments (department_name VARCHAR, department_id VARCHAR)
###human: Which department offers the most number of degrees? List department name and id.
###assistant: SELECT T2.department_name, T1.department_id FROM Degree_Programs AS ... |
###context:CREATE TABLE degree_programs (department_id VARCHAR); CREATE TABLE departments (department_name VARCHAR, department_id VARCHAR)
###human: What is the name and id of the department with the most number of degrees ?
###assistant: SELECT t2.department_name, t1.department_id FROM degree_programs AS t1 JO... |
###context:CREATE TABLE Degree_Programs (department_id VARCHAR)
###human: How many departments offer any degree?
###assistant: SELECT COUNT(DISTINCT department_id) FROM Degree_Programs |
###context:CREATE TABLE Degree_Programs (degree_summary_name VARCHAR)
###human: How many different degree names are offered?
###assistant: SELECT COUNT(DISTINCT degree_summary_name) FROM Degree_Programs |
###context:CREATE TABLE Degree_Programs (department_id VARCHAR); CREATE TABLE Departments (department_id VARCHAR, department_name VARCHAR)
###human: How many degrees does the engineering department offer?
###assistant: SELECT COUNT(*) FROM Departments AS T1 JOIN Degree_Programs AS T2 ON T1.department_id = T2.de... |
###context:CREATE TABLE Sections (section_name VARCHAR, section_description VARCHAR)
###human: What are the names and descriptions of all the sections?
###assistant: SELECT section_name, section_description FROM Sections |
###context:CREATE TABLE Courses (course_name VARCHAR, course_id VARCHAR); CREATE TABLE Sections (course_id VARCHAR)
###human: What are the names and id of courses having at most 2 sections?
###assistant: SELECT T1.course_name, T1.course_id FROM Courses AS T1 JOIN Sections AS T2 ON T1.course_id = T2.course_id GR... |
###context:CREATE TABLE Sections (section_name VARCHAR)
###human: List the section_name in reversed lexicographical order.
###assistant: SELECT section_name FROM Sections ORDER BY section_name DESC |
###context:CREATE TABLE Student_Enrolment (semester_id VARCHAR); CREATE TABLE Semesters (semester_name VARCHAR, semester_id VARCHAR)
###human: What is the semester which most student registered in? Show both the name and the id.
###assistant: SELECT T1.semester_name, T1.semester_id FROM Semesters AS T1 JOIN Stu... |
###context:CREATE TABLE Departments (department_description VARCHAR, department_name VARCHAR)
###human: What is the description of the department whose name has the substring the computer?
###assistant: SELECT department_description FROM Departments WHERE department_name LIKE '%computer%' |
###context:CREATE TABLE Students (first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, student_id VARCHAR); CREATE TABLE Student_Enrolment (student_id VARCHAR)
###human: Who are enrolled in 2 degree programs in one semester? List the first name, middle name and last name and the id.
###assistant: SELECT ... |
###context:CREATE TABLE Degree_Programs (degree_program_id VARCHAR, degree_summary_name VARCHAR); CREATE TABLE Students (first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, student_id VARCHAR); CREATE TABLE Student_Enrolment (student_id VARCHAR, degree_program_id VARCHAR)
###human: Who is enrolled in a Bach... |
###context:CREATE TABLE Student_Enrolment (degree_program_id VARCHAR); CREATE TABLE Degree_Programs (degree_summary_name VARCHAR, degree_program_id VARCHAR)
###human: Find the kind of program which most number of students are enrolled in?
###assistant: SELECT T1.degree_summary_name FROM Degree_Programs AS T1 JO... |
###context:CREATE TABLE Degree_Programs (degree_program_id VARCHAR, degree_summary_name VARCHAR); CREATE TABLE Student_Enrolment (degree_program_id VARCHAR)
###human: Find the program which most number of students are enrolled in. List both the id and the summary.
###assistant: SELECT T1.degree_program_id, T1.d... |
###context:CREATE TABLE Students (student_id VARCHAR, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR); CREATE TABLE Student_Enrolment (student_id VARCHAR)
###human: Which student has enrolled for the most times in any program? List the id, first name, middle name, last name, the number of enrollments an... |
###context:CREATE TABLE Student_Enrolment (semester_name VARCHAR, semester_id VARCHAR); CREATE TABLE Semesters (semester_name VARCHAR, semester_id VARCHAR)
###human: Which semesters do not have any student enrolled? List the semester name.
###assistant: SELECT semester_name FROM Semesters WHERE NOT semester_id ... |
###context:CREATE TABLE Courses (course_name VARCHAR, course_id VARCHAR); CREATE TABLE Student_Enrolment_Courses (course_id VARCHAR)
###human: What are all the course names of the courses which ever have students enrolled in?
###assistant: SELECT DISTINCT T1.course_name FROM Courses AS T1 JOIN Student_Enrolment... |
###context:CREATE TABLE Courses (course_name VARCHAR, course_id VARCHAR); CREATE TABLE Student_Enrolment_Courses (course_id VARCHAR)
###human: What's the name of the course with most number of enrollments?
###assistant: SELECT T1.course_name FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_i... |
###context:CREATE TABLE Addresses (address_id VARCHAR, state_province_county VARCHAR); CREATE TABLE Students (last_name VARCHAR, current_address_id VARCHAR); CREATE TABLE Students (last_name VARCHAR, student_id VARCHAR); CREATE TABLE Student_Enrolment (student_id VARCHAR)
###human: Find the last name of the student... |
###context:CREATE TABLE Transcript_Contents (transcript_id VARCHAR); CREATE TABLE Transcripts (transcript_date VARCHAR, transcript_id VARCHAR)
###human: Show the date and id of the transcript with at least 2 course results.
###assistant: SELECT T2.transcript_date, T1.transcript_id FROM Transcript_Contents AS T1... |
###context:CREATE TABLE Students (cell_mobile_number VARCHAR, first_name VARCHAR, last_name VARCHAR)
###human: What is the phone number of the man with the first name Timmothy and the last name Ward?
###assistant: SELECT cell_mobile_number FROM Students WHERE first_name = 'Timmothy' AND last_name = 'Ward' |
###context:CREATE TABLE students (cell_mobile_number VARCHAR, first_name VARCHAR, last_name VARCHAR)
###human: What is the mobile phone number of the student named Timmothy Ward ?
###assistant: SELECT cell_mobile_number FROM students WHERE first_name = 'timmothy' AND last_name = 'ward' |
###context:CREATE TABLE Students (first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, date_first_registered VARCHAR)
###human: Who is the first student to register? List the first name, middle name and last name.
###assistant: SELECT first_name, middle_name, last_name FROM Students ORDER BY date_first_r... |
###context:CREATE TABLE Students (first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, date_left VARCHAR)
###human: Who is the earliest graduate of the school? List the first name, middle name and last name.
###assistant: SELECT first_name, middle_name, last_name FROM Students ORDER BY date_left LIMIT 1 |
###context:CREATE TABLE Students (first_name VARCHAR, current_address_id VARCHAR, permanent_address_id VARCHAR)
###human: Whose permanent address is different from his or her current address? List his or her first name.
###assistant: SELECT first_name FROM Students WHERE current_address_id <> permanent_address_... |
###context:CREATE TABLE Addresses (address_id VARCHAR, line_1 VARCHAR, line_2 VARCHAR); CREATE TABLE Students (current_address_id VARCHAR)
###human: Which address holds the most number of students currently? List the address id and all lines.
###assistant: SELECT T1.address_id, T1.line_1, T1.line_2 FROM Address... |
###context:CREATE TABLE Transcripts (transcript_date INTEGER)
###human: On average, when were the transcripts printed?
###assistant: SELECT AVG(transcript_date) FROM Transcripts |
###context:CREATE TABLE Transcripts (transcript_date VARCHAR, other_details VARCHAR)
###human: When is the first transcript released? List the date and details.
###assistant: SELECT transcript_date, other_details FROM Transcripts ORDER BY transcript_date LIMIT 1 |
###context:CREATE TABLE Transcripts (Id VARCHAR)
###human: How many transcripts are released?
###assistant: SELECT COUNT(*) FROM Transcripts |
###context:CREATE TABLE Transcripts (transcript_date VARCHAR)
###human: What is the last transcript release date?
###assistant: SELECT transcript_date FROM Transcripts ORDER BY transcript_date DESC LIMIT 1 |
###context:CREATE TABLE Transcript_Contents (student_course_id VARCHAR)
###human: How many times at most can a course enrollment result show in different transcripts? Also show the course enrollment id.
###assistant: SELECT COUNT(*), student_course_id FROM Transcript_Contents GROUP BY student_course_id ORDER BY... |
###context:CREATE TABLE Transcript_Contents (transcript_id VARCHAR); CREATE TABLE Transcripts (transcript_date VARCHAR, transcript_id VARCHAR)
###human: Show the date of the transcript which shows the least number of results, also list the id.
###assistant: SELECT T2.transcript_date, T1.transcript_id FROM Trans... |
###context:CREATE TABLE Degree_Programs (degree_program_id VARCHAR); CREATE TABLE Student_Enrolment (semester_id VARCHAR, degree_program_id VARCHAR)
###human: Find the semester when both Master students and Bachelor students got enrolled in.
###assistant: SELECT DISTINCT T2.semester_id FROM Degree_Programs AS T... |
###context:CREATE TABLE Students (current_address_id VARCHAR)
###human: How many different addresses do the students currently live?
###assistant: SELECT COUNT(DISTINCT current_address_id) FROM Students |
###context:CREATE TABLE Students (other_student_details VARCHAR)
###human: List all the student details in reversed lexicographical order.
###assistant: SELECT other_student_details FROM Students ORDER BY other_student_details DESC |
###context:CREATE TABLE Sections (section_description VARCHAR, section_name VARCHAR)
###human: Describe the section h.
###assistant: SELECT section_description FROM Sections WHERE section_name = 'h' |
###context:CREATE TABLE students (first_name VARCHAR, permanent_address_id VARCHAR, cell_mobile_number VARCHAR); CREATE TABLE addresses (address_id VARCHAR, country VARCHAR)
###human: Find the first name of the students who permanently live in the country Haiti or have the cell phone number 09700166582 .
###ass... |
###context:CREATE TABLE Cartoon (Title VARCHAR, title VARCHAR)
###human: List the title of all cartoons in alphabetical order.
###assistant: SELECT Title FROM Cartoon ORDER BY title |
###context:CREATE TABLE Cartoon (Title VARCHAR, Directed_by VARCHAR)
###human: List all cartoon directed by "Ben Jones".
###assistant: SELECT Title FROM Cartoon WHERE Directed_by = "Ben Jones" |
###context:CREATE TABLE Cartoon (Written_by VARCHAR)
###human: How many cartoons were written by "Joseph Kuhr"?
###assistant: SELECT COUNT(*) FROM Cartoon WHERE Written_by = "Joseph Kuhr" |
###context:CREATE TABLE Cartoon (title VARCHAR, Directed_by VARCHAR, Original_air_date VARCHAR)
###human: list all cartoon titles and their directors ordered by their air date
###assistant: SELECT title, Directed_by FROM Cartoon ORDER BY Original_air_date |
###context:CREATE TABLE Cartoon (Title VARCHAR, Directed_by VARCHAR)
###human: List the title of all cartoon directed by "Ben Jones" or "Brandon Vietti".
###assistant: SELECT Title FROM Cartoon WHERE Directed_by = "Ben Jones" OR Directed_by = "Brandon Vietti" |
###context:CREATE TABLE TV_Channel (Country VARCHAR)
###human: Which country has the most of TV Channels? List the country and number of TV Channels it has.
###assistant: SELECT Country, COUNT(*) FROM TV_Channel GROUP BY Country ORDER BY COUNT(*) DESC LIMIT 1 |
###context:CREATE TABLE TV_Channel (series_name VARCHAR, content VARCHAR)
###human: List the number of different series names and contents in the TV Channel table.
###assistant: SELECT COUNT(DISTINCT series_name), COUNT(DISTINCT content) FROM TV_Channel |
###context:CREATE TABLE TV_Channel (Content VARCHAR, series_name VARCHAR)
###human: What is the content of TV Channel with serial name "Sky Radio"?
###assistant: SELECT Content FROM TV_Channel WHERE series_name = "Sky Radio" |
###context:CREATE TABLE TV_Channel (Package_Option VARCHAR, series_name VARCHAR)
###human: What is the Package Option of TV Channel with serial name "Sky Radio"?
###assistant: SELECT Package_Option FROM TV_Channel WHERE series_name = "Sky Radio" |
###context:CREATE TABLE TV_Channel (LANGUAGE VARCHAR)
###human: How many TV Channel using language English?
###assistant: SELECT COUNT(*) FROM TV_Channel WHERE LANGUAGE = "English" |
###context:CREATE TABLE TV_Channel (LANGUAGE VARCHAR)
###human: List the language used least number of TV Channel. List language and number of TV Channel.
###assistant: SELECT LANGUAGE, COUNT(*) FROM TV_Channel GROUP BY LANGUAGE ORDER BY COUNT(*) LIMIT 1 |
###context:CREATE TABLE TV_Channel (LANGUAGE VARCHAR)
###human: List each language and the number of TV Channels using it.
###assistant: SELECT LANGUAGE, COUNT(*) FROM TV_Channel GROUP BY LANGUAGE |
###context:CREATE TABLE Cartoon (Channel VARCHAR, Title VARCHAR); CREATE TABLE TV_Channel (series_name VARCHAR, id VARCHAR)
###human: What is the TV Channel that shows the cartoon "The Rise of the Blue Beetle!"? List the TV Channel's series name.
###assistant: SELECT T1.series_name FROM TV_Channel AS T1 JOIN Ca... |
###context:CREATE TABLE Cartoon (Title VARCHAR, Channel VARCHAR); CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR)
###human: List the title of all Cartoons showed on TV Channel with series name "Sky Radio".
###assistant: SELECT T2.Title FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WH... |
###context:CREATE TABLE TV_series (Episode VARCHAR, rating VARCHAR)
###human: List the Episode of all TV series sorted by rating.
###assistant: SELECT Episode FROM TV_series ORDER BY rating |
###context:CREATE TABLE TV_series (Episode VARCHAR, Rating VARCHAR)
###human: List top 3 highest Rating TV series. List the TV series's Episode and Rating.
###assistant: SELECT Episode, Rating FROM TV_series ORDER BY Rating DESC LIMIT 3 |
###context:CREATE TABLE TV_series (SHARE INTEGER)
###human: What is minimum and maximum share of TV series?
###assistant: SELECT MAX(SHARE), MIN(SHARE) FROM TV_series |
###context:CREATE TABLE TV_series (Air_Date VARCHAR, Episode VARCHAR)
###human: What is the air date of TV series with Episode "A Love of a Lifetime"?
###assistant: SELECT Air_Date FROM TV_series WHERE Episode = "A Love of a Lifetime" |
###context:CREATE TABLE TV_series (Weekly_Rank VARCHAR, Episode VARCHAR)
###human: What is Weekly Rank of TV series with Episode "A Love of a Lifetime"?
###assistant: SELECT Weekly_Rank FROM TV_series WHERE Episode = "A Love of a Lifetime" |
###context:CREATE TABLE TV_series (Channel VARCHAR, Episode VARCHAR); CREATE TABLE TV_Channel (series_name VARCHAR, id VARCHAR)
###human: What is the TV Channel of TV series with Episode "A Love of a Lifetime"? List the TV Channel's series name.
###assistant: SELECT T1.series_name FROM TV_Channel AS T1 JOIN TV_... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.