idx
string
query
string
utterances
list
query_type
string
cosql-202
SELECT semester_name FROM Semesters WHERE semester_id NOT IN( SELECT semester_id FROM Student_Enrolment )
[ "Show me the names of semesters that do not have any students enrolled.", "Can you list the names of semesters without any students enrolled in them?", "Which semesters have no student enrollments?", "Which semesters do not have any student enrolled? List the semester name." ]
nested
cosql-203
SELECT avg(LifeExpectancy) FROM country WHERE Name NOT IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = "English" AND T2.IsOfficial = "T")
[ "What is the average life expectancy of countries where English is not an official language?", "Can you provide the average life expectancy for countries that do not have English as an official language?", "Can you show the average life expectancy for countries that do not have English as an official language?"...
nested
cosql-204
SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = "CVO" EXCEPT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = "APG"
[ "List the airlines that fly from CVO but not from APG.", "Which airlines fly from CVO but not from APG?", "List the airlines that have flights originating from CVO and do not have flights from APG.", "Find all airlines that have flights from airport 'CVO' but not from 'APG'." ]
simple
cosql-205
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";
[ "Find the TV channel that has the series with the episode called 'A Love of a Lifetime'.", "Which TV channel has the series that aired the episode titled 'A Love of a Lifetime'?", "Can you tell me which channel has the series that includes the episode 'A Love of a Lifetime'?", "What is the TV Channel of TV se...
simple
cosql-206
SELECT first_name , country_code FROM players ORDER BY birth_date LIMIT 1
[ "Identify the player with the earliest birth date, including their first name and country code.", "Identify the player with the earliest birth date, showing their first name and country code.", "Show me the first name and country code of the player born earliest.", "Find the first name and country code of the...
simple
cosql-207
SELECT T2.Name FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name HAVING COUNT(*) >= 2
[ "Can you list the names of teachers who are teaching at least two courses?", "Can you list the names of teachers who are teaching two or more courses?", "Find the teachers who have been assigned to multiple courses.", "Show names of teachers that teach at least two courses." ]
aggregate
cosql-208
SELECT avg(num_of_ticket) , max(num_of_ticket) FROM visit
[ "Show me the average and highest number of tickets from the visits.", "Show me the average number of tickets and the highest number recorded from the visits.", "Can you find the average ticket count and the maximum number of tickets in the visit records?", "What are the average and maximum number of tickets b...
aggregate
cosql-209
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'
[ "List the distinct battle IDs and names where Brig-type ships were involved.", "Can you provide the distinct IDs and names of battles where Brig-type ships were lost?", "Show me the distinct IDs and names of battles where the ship type was a Brig.", "What are the different ids and names of the battles that lo...
simple
cosql-210
SELECT song_name , song_release_year FROM singer ORDER BY age LIMIT 1
[ "Can you tell me the name and release year of the song from the youngest artist?", "Can you tell me the name and release year of the song from the youngest singer?", "Find the song and its release year by the youngest singer.", "Show the name and the release year of the song by the youngest singer." ]
simple
cosql-211
SELECT Name FROM country WHERE continent = "Europe" AND Population = "80000"
[ "Which country in Europe has exactly an 80,000 population?", "Show me the country in Europe with a population size of 80,000.", "Find the name of the country in Europe with a population of 80,000.", "What are the names of the countries that are in the continent of Europe and have a population of 80000?" ]
simple
cosql-212
SELECT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID GROUP BY T1.Name HAVING COUNT(*) > 1
[ "Which singers have performed more than one distinct song?", "Which singers have performed more than one song?", "List all singers who have more than one song.", "Show the names of singers that have more than one song." ]
aggregate
cosql-213
SELECT department_description FROM Departments WHERE department_name LIKE '%computer%'
[ "Show me the description of departments that have 'computer' in their name.", "What are the descriptions of the departments with 'computer' in their name?", "What are the descriptions of the departments with 'computer' in their names?", "What is the description of the department whose name has the substring t...
simple
cosql-214
SELECT T1.horsepower FROM CARS_DATA AS T1 ORDER BY T1.accelerate DESC LIMIT 1;
[ "Can you provide the horsepower of the car that has the highest acceleration?", "Can you provide the horsepower of the car with the fastest acceleration?", "Find the horsepower for the car with the fastest acceleration.", "What is the horsepower of the car with the largest accelerate?" ]
simple
cosql-215
SELECT avg(age) , min(age) , max(age) FROM singer WHERE country = 'France'
[ "Show the average, lowest, and highest ages of singers originating from France.", "What are the average, minimum, and maximum ages of singers from France?", "Show the average, youngest, and oldest ages of singers originating from France.", "What is the average, minimum, and maximum age of all singers from Fra...
aggregate
cosql-216
SELECT DISTINCT T2.Model FROM CAR_NAMES AS T1 JOIN MODEL_LIST AS T2 ON T1.Model = T2.Model JOIN CAR_MAKERS AS T3 ON T2.Maker = T3.Id JOIN CARS_DATA AS T4 ON T1.MakeId = T4.Id WHERE T3.FullName = 'General Motors' OR T4.weight > 3500;
[ "List distinct car models produced by General Motors or cars that weigh more than 3500 pounds.", "Show distinct car models either produced by General Motors or those that weigh more than 3500 pounds.", "Which car models are unique to General Motors or have a weight exceeding 3500 pounds?", "Which distinctive ...
simple
cosql-217
SELECT count(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.name = "Kyle"
[ "How many friends does the high school student named Kyle have?", "How many friends does the high schooler named Kyle have?", "What is the total number of friends associated with the high school student Kyle?", "How many friends does the high school student Kyle have?" ]
aggregate
cosql-218
SELECT CountryName FROM countries EXCEPT SELECT T1.CountryName FROM countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.countryId = T2.Country;
[ "Can you provide the names of countries without car manufacturers?", "Can you provide the names of countries without car manufacturing companies?", "List the countries that do not have any car manufacturers.", "What are the name of the countries where there is not a single car maker?" ]
simple
cosql-219
SELECT id FROM Highschooler EXCEPT SELECT student_id FROM Friend
[ "Show me the student IDs not recorded as friends.", "Find the IDs of high schoolers who do not have any friends.", "Find the IDs of high schoolers whose IDs are not listed as friends." ]
simple
cosql-220
SELECT city FROM employee WHERE age < 30 GROUP BY city HAVING count(*) > 1
[ "Find the cities where there are more than one employees under the age of 30.", "Can you list the cities that have more than one employee aged under 30?", "Can you list the cities that have more than one employee under 30 years old?", "Which cities do more than one employee under age 30 come from?" ]
aggregate
cosql-221
SELECT count(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid WHERE T1.age > 20
[ "How many students over the age of 20 own pets?", "How many students over the age of 20 have pets?", "Find the total number of students above the age of 20 who own pets.", "Find number of pets owned by students who are older than 20." ]
aggregate
cosql-222
SELECT winner_name , winner_rank_points FROM matches GROUP BY winner_name ORDER BY count(*) DESC LIMIT 1
[ "Show me the player with the highest number of wins along with their ranking points.", "Show me the player with the highest number of match wins along with their rank points.", "Which player has won the most matches, and what is their rank points?", "Find the name and rank points of the winner who won the mos...
aggregate
cosql-223
SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1
[ "Can you show me the high schooler who received the most likes?", "Can you show me the high schooler with the most total likes?", "Find the high schooler with the highest number of likes.", "What is the name of the high schooler who has the greatest number of likes?" ]
aggregate
cosql-224
SELECT T2.feature_type_name FROM Other_Available_Features AS T1 JOIN Ref_Feature_Types AS T2 ON T1.feature_type_code = T2.feature_type_code WHERE T1.feature_name = "AirCon"
[ "What are the feature type names for features called 'AirCon'?", "What are the types of features called 'AirCon'?", "Find the feature type names that are associated with 'AirCon'.", "What is the feature type name of feature AirCon?" ]
simple
cosql-225
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
[ "Find the transcript date and ID with the lowest number of associated contents.", "Show me the transcript date and ID that has the least number of entries.", "What is the date and ID of the transcript with the fewest entries in the transcript contents?", "Show the date of the transcript which shows the least ...
aggregate
cosql-226
SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.DestAirport = "AHD"
[ "Which airlines have flights that land at AHD airport?", "Show me the airlines with flights arriving at AHD.", "List the airlines that operate flights to AHD airport.", "What are airlines that have flights arriving at airport 'AHD'?" ]
simple
cosql-227
SELECT count(*) FROM MODEL_LIST AS T1 JOIN CAR_MAKERS AS T2 ON T1.Maker = T2.Id JOIN COUNTRIES AS T3 ON T2.Country = T3.CountryId WHERE T3.CountryName = 'usa';
[ "Can you count the total number of car models from American manufacturers?", "How many car models are made by manufacturers from the USA?", "How many car models are produced by manufacturers from the USA?", "How many car models are produced in the usa?" ]
aggregate
cosql-228
SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id HAVING count(*) >= 2
[ "Can you list the names of students who are liked by at least two people?", "Can you list the names of students who have received at least two likes?", "Find the names of students who have received at least two likes.", "Show the names of students who have at least 2 likes." ]
aggregate
cosql-229
SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = "AHD"
[ "Which airlines operate flights departing from AHD airport?", "Can you list the airlines that have flights leaving from AHD?", "Can you list the airlines that have flights departing from AHD airport?", "What are airlines that have some flight departing from airport 'AHD'?" ]
simple
cosql-230
SELECT count(*) FROM Highschooler WHERE grade = 9 OR grade = 10
[ "Find the count of high schoolers who are in 9th grade or 10th grade.", "How many high school students are in either 9th or 10th grade?", "Find the number of students who are in 9th or 10th grade.", "How many high schoolers are there in grade 9 or 10?" ]
aggregate
cosql-231
SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.revised_Table_Made
[ "Can you provide the names of people based on their appearances in the revised table of poker, sorted accordingly?", "Can you provide the names of individuals based on their revised table standings in poker?", "List the names of people ordered by their revised table appearances in poker.", "List the names of ...
simple
cosql-232
SELECT transcript_date FROM Transcripts ORDER BY transcript_date DESC LIMIT 1
[ "Show me the date for the latest transcript.", "Show me the date for the latest transcript record.", "Can you provide the date of the latest transcript?", "What is the last transcript release date?" ]
simple
cosql-233
SELECT production_code , channel FROM cartoon ORDER BY original_air_date LIMIT 1
[ "What is the production code and channel of the first cartoon that aired?", "Find the production code and channel for the earliest aired cartoon.", "Show me the production code and channel of the earliest aired cartoon." ]
simple
cosql-234
SELECT template_type_code FROM Templates EXCEPT SELECT template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id
[ "Show me all template type codes in Templates that are not associated with any Documents.", "Which template type codes are present in the Templates table but missing in the Documents table?", "Which template type codes are in the Templates table but have no corresponding entries in the Documents table?", "Sho...
simple
cosql-235
SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = "AHD"
[ "Which airlines have flights departing from AHD airport?", "Show me which airlines have departures from AHD.", "Show me which airlines have departures from AHD airport.", "What are airlines that have some flight departing from airport 'AHD'?" ]
simple
cosql-237
SELECT Name FROM country WHERE Continent = "Africa" AND population < (SELECT min(population) FROM country WHERE Continent = "Asia")
[ "Can you list the African countries with a population less than the least populated country in Asia?", "Can you list the African countries with a population smaller than the least populated country in Asia?", "Which countries in Africa have a population smaller than the country with the smallest population in A...
nested
cosql-238
SELECT count(*) FROM Dogs WHERE dog_id NOT IN ( SELECT dog_id FROM Treatments )
[ "Get the number of dogs that haven't been treated.", "Can you tell me how many dogs haven't been treated?", "Count the dogs that have not undergone any treatments.", "How many dogs have not gone through any treatment?" ]
nested
cosql-239
SELECT name FROM employee WHERE Employee_ID NOT IN (SELECT Employee_ID FROM evaluation)
[ "List the employees who did not receive an evaluation.", "List the employees who haven’t received an evaluation.", "Which employees have not undergone evaluation?", "Find the names of employees who never won any award in the evaluation." ]
nested
cosql-240
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
[ "Can you show me the most popular degree program based on student enrollment numbers, along with its ID and summary name?", "What is the degree program with the highest number of enrollments, including the program ID and summary name?", "Find the degree program that has the most students enrolled, displaying it...
aggregate
cosql-241
SELECT count(*) FROM Professionals WHERE professional_id NOT IN ( SELECT professional_id FROM Treatments )
[ "Find out the count of professionals that have not administered any treatments.", "Find out the count of professionals that are not associated with any treatments.", "Can you provide the number of professionals who have not administered any treatments?", "How many professionals did not operate any treatment o...
nested
cosql-242
SELECT T1.ContId , T1.Continent , count(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId = T2.Continent GROUP BY T1.ContId;
[ "How many countries are there in each continent, including the continent's name and ID?", "Can you provide the number of countries in every continent along with the continent's name and ID?", "How many countries are there in each continent?", "How many countries does each continent have? List the continent id...
aggregate
cosql-243
SELECT T1.document_id , T2.document_name , count(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_id
[ "List each document's ID and name along with the total number of paragraphs it contains.", "List each document's ID and name, along with the total number of paragraphs it contains.", "Show the document IDs, names, and the count of paragraphs for each document.", "Show all document ids, names and the number of...
aggregate
cosql-244
SELECT T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.written_by = 'Todd Casey'
[ "Find the countries associated with TV channels that broadcast cartoons authored by Todd Casey.", "List the countries of TV channels featuring cartoons written by Todd Casey.", "List the countries of TV channels that feature cartoons written by Todd Casey.", "which countries' tv channels are playing some cart...
simple
cosql-245
SELECT sum(t2.Total_spent) FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id WHERE t1.Level_of_membership = 1
[ "What is the total amount spent by visitors with a level 1 membership?", "Can you show the sum of all spending by members who are at level 1?", "Can you show the total amount spent by members who are at level 1?", "What is the total ticket expense of the visitors whose membership level is 1?" ]
aggregate
cosql-246
SELECT first_name , last_name FROM players WHERE hand = 'L' ORDER BY birth_date
[ "Provide the first and last names of players who are left-handed, sorted by their birth dates.", "Show the first and last names of players who are left-handed, sorted by their birth dates.", "Find the names of players who are left-handed and order them by their birth dates.", "List the first and last name of ...
simple
cosql-247
SELECT T1.paragraph_id , T1.paragraph_text FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id WHERE T2.Document_Name = 'Welcome to NY'
[ "Show me the paragraphs and their IDs from the document titled 'Welcome to NY'.", "Show me the paragraph IDs and texts from the document titled 'Welcome to NY'.", "Can you list the paragraph texts along with their IDs in the 'Welcome to NY' document?", "Show all paragraph ids and texts for the document with n...
simple
cosql-248
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
[ "What is the sum of ranking points for each player based on their first name?", "What is the total sum of ranking points for each player based on their first name?", "Show the sum of ranking points for each player, grouped by their first name.", "Find the total ranking points for each player and their first n...
aggregate
cosql-249
SELECT Name FROM country WHERE Continent = "Asia" AND population > (SELECT max(population) FROM country WHERE Continent = "Africa")
[ "Find the names of countries in Asia where the population exceeds that of the most populated country in Africa.", "Find the names of countries in Asia with a population higher than the most populous country in Africa.", "Show me the countries in Asia with a population greater than the most populous country in A...
nested
cosql-250
SELECT DISTINCT T3.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode JOIN city AS T3 ON T1.Code = T3.CountryCode WHERE T2.IsOfficial = 'T' AND T2.Language = 'Chinese' AND T1.Continent = "Asia"
[ "What are the cities in Asian countries where Chinese is officially spoken?", "Show me the names of Asian cities where Chinese is an official language.", "Which cities in Asia have Chinese as an official language?", "Whic`h unique cities are in Asian countries where Chinese is the official language?" ]
simple
cosql-251
SELECT name FROM visitor WHERE Level_of_membership > 4 ORDER BY Level_of_membership DESC
[ "List the names of visitors with a membership level higher than 4, sorted by membership level from highest to lowest.", "Which visitors have a membership level greater than 4, and can you sort them by membership level from highest to lowest?", "Which visitors have a membership level greater than 4, and can you ...
simple
cosql-252
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
[ "Find the average ranking for players by their first names.", "What is the average ranking of each player, grouped by their first names?", "Find the average ranking for each player by their first names.", "Find the average ranking for each player and their first name." ]
aggregate
cosql-253
SELECT avg(grade) FROM Highschooler WHERE id IN (SELECT T1.student_id FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id)
[ "What is the average grade of students who have friends?", "Can you show the average grade of all students who have at least one friend?", "Find the average grade for students that are listed as friends of other students.", "Find the average grade of all students who have some friends." ]
nested
cosql-254
SELECT count(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.name = "Kyle"
[ "How many likes has Kyle received?", "Show me the total number of likes that Kyle has.", "Can you count how many likes Kyle has?", "How many likes does Kyle have?" ]
aggregate
cosql-255
SELECT name FROM stadium WHERE stadium_id NOT IN (SELECT stadium_id FROM concert)
[ "Please find the names of stadiums that have never had a concert.", "Can you list the names of stadiums where no concerts have taken place?", "Can you list the stadiums where no concerts have taken place?", "Show the stadium names without any concert." ]
nested
cosql-256
SELECT Citizenship FROM singer GROUP BY Citizenship ORDER BY COUNT(*) DESC LIMIT 1
[ "Which citizenship is most common among the singers?", "Can you identify the top citizenship among the singers?", "Can you identify the most frequently occurring citizenship among the singers?", "Please show the most common citizenship of singers." ]
aggregate
cosql-257
SELECT T2.Money_Rank FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Height DESC LIMIT 1
[ "Find the money rank of the tallest individual who plays poker.", "Show me the money rank of the tallest poker player.", "Find the money rank of the currently tallest individual who plays poker.", "What is the money rank of the tallest poker player?" ]
simple
cosql-258
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
[ "Can you tell me the most popular degree program based on student enrollments?", "Show me the degree program with the maximum number of students enrolled.", "Which degree program has the highest number of enrollments?", "Find the kind of program which most number of students are enrolled in?" ]
aggregate
cosql-259
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
[ "Find the student with the most enrollments and provide their ID and names.", "Show me the details of the student with the most course enrollments.", "Show me the details and enrollment count of the student with the most course enrollments.", "Which student has enrolled for the most times in any program? List...
aggregate
cosql-260
SELECT weight FROM pets ORDER BY pet_age LIMIT 1
[ "Can you tell me the weight of the youngest pet?", "Can you tell me the weight of the pet with the least age?", "Find the weight of the pet that is youngest in age.", "Find the weight of the youngest dog." ]
simple
cosql-261
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
[ "Give me the last names of students who live in North Carolina and are not currently enrolled.", "Show me the last names of students residing in North Carolina who have not enrolled in any classes.", "List the last names of students living in North Carolina who are not enrolled in any courses.", "Find the las...
simple
cosql-262
SELECT winner_name , loser_name FROM matches ORDER BY minutes DESC LIMIT 1
[ "Show me the winner and the loser of the match that took the most time.", "Which match had the longest duration, and who were the winner and the loser?", "Which match lasted the longest, and who were the winner and loser?", "find the names of loser and winner who played in the match with greatest number of mi...
simple
cosql-263
SELECT DISTINCT T1.model FROM MODEL_LIST AS T1 JOIN CAR_NAMES AS T2 ON T1.model = T2.model JOIN CARS_DATA AS T3 ON T2.MakeId = T3.id WHERE T3.year > 1980;
[ "Show me the distinct car models that were manufactured after the year 1980.", "Can you provide a list of unique car models made after 1980?", "List all unique car models manufactured after 1980.", "Which distinct car models are the produced after 1980?" ]
simple
cosql-264
SELECT grade FROM Highschooler GROUP BY grade ORDER BY count(*) DESC LIMIT 1
[ "What grade level has the highest number of students in the high school?", "Can you tell me the grade level with the highest number of students in the high school?", "What is the most common grade level among high schoolers?", "Which grade has the most high schoolers?" ]
aggregate
cosql-265
SELECT T1.first_name , T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id WHERE T1.state = 'Virginia'
[ "Show me the first names of owners and their dogs’ names in Virginia.", "Display the first names of owners and the names of their dogs for those living in Virginia.", "Can you list the dog names and their owners’ first names for those located in Virginia?", "Which dogs are owned by someone who lives in Virgin...
simple
cosql-266
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
[ "Show me the course that the most students are enrolled for.", "Show me the course that the most students are enrolled in.", "What is the most popular course by student enrollments?", "What's the name of the course with most number of enrollments?" ]
aggregate
cosql-267
SELECT DISTINCT T2.Name FROM country AS T1 JOIN city AS T2 ON T2.CountryCode = T1.Code WHERE T1.Continent = 'Europe' AND T1.Name NOT IN (SELECT T3.Name FROM country AS T3 JOIN countrylanguage AS T4 ON T3.Code = T4.CountryCode WHERE T4.IsOfficial = 'T' AND T4.Language = 'English')
[ "Show me names of cities in Europe located in countries that do not have English as an official language.", "Find names of European cities in countries where the official language is not English.", "Find European cities in countries where the official language is not English.", "Which cities are in European c...
nested
cosql-268
SELECT T3.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id JOIN Highschooler AS T3 ON T1.friend_id = T3.id WHERE T2.name = "Kyle"
[ "Can you show me the friends of the high schooler named Kyle?", "Can you show me the friends of the high schooler called Kyle?", "Can you tell me who Kyle's high school friends are?", "Show the names of all of the high schooler Kyle's friends." ]
simple
cosql-269
SELECT T1.CountryName FROM COUNTRIES AS T1 JOIN CONTINENTS AS T2 ON T1.Continent = T2.ContId JOIN CAR_MAKERS AS T3 ON T1.CountryId = T3.Country WHERE T2.Continent = 'europe' GROUP BY T1.CountryName HAVING count(*) >= 3;
[ "List the European countries that have at least three car manufacturers.", "Which European countries have at least three car manufacturers?", "Can you provide the names of European countries that have three or more car makers?", "Which countries in europe have at least 3 car manufacturers?" ]
aggregate
cosql-270
SELECT count(*) FROM visitor WHERE id NOT IN (SELECT t2.visitor_id FROM museum AS t1 JOIN visit AS t2 ON t1.Museum_ID = t2.Museum_ID WHERE t1.open_year > 2010)
[ "How many visitors have not visited a museum that opened after 2010?", "Count the number of visitors who haven't visited any museums established after 2010.", "Count the number of visitors who haven't visited any museums opened after 2010.", "Find the number of visitors who did not visit any museum opened aft...
nested
cosql-271
SELECT count(*) FROM Owners WHERE owner_id NOT IN ( SELECT owner_id FROM Dogs )
[ "Find the total number of owners without dogs.", "Can you count the number of owners that currently don’t own any dogs?", "Can you count the number of owners that don't own any dogs?", "How many owners temporarily do not have any dogs?" ]
nested
cosql-272
SELECT production_code , channel FROM cartoon ORDER BY original_air_date LIMIT 1
[ "What is the production code and channel of the cartoon that aired the earliest?", "What is the production code and channel of the earliest aired cartoon?", "Show me the production code and channel of the cartoon that was aired first." ]
simple
cosql-273
SELECT Citizenship FROM singer WHERE Birth_Year < 1945 INTERSECT SELECT Citizenship FROM singer WHERE Birth_Year > 1955
[ "Find the nationalities of singers born before 1945 and after 1955.", "Get the countries of origin for singers who were born either before 1945 or after 1955.", "Show me the citizenships of singers born before 1945 and after 1955.", "Show the citizenship shared by singers with birth year before 1945 and after...
simple
cosql-274
SELECT COUNT( DISTINCT Continent) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = "Chinese"
[ "How many distinct continents have countries where Chinese is spoken?", "Find the total number of unique continents that have countries where Chinese is the language spoken.", "Can you count the number of different continents with countries that speak Chinese?", "What is the number of distinct continents wher...
aggregate
cosql-275
SELECT sum(Population) , avg(LifeExpectancy) , Continent FROM country GROUP BY Continent HAVING avg(LifeExpectancy) < 72
[ "List the total population and average life expectancy of continents that have an average life expectancy below 72 years.", "Show me the total population and the average life expectancy for each continent where the average life expectancy is less than 72 years.", "Can you find the sum of the population and aver...
aggregate
cosql-276
SELECT first_name , last_name , email_address FROM Owners WHERE state LIKE '%North%'
[ "Show the names and email addresses of owners from states containing the word 'North'.", "Can you give me the names and email addresses of owners residing in states with 'North' in their name?", "Show me the first and last names, along with the email addresses, of owners residing in any state that includes 'Nor...
simple
cosql-277
SELECT document_id FROM Paragraphs GROUP BY document_id ORDER BY count(*) ASC LIMIT 1
[ "Show me the document with the fewest paragraphs.", "Which document has the minimum number of paragraphs?", "What document has the fewest paragraphs?", "What is the document id with least number of paragraphs?" ]
aggregate
cosql-278
SELECT T1.owner_id , T1.last_name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id JOIN Treatments AS T3 ON T2.dog_id = T3.dog_id GROUP BY T1.owner_id ORDER BY count(*) DESC LIMIT 1
[ "Find the owner who has provided the highest number of treatments for their dogs.", "Who is the owner with the most treatments given to their dogs?", "Who is the owner with the most treatments for their dogs?", "Which owner has paid for the most treatments on his or her dogs? List the owner id and last name."...
aggregate
cosql-279
SELECT count(*) FROM matches WHERE YEAR = 2013 OR YEAR = 2016
[ "Find the count of matches that took place in either 2013 or 2016.", "How many matches were played in the years 2013 or 2016?", "Can you tell me the total number of matches that were held in 2013 or 2016?", "List the number of all matches who played in years of 2013 or 2016." ]
aggregate
cosql-280
SELECT country FROM TV_Channel EXCEPT SELECT T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.written_by = 'Todd Casey'
[ "Find the countries with TV Channels that do not air any cartoons scripted by Todd Casey.", "List the countries that have TV Channels but no cartoons written by Todd Casey.", "Find the countries with TV Channels that do not air any cartoons written by Todd Casey.", "which countries' tv channels are not playin...
simple
cosql-281
SELECT song_name , song_release_year FROM singer ORDER BY age LIMIT 1
[ "Tell me the song title and release year sung by the youngest singer.", "Show me the name and release year of the song from the youngest artist.", "Find the song title and release year sung by the youngest singer.", "Show the name and the release year of the song by the youngest singer." ]
simple
cosql-282
SELECT DISTINCT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat' OR T3.pettype = 'dog'
[ "List the names of students who have a pet that is either a cat or a dog.", "Show me the distinct names of students who own either a cat or a dog.", "Which students have a cat or a dog as a pet?", "Find the first name of students who have cat or dog pet." ]
simple
cosql-283
SELECT state FROM Owners INTERSECT SELECT state FROM Professionals
[ "Which states are present in both owners and professionals?", "Can you list the states that are common to both owners and professionals?", "Which states have both owners and professionals?", "Which states have both owners and professionals living there?" ]
simple
cosql-284
SELECT DISTINCT T1.first_name , T3.treatment_type_description FROM professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id JOIN Treatment_types AS T3 ON T2.treatment_type_code = T3.treatment_type_code
[ "Provide a list of distinct professionals' first names and the descriptions of their treatment types.", "Show a list of distinct professionals' first names and the descriptions of their treatment types.", "List the distinct first names of professionals and their treatment type descriptions.", "List the first ...
simple
cosql-285
SELECT T3.Name FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID WHERE T2.Course = "Math"
[ "Show me the teachers responsible for teaching Math.", "Which teachers are assigned to teach the Math course?", "Who are the teachers currently assigned to teach the Math course?", "Show the name of the teacher for the math course." ]
simple
cosql-286
SELECT T1.Continent , count(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId = T2.continent JOIN car_makers AS T3 ON T2.CountryId = T3.Country GROUP BY T1.Continent;
[ "Show the number of car makers grouped by continent.", "Show the number of car makers grouped by each continent.", "How many car manufacturers are there per continent?", "How many car makers are there in each continents? List the continent name and the count." ]
aggregate
cosql-287
SELECT DISTINCT T1.first_name , T3.treatment_type_description FROM professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id JOIN Treatment_types AS T3 ON T2.treatment_type_code = T3.treatment_type_code
[ "Show me the names of professionals and their treatment types provided.", "Show me the names of professionals and the descriptions of the treatments they provide.", "Find the first names of professionals along with the descriptions of their treatment types.", "List the first name of all the professionals alon...
simple
cosql-288
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'
[ "Find all battles and their outcomes, as well as the Bulgarian commanders, except those where ships were lost in the English Channel.", "Give me a list of all battles, their results, and the Bulgarian commanders, excluding those that involved ship losses in the English Channel.", "Give me a list of all battles,...
simple
cosql-289
SELECT student_id FROM Friend INTERSECT SELECT liked_id FROM Likes
[ "Find the students who are listed as friends and also liked by someone.", "Show the students who appear in both the friends list and the liked list.", "Show the students who are present in both the friends and liked records.", "Show the ids of high schoolers who have friends and are also liked by someone else...
simple
cosql-290
SELECT count(*) FROM Documents AS T1 JOIN Templates AS T2 ON T1.Template_ID = T2.Template_ID WHERE T2.Template_Type_Code = 'PPT'
[ "Count the number of documents that are associated with PPT templates.", "How many documents use a template with the code 'PPT'?", "Count the number of documents that use PPT templates.", "How many documents are using the template with type code 'PPT'?" ]
aggregate
cosql-291
SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.Cylinders = 4 ORDER BY T2.horsepower DESC LIMIT 1;
[ "Can you show me the car model with 4 cylinders and the most horsepower?", "What is the model of the car with 4 cylinders that has the highest horsepower?", "Can you tell me the car model with 4 cylinders that has the highest horsepower?", "For the cars with 4 cylinders, which model has the largest horsepower...
simple
cosql-292
SELECT count(DISTINCT T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE IndepYear < 1930 AND T2.IsOfficial = "T"
[ "Find the count of distinct official languages in countries that became independent before the year 1930.", "What is the number of different official languages in countries independent before 1930?", "What is the number of different languages that were officially recognized in countries independent before 1930?...
aggregate