Unnamed: 0
int64 0
60k
| input
stringlengths 76
562
| answer
stringlengths 18
557
|
---|---|---|
4,200 | <question>: Find the name of tourney that has more than 10 matches. <context>: CREATE TABLE matches (tourney_name VARCHAR) | SELECT tourney_name FROM matches GROUP BY tourney_name HAVING COUNT(*) > 10 |
4,201 | <question>: List the names of all winners who played in both 2013 and 2016. <context>: CREATE TABLE matches (winner_name VARCHAR, YEAR VARCHAR) | SELECT winner_name FROM matches WHERE YEAR = 2013 INTERSECT SELECT winner_name FROM matches WHERE YEAR = 2016 |
4,202 | <question>: List the number of all matches who played in years of 2013 or 2016. <context>: CREATE TABLE matches (YEAR VARCHAR) | SELECT COUNT(*) FROM matches WHERE YEAR = 2013 OR YEAR = 2016 |
4,203 | <question>: What are the country code and first name of the players who won in both tourney WTA Championships and Australian Open? <context>: CREATE TABLE matches (winner_id VARCHAR, tourney_name VARCHAR); CREATE TABLE players (country_code VARCHAR, first_name VARCHAR, player_id VARCHAR) | SELECT T1.country_code, T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id WHERE T2.tourney_name = 'WTA Championships' INTERSECT SELECT T1.country_code, T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id WHERE T2.tourney_name = 'Australian Open' |
4,204 | <question>: Find the first name and country code of the oldest player. <context>: CREATE TABLE players (first_name VARCHAR, country_code VARCHAR, birth_date VARCHAR) | SELECT first_name, country_code FROM players ORDER BY birth_date LIMIT 1 |
4,205 | <question>: List the first and last name of all players in the order of birth date. <context>: CREATE TABLE players (first_name VARCHAR, last_name VARCHAR, birth_date VARCHAR) | SELECT first_name, last_name FROM players ORDER BY birth_date |
4,206 | <question>: List the first and last name of all players who are left / L hand in the order of birth date. <context>: CREATE TABLE players (first_name VARCHAR, last_name VARCHAR, hand VARCHAR, birth_date VARCHAR) | SELECT first_name, last_name FROM players WHERE hand = 'L' ORDER BY birth_date |
4,207 | <question>: Find the first name and country code of the player who did the most number of tours. <context>: CREATE TABLE players (country_code VARCHAR, first_name VARCHAR, player_id VARCHAR); CREATE TABLE rankings (player_id VARCHAR, tours VARCHAR) | SELECT T1.country_code, T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id ORDER BY T2.tours DESC LIMIT 1 |
4,208 | <question>: Find the year that has the most number of matches. <context>: CREATE TABLE matches (YEAR VARCHAR) | SELECT YEAR FROM matches GROUP BY YEAR ORDER BY COUNT(*) DESC LIMIT 1 |
4,209 | <question>: Find the name and rank points of the winner who won the most times. <context>: CREATE TABLE matches (winner_name VARCHAR, winner_rank_points VARCHAR) | SELECT winner_name, winner_rank_points FROM matches GROUP BY winner_name ORDER BY COUNT(*) DESC LIMIT 1 |
4,210 | <question>: Find the name of the winner who has the highest rank points and participated in the Australian Open tourney. <context>: CREATE TABLE matches (winner_name VARCHAR, tourney_name VARCHAR, winner_rank_points VARCHAR) | SELECT winner_name FROM matches WHERE tourney_name = 'Australian Open' ORDER BY winner_rank_points DESC LIMIT 1 |
4,211 | <question>: find the names of loser and winner who played in the match with greatest number of minutes. <context>: CREATE TABLE matches (winner_name VARCHAR, loser_name VARCHAR, minutes VARCHAR) | SELECT winner_name, loser_name FROM matches ORDER BY minutes DESC LIMIT 1 |
4,212 | <question>: Find the average ranking for each player and their first name. <context>: CREATE TABLE players (first_name VARCHAR, player_id VARCHAR); CREATE TABLE rankings (player_id VARCHAR) | SELECT AVG(ranking), T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id GROUP BY T1.first_name |
4,213 | <question>: Find the total ranking points for each player and their first name. <context>: CREATE TABLE players (first_name VARCHAR, player_id VARCHAR); CREATE TABLE rankings (player_id VARCHAR) | SELECT SUM(ranking_points), T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id GROUP BY T1.first_name |
4,214 | <question>: find the number of players for each country. <context>: CREATE TABLE players (country_code VARCHAR) | SELECT COUNT(*), country_code FROM players GROUP BY country_code |
4,215 | <question>: find the code of the country where has the greatest number of players. <context>: CREATE TABLE players (country_code VARCHAR) | SELECT country_code FROM players GROUP BY country_code ORDER BY COUNT(*) DESC LIMIT 1 |
4,216 | <question>: Find the codes of countries that have more than 50 players. <context>: CREATE TABLE players (country_code VARCHAR) | SELECT country_code FROM players GROUP BY country_code HAVING COUNT(*) > 50 |
4,217 | <question>: Find the total number of tours for each ranking date. <context>: CREATE TABLE rankings (ranking_date VARCHAR, tours INTEGER) | SELECT SUM(tours), ranking_date FROM rankings GROUP BY ranking_date |
4,218 | <question>: Find the number of matches happened in each year. <context>: CREATE TABLE matches (YEAR VARCHAR) | SELECT COUNT(*), YEAR FROM matches GROUP BY YEAR |
4,219 | <question>: Find the name and rank of the 3 youngest winners across all matches. <context>: CREATE TABLE matches (winner_name VARCHAR, winner_rank VARCHAR, winner_age VARCHAR) | SELECT DISTINCT winner_name, winner_rank FROM matches ORDER BY winner_age LIMIT 3 |
4,220 | <question>: How many different winners both participated in the WTA Championships and were left handed? <context>: CREATE TABLE matches (winner_name VARCHAR, tourney_name VARCHAR, winner_hand VARCHAR) | SELECT COUNT(DISTINCT winner_name) FROM matches WHERE tourney_name = 'WTA Championships' AND winner_hand = 'L' |
4,221 | <question>: Find the first name, country code and birth date of the winner who has the highest rank points in all matches. <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) | SELECT T1.first_name, T1.country_code, T1.birth_date FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id ORDER BY T2.winner_rank_points DESC LIMIT 1 |
4,222 | <question>: Find the number of players for each hand type. <context>: CREATE TABLE players (hand VARCHAR) | SELECT COUNT(*), hand FROM players GROUP BY hand |
4,223 | <question>: How many ships ended up being 'Captured'? <context>: CREATE TABLE ship (disposition_of_ship VARCHAR) | SELECT COUNT(*) FROM ship WHERE disposition_of_ship = 'Captured' |
4,224 | <question>: List the name and tonnage ordered by in descending alphaetical order for the names. <context>: CREATE TABLE ship (name VARCHAR, tonnage VARCHAR) | SELECT name, tonnage FROM ship ORDER BY name DESC |
4,225 | <question>: List the name, date and result of each battle. <context>: CREATE TABLE battle (name VARCHAR, date VARCHAR) | SELECT name, date FROM battle |
4,226 | <question>: What is maximum and minimum death toll caused each time? <context>: CREATE TABLE death (killed INTEGER) | SELECT MAX(killed), MIN(killed) FROM death |
4,227 | <question>: What is the average number of injuries caused each time? <context>: CREATE TABLE death (injured INTEGER) | SELECT AVG(injured) FROM death |
4,228 | <question>: What are the death and injury situations caused by the ship with tonnage 't'? <context>: CREATE TABLE ship (Id VARCHAR); CREATE TABLE death (killed VARCHAR, injured VARCHAR, caused_by_ship_id VARCHAR) | SELECT T1.killed, T1.injured FROM death AS T1 JOIN ship AS t2 ON T1.caused_by_ship_id = T2.id WHERE T2.tonnage = 't' |
4,229 | <question>: What are the name and results of the battles when the bulgarian commander is not 'Boril' <context>: CREATE TABLE battle (name VARCHAR, RESULT VARCHAR, bulgarian_commander VARCHAR) | SELECT name, RESULT FROM battle WHERE bulgarian_commander <> 'Boril' |
4,230 | <question>: What are the different ids and names of the battles that lost any 'Brig' type shipes? <context>: CREATE TABLE ship (lost_in_battle VARCHAR, ship_type VARCHAR); CREATE TABLE battle (id VARCHAR, name VARCHAR) | SELECT DISTINCT T1.id, T1.name FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.ship_type = 'Brig' |
4,231 | <question>: What are the ids and names of the battles that led to more than 10 people killed in total. <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) | SELECT T1.id, T1.name FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle JOIN death AS T3 ON T2.id = T3.caused_by_ship_id GROUP BY T1.id HAVING SUM(T3.killed) > 10 |
4,232 | <question>: What is the ship id and name that caused most total injuries? <context>: CREATE TABLE death (caused_by_ship_id VARCHAR); CREATE TABLE ship (Id VARCHAR) | 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 |
4,233 | <question>: What are the distinct battle names which are between bulgarian commander 'Kaloyan' and latin commander 'Baldwin I'? <context>: CREATE TABLE battle (name VARCHAR, bulgarian_commander VARCHAR, latin_commander VARCHAR) | SELECT name FROM battle WHERE bulgarian_commander = 'Kaloyan' AND latin_commander = 'Baldwin I' |
4,234 | <question>: How many different results are there for the battles? <context>: CREATE TABLE battle (RESULT VARCHAR) | SELECT COUNT(DISTINCT RESULT) FROM battle |
4,235 | <question>: How many battles did not lose any ship with tonnage '225'? <context>: CREATE TABLE ship (id VARCHAR, lost_in_battle VARCHAR, tonnage VARCHAR); CREATE TABLE battle (id VARCHAR, lost_in_battle VARCHAR, tonnage VARCHAR) | SELECT COUNT(*) FROM battle WHERE NOT id IN (SELECT lost_in_battle FROM ship WHERE tonnage = '225') |
4,236 | <question>: List the name and date the battle that has lost the ship named 'Lettice' and the ship named 'HMS Atalanta' <context>: CREATE TABLE ship (lost_in_battle VARCHAR, name VARCHAR); CREATE TABLE battle (name VARCHAR, date VARCHAR, id VARCHAR) | SELECT T1.name, T1.date FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.name = 'Lettice' INTERSECT SELECT T1.name, T1.date FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.name = 'HMS Atalanta' |
4,237 | <question>: Show names, results and bulgarian commanders of the battles with no ships lost in the 'English Channel'. <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) | SELECT name, RESULT, bulgarian_commander FROM battle EXCEPT SELECT T1.name, T1.result, T1.bulgarian_commander FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.location = 'English Channel' |
4,238 | <question>: What are the notes of the death events which has substring 'East'? <context>: CREATE TABLE death (note VARCHAR) | SELECT note FROM death WHERE note LIKE '%East%' |
4,239 | <question>: what are all the addresses including line 1 and line 2? <context>: CREATE TABLE addresses (line_1 VARCHAR, line_2 VARCHAR) | SELECT line_1, line_2 FROM addresses |
4,240 | <question>: How many courses in total are listed? <context>: CREATE TABLE Courses (Id VARCHAR) | SELECT COUNT(*) FROM Courses |
4,241 | <question>: How is the math course described? <context>: CREATE TABLE Courses (course_description VARCHAR, course_name VARCHAR) | SELECT course_description FROM Courses WHERE course_name = 'math' |
4,242 | <question>: What is the zip code of the address in the city Port Chelsea? <context>: CREATE TABLE Addresses (zip_postcode VARCHAR, city VARCHAR) | SELECT zip_postcode FROM Addresses WHERE city = 'Port Chelsea' |
4,243 | <question>: Which department offers the most number of degrees? List department name and id. <context>: CREATE TABLE Degree_Programs (department_id VARCHAR); CREATE TABLE Departments (department_name VARCHAR, department_id VARCHAR) | SELECT T2.department_name, T1.department_id FROM Degree_Programs AS T1 JOIN Departments AS T2 ON T1.department_id = T2.department_id GROUP BY T1.department_id ORDER BY COUNT(*) DESC LIMIT 1 |
4,244 | <question>: What is the name and id of the department with the most number of degrees ? <context>: CREATE TABLE degree_programs (department_id VARCHAR); CREATE TABLE departments (department_name VARCHAR, department_id VARCHAR) | SELECT t2.department_name, t1.department_id FROM degree_programs AS t1 JOIN departments AS t2 ON t1.department_id = t2.department_id GROUP BY t1.department_id ORDER BY COUNT(*) DESC LIMIT 1 |
4,245 | <question>: How many departments offer any degree? <context>: CREATE TABLE Degree_Programs (department_id VARCHAR) | SELECT COUNT(DISTINCT department_id) FROM Degree_Programs |
4,246 | <question>: How many different degree names are offered? <context>: CREATE TABLE Degree_Programs (degree_summary_name VARCHAR) | SELECT COUNT(DISTINCT degree_summary_name) FROM Degree_Programs |
4,247 | <question>: How many degrees does the engineering department offer? <context>: CREATE TABLE Degree_Programs (department_id VARCHAR); CREATE TABLE Departments (department_id VARCHAR, department_name VARCHAR) | SELECT COUNT(*) FROM Departments AS T1 JOIN Degree_Programs AS T2 ON T1.department_id = T2.department_id WHERE T1.department_name = 'engineer' |
4,248 | <question>: What are the names and descriptions of all the sections? <context>: CREATE TABLE Sections (section_name VARCHAR, section_description VARCHAR) | SELECT section_name, section_description FROM Sections |
4,249 | <question>: What are the names and id of courses having at most 2 sections? <context>: CREATE TABLE Courses (course_name VARCHAR, course_id VARCHAR); CREATE TABLE Sections (course_id VARCHAR) | SELECT T1.course_name, T1.course_id FROM Courses AS T1 JOIN Sections AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_id HAVING COUNT(*) <= 2 |
4,250 | <question>: List the section_name in reversed lexicographical order. <context>: CREATE TABLE Sections (section_name VARCHAR) | SELECT section_name FROM Sections ORDER BY section_name DESC |
4,251 | <question>: What is the semester which most student registered in? Show both the name and the id. <context>: CREATE TABLE Student_Enrolment (semester_id VARCHAR); CREATE TABLE Semesters (semester_name VARCHAR, semester_id VARCHAR) | SELECT T1.semester_name, T1.semester_id FROM Semesters AS T1 JOIN Student_Enrolment AS T2 ON T1.semester_id = T2.semester_id GROUP BY T1.semester_id ORDER BY COUNT(*) DESC LIMIT 1 |
4,252 | <question>: What is the description of the department whose name has the substring the computer? <context>: CREATE TABLE Departments (department_description VARCHAR, department_name VARCHAR) | SELECT department_description FROM Departments WHERE department_name LIKE '%computer%' |
4,253 | <question>: Who are enrolled in 2 degree programs in one semester? List the first name, middle name and last name and the id. <context>: CREATE TABLE Students (first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, student_id VARCHAR); CREATE TABLE Student_Enrolment (student_id VARCHAR) | SELECT T1.first_name, T1.middle_name, T1.last_name, T1.student_id FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING COUNT(*) = 2 |
4,254 | <question>: Who is enrolled in a Bachelor degree program? List the first name, middle name, last name. <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) | SELECT DISTINCT T1.first_name, T1.middle_name, T1.last_name FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id JOIN Degree_Programs AS T3 ON T2.degree_program_id = T3.degree_program_id WHERE T3.degree_summary_name = 'Bachelor' |
4,255 | <question>: Find the kind of program which most number of students are enrolled in? <context>: CREATE TABLE Student_Enrolment (degree_program_id VARCHAR); CREATE TABLE Degree_Programs (degree_summary_name VARCHAR, degree_program_id VARCHAR) | SELECT T1.degree_summary_name FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id GROUP BY T1.degree_summary_name ORDER BY COUNT(*) DESC LIMIT 1 |
4,256 | <question>: Find the program which most number of students are enrolled in. List both the id and the summary. <context>: CREATE TABLE Degree_Programs (degree_program_id VARCHAR, degree_summary_name VARCHAR); CREATE TABLE Student_Enrolment (degree_program_id VARCHAR) | SELECT T1.degree_program_id, T1.degree_summary_name FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id GROUP BY T1.degree_program_id ORDER BY COUNT(*) DESC LIMIT 1 |
4,257 | <question>: Which student has enrolled for the most times in any program? List the id, first name, middle name, last name, the number of enrollments and student id. <context>: CREATE TABLE Students (student_id VARCHAR, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR); CREATE TABLE Student_Enrolment (student_id VARCHAR) | SELECT T1.student_id, T1.first_name, T1.middle_name, T1.last_name, COUNT(*), T1.student_id FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY COUNT(*) DESC LIMIT 1 |
4,258 | <question>: Which semesters do not have any student enrolled? List the semester name. <context>: CREATE TABLE Student_Enrolment (semester_name VARCHAR, semester_id VARCHAR); CREATE TABLE Semesters (semester_name VARCHAR, semester_id VARCHAR) | SELECT semester_name FROM Semesters WHERE NOT semester_id IN (SELECT semester_id FROM Student_Enrolment) |
4,259 | <question>: What are all the course names of the courses which ever have students enrolled in? <context>: CREATE TABLE Courses (course_name VARCHAR, course_id VARCHAR); CREATE TABLE Student_Enrolment_Courses (course_id VARCHAR) | SELECT DISTINCT T1.course_name FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_id = T2.course_id |
4,260 | <question>: What's the name of the course with most number of enrollments? <context>: CREATE TABLE Courses (course_name VARCHAR, course_id VARCHAR); CREATE TABLE Student_Enrolment_Courses (course_id VARCHAR) | SELECT T1.course_name FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name ORDER BY COUNT(*) DESC LIMIT 1 |
4,261 | <question>: Find the last name of the students who currently live in the state of North Carolina but have not registered in any degree program. <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) | SELECT T1.last_name FROM Students AS T1 JOIN Addresses AS T2 ON T1.current_address_id = T2.address_id WHERE T2.state_province_county = 'NorthCarolina' EXCEPT SELECT DISTINCT T3.last_name FROM Students AS T3 JOIN Student_Enrolment AS T4 ON T3.student_id = T4.student_id |
4,262 | <question>: Show the date and id of the transcript with at least 2 course results. <context>: CREATE TABLE Transcript_Contents (transcript_id VARCHAR); CREATE TABLE Transcripts (transcript_date VARCHAR, transcript_id VARCHAR) | SELECT T2.transcript_date, T1.transcript_id FROM Transcript_Contents AS T1 JOIN Transcripts AS T2 ON T1.transcript_id = T2.transcript_id GROUP BY T1.transcript_id HAVING COUNT(*) >= 2 |
4,263 | <question>: What is the phone number of the man with the first name Timmothy and the last name Ward? <context>: CREATE TABLE Students (cell_mobile_number VARCHAR, first_name VARCHAR, last_name VARCHAR) | SELECT cell_mobile_number FROM Students WHERE first_name = 'Timmothy' AND last_name = 'Ward' |
4,264 | <question>: What is the mobile phone number of the student named Timmothy Ward ? <context>: CREATE TABLE students (cell_mobile_number VARCHAR, first_name VARCHAR, last_name VARCHAR) | SELECT cell_mobile_number FROM students WHERE first_name = 'timmothy' AND last_name = 'ward' |
4,265 | <question>: Who is the first student to register? List the first name, middle name and last name. <context>: CREATE TABLE Students (first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, date_first_registered VARCHAR) | SELECT first_name, middle_name, last_name FROM Students ORDER BY date_first_registered LIMIT 1 |
4,266 | <question>: Who is the earliest graduate of the school? List the first name, middle name and last name. <context>: CREATE TABLE Students (first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, date_left VARCHAR) | SELECT first_name, middle_name, last_name FROM Students ORDER BY date_left LIMIT 1 |
4,267 | <question>: Whose permanent address is different from his or her current address? List his or her first name. <context>: CREATE TABLE Students (first_name VARCHAR, current_address_id VARCHAR, permanent_address_id VARCHAR) | SELECT first_name FROM Students WHERE current_address_id <> permanent_address_id |
4,268 | <question>: Which address holds the most number of students currently? List the address id and all lines. <context>: CREATE TABLE Addresses (address_id VARCHAR, line_1 VARCHAR, line_2 VARCHAR); CREATE TABLE Students (current_address_id VARCHAR) | SELECT T1.address_id, T1.line_1, T1.line_2 FROM Addresses AS T1 JOIN Students AS T2 ON T1.address_id = T2.current_address_id GROUP BY T1.address_id ORDER BY COUNT(*) DESC LIMIT 1 |
4,269 | <question>: On average, when were the transcripts printed? <context>: CREATE TABLE Transcripts (transcript_date INTEGER) | SELECT AVG(transcript_date) FROM Transcripts |
4,270 | <question>: When is the first transcript released? List the date and details. <context>: CREATE TABLE Transcripts (transcript_date VARCHAR, other_details VARCHAR) | SELECT transcript_date, other_details FROM Transcripts ORDER BY transcript_date LIMIT 1 |
4,271 | <question>: How many transcripts are released? <context>: CREATE TABLE Transcripts (Id VARCHAR) | SELECT COUNT(*) FROM Transcripts |
4,272 | <question>: What is the last transcript release date? <context>: CREATE TABLE Transcripts (transcript_date VARCHAR) | SELECT transcript_date FROM Transcripts ORDER BY transcript_date DESC LIMIT 1 |
4,273 | <question>: How many times at most can a course enrollment result show in different transcripts? Also show the course enrollment id. <context>: CREATE TABLE Transcript_Contents (student_course_id VARCHAR) | SELECT COUNT(*), student_course_id FROM Transcript_Contents GROUP BY student_course_id ORDER BY COUNT(*) DESC LIMIT 1 |
4,274 | <question>: Show the date of the transcript which shows the least number of results, also list the id. <context>: CREATE TABLE Transcript_Contents (transcript_id VARCHAR); CREATE TABLE Transcripts (transcript_date VARCHAR, transcript_id VARCHAR) | SELECT T2.transcript_date, T1.transcript_id FROM Transcript_Contents AS T1 JOIN Transcripts AS T2 ON T1.transcript_id = T2.transcript_id GROUP BY T1.transcript_id ORDER BY COUNT(*) LIMIT 1 |
4,275 | <question>: Find the semester when both Master students and Bachelor students got enrolled in. <context>: CREATE TABLE Degree_Programs (degree_program_id VARCHAR); CREATE TABLE Student_Enrolment (semester_id VARCHAR, degree_program_id VARCHAR) | SELECT DISTINCT T2.semester_id FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id WHERE degree_summary_name = 'Master' INTERSECT SELECT DISTINCT T2.semester_id FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id WHERE degree_summary_name = 'Bachelor' |
4,276 | <question>: How many different addresses do the students currently live? <context>: CREATE TABLE Students (current_address_id VARCHAR) | SELECT COUNT(DISTINCT current_address_id) FROM Students |
4,277 | <question>: List all the student details in reversed lexicographical order. <context>: CREATE TABLE Students (other_student_details VARCHAR) | SELECT other_student_details FROM Students ORDER BY other_student_details DESC |
4,278 | <question>: Describe the section h. <context>: CREATE TABLE Sections (section_description VARCHAR, section_name VARCHAR) | SELECT section_description FROM Sections WHERE section_name = 'h' |
4,279 | <question>: Find the first name of the students who permanently live in the country Haiti or have the cell phone number 09700166582 . <context>: CREATE TABLE students (first_name VARCHAR, permanent_address_id VARCHAR, cell_mobile_number VARCHAR); CREATE TABLE addresses (address_id VARCHAR, country VARCHAR) | SELECT t1.first_name FROM students AS t1 JOIN addresses AS t2 ON t1.permanent_address_id = t2.address_id WHERE t2.country = 'haiti' OR t1.cell_mobile_number = '09700166582' |
4,280 | <question>: List the title of all cartoons in alphabetical order. <context>: CREATE TABLE Cartoon (Title VARCHAR, title VARCHAR) | SELECT Title FROM Cartoon ORDER BY title |
4,281 | <question>: List all cartoon directed by "Ben Jones". <context>: CREATE TABLE Cartoon (Title VARCHAR, Directed_by VARCHAR) | SELECT Title FROM Cartoon WHERE Directed_by = "Ben Jones" |
4,282 | <question>: How many cartoons were written by "Joseph Kuhr"? <context>: CREATE TABLE Cartoon (Written_by VARCHAR) | SELECT COUNT(*) FROM Cartoon WHERE Written_by = "Joseph Kuhr" |
4,283 | <question>: list all cartoon titles and their directors ordered by their air date <context>: CREATE TABLE Cartoon (title VARCHAR, Directed_by VARCHAR, Original_air_date VARCHAR) | SELECT title, Directed_by FROM Cartoon ORDER BY Original_air_date |
4,284 | <question>: List the title of all cartoon directed by "Ben Jones" or "Brandon Vietti". <context>: CREATE TABLE Cartoon (Title VARCHAR, Directed_by VARCHAR) | SELECT Title FROM Cartoon WHERE Directed_by = "Ben Jones" OR Directed_by = "Brandon Vietti" |
4,285 | <question>: Which country has the most of TV Channels? List the country and number of TV Channels it has. <context>: CREATE TABLE TV_Channel (Country VARCHAR) | SELECT Country, COUNT(*) FROM TV_Channel GROUP BY Country ORDER BY COUNT(*) DESC LIMIT 1 |
4,286 | <question>: List the number of different series names and contents in the TV Channel table. <context>: CREATE TABLE TV_Channel (series_name VARCHAR, content VARCHAR) | SELECT COUNT(DISTINCT series_name), COUNT(DISTINCT content) FROM TV_Channel |
4,287 | <question>: What is the content of TV Channel with serial name "Sky Radio"? <context>: CREATE TABLE TV_Channel (Content VARCHAR, series_name VARCHAR) | SELECT Content FROM TV_Channel WHERE series_name = "Sky Radio" |
4,288 | <question>: What is the Package Option of TV Channel with serial name "Sky Radio"? <context>: CREATE TABLE TV_Channel (Package_Option VARCHAR, series_name VARCHAR) | SELECT Package_Option FROM TV_Channel WHERE series_name = "Sky Radio" |
4,289 | <question>: How many TV Channel using language English? <context>: CREATE TABLE TV_Channel (LANGUAGE VARCHAR) | SELECT COUNT(*) FROM TV_Channel WHERE LANGUAGE = "English" |
4,290 | <question>: List the language used least number of TV Channel. List language and number of TV Channel. <context>: CREATE TABLE TV_Channel (LANGUAGE VARCHAR) | SELECT LANGUAGE, COUNT(*) FROM TV_Channel GROUP BY LANGUAGE ORDER BY COUNT(*) LIMIT 1 |
4,291 | <question>: List each language and the number of TV Channels using it. <context>: CREATE TABLE TV_Channel (LANGUAGE VARCHAR) | SELECT LANGUAGE, COUNT(*) FROM TV_Channel GROUP BY LANGUAGE |
4,292 | <question>: What is the TV Channel that shows the cartoon "The Rise of the Blue Beetle!"? List the TV Channel's series name. <context>: CREATE TABLE Cartoon (Channel VARCHAR, Title VARCHAR); CREATE TABLE TV_Channel (series_name VARCHAR, id VARCHAR) | SELECT T1.series_name FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T2.Title = "The Rise of the Blue Beetle!" |
4,293 | <question>: List the title of all Cartoons showed on TV Channel with series name "Sky Radio". <context>: CREATE TABLE Cartoon (Title VARCHAR, Channel VARCHAR); CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR) | SELECT T2.Title FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T1.series_name = "Sky Radio" |
4,294 | <question>: List the Episode of all TV series sorted by rating. <context>: CREATE TABLE TV_series (Episode VARCHAR, rating VARCHAR) | SELECT Episode FROM TV_series ORDER BY rating |
4,295 | <question>: List top 3 highest Rating TV series. List the TV series's Episode and Rating. <context>: CREATE TABLE TV_series (Episode VARCHAR, Rating VARCHAR) | SELECT Episode, Rating FROM TV_series ORDER BY Rating DESC LIMIT 3 |
4,296 | <question>: What is minimum and maximum share of TV series? <context>: CREATE TABLE TV_series (SHARE INTEGER) | SELECT MAX(SHARE), MIN(SHARE) FROM TV_series |
4,297 | <question>: What is the air date of TV series with Episode "A Love of a Lifetime"? <context>: CREATE TABLE TV_series (Air_Date VARCHAR, Episode VARCHAR) | SELECT Air_Date FROM TV_series WHERE Episode = "A Love of a Lifetime" |
4,298 | <question>: What is Weekly Rank of TV series with Episode "A Love of a Lifetime"? <context>: CREATE TABLE TV_series (Weekly_Rank VARCHAR, Episode VARCHAR) | SELECT Weekly_Rank FROM TV_series WHERE Episode = "A Love of a Lifetime" |
4,299 | <question>: What is the TV Channel of TV series with Episode "A Love of a Lifetime"? List the TV Channel's series name. <context>: CREATE TABLE TV_series (Channel VARCHAR, Episode VARCHAR); CREATE TABLE TV_Channel (series_name VARCHAR, id VARCHAR) | SELECT T1.series_name FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T2.Episode = "A Love of a Lifetime" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.