idx
string
query
string
utterances
list
query_type
string
cosql-101
SELECT Money_Rank FROM poker_player ORDER BY Earnings DESC LIMIT 1
[ "What is the money rank of the poker player with the highest earnings?", "Find the money rank of the poker player who has earned the most.", "What is the money rank of the highest-earning poker player?", "What is the money rank of the poker player with the highest earnings?" ]
simple
cosql-102
SELECT Orchestra FROM orchestra WHERE Orchestra_ID NOT IN (SELECT Orchestra_ID FROM performance)
[ "Which orchestras have not performed?", "List the orchestras that do not have any performances.", "Which orchestras have not yet performed?", "List the names of orchestras that have no performance." ]
nested
cosql-103
SELECT T2.name , T2.location FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.Year = 2014 INTERSECT SELECT T2.name , T2.location FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.Year = 2015
[ "Find the stadium names and locations that held concerts in the years 2014 and 2015.", "Which stadiums and their locations had concerts in both the years 2014 and 2015?", "Which stadiums had concerts in both the years 2014 and 2015?", "Find the name and location of the stadiums which some concerts happened in...
simple
cosql-104
SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = "United Airlines" AND T2.DestAirport = "ASY"
[ "How many flights operated by United Airlines are heading to the ASY airport?", "How many flights operated by United Airlines are heading to ASY airport?", "How many United Airlines flights have ASY as their destination?", "How many 'United Airlines' flights go to Airport 'ASY'?" ]
aggregate
cosql-105
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
[ "Find the semester that has the maximum number of students enrolled.", "Can you show me the semester with the most enrollments?", "Can you show me the semester with the most student enrollments?", "What is the semester which most student registered in? Show both the name and the id." ]
aggregate
cosql-106
SELECT sum(Population) , GovernmentForm FROM country GROUP BY GovernmentForm HAVING avg(LifeExpectancy) > 72
[ "Find the sum of the population for each government type where the average life expectancy exceeds 72.", "Show me the sum of the population for each government form where the average life expectancy is greater than 72.", "Show me the total population for each type of government form where the average life expec...
aggregate
cosql-107
SELECT id FROM TV_Channel EXCEPT SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones'
[ "Which TV channel IDs do not appear in the cartoons directed by Ben Jones?", "List the TV channel IDs excluding those from cartoons directed by Ben Jones.", "Find the IDs of TV channels that are not listed in the cartoons directed by Ben Jones.", "find the id of tv channels that do not play any cartoon direct...
simple
cosql-108
SELECT document_id , count(*) FROM Paragraphs GROUP BY document_id ORDER BY document_id
[ "Get the number of paragraphs for each document and sort them by document ID.", "Show me the count of paragraphs for each document.", "Show me the count of paragraphs grouped by document.", "Show all document ids and the number of paragraphs in each document. Order by document id." ]
aggregate
cosql-109
SELECT T1.owner_id , T1.zip_code 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 sum(T3.cost_of_treatment) DESC LIMIT 1
[ "Find the owner and their zip code who has spent the most in total on dog treatments.", "Who is the top spender on dog treatments, and what is their zip code?", "Find the owner and their zip code who has spent the most on dog treatments.", "Which owner has paid the largest amount of money in total for their d...
aggregate
cosql-110
SELECT count(*) FROM Flights AS T1 JOIN Airports AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.city = "Aberdeen" OR T2.city = "Abilene"
[ "What is the number of flights that have Aberdeen or Abilene as their destination?", "How many flights are there to either Aberdeen or Abilene?", "Can you count the number of flights arriving in Aberdeen or Abilene?", "Find the number of flights landing in the city of Aberdeen or Abilene." ]
aggregate
cosql-111
SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = "Aberdeen"
[ "What is the total number of flights that arrive in Aberdeen?", "How many flights have the city of Aberdeen as their destination?", "How many flights have Aberdeen as their destination?", "How many flights arriving in Aberdeen city?" ]
aggregate
cosql-112
SELECT Name FROM country WHERE Continent = "Africa" AND population < (SELECT max(population) FROM country WHERE Continent = "Asia")
[ "Show the names of African countries with populations lower than the most populous country in Asia.", "Show the names of African countries whose populations are below the maximum population of an Asian country.", "List the African countries with populations lower than the most populous country in Asia.", "Wha...
nested
cosql-113
SELECT first_name FROM Professionals UNION SELECT first_name FROM Owners EXCEPT SELECT name FROM Dogs
[ "Show me the first names of professionals or owners who are not dogs.", "Show me the first names of people who are either professionals or owners but are not dogs.", "Can you provide the first names of people from the Professionals or Owners lists, excluding any dogs?" ]
simple
cosql-114
SELECT DISTINCT T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker JOIN CAR_NAMES AS T3 ON T2.model = T3.model JOIN CARS_DATA AS T4 ON T3.MakeId = T4.id WHERE T4.year = '1970';
[ "Which car makers had models that were produced in the year 1970?", "Can you list the car manufacturers with models produced in 1970?", "Can you list the car manufacturers that released their car models in 1970?", "Find the name of the makers that produced some cars in the year of 1970?" ]
simple
cosql-115
SELECT id FROM TV_Channel EXCEPT SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones'
[ "Find TV channel IDs excluding those with cartoons directed by Ben Jones.", "Find the IDs of TV channels except those showing cartoons directed by Ben Jones.", "Which TV channel IDs don't have cartoons directed by Ben Jones?", "find the id of tv channels that do not play any cartoon directed by Ben Jones." ]
simple
cosql-116
SELECT name FROM shop WHERE number_products > (SELECT avg(number_products) FROM shop)
[ "List the names of shops where the product count exceeds the average.", "List the names of businesses where the product count exceeds the average.", "Which shops have a higher number of products than the average?", "Find the names of stores whose number products is more than the average number of products." ]
nested
cosql-117
SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.SourceAirport GROUP BY T1.City ORDER BY count(*) DESC LIMIT 1
[ "Find the city with the greatest number of departing flights.", "Show me the city with the most flight departures.", "Show me the city with the most departing flights.", "Which city has most number of departing flights?" ]
aggregate
cosql-118
SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = "English" AND IsOfficial = "T" UNION SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = "Dutch" AND IsOfficial = "T"
[ "Show me countries where either English or Dutch is an official language.", "Show me countries where English or Dutch is an official language.", "Which countries list English or Dutch as their official language?", "What are the countries where either English or Dutch is the official language?" ]
simple
cosql-119
SELECT Name FROM country WHERE Continent = "Asia" AND population > (SELECT min(population) FROM country WHERE Continent = "Africa")
[ "List the countries in Asia whose population exceeds the smallest population of any country in Africa.", "Show me the names of countries in Asia with a population greater than the smallest population in Africa.", "Name the countries in Asia with a population larger than the smallest population in Africa.", "W...
nested
cosql-120
SELECT Name FROM country WHERE Continent = "Asia" ORDER BY LifeExpectancy LIMIT 1
[ "Can you provide the name of the country in Asia with the shortest life expectancy?", "Can you tell me the country in Asia with the shortest life expectancy?", "Which country in Asia has the lowest life expectancy?", "What is the name of country that has the shortest life expectancy in Asia?" ]
simple
cosql-121
SELECT Money_Rank FROM poker_player ORDER BY Earnings DESC LIMIT 1
[ "What is the money rank of the poker player with the highest earnings?", "Show me the money rank of the poker player with the highest earnings.", "Find out the money rank of the top-earning poker player.", "What is the money rank of the poker player with the highest earnings?" ]
simple
cosql-122
SELECT template_id FROM Templates EXCEPT SELECT template_id FROM Documents
[ "List the template IDs that haven't been included in any documents.", "Show me all template IDs that are not currently utilized in documents.", "List the template IDs that are not included in any documents.", "Show ids for all templates not used by any document." ]
simple
cosql-123
SELECT avg(age) FROM Dogs WHERE dog_id IN ( SELECT dog_id FROM Treatments )
[ "Show me the average age of dogs that have undergone treatment.", "What is the average age of dogs that have received treatments?", "Can you find the average age of all dogs that have received treatments?", "What is the average age of the dogs who have gone through any treatments?" ]
nested
cosql-124
SELECT semester_name FROM Semesters WHERE semester_id NOT IN( SELECT semester_id FROM Student_Enrolment )
[ "Which semesters have no students enrolled?", "Can you list the semesters that have no student enrolments?", "Show me the semesters that don't have any students enrolled.", "Which semesters do not have any student enrolled? List the semester name." ]
nested
cosql-125
SELECT avg(age) FROM student WHERE stuid NOT IN (SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid)
[ "Find the mean age of students without any pets.", "What is the average age of students who don't have a pet?", "Can you calculate the average age of students who do not own any pets?", "Find the average age of students who do not have any pet." ]
nested
cosql-126
SELECT T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.written_by = 'Todd Casey'
[ "Show me the countries where TV channels air cartoons written by Todd Casey.", "Show me the countries where TV channels broadcast cartoons written by Todd Casey.", "Find the countries with TV channels that feature cartoons authored by Todd Casey.", "which countries' tv channels are playing some cartoon writte...
simple
cosql-127
SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = "English" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = "French"
[ "Can you list the countries where both English and French are spoken?", "Which countries have both English and French as spoken languages?", "Find all the countries that have both English and French as spoken languages.", "What are the names of nations speak both English and French?" ]
simple
cosql-128
SELECT country_code FROM players GROUP BY country_code HAVING count(*) > 50
[ "Which country codes have more than 50 players?", "Which country codes have a player count of more than 50?", "List the country codes that have a player count greater than 50.", "Find the codes of countries that have more than 50 players." ]
aggregate
cosql-129
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'
[ "Show me the battles and their results excluding those with ships lost in the English Channel.", "Can you provide details of battles and their commanders, excluding those involving ships lost in the English Channel?", "Can you provide details of battles, their results, and commanders, excluding those involving ...
simple
cosql-130
SELECT min(Number_products) , max(Number_products) FROM shop
[ "Find the lowest and highest product counts in the shop.", "Can you tell me the least and most number products available in the shop?", "What are the minimum and maximum number of products in the shop?", "find the minimum and maximum number of products of all stores." ]
aggregate
cosql-131
SELECT T1.breed_name FROM Breeds AS T1 JOIN Dogs AS T2 ON T1.breed_code = T2.breed_code GROUP BY T1.breed_name ORDER BY count(*) DESC LIMIT 1
[ "Identify the dog breed with the largest number of dogs.", "Which dog breed has the highest number of dogs?", "Identify the dog breed with the largest population.", "What is the name of the breed with the most dogs?" ]
aggregate
cosql-132
SELECT 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' INTERSECT SELECT 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 = 'dog'
[ "Which students have both a cat and a dog?", "Can you show me the students who own both cats and dogs?", "List the names of students who have both a cat and a dog as pets.", "Find the name of students who have both cat and dog pets." ]
simple
cosql-133
SELECT name , Level_of_membership FROM visitor WHERE Level_of_membership > 4 ORDER BY age DESC
[ "Show the names and membership levels of visitors who have a membership level higher than 4, sorted by age in descending order.", "Show me the names and membership levels of visitors with a membership level greater than 4, ordered by their age from oldest to youngest.", "Can you provide the names and membership...
simple
cosql-134
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
[ "Find the students who are enrolled in two courses, providing their first name, middle name, last name, and student ID.", "Find the students enrolled in two courses and provide their first, middle, and last names, along with their student IDs.", "Show the first name, middle name, last name, and student ID for s...
aggregate
cosql-135
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 names of dog owners and their dogs who live in Virginia.", "List the first names of dog owners and their dogs from Virginia.", "List the first names of dog owners and their dogs' names from Virginia.", "Which dogs are owned by someone who lives in Virginia? List the owner's first name and the dog...
simple
cosql-136
SELECT Record_Company FROM orchestra GROUP BY Record_Company ORDER BY COUNT(*) DESC LIMIT 1
[ "Can you tell me which record company appears most frequently in the orchestra records?", "Can you tell me the record company listed the most in the orchestra records?", "Identify the record company with the highest number of orchestra records.", "List the record company shared by the most number of orchestra...
aggregate
cosql-137
SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = "United Airlines" AND T2.DestAirport = "ASY"
[ "How many flights by United Airlines are going to ASY airport?", "How many flights operated by United Airlines are headed to destination airport ASY?", "Can you provide a count of United Airlines flights going to the ASY airport?", "How many 'United Airlines' flights go to Airport 'ASY'?" ]
aggregate
cosql-139
SELECT T2.name , count(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id
[ "Show the number of friends for each high school student along with their names.", "Show the number of friends for each high school student with their names.", "Can you display the name of each student along with their total number of friends?", "Show the names of high school students and their corresponding ...
aggregate
cosql-140
SELECT DISTINCT T2.semester_id FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id WHERE degree_summary_name = 'Master' INTERSECT SELECT DISTINCT T2.semester_id FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id...
[ "Identify the semesters where there are enrollments in both Master's and Bachelor's programs.", "Find the semesters that have students registered in both Master's and Bachelor's degree programs.", "Find the semesters that have students enrolled in both Master's and Bachelor's degree programs.", "Find the seme...
simple
cosql-141
SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id ORDER BY T2.mpg DESC LIMIT 1;
[ "Show me the car model with the best fuel efficiency.", "Find the car model that offers the maximum mpg.", "Find the car model that offers the maximum miles per gallon.", "Which model saves the most gasoline? That is to say, have the maximum miles per gallon." ]
simple
cosql-142
SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID = t2.Employee_ID ORDER BY t2.bonus DESC LIMIT 1
[ "Who is the employee with the highest bonus?", "Find the employee who has received the top bonus.", "Show the name of the employee who received the highest bonus.", "Find the name of the employee who got the highest one time bonus." ]
simple
cosql-143
SELECT Name FROM people WHERE People_ID NOT IN (SELECT People_ID FROM poker_player)
[ "Show me the names of individuals who are not poker players.", "Which people are not listed as poker players?", "Find the names of all people who do not play poker.", "List the names of people that are not poker players." ]
nested
cosql-144
SELECT country_code FROM players GROUP BY country_code ORDER BY count(*) DESC LIMIT 1
[ "Show me the country with the highest count of players.", "Show me the country code for the country with the most players.", "Find the country with the most players.", "find the code of the country where has the greatest number of players." ]
aggregate
cosql-145
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;
[ "Show me the unique models manufactured by General Motors or cars with a weight over 3500 pounds.", "Find all distinct car models by General Motors or cars that weigh more than 3500 pounds.", "Find all unique car models by General Motors or cars that weigh more than 3500 pounds.", "Which distinctive models ar...
simple
cosql-146
SELECT Nationality FROM people GROUP BY Nationality HAVING COUNT(*) >= 2
[ "Show me the nationalities that have at least two individuals.", "Show me the nationalities that have at least two individuals listed.", "Which nationalities have more than one person in the database?", "What are the nationalities that are shared by at least two people?" ]
aggregate
cosql-147
SELECT COUNT(*) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = "Afghanistan" AND IsOfficial = "T"
[ "What are the number of official languages in Afghanistan?", "Give me the total number of official languages in Afghanistan.", "Give me the total number of languages that are officially recognized in Afghanistan.", "How many official languages does Afghanistan have?" ]
aggregate
cosql-148
SELECT name FROM Dogs WHERE dog_id NOT IN( SELECT dog_id FROM Treatments GROUP BY dog_id HAVING sum(cost_of_treatment) > 1000 )
[ "Show the names of dogs that haven't spent more than $1000 on treatments.", "Find all dog names whose total cost of treatments is not over $1000.", "Show the names of dogs whose total spending on treatments is under $1000.", "Which dogs have not cost their owner more than 1000 for treatment? List the dog name...
nested
cosql-149
SELECT t1.name , t1.age FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id ORDER BY t2.num_of_ticket DESC LIMIT 1
[ "Who is the visitor with the highest number of tickets purchased, and what is their age?", "Who is the visitor who purchased the highest number of tickets, and what is their age?", "Find the name and age of the visitor with the highest ticket purchases.", "Find the name and age of the visitor who bought the m...
simple
cosql-150
SELECT DISTINCT T1.Region FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = "English" OR T2.Language = "Dutch"
[ "Show me the regions of countries that have English or Dutch as a language.", "List all unique regions where English or Dutch is spoken.", "Show me the distinct regions of countries that have English or Dutch as a spoken language.", "What are the regions that use English or Dutch?" ]
simple
cosql-151
SELECT DISTINCT winner_name , winner_rank FROM matches ORDER BY winner_age LIMIT 3
[ "Can you provide the details of the top 3 winners sorted by the youngest age?", "Can you provide the names and ranks of the top 3 winners sorted by the youngest age?", "Show the top 3 unique winners sorted by the youngest age from the matches.", "Find the name and rank of the 3 youngest winners across all mat...
simple
cosql-152
SELECT role_code , street , city , state FROM professionals WHERE city LIKE '%West%'
[ "Show me all the professionals located in any city containing the word 'West' in its name.", "List the role codes, addresses, and states of professionals in cities that have 'West' in their names.", "Show me all professionals located in any city containing the word 'West', including their role codes, street, ci...
simple
cosql-153
SELECT note FROM death WHERE note LIKE '%East%'
[ "Show me the death notes that mention 'East'.", "Show me the notes that mention 'East' in the death records.", "Find all the entries in the death records where the note includes 'East'.", "What are the notes of the death events which has substring 'East'?" ]
simple
cosql-154
SELECT T1.killed , T1.injured FROM death AS T1 JOIN ship AS t2 ON T1.caused_by_ship_id = T2.id WHERE T2.tonnage = 't'
[ "Find the number of casualties and injuries from events caused by ships having a tonnage of 't'.", "Show me the number of killed and injured from incidents caused by ships with a tonnage of 't'.", "Find the numbers of people killed and injured in events caused by ships having a tonnage of 't'.", "What are the...
simple
cosql-155
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;
[ "List the continents along with the count of car makers in each one.", "How many car makers are there per continent?", "Can you show the number of car manufacturers located in each continent?", "How many car makers are there in each continents? List the continent name and the count." ]
aggregate
cosql-156
SELECT Region FROM country AS T1 JOIN city AS T2 ON T1.Code = T2.CountryCode WHERE T2.Name = "Kabul"
[ "Find the region in which the city Kabul is located.", "Can you tell me the region for the city Kabul?", "Can you tell me the region for the city of Kabul?", "Which region is the city Kabul located in?" ]
simple
cosql-157
SELECT T2.document_name FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id WHERE T1.template_type_code = "BK"
[ "List the names of documents associated with templates that have the type code 'BK'.", "List the names of documents that use templates with the type code 'BK'.", "Show the names of documents linked to templates that have the type code 'BK'.", "Show all document names using templates with template type code BK...
simple
cosql-158
SELECT Code FROM country WHERE GovernmentForm != "Republic" EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = "English"
[ "Get the code of countries that do not have a republican form of government and do not speak English.", "Find the codes for countries that are not republics and where English is not spoken.", "Find the codes for countries that are not republics and where English is not an official language.", "What are the co...
simple
cosql-159
SELECT professional_id , last_name , cell_number FROM Professionals WHERE state = 'Indiana' UNION SELECT T1.professional_id , T1.last_name , T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING count(*) > 2
[ "Who are the professionals located in Indiana or those who have more than two treatments recorded?", "List the professionals from Indiana and those with more than two recorded treatments.", "List the professionals from Indiana and those with more than two total treatments.", "Which professionals live in the s...
aggregate
cosql-160
SELECT template_type_code FROM Templates GROUP BY template_type_code ORDER BY count(*) DESC LIMIT 1
[ "Which template type code appears most frequently?", "Which template type code appears most frequently in the Templates table?", "What is the most common template type code in the Templates table?", "Which template type code has most number of templates?" ]
aggregate
cosql-161
SELECT country FROM singer WHERE age > 40 INTERSECT SELECT country FROM singer WHERE age < 30
[ "Show me the countries with singers in the age groups above 40 and below 30.", "Show me the countries that have singers both older than 40 and younger than 30.", "Which countries have singers older than 40 and younger than 30?", "Show countries where a singer above age 40 and a singer below 30 are from." ]
simple
cosql-162
SELECT T1.Accelerate FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Make = 'amc hornet sportabout (sw)';
[ "Can you show me the acceleration details for the car model 'amc hornet sportabout (sw)'?", "Find the acceleration for the vehicle named 'amc hornet sportabout (sw)'.", "Find the acceleration information for the vehicle named 'amc hornet sportabout (sw)'.", "What is the accelerate of the car make amc hornet s...
simple
cosql-163
SELECT template_id FROM Templates EXCEPT SELECT template_id FROM Documents
[ "Show me the template IDs that are in Templates but not in Documents.", "Which template IDs are found in Templates but not in Documents?", "List the IDs of templates that do not appear in the Documents list.", "Show ids for all templates not used by any document." ]
simple
cosql-164
SELECT T2.concert_name , T2.theme , count(*) FROM singer_in_concert AS T1 JOIN concert AS T2 ON T1.concert_id = T2.concert_id GROUP BY T2.concert_id
[ "How many singers have been part of each concert, and what are their names and themes?", "Can you list the concerts with the number of singers who performed, including the concert names and themes?", "Can you provide the list of concerts along with the number of singers, concert names, and themes?", "Show the...
aggregate
cosql-165
SELECT COUNT(*) FROM (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = "English" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = "Dutch")
[ "Find the total number of countries where both English and Dutch are present.", "Can you count the number of countries that have both English and Dutch as languages?", "Can you count the countries where both English and Dutch are spoken?", "How many countries speak both English and Dutch?" ]
nested
cosql-166
SELECT song_name FROM singer WHERE age > (SELECT avg(age) FROM singer)
[ "Which songs are performed by singers whose age is above the average age of singers?", "Which songs are performed by singers older than the average age of all singers?", "List the song names of singers who are older than the average age among all singers.", "List all song names by singers above the average ag...
nested
cosql-167
SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID GROUP BY T2.Conductor_ID HAVING COUNT(*) > 1
[ "Show the names of conductors who conduct more than one orchestra.", "Show the names of conductors who lead more than one orchestra.", "List the names of conductors who have been associated with multiple orchestras.", "Show the names of conductors that have conducted more than one orchestras." ]
aggregate
cosql-168
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
[ "Show me the student who has enrolled in the maximum number of courses and their details, such as first name, middle name, last name, and student ID.", "Can you find the student with the highest number of course enrollments and provide their full name and student ID?", "Which student has enrolled in the most co...
aggregate
cosql-169
SELECT DISTINCT T1.template_type_description FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code = T2.template_type_code JOIN Documents AS T3 ON T2.Template_ID = T3.template_ID
[ "What are the unique template type descriptions used in documents?", "Show me all distinct template type descriptions found in documents.", "Show me all distinct template type descriptions that are associated with templates in documents.", "What are the distinct template type descriptions for the templates ev...
simple
cosql-170
SELECT Name , population , HeadOfState FROM country ORDER BY SurfaceArea DESC LIMIT 1
[ "Show me the country with the most surface area along with its name, population, and head of state.", "Can you provide the details of the country that has the greatest surface area, including its name, population, and head of state?", "Can you provide the details of the country that has the largest surface area...
simple
cosql-171
SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Earnings > 300000
[ "List the names of poker players with earnings above 300,000.", "List the names of individuals who are poker players with earnings above 300,000.", "Show the names of people who have earned more than 300,000 from poker.", "What are the names of poker players whose earnings is higher than 300000?" ]
simple
cosql-172
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
[ "List the surnames of students whose current address is in North Carolina but are not currently enrolled in any courses.", "List the surnames of students whose current address is in North Carolina but are not currently enrolled in any classes.", "Can you provide the last names of students residing in North Caro...
simple
cosql-173
SELECT T3.area_code FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number JOIN area_code_state AS T3 ON T2.state = T3.state WHERE T1.contestant_name = 'Tabatha Gehling' INTERSECT SELECT T3.area_code FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_...
[ "Can you find the common area codes where both Tabatha Gehling and Kelly Clauss received votes?", "List the shared area codes for states where both Tabatha Gehling and Kelly Clauss got votes.", "What are the overlapping area codes for votes received by Tabatha Gehling and Kelly Clauss?", "List the area codes ...
simple
cosql-174
SELECT district FROM shop WHERE Number_products < 3000 INTERSECT SELECT district FROM shop WHERE Number_products > 10000
[ "Show the districts where shops have both fewer than 3000 products and more than 10000 products.", "Identify the districts where different shops have both fewer than 3000 products and more than 10000 products.", "Can you find districts that have at least one shop with fewer than 3000 products and another with m...
simple
cosql-175
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
[ "Can you show me the department that has the maximum number of degree programs?", "Can you show me the department that has the highest number of degree programs?", "Which department has the highest number of degree programs?", "Which department offers the most number of degrees? List department name and id." ...
aggregate
cosql-176
SELECT professional_id , role_code , email_address FROM Professionals EXCEPT SELECT T1.professional_id , T1.role_code , T1.email_address FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id
[ "Fetch the professional IDs, role codes, and email addresses of professionals who are not involved in any treatments.", "Fetch the IDs, role codes, and email addresses of professionals who are not involved in any treatments.", "Show me the professional IDs, role codes, and email addresses of professionals who d...
simple
cosql-177
SELECT count(*) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker WHERE T1.FullName = 'American Motor Company';
[ "What is the total number of car models associated with the American Motor Company?", "What is the total number of car models made by the American Motor Company?", "Count the total number of car models made by American Motor Company.", "How many car models were produced by the maker with full name American Mo...
aggregate
cosql-178
SELECT T3.Name , T2.Course 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 ORDER BY T3.Name
[ "List all courses and their respective teachers, ordered by the teacher's names.", "Show the names of teachers and the courses they teach, arranged in order of the teachers' names.", "List all courses and their respective teacher's names, ordered alphabetically by the teacher's names.", "Show names of teacher...
simple
cosql-179
SELECT sum(Population) , avg(SurfaceArea) FROM country WHERE Continent = "North America" AND SurfaceArea > 3000
[ "Can you provide the sum of the population and the average surface area for North American countries where the surface area exceeds 3000?", "Find the total population and the average surface area for countries in North America with surface areas larger than 3000.", "Find the total population and the average sur...
aggregate
cosql-180
SELECT count(DISTINCT series_name) , count(DISTINCT content) FROM TV_Channel;
[ "What is the count of distinct series titles and distinct content in the TV Channel?", "What is the count of distinct series and distinct content in the TV Channel?", "Can you provide the count of unique series titles and unique content entries within the TV Channel?", "List the number of different series nam...
aggregate
cosql-181
SELECT LANGUAGE , count(*) FROM TV_Channel GROUP BY LANGUAGE ORDER BY count(*) ASC LIMIT 1;
[ "Find the language that appears least frequently among the TV channels.", "Show me the language that has the lowest count of TV channels.", "Find the language that has the smallest number of TV channels.", "List the language used least number of TV Channel. List language and number of TV Channel." ]
aggregate
cosql-182
SELECT first_name FROM Professionals UNION SELECT first_name FROM Owners EXCEPT SELECT name FROM Dogs
[ "Show me the first names of professionals and owners, excluding dog names.", "List the first names of individuals who are either professionals or owners but are not dogs.", "List the first names of people who are either professionals or owners but are not dogs.", "Which first names are used for professionals ...
simple
cosql-183
SELECT T1.lname 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.pet_age = 3 AND T3.pettype = 'cat'
[ "List the last names of students who own a cat that is 3 years old.", "Can you provide the surnames of students with a 3-year-old cat?", "What are the last names of students who have a 3-year-old cat as a pet?", "Find the last name of the student who has a cat that is age 3." ]
simple
cosql-184
SELECT Major_Record_Format FROM orchestra GROUP BY Major_Record_Format ORDER BY COUNT(*) ASC
[ "Can you list the major record formats used by the orchestra, sorted in ascending order of frequency?", "What are the different major record formats used in the orchestra, listed from least to most common?", "Can you list the major record formats used by the orchestra in order from the least to most frequent?",...
aggregate
cosql-185
SELECT name FROM museum WHERE Museum_ID NOT IN (SELECT museum_id FROM visit)
[ "List the names of museums that haven't had any visitors.", "Show me the names of museums that have no visit records.", "Show me the museums that have no visit records.", "What is the name of the museum that had no visitor yet?" ]
nested
cosql-186
SELECT t1.id , t1.name , t1.age FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id GROUP BY t1.id HAVING count(*) > 1
[ "Provide the IDs, names, and ages of visitors who have visited more than one time.", "Can you list the details of visitors who have made multiple visits, including their ID, name, and age?", "Show me the IDs, names, and ages of visitors who have visited more than once.", "find the id, name and age for visitor...
aggregate
cosql-187
SELECT sum(Population) , GovernmentForm FROM country GROUP BY GovernmentForm HAVING avg(LifeExpectancy) > 72
[ "Find the sum of the population by government form where the average life expectancy is more than 72.", "Find the sum of the population for each government form category where the average life expectancy is more than 72.", "What is the total population of countries grouped by their government form, where the av...
aggregate
cosql-188
SELECT name FROM visitor WHERE Level_of_membership > 4 ORDER BY Level_of_membership DESC
[ "Show me the names of visitors with a membership level higher than 4, sorted from highest to lowest.", "Show me the names of visitors who have a membership level higher than 4, sorted by their membership levels in descending order.", "Find the names of all visitors with a membership level greater than 4, ordere...
simple
cosql-189
SELECT T1.Abbreviation , T1.Country FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline ORDER BY count(*) LIMIT 1
[ "Which airline has the least number of flights, and what are its abbreviation and country?", "Show me the airline with the least number of flights and provide its abbreviation and country.", "Which airline has the fewest flights, and what are its abbreviation and country?", "Find the abbreviation and country ...
aggregate
cosql-190
SELECT T1.id , T1.name FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle JOIN death AS T3 ON T2.id = T3.caused_by_ship_id GROUP BY T1.id HAVING sum(T3.killed) > 10
[ "Which battles resulted in more than 10 deaths caused by ships that were lost in those battles?", "Which battles had a total death count of over 10, caused by ships that were lost in those battles?", "Identify the battles where the sum of deaths caused by ships lost in the battle is more than 10." ]
aggregate
cosql-191
SELECT avg(pet_age) , max(pet_age) , pettype FROM pets GROUP BY pettype
[ "What is the average and maximum age of each pet type?", "What is the average and maximum age of each type of pet?", "I need the average age and the maximum age for pets, categorized by their type.", "Find the average and maximum age for each type of pet." ]
aggregate
cosql-192
SELECT T1.countryId , T1.CountryName FROM Countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country GROUP BY T1.countryId HAVING count(*) > 3 UNION SELECT T1.countryId , T1.CountryName FROM Countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country JOIN MODEL_LIST AS T3 ON T2.Id = T3.Maker WH...
[ "Show the country IDs and names of countries that either have more than three car manufacturers or produce a car model called 'fiat'.", "Find all countries with more than three car manufacturers, as well as those that produce a car model named 'fiat'.", "Which countries have more than three car makers or a car ...
nested
cosql-193
SELECT T1.professional_id , T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING count(*) >= 2
[ "Fetch the IDs and cell phone numbers of professionals with a minimum of two treatments conducted.", "Fetch the IDs and contact details of professionals with a minimum of two treatments conducted.", "List the ID and cell number of professionals who have conducted at least two treatments.", "Which professional...
aggregate
cosql-194
SELECT document_id FROM Paragraphs GROUP BY document_id HAVING count(*) BETWEEN 1 AND 2
[ "Which document IDs have between one and two paragraphs?", "Show me the document IDs that contain either one or two paragraphs.", "Find document IDs that have between one and two paragraphs.", "What is the document id with 1 to 2 paragraphs?" ]
aggregate
cosql-195
SELECT Hometown FROM teacher ORDER BY Age ASC LIMIT 1
[ "What is the hometown of the youngest teacher?", "Which hometown does the youngest teacher come from?", "Can you find the hometown of the teacher who is the youngest?", "What is the hometown of the youngest teacher?" ]
simple
cosql-196
SELECT count(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T2.petid = T3.petid WHERE T1.sex = 'F' AND T3.pettype = 'dog'
[ "What is the number of female students who have dogs as their pets?", "What is the number of female students that have dogs as their pets?", "Count the number of female students who have a pet dog.", "Find the number of dog pets that are raised by female students (with sex F)." ]
aggregate
cosql-197
SELECT T2.MakeId , T2.Make FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T1.Horsepower > (SELECT min(Horsepower) FROM CARS_DATA) AND T1.Cylinders <= 3;
[ "Find the make IDs and names of cars with horsepower greater than the minimum recorded and with no more than 3 cylinders.", "Find the make IDs and names of cars with horsepower greater than the minimum recorded and with 3 or fewer cylinders.", "Can you list the make IDs and makes of cars which have higher horse...
nested
cosql-198
SELECT transcript_date FROM Transcripts ORDER BY transcript_date DESC LIMIT 1
[ "Find the latest transcript date.", "Find the latest transcript date available.", "Can you show me the latest transcript date?", "What is the last transcript release date?" ]
simple
cosql-199
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
[ "Can you list the dates and IDs of transcripts with at least two contents?", "Find the transcript dates and IDs for transcripts with two or more associated contents.", "Show the transcript dates and IDs of transcripts that have two or more contents.", "Show the date and id of the transcript with at least 2 co...
aggregate
cosql-200
SELECT student_id FROM Friend INTERSECT SELECT liked_id FROM Likes
[ "Show the student IDs who are both friends and liked by someone.", "Find the students who are listed as friends and are also liked by someone.", "Find the students who are both friends and liked by someone.", "Show the ids of high schoolers who have friends and are also liked by someone else." ]
simple
cosql-201
SELECT email_address FROM Professionals WHERE state = 'Hawaii' OR state = 'Wisconsin'
[ "Can you provide the email addresses of professionals located in either Hawaii or Wisconsin?", "Show me the email addresses of professionals who are based in Hawaii or Wisconsin.", "Can you provide the email addresses of professionals from either Hawaii or Wisconsin?", "List the emails of the professionals wh...
simple