dataset_name
stringclasses
1 value
split
stringclasses
1 value
prompt_raw
stringlengths
897
4.29k
messages
listlengths
2
2
question
stringlengths
18
174
sample_id
int64
0
1.03k
db_id
stringclasses
20 values
groundtruth_sqls
listlengths
1
1
spider
dev
Database Schema: Table battle battle.bulgarian_commander: TEXT - bulgarian commander Sample values: "Kaloyan", "Unknown", "Boril", "Ivan Asen II" battle.id: INT PRIMARY KEY Sample values: "1", "2", "3", "4", "5" battle.latin_commander: TEXT - latin commander Sample values: "Baldwin I", "Unknown", "Th...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What is the ship id and name that caused most total injuries?
500
battle_death
[ "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" ]
spider
dev
Database Schema: Table battle battle.bulgarian_commander: TEXT - bulgarian commander Sample values: "Kaloyan" battle.id: INT PRIMARY KEY Sample values: "1", "2", "3", "4", "5" battle.latin_commander: TEXT - latin commander Sample values: "Baldwin I", "Henry I" battle.result: TEXT Sample values:...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What are the distinct battle names which are between bulgarian commander 'Kaloyan' and latin commander 'Baldwin I'?
501
battle_death
[ "SELECT name FROM battle WHERE bulgarian_commander = 'Kaloyan' AND latin_commander = 'Baldwin I'" ]
spider
dev
Database Schema: Table battle battle.bulgarian_commander: TEXT - bulgarian commander Sample values: "Kaloyan", "Unknown", "Boril", "Ivan Asen II" battle.id: INT PRIMARY KEY Sample values: "1", "2", "3", "4", "5" battle.latin_commander: TEXT - latin commander Sample values: "Baldwin I", "Unknown", "Th...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
How many different results are there for the battles?
502
battle_death
[ "SELECT count(DISTINCT RESULT) FROM battle" ]
spider
dev
Database Schema: Table battle battle.bulgarian_commander: TEXT - bulgarian commander Sample values: "Kaloyan", "Unknown", "Boril", "Ivan Asen II" battle.id: INT PRIMARY KEY Sample values: "1", "2", "3", "4", "5" battle.latin_commander: TEXT - latin commander Sample values: "Baldwin I", "Unknown", "Th...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
How many battles did not lose any ship with tonnage '225'?
503
battle_death
[ "SELECT count(*) FROM battle WHERE id NOT IN ( SELECT lost_in_battle FROM ship WHERE tonnage = '225' );" ]
spider
dev
Database Schema: Table battle battle.bulgarian_commander: TEXT - bulgarian commander Sample values: "Kaloyan", "Unknown", "Boril", "Ivan Asen II" battle.id: INT PRIMARY KEY Sample values: "1", "2", "3", "4", "5" battle.latin_commander: TEXT - latin commander Sample values: "Baldwin I", "Unknown", "Th...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
List the name and date the battle that has lost the ship named 'Lettice' and the ship named 'HMS Atalanta'
504
battle_death
[ "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'" ]
spider
dev
Database Schema: Table battle battle.bulgarian_commander: TEXT - bulgarian commander Sample values: "Kaloyan", "Unknown", "Boril", "Ivan Asen II" battle.id: INT PRIMARY KEY Sample values: "1", "2", "3", "4", "5" battle.latin_commander: TEXT - latin commander Sample values: "Baldwin I", "Unknown", "Th...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Show names, results and bulgarian commanders of the battles with no ships lost in the 'English Channel'.
505
battle_death
[ "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'" ]
spider
dev
Database Schema: Table battle battle.bulgarian_commander: TEXT - bulgarian commander Sample values: "Kaloyan", "Unknown", "Boril", "Ivan Asen II" battle.id: INT PRIMARY KEY Sample values: "1", "2", "3", "4", "5" battle.latin_commander: TEXT - latin commander Sample values: "Baldwin I", "Unknown", "Th...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What are the notes of the death events which has substring 'East'?
506
battle_death
[ "SELECT note FROM death WHERE note LIKE '%East%'" ]
spider
dev
Database Schema: Table Addresses Addresses.line_3: VARCHAR(255) - line 3 Contains null values: True Addresses.other_address_details: VARCHAR(255) - other address details Contains null values: True Addresses.city: VARCHAR(255) Sample values: "Port Chelsea", "Lake Laishafurt", "Goodwinhaven", "Port Eva...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
what are all the addresses including line 1 and line 2?
507
student_transcripts_tracking
[ "SELECT line_1 , line_2 FROM addresses" ]
spider
dev
Database Schema: Table Addresses Addresses.line_3: VARCHAR(255) - line 3 Contains null values: True Addresses.other_address_details: VARCHAR(255) - other address details Contains null values: True Addresses.city: VARCHAR(255) Sample values: "Port Chelsea", "Lake Laishafurt", "Goodwinhaven", "Port Eva...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What is the first and second line for all addresses?
508
student_transcripts_tracking
[ "SELECT line_1 , line_2 FROM addresses" ]
spider
dev
Database Schema: Table Transcripts Transcripts.other_details: VARCHAR(255) - other details Contains null values: True Transcripts.transcript_id: INTEGER PRIMARY KEY - transcript id Sample values: "1", "2", "3", "4", "5" Table Student_Enrolment Student_Enrolment.degree_program_id: INTEGER - degree progra...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
How many courses in total are listed?
509
student_transcripts_tracking
[ "SELECT count(*) FROM Courses" ]
spider
dev
Database Schema: Table Transcripts Transcripts.other_details: VARCHAR(255) - other details Contains null values: True Transcripts.transcript_id: INTEGER PRIMARY KEY - transcript id Sample values: "1", "2", "3", "4", "5" Table Student_Enrolment Student_Enrolment.degree_program_id: INTEGER - degree progra...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
How many courses are there?
510
student_transcripts_tracking
[ "SELECT count(*) FROM Courses" ]
spider
dev
Database Schema: Table Transcripts Transcripts.other_details: VARCHAR(255) - other details Contains null values: True Transcripts.transcript_id: INTEGER PRIMARY KEY - transcript id Sample values: "1", "2", "3", "4", "5" Table Student_Enrolment Student_Enrolment.degree_program_id: INTEGER - degree progra...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
How is the math course described?
511
student_transcripts_tracking
[ "SELECT course_description FROM Courses WHERE course_name = 'math'" ]
spider
dev
Database Schema: Table Student_Enrolment Student_Enrolment.degree_program_id: INTEGER - degree program id Sample values: "12", "4", "10", "5", "3" Student_Enrolment.student_enrolment_id: INTEGER PRIMARY KEY - student enrolment id Sample values: "1", "2", "3", "4", "5" Student_Enrolment.student_id: INTEGE...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What are the descriptions for all the math courses?
512
student_transcripts_tracking
[ "SELECT course_description FROM Courses WHERE course_name = 'math'" ]
spider
dev
Database Schema: Table Addresses Addresses.line_3: VARCHAR(255) - line 3 Contains null values: True Addresses.other_address_details: VARCHAR(255) - other address details Contains null values: True Addresses.city: VARCHAR(255) Sample values: "Port Chelsea", "Port Oceane", "Port Evanston", "Port Elvisf...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What is the zip code of the address in the city Port Chelsea?
513
student_transcripts_tracking
[ "SELECT zip_postcode FROM Addresses WHERE city = 'Port Chelsea'" ]
spider
dev
Database Schema: Table Addresses Addresses.line_3: VARCHAR(255) - line 3 Contains null values: True Addresses.other_address_details: VARCHAR(255) - other address details Contains null values: True Addresses.city: VARCHAR(255) Sample values: "Port Chelsea", "Port Oceane", "Port Evanston", "Port Elvisf...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What is the zip code for Port Chelsea?
514
student_transcripts_tracking
[ "SELECT zip_postcode FROM Addresses WHERE city = 'Port Chelsea'" ]
spider
dev
Database Schema: Table Degree_Programs Degree_Programs.degree_summary_name: VARCHAR(255) - degree summary name Sample values: "Master", "Bachelor", "PHD" Degree_Programs.degree_program_id: INTEGER PRIMARY KEY - degree program id Sample values: "1", "2", "3", "4", "5" Degree_Programs.department_id: INTEGE...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Which department offers the most number of degrees? List department name and id.
515
student_transcripts_tracking
[ "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" ]
spider
dev
Database Schema: Table Degree_Programs Degree_Programs.degree_summary_name: VARCHAR(255) - degree summary name Sample values: "Master", "Bachelor", "PHD" Degree_Programs.degree_program_id: INTEGER PRIMARY KEY - degree program id Sample values: "1", "2", "3", "4", "5" Degree_Programs.department_id: INTEGE...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What is the name and id of the department with the most number of degrees ?
516
student_transcripts_tracking
[ "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" ]
spider
dev
Database Schema: Table Degree_Programs Degree_Programs.degree_summary_name: VARCHAR(255) - degree summary name Sample values: "Master", "Bachelor", "PHD" Degree_Programs.degree_program_id: INTEGER PRIMARY KEY - degree program id Sample values: "1", "2", "3", "4", "5" Degree_Programs.other_details: VARCHA...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
How many departments offer any degree?
517
student_transcripts_tracking
[ "SELECT count(DISTINCT department_id) FROM Degree_Programs" ]
spider
dev
Database Schema: Table Degree_Programs Degree_Programs.degree_summary_name: VARCHAR(255) - degree summary name Sample values: "Master", "Bachelor", "PHD" Degree_Programs.degree_program_id: INTEGER PRIMARY KEY - degree program id Sample values: "1", "2", "3", "4", "5" Degree_Programs.other_details: VARCHA...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
How many different departments offer degrees?
518
student_transcripts_tracking
[ "SELECT count(DISTINCT department_id) FROM Degree_Programs" ]
spider
dev
Database Schema: Table Degree_Programs Degree_Programs.degree_summary_name: VARCHAR(255) - degree summary name Sample values: "Master", "Bachelor", "PHD" Degree_Programs.degree_program_id: INTEGER PRIMARY KEY - degree program id Sample values: "1", "2", "3", "4", "5" Degree_Programs.degree_summary_descri...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
How many different degree names are offered?
519
student_transcripts_tracking
[ "SELECT count(DISTINCT degree_summary_name) FROM Degree_Programs" ]
spider
dev
Database Schema: Table Degree_Programs Degree_Programs.degree_summary_name: VARCHAR(255) - degree summary name Sample values: "Master", "Bachelor", "PHD" Degree_Programs.degree_program_id: INTEGER PRIMARY KEY - degree program id Sample values: "1", "2", "3", "4", "5" Degree_Programs.other_details: VARCHA...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
How many different degrees are offered?
520
student_transcripts_tracking
[ "SELECT count(DISTINCT degree_summary_name) FROM Degree_Programs" ]
spider
dev
Database Schema: Table Sections Sections.section_name: VARCHAR(255) - section name Sample values: "a", "b", "c", "d", "e" Sections.section_id: INTEGER PRIMARY KEY - section id Sample values: "1", "2", "3", "4", "5" Sections.course_id: INTEGER - course id Sample values: "9", "2", "8", "1", "5" Table ...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
How many degrees does the engineering department offer?
521
student_transcripts_tracking
[ "SELECT count(*) FROM Departments AS T1 JOIN Degree_Programs AS T2 ON T1.department_id = T2.department_id WHERE T1.department_name = 'engineer'" ]
spider
dev
Database Schema: Table Sections Sections.section_name: VARCHAR(255) - section name Sample values: "a", "b", "c", "d", "e" Sections.section_id: INTEGER PRIMARY KEY - section id Sample values: "1", "2", "3", "4", "5" Sections.course_id: INTEGER - course id Sample values: "9", "2", "8", "1", "5" Secti...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
How many degrees does the engineering department have?
522
student_transcripts_tracking
[ "SELECT count(*) FROM Departments AS T1 JOIN Degree_Programs AS T2 ON T1.department_id = T2.department_id WHERE T1.department_name = 'engineer'" ]
spider
dev
Database Schema: Table Sections Sections.section_name: VARCHAR(255) - section name Sample values: "a", "b", "c", "d", "e" Sections.section_id: INTEGER PRIMARY KEY - section id Sample values: "1", "2", "3", "4", "5" Sections.course_id: INTEGER - course id Sample values: "9", "2", "8", "1", "5" Secti...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What are the names and descriptions of all the sections?
523
student_transcripts_tracking
[ "SELECT section_name , section_description FROM Sections" ]
spider
dev
Database Schema: Table Sections Sections.section_name: VARCHAR(255) - section name Sample values: "a", "b", "c", "d", "e" Sections.section_id: INTEGER PRIMARY KEY - section id Sample values: "1", "2", "3", "4", "5" Sections.course_id: INTEGER - course id Sample values: "9", "2", "8", "1", "5" Secti...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What are the names and descriptions for all the sections?
524
student_transcripts_tracking
[ "SELECT section_name , section_description FROM Sections" ]
spider
dev
Database Schema: Table Sections Sections.section_name: VARCHAR(255) - section name Sample values: "a", "b", "c", "d", "e" Sections.section_id: INTEGER PRIMARY KEY - section id Sample values: "2" Sections.course_id: INTEGER - course id Sample values: "2" Table Student_Enrolment Student_Enrolment.de...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What are the names and id of courses having at most 2 sections?
525
student_transcripts_tracking
[ "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" ]
spider
dev
Database Schema: Table Sections Sections.section_name: VARCHAR(255) - section name Sample values: "a", "b", "c", "d", "e" Sections.section_id: INTEGER PRIMARY KEY - section id Sample values: "2" Sections.course_id: INTEGER - course id Sample values: "2" Table Student_Enrolment Student_Enrolment.de...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What are the names and ids of every course with less than 2 sections?
526
student_transcripts_tracking
[ "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" ]
spider
dev
Database Schema: Table Sections Sections.section_name: VARCHAR(255) - section name Sample values: "a", "b", "c", "d", "e" Sections.section_id: INTEGER PRIMARY KEY - section id Sample values: "1", "2", "3", "4", "5" Sections.course_id: INTEGER - course id Sample values: "9", "2", "8", "1", "5" Secti...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
List the section_name in reversed lexicographical order.
527
student_transcripts_tracking
[ "SELECT section_name FROM Sections ORDER BY section_name DESC" ]
spider
dev
Database Schema: Table Sections Sections.section_name: VARCHAR(255) - section name Sample values: "a", "b", "c", "d", "e" Sections.section_id: INTEGER PRIMARY KEY - section id Sample values: "1", "2", "3", "4", "5" Sections.course_id: INTEGER - course id Sample values: "9", "2", "8", "1", "5" Secti...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What are the names of the sections in reverse alphabetical order?
528
student_transcripts_tracking
[ "SELECT section_name FROM Sections ORDER BY section_name DESC" ]
spider
dev
Database Schema: Table Semesters Semesters.semester_name: VARCHAR(255) - semester name Sample values: "spring 2010", "summer 2010", "fall 2010", "winter 2010", "spring 2018" Semesters.semester_id: INTEGER PRIMARY KEY - semester id Sample values: "1", "2", "3", "4", "5" Semesters.semester_description: VAR...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What is the semester which most student registered in? Show both the name and the id.
529
student_transcripts_tracking
[ "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" ]
spider
dev
Database Schema: Table Semesters Semesters.semester_name: VARCHAR(255) - semester name Sample values: "spring 2010", "summer 2010", "fall 2010", "winter 2010", "spring 2018" Semesters.semester_id: INTEGER PRIMARY KEY - semester id Sample values: "1", "2", "3", "4", "5" Table Student_Enrolment Student_En...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
For each semester, what is the name and id of the one with the most students registered?
530
student_transcripts_tracking
[ "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" ]
spider
dev
Database Schema: Table Transcripts Transcripts.other_details: VARCHAR(255) - other details Contains null values: True Transcripts.transcript_id: INTEGER PRIMARY KEY - transcript id Sample values: "1", "2", "3", "4", "5" Table Sections Sections.section_name: VARCHAR(255) - section name Sample values:...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What is the description of the department whose name has the substring the computer?
531
student_transcripts_tracking
[ "SELECT department_description FROM Departments WHERE department_name LIKE '%computer%'" ]
spider
dev
Database Schema: Table Sections Sections.section_name: VARCHAR(255) - section name Sample values: "a", "b", "c", "d", "e" Sections.section_id: INTEGER PRIMARY KEY - section id Sample values: "1", "2", "3", "4", "5" Sections.course_id: INTEGER - course id Sample values: "9", "2", "8", "1", "5" Secti...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What is the department description for the one whose name has the word computer?
532
student_transcripts_tracking
[ "SELECT department_description FROM Departments WHERE department_name LIKE '%computer%'" ]
spider
dev
Database Schema: Table Degree_Programs Degree_Programs.degree_summary_name: VARCHAR(255) - degree summary name Sample values: "Master", "Bachelor", "PHD" Degree_Programs.degree_program_id: INTEGER PRIMARY KEY - degree program id Sample values: "2" Degree_Programs.department_id: INTEGER - department id ...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Who are enrolled in 2 degree programs in one semester? List the first name, middle name and last name and the id.
533
student_transcripts_tracking
[ "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" ]
spider
dev
Database Schema: Table Degree_Programs Degree_Programs.degree_summary_name: VARCHAR(255) - degree summary name Sample values: "Master", "Bachelor", "PHD" Degree_Programs.degree_program_id: INTEGER PRIMARY KEY - degree program id Sample values: "2" Degree_Programs.other_details: VARCHAR(255) - other detai...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What are the first, middle, and last names, along with the ids, of all students who enrolled in 2 degree programs in one semester?
534
student_transcripts_tracking
[ "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" ]
spider
dev
Database Schema: Table Degree_Programs Degree_Programs.degree_summary_name: VARCHAR(255) - degree summary name Sample values: "Bachelor" Degree_Programs.degree_program_id: INTEGER PRIMARY KEY - degree program id Sample values: "1", "2", "3", "4", "5" Degree_Programs.department_id: INTEGER - department id...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Who is enrolled in a Bachelor degree program? List the first name, middle name, last name.
535
student_transcripts_tracking
[ "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'" ]
spider
dev
Database Schema: Table Degree_Programs Degree_Programs.degree_summary_name: VARCHAR(255) - degree summary name Sample values: "Bachelor" Degree_Programs.degree_program_id: INTEGER PRIMARY KEY - degree program id Sample values: "1", "2", "3", "4", "5" Degree_Programs.other_details: VARCHAR(255) - other de...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What are the first, middle, and last names for everybody enrolled in a Bachelors program?
536
student_transcripts_tracking
[ "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'" ]
spider
dev
Database Schema: Table Degree_Programs Degree_Programs.degree_summary_name: VARCHAR(255) - degree summary name Sample values: "Master", "Bachelor", "PHD" Degree_Programs.degree_program_id: INTEGER PRIMARY KEY - degree program id Sample values: "1", "2", "3", "4", "5" Degree_Programs.department_id: INTEGE...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Find the kind of program which most number of students are enrolled in?
537
student_transcripts_tracking
[ "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" ]
spider
dev
Database Schema: Table Degree_Programs Degree_Programs.degree_summary_name: VARCHAR(255) - degree summary name Sample values: "Master", "Bachelor", "PHD" Degree_Programs.degree_program_id: INTEGER PRIMARY KEY - degree program id Sample values: "1", "2", "3", "4", "5" Degree_Programs.degree_summary_descri...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What is the degree summary name that has the most number of students enrolled?
538
student_transcripts_tracking
[ "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" ]
spider
dev
Database Schema: Table Degree_Programs Degree_Programs.degree_summary_name: VARCHAR(255) - degree summary name Sample values: "Master", "Bachelor", "PHD" Degree_Programs.degree_program_id: INTEGER PRIMARY KEY - degree program id Sample values: "1", "2", "3", "4", "5" Degree_Programs.other_details: VARCHA...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Find the program which most number of students are enrolled in. List both the id and the summary.
539
student_transcripts_tracking
[ "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" ]
spider
dev
Database Schema: Table Degree_Programs Degree_Programs.degree_summary_name: VARCHAR(255) - degree summary name Sample values: "Master", "Bachelor", "PHD" Degree_Programs.degree_program_id: INTEGER PRIMARY KEY - degree program id Sample values: "1", "2", "3", "4", "5" Degree_Programs.other_details: VARCHA...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What is the program id and the summary of the degree that has the most students enrolled?
540
student_transcripts_tracking
[ "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" ]
spider
dev
Database Schema: Table Student_Enrolment Student_Enrolment.degree_program_id: INTEGER - degree program id Sample values: "12", "4", "10", "5", "3" Student_Enrolment.student_enrolment_id: INTEGER PRIMARY KEY - student enrolment id Sample values: "1", "2", "3", "4", "5" Student_Enrolment.student_id: INTEGE...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
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.
541
student_transcripts_tracking
[ "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" ]
spider
dev
Database Schema: Table Student_Enrolment Student_Enrolment.degree_program_id: INTEGER - degree program id Sample values: "12", "4", "10", "5", "3" Student_Enrolment.student_enrolment_id: INTEGER PRIMARY KEY - student enrolment id Sample values: "1", "2", "3", "4", "5" Student_Enrolment.student_id: INTEGE...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What is the first, middle, and last name, along with the id and number of enrollments, for the student who enrolled the most in any program?
542
student_transcripts_tracking
[ "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" ]
spider
dev
Database Schema: Table Sections Sections.section_name: VARCHAR(255) - section name Sample values: "a", "b", "c", "d", "e" Sections.section_id: INTEGER PRIMARY KEY - section id Sample values: "1", "2", "3", "4", "5" Sections.course_id: INTEGER - course id Sample values: "9", "2", "8", "1", "5" Table ...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Which semesters do not have any student enrolled? List the semester name.
543
student_transcripts_tracking
[ "SELECT semester_name FROM Semesters WHERE semester_id NOT IN( SELECT semester_id FROM Student_Enrolment )" ]
spider
dev
Database Schema: Table Sections Sections.section_name: VARCHAR(255) - section name Sample values: "a", "b", "c", "d", "e" Sections.section_id: INTEGER PRIMARY KEY - section id Sample values: "1", "2", "3", "4", "5" Sections.course_id: INTEGER - course id Sample values: "9", "2", "8", "1", "5" Table ...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What is the name of the semester with no students enrolled?
544
student_transcripts_tracking
[ "SELECT semester_name FROM Semesters WHERE semester_id NOT IN( SELECT semester_id FROM Student_Enrolment )" ]
spider
dev
Database Schema: Table Student_Enrolment Student_Enrolment.degree_program_id: INTEGER - degree program id Sample values: "12", "4", "10", "5", "3" Student_Enrolment.student_enrolment_id: INTEGER PRIMARY KEY - student enrolment id Sample values: "1", "2", "3", "4", "5" Student_Enrolment.student_id: INTEGE...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What are all the course names of the courses which ever have students enrolled in?
545
student_transcripts_tracking
[ "SELECT DISTINCT T1.course_name FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_id = T2.course_id" ]
spider
dev
Database Schema: Table Sections Sections.section_name: VARCHAR(255) - section name Sample values: "a", "b", "c", "d", "e" Sections.section_id: INTEGER PRIMARY KEY - section id Sample values: "1", "2", "3", "4", "5" Sections.course_id: INTEGER - course id Sample values: "9", "2", "8", "1", "5" Table ...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What are the names of all courses that have some students enrolled?
546
student_transcripts_tracking
[ "SELECT DISTINCT T1.course_name FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_id = T2.course_id" ]
spider
dev
Database Schema: Table Student_Enrolment Student_Enrolment.degree_program_id: INTEGER - degree program id Sample values: "12", "4", "10", "5", "3" Student_Enrolment.student_enrolment_id: INTEGER PRIMARY KEY - student enrolment id Sample values: "1", "2", "3", "4", "5" Student_Enrolment.student_id: INTEGE...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What's the name of the course with most number of enrollments?
547
student_transcripts_tracking
[ "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" ]
spider
dev
Database Schema: Table Sections Sections.section_name: VARCHAR(255) - section name Sample values: "a", "b", "c", "d", "e" Sections.section_id: INTEGER PRIMARY KEY - section id Sample values: "1", "2", "3", "4", "5" Sections.course_id: INTEGER - course id Sample values: "9", "2", "8", "1", "5" Table ...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What is the name of the course with the most students enrolled?
548
student_transcripts_tracking
[ "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" ]
spider
dev
Database Schema: Table Student_Enrolment Student_Enrolment.degree_program_id: INTEGER - degree program id Sample values: "12", "4", "10", "5", "3" Student_Enrolment.student_enrolment_id: INTEGER PRIMARY KEY - student enrolment id Sample values: "1", "2", "3", "4", "5" Student_Enrolment.student_id: INTEGE...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Find the last name of the students who currently live in the state of North Carolina but have not registered in any degree program.
549
student_transcripts_tracking
[ "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" ]
spider
dev
Database Schema: Table Student_Enrolment Student_Enrolment.degree_program_id: INTEGER - degree program id Sample values: "12", "4", "10", "5", "3" Student_Enrolment.student_enrolment_id: INTEGER PRIMARY KEY - student enrolment id Sample values: "1", "2", "3", "4", "5" Student_Enrolment.student_id: INTEGE...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What are the last name of the students who live in North Carolina but have not registered in any degree programs?
550
student_transcripts_tracking
[ "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" ]
spider
dev
Database Schema: Table Transcripts Transcripts.other_details: VARCHAR(255) - other details Contains null values: True Transcripts.transcript_id: INTEGER PRIMARY KEY - transcript id Sample values: "2" Transcripts.transcript_date: DATETIME - transcript date Sample values: "1988-04-30 01:19:47", "1975-1...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Show the date and id of the transcript with at least 2 course results.
551
student_transcripts_tracking
[ "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" ]
spider
dev
Database Schema: Table Transcripts Transcripts.other_details: VARCHAR(255) - other details Contains null values: True Transcripts.transcript_id: INTEGER PRIMARY KEY - transcript id Sample values: "2" Transcripts.transcript_date: DATETIME - transcript date Sample values: "1988-04-30 01:19:47", "1975-1...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What is the date and id of the transcript with at least 2 courses listed?
552
student_transcripts_tracking
[ "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" ]
spider
dev
Database Schema: Table Transcripts Transcripts.other_details: VARCHAR(255) - other details Contains null values: True Transcripts.transcript_id: INTEGER PRIMARY KEY - transcript id Sample values: "1", "2", "3", "4", "5" Table Addresses Addresses.line_3: VARCHAR(255) - line 3 Contains null values: Tr...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What is the phone number of the man with the first name Timmothy and the last name Ward?
553
student_transcripts_tracking
[ "SELECT cell_mobile_number FROM Students WHERE first_name = 'Timmothy' AND last_name = 'Ward'" ]
spider
dev
Database Schema: Table Student_Enrolment Student_Enrolment.degree_program_id: INTEGER - degree program id Sample values: "12", "4", "10", "5", "3" Student_Enrolment.student_enrolment_id: INTEGER PRIMARY KEY - student enrolment id Sample values: "1", "2", "3", "4", "5" Student_Enrolment.student_id: INTEGE...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What is the mobile phone number of the student named Timmothy Ward ?
554
student_transcripts_tracking
[ "select cell_mobile_number from students where first_name = 'timmothy' and last_name = 'ward'" ]
spider
dev
Database Schema: Table Student_Enrolment Student_Enrolment.degree_program_id: INTEGER - degree program id Sample values: "12", "4", "10", "5", "3" Student_Enrolment.student_enrolment_id: INTEGER PRIMARY KEY - student enrolment id Sample values: "1", "2", "3", "4", "5" Student_Enrolment.student_id: INTEGE...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Who is the first student to register? List the first name, middle name and last name.
555
student_transcripts_tracking
[ "SELECT first_name , middle_name , last_name FROM Students ORDER BY date_first_registered ASC LIMIT 1" ]
spider
dev
Database Schema: Table Student_Enrolment Student_Enrolment.degree_program_id: INTEGER - degree program id Sample values: "12", "4", "10", "5", "3" Student_Enrolment.student_enrolment_id: INTEGER PRIMARY KEY - student enrolment id Sample values: "1", "2", "3", "4", "5" Student_Enrolment.student_id: INTEGE...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What is the first, middle, and last name of the first student to register?
556
student_transcripts_tracking
[ "SELECT first_name , middle_name , last_name FROM Students ORDER BY date_first_registered ASC LIMIT 1" ]
spider
dev
Database Schema: Table Transcripts Transcripts.other_details: VARCHAR(255) - other details Contains null values: True Transcripts.transcript_id: INTEGER PRIMARY KEY - transcript id Sample values: "1", "2", "3", "4", "5" Table Degree_Programs Degree_Programs.degree_summary_name: VARCHAR(255) - degree sum...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Who is the earliest graduate of the school? List the first name, middle name and last name.
557
student_transcripts_tracking
[ "SELECT first_name , middle_name , last_name FROM Students ORDER BY date_left ASC LIMIT 1" ]
spider
dev
Database Schema: Table Student_Enrolment Student_Enrolment.degree_program_id: INTEGER - degree program id Sample values: "12", "4", "10", "5", "3" Student_Enrolment.student_enrolment_id: INTEGER PRIMARY KEY - student enrolment id Sample values: "1", "2", "3", "4", "5" Student_Enrolment.student_id: INTEGE...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What is the first, middle, and last name of the earliest school graduate?
558
student_transcripts_tracking
[ "SELECT first_name , middle_name , last_name FROM Students ORDER BY date_left ASC LIMIT 1" ]
spider
dev
Database Schema: Table Addresses Addresses.line_3: VARCHAR(255) - line 3 Contains null values: True Addresses.other_address_details: VARCHAR(255) - other address details Contains null values: True Addresses.city: VARCHAR(255) Sample values: "Port Chelsea", "Lake Laishafurt", "Goodwinhaven", "Port Eva...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Whose permanent address is different from his or her current address? List his or her first name.
559
student_transcripts_tracking
[ "SELECT first_name FROM Students WHERE current_address_id != permanent_address_id" ]
spider
dev
Database Schema: Table Addresses Addresses.line_3: VARCHAR(255) - line 3 Contains null values: True Addresses.other_address_details: VARCHAR(255) - other address details Contains null values: True Addresses.city: VARCHAR(255) Sample values: "Port Chelsea", "Lake Laishafurt", "Goodwinhaven", "Port Eva...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What is the first name of the student whose permanent address is different from his or her current one?
560
student_transcripts_tracking
[ "SELECT first_name FROM Students WHERE current_address_id != permanent_address_id" ]
spider
dev
Database Schema: Table Addresses Addresses.line_3: VARCHAR(255) - line 3 Contains null values: True Addresses.other_address_details: VARCHAR(255) - other address details Contains null values: True Addresses.city: VARCHAR(255) Sample values: "Port Chelsea", "Lake Laishafurt", "Goodwinhaven", "Port Eva...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Which address holds the most number of students currently? List the address id and all lines.
561
student_transcripts_tracking
[ "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" ]
spider
dev
Database Schema: Table Addresses Addresses.line_3: VARCHAR(255) - line 3 Contains null values: True Addresses.other_address_details: VARCHAR(255) - other address details Contains null values: True Addresses.city: VARCHAR(255) Sample values: "Port Chelsea", "Lake Laishafurt", "Goodwinhaven", "Port Eva...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What is the id, line 1, and line 2 of the address with the most students?
562
student_transcripts_tracking
[ "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" ]
spider
dev
Database Schema: Table Transcripts Transcripts.other_details: VARCHAR(255) - other details Contains null values: True Transcripts.transcript_id: INTEGER PRIMARY KEY - transcript id Sample values: "1", "2", "3", "4", "5" Transcripts.transcript_date: DATETIME - transcript date Sample values: "1988-04-3...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
On average, when were the transcripts printed?
563
student_transcripts_tracking
[ "SELECT avg(transcript_date) FROM Transcripts" ]
spider
dev
Database Schema: Table Transcripts Transcripts.other_details: VARCHAR(255) - other details Contains null values: True Transcripts.transcript_id: INTEGER PRIMARY KEY - transcript id Sample values: "1", "2", "3", "4", "5" Transcripts.transcript_date: DATETIME - transcript date Sample values: "1988-04-3...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What is the average transcript date?
564
student_transcripts_tracking
[ "SELECT avg(transcript_date) FROM Transcripts" ]
spider
dev
Database Schema: Table Transcripts Transcripts.other_details: VARCHAR(255) - other details Contains null values: True Transcripts.transcript_id: INTEGER PRIMARY KEY - transcript id Sample values: "1", "2", "3", "4", "5" Transcripts.transcript_date: DATETIME - transcript date Sample values: "1988-04-3...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
When is the first transcript released? List the date and details.
565
student_transcripts_tracking
[ "SELECT transcript_date , other_details FROM Transcripts ORDER BY transcript_date ASC LIMIT 1" ]
spider
dev
Database Schema: Table Transcripts Transcripts.other_details: VARCHAR(255) - other details Contains null values: True Transcripts.transcript_id: INTEGER PRIMARY KEY - transcript id Sample values: "1", "2", "3", "4", "5" Transcripts.transcript_date: DATETIME - transcript date Sample values: "1988-04-3...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What is the earliest date of a transcript release, and what details can you tell me?
566
student_transcripts_tracking
[ "SELECT transcript_date , other_details FROM Transcripts ORDER BY transcript_date ASC LIMIT 1" ]
spider
dev
Database Schema: Table Transcripts Transcripts.other_details: VARCHAR(255) - other details Contains null values: True Transcripts.transcript_id: INTEGER PRIMARY KEY - transcript id Sample values: "1", "2", "3", "4", "5" Transcripts.transcript_date: DATETIME - transcript date Sample values: "1988-04-3...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
How many transcripts are released?
567
student_transcripts_tracking
[ "SELECT count(*) FROM Transcripts" ]
spider
dev
Database Schema: Table Transcripts Transcripts.other_details: VARCHAR(255) - other details Contains null values: True Transcripts.transcript_id: INTEGER PRIMARY KEY - transcript id Sample values: "1", "2", "3", "4", "5" Transcripts.transcript_date: DATETIME - transcript date Sample values: "1988-04-3...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
How many transcripts are listed?
568
student_transcripts_tracking
[ "SELECT count(*) FROM Transcripts" ]
spider
dev
Database Schema: Table Transcripts Transcripts.other_details: VARCHAR(255) - other details Contains null values: True Transcripts.transcript_id: INTEGER PRIMARY KEY - transcript id Sample values: "1", "2", "3", "4", "5" Transcripts.transcript_date: DATETIME - transcript date Sample values: "1988-04-3...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What is the last transcript release date?
569
student_transcripts_tracking
[ "SELECT transcript_date FROM Transcripts ORDER BY transcript_date DESC LIMIT 1" ]
spider
dev
Database Schema: Table Transcripts Transcripts.other_details: VARCHAR(255) - other details Contains null values: True Transcripts.transcript_id: INTEGER PRIMARY KEY - transcript id Sample values: "1", "2", "3", "4", "5" Transcripts.transcript_date: DATETIME - transcript date Sample values: "1988-04-3...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
When was the last transcript released?
570
student_transcripts_tracking
[ "SELECT transcript_date FROM Transcripts ORDER BY transcript_date DESC LIMIT 1" ]
spider
dev
Database Schema: Table Student_Enrolment Student_Enrolment.degree_program_id: INTEGER - degree program id Sample values: "12", "4", "10", "5", "3" Student_Enrolment.student_enrolment_id: INTEGER PRIMARY KEY - student enrolment id Sample values: "1", "2", "3", "4", "5" Student_Enrolment.student_id: INTEGE...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
How many times at most can a course enrollment result show in different transcripts? Also show the course enrollment id.
571
student_transcripts_tracking
[ "SELECT count(*) , student_course_id FROM Transcript_Contents GROUP BY student_course_id ORDER BY count(*) DESC LIMIT 1" ]
spider
dev
Database Schema: Table Student_Enrolment Student_Enrolment.degree_program_id: INTEGER - degree program id Sample values: "12", "4", "10", "5", "3" Student_Enrolment.student_enrolment_id: INTEGER PRIMARY KEY - student enrolment id Sample values: "1", "2", "3", "4", "5" Student_Enrolment.student_id: INTEGE...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What is the maximum number of times that a course shows up in different transcripts and what is that course's enrollment id?
572
student_transcripts_tracking
[ "SELECT count(*) , student_course_id FROM Transcript_Contents GROUP BY student_course_id ORDER BY count(*) DESC LIMIT 1" ]
spider
dev
Database Schema: Table Transcripts Transcripts.other_details: VARCHAR(255) - other details Contains null values: True Transcripts.transcript_id: INTEGER PRIMARY KEY - transcript id Sample values: "1", "2", "3", "4", "5" Transcripts.transcript_date: DATETIME - transcript date Sample values: "1988-04-3...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Show the date of the transcript which shows the least number of results, also list the id.
573
student_transcripts_tracking
[ "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(*) ASC LIMIT 1" ]
spider
dev
Database Schema: Table Transcripts Transcripts.other_details: VARCHAR(255) - other details Contains null values: True Transcripts.transcript_id: INTEGER PRIMARY KEY - transcript id Sample values: "1", "2", "3", "4", "5" Transcripts.transcript_date: DATETIME - transcript date Sample values: "1988-04-3...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What is the date and id of the transcript with the least number of results?
574
student_transcripts_tracking
[ "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(*) ASC LIMIT 1" ]
spider
dev
Database Schema: Table Semesters Semesters.semester_name: VARCHAR(255) - semester name Sample values: "spring 2010", "summer 2010", "fall 2010", "winter 2010", "spring 2018" Semesters.semester_id: INTEGER PRIMARY KEY - semester id Sample values: "1", "2", "3", "4", "5" Semesters.semester_description: VAR...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Find the semester when both Master students and Bachelor students got enrolled in.
575
student_transcripts_tracking
[ "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_progr...
spider
dev
Database Schema: Table Semesters Semesters.semester_name: VARCHAR(255) - semester name Sample values: "spring 2010", "summer 2010", "fall 2010", "winter 2010", "spring 2018" Semesters.semester_id: INTEGER PRIMARY KEY - semester id Sample values: "1", "2", "3", "4", "5" Table Degree_Programs Degree_Progr...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What is the id of the semester that had both Masters and Bachelors students enrolled?
576
student_transcripts_tracking
[ "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_progr...
spider
dev
Database Schema: Table Addresses Addresses.line_3: VARCHAR(255) - line 3 Contains null values: True Addresses.other_address_details: VARCHAR(255) - other address details Contains null values: True Addresses.city: VARCHAR(255) Sample values: "Port Chelsea", "Lake Laishafurt", "Goodwinhaven", "Port Eva...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
How many different addresses do the students currently live?
577
student_transcripts_tracking
[ "SELECT count(DISTINCT current_address_id) FROM Students" ]
spider
dev
Database Schema: Table Addresses Addresses.line_3: VARCHAR(255) - line 3 Contains null values: True Addresses.other_address_details: VARCHAR(255) - other address details Contains null values: True Addresses.city: VARCHAR(255) Sample values: "Port Chelsea", "Lake Laishafurt", "Goodwinhaven", "Port Eva...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What are the different addresses that have students living there?
578
student_transcripts_tracking
[ "SELECT count(DISTINCT current_address_id) FROM Students" ]
spider
dev
Database Schema: Table Student_Enrolment Student_Enrolment.degree_program_id: INTEGER - degree program id Sample values: "12", "4", "10", "5", "3" Student_Enrolment.student_enrolment_id: INTEGER PRIMARY KEY - student enrolment id Sample values: "1", "2", "3", "4", "5" Student_Enrolment.student_id: INTEGE...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
List all the student details in reversed lexicographical order.
579
student_transcripts_tracking
[ "SELECT other_student_details FROM Students ORDER BY other_student_details DESC" ]
spider
dev
Database Schema: Table Transcripts Transcripts.other_details: VARCHAR(255) - other details Contains null values: True Transcripts.transcript_id: INTEGER PRIMARY KEY - transcript id Sample values: "1", "2", "3", "4", "5" Table Student_Enrolment Student_Enrolment.degree_program_id: INTEGER - degree progra...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What other details can you tell me about students in reverse alphabetical order?
580
student_transcripts_tracking
[ "SELECT other_student_details FROM Students ORDER BY other_student_details DESC" ]
spider
dev
Database Schema: Table Sections Sections.section_name: VARCHAR(255) - section name Sample values: "h" Sections.section_id: INTEGER PRIMARY KEY - section id Sample values: "1", "2", "3", "4", "5" Sections.course_id: INTEGER - course id Sample values: "9", "2", "8", "1", "5" Sections.section_descript...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Describe the section h.
581
student_transcripts_tracking
[ "SELECT section_description FROM Sections WHERE section_name = 'h'" ]
spider
dev
Database Schema: Table Sections Sections.section_name: VARCHAR(255) - section name Sample values: "h" Sections.section_id: INTEGER PRIMARY KEY - section id Sample values: "1", "2", "3", "4", "5" Sections.course_id: INTEGER - course id Sample values: "9", "2", "8", "1", "5" Sections.section_descript...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What is the description for the section named h?
582
student_transcripts_tracking
[ "SELECT section_description FROM Sections WHERE section_name = 'h'" ]
spider
dev
Database Schema: Table Addresses Addresses.line_3: VARCHAR(255) - line 3 Contains null values: True Addresses.other_address_details: VARCHAR(255) - other address details Contains null values: True Addresses.country: VARCHAR(255) Sample values: "Haiti" Addresses.line_2: VARCHAR(255) - line 2 Sam...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Find the first name of the students who permanently live in the country Haiti or have the cell phone number 09700166582 .
583
student_transcripts_tracking
[ "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'" ]
spider
dev
Database Schema: Table Addresses Addresses.line_3: VARCHAR(255) - line 3 Contains null values: True Addresses.other_address_details: VARCHAR(255) - other address details Contains null values: True Addresses.city: VARCHAR(255) Sample values: "Port Chelsea", "Lake Laishafurt", "Goodwinhaven", "Port Eva...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What are the first names of the students who live in Haiti permanently or have the cell phone number 09700166582 ?
584
student_transcripts_tracking
[ "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'" ]
spider
dev
Database Schema: Table TV_series TV_series.Viewers_m: TEXT - viewers m Sample values: "9.16", "8.23", "6.94", "6.75", "6.06" TV_series.Air_Date: TEXT - air date Sample values: "September 24, 2007", "October 1, 2007", "October 8, 2007", "October 15, 2007", "October 22, 2007" TV_series.Channel: TEXT - chan...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
List the title of all cartoons in alphabetical order.
585
tvshow
[ "SELECT Title FROM Cartoon ORDER BY title" ]
spider
dev
Database Schema: Table TV_series TV_series.Viewers_m: TEXT - viewers m Sample values: "9.16", "8.23", "6.94", "6.75", "6.06" TV_series.Air_Date: TEXT - air date Sample values: "September 24, 2007", "October 1, 2007", "October 8, 2007", "October 15, 2007", "October 22, 2007" TV_series.Channel: TEXT - chan...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What are the titles of the cartoons sorted alphabetically?
586
tvshow
[ "SELECT Title FROM Cartoon ORDER BY title" ]
spider
dev
Database Schema: Table TV_series TV_series.Viewers_m: TEXT - viewers m Sample values: "9.16", "8.23", "6.94", "6.75", "6.06" TV_series.Air_Date: TEXT - air date Sample values: "September 24, 2007", "October 1, 2007", "October 8, 2007", "October 15, 2007", "October 22, 2007" TV_series.Channel: TEXT - chan...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
List all cartoon directed by "Ben Jones".
587
tvshow
[ "SELECT Title FROM Cartoon WHERE Directed_by = \"Ben Jones\";" ]
spider
dev
Database Schema: Table TV_series TV_series.Viewers_m: TEXT - viewers m Sample values: "9.16", "8.23", "6.94", "6.75", "6.06" TV_series.Air_Date: TEXT - air date Sample values: "September 24, 2007", "October 1, 2007", "October 8, 2007", "October 15, 2007", "October 22, 2007" TV_series.Channel: TEXT - chan...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What are the names of all cartoons directed by Ben Jones?
588
tvshow
[ "SELECT Title FROM Cartoon WHERE Directed_by = \"Ben Jones\";" ]
spider
dev
Database Schema: Table TV_series TV_series.Viewers_m: TEXT - viewers m Sample values: "9.16", "8.23", "6.94", "6.75", "6.06" TV_series.Air_Date: TEXT - air date Sample values: "September 24, 2007", "October 1, 2007", "October 8, 2007", "October 15, 2007", "October 22, 2007" TV_series.Channel: TEXT - chan...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
How many cartoons were written by "Joseph Kuhr"?
589
tvshow
[ "SELECT count(*) FROM Cartoon WHERE Written_by = \"Joseph Kuhr\";" ]
spider
dev
Database Schema: Table TV_series TV_series.Viewers_m: TEXT - viewers m Sample values: "9.16", "8.23", "6.94", "6.75", "6.06" TV_series.Air_Date: TEXT - air date Sample values: "September 24, 2007", "October 1, 2007", "October 8, 2007", "October 15, 2007", "October 22, 2007" TV_series.Channel: TEXT - chan...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What is the number of cartoones written by Joseph Kuhr?
590
tvshow
[ "SELECT count(*) FROM Cartoon WHERE Written_by = \"Joseph Kuhr\";" ]
spider
dev
Database Schema: Table TV_series TV_series.Viewers_m: TEXT - viewers m Sample values: "9.16", "8.23", "6.94", "6.75", "6.06" TV_series.Air_Date: TEXT - air date Sample values: "September 24, 2007", "October 1, 2007", "October 8, 2007", "October 15, 2007", "October 22, 2007" TV_series.Channel: TEXT - chan...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
list all cartoon titles and their directors ordered by their air date
591
tvshow
[ "SELECT title , Directed_by FROM Cartoon ORDER BY Original_air_date" ]
spider
dev
Database Schema: Table TV_series TV_series.Viewers_m: TEXT - viewers m Sample values: "9.16", "8.23", "6.94", "6.75", "6.06" TV_series.Air_Date: TEXT - air date Sample values: "September 24, 2007", "October 1, 2007", "October 8, 2007", "October 15, 2007", "October 22, 2007" TV_series.Channel: TEXT - chan...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What is the name and directors of all the cartoons that are ordered by air date?
592
tvshow
[ "SELECT title , Directed_by FROM Cartoon ORDER BY Original_air_date" ]
spider
dev
Database Schema: Table TV_series TV_series.Viewers_m: TEXT - viewers m Sample values: "9.16", "8.23", "6.94", "6.75", "6.06" TV_series.Air_Date: TEXT - air date Sample values: "September 24, 2007", "October 1, 2007", "October 8, 2007", "October 15, 2007", "October 22, 2007" TV_series.Channel: TEXT - chan...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
List the title of all cartoon directed by "Ben Jones" or "Brandon Vietti".
593
tvshow
[ "SELECT Title FROM Cartoon WHERE Directed_by = \"Ben Jones\" OR Directed_by = \"Brandon Vietti\";" ]
spider
dev
Database Schema: Table TV_series TV_series.Viewers_m: TEXT - viewers m Sample values: "9.16", "8.23", "6.94", "6.75", "6.06" TV_series.Air_Date: TEXT - air date Sample values: "September 24, 2007", "October 1, 2007", "October 8, 2007", "October 15, 2007", "October 22, 2007" TV_series.Channel: TEXT - chan...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What are the titles of all cartoons directed by Ben Jones or Brandon Vietti?
594
tvshow
[ "SELECT Title FROM Cartoon WHERE Directed_by = \"Ben Jones\" OR Directed_by = \"Brandon Vietti\";" ]
spider
dev
Database Schema: Table TV_series TV_series.Viewers_m: TEXT - viewers m Sample values: "9.16", "8.23", "6.94", "6.75", "6.06" TV_series.Air_Date: TEXT - air date Sample values: "September 24, 2007", "October 1, 2007", "October 8, 2007", "October 15, 2007", "October 22, 2007" TV_series.Channel: TEXT - chan...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Which country has the most of TV Channels? List the country and number of TV Channels it has.
595
tvshow
[ "SELECT Country , count(*) FROM TV_Channel GROUP BY Country ORDER BY count(*) DESC LIMIT 1;" ]
spider
dev
Database Schema: Table TV_series TV_series.Viewers_m: TEXT - viewers m Sample values: "9.16", "8.23", "6.94", "6.75", "6.06" TV_series.Air_Date: TEXT - air date Sample values: "September 24, 2007", "October 1, 2007", "October 8, 2007", "October 15, 2007", "October 22, 2007" TV_series.Channel: TEXT - chan...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What is the country with the most number of TV Channels and how many does it have?
596
tvshow
[ "SELECT Country , count(*) FROM TV_Channel GROUP BY Country ORDER BY count(*) DESC LIMIT 1;" ]
spider
dev
Database Schema: Table TV_series TV_series.Viewers_m: TEXT - viewers m Sample values: "9.16", "8.23", "6.94", "6.75", "6.06" TV_series.Air_Date: TEXT - air date Sample values: "September 24, 2007", "October 1, 2007", "October 8, 2007", "October 15, 2007", "October 22, 2007" TV_series.Channel: TEXT - chan...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
List the number of different series names and contents in the TV Channel table.
597
tvshow
[ "SELECT count(DISTINCT series_name) , count(DISTINCT content) FROM TV_Channel;" ]
spider
dev
Database Schema: Table TV_series TV_series.Viewers_m: TEXT - viewers m Sample values: "9.16", "8.23", "6.94", "6.75", "6.06" TV_series.Air_Date: TEXT - air date Sample values: "September 24, 2007", "October 1, 2007", "October 8, 2007", "October 15, 2007", "October 22, 2007" TV_series.Channel: TEXT - chan...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
How many different series and contents are listed in the TV Channel table?
598
tvshow
[ "SELECT count(DISTINCT series_name) , count(DISTINCT content) FROM TV_Channel;" ]
spider
dev
Database Schema: Table TV_series TV_series.Viewers_m: TEXT - viewers m Sample values: "9.16", "8.23", "6.94", "6.75", "6.06" TV_series.Air_Date: TEXT - air date Sample values: "September 24, 2007", "October 1, 2007", "October 8, 2007", "October 15, 2007", "October 22, 2007" TV_series.Channel: TEXT - chan...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What is the content of TV Channel with serial name "Sky Radio"?
599
tvshow
[ "SELECT Content FROM TV_Channel WHERE series_name = \"Sky Radio\";" ]