db_id stringclasses 40
values | query stringlengths 22 608 | question stringlengths 22 185 |
|---|---|---|
university_rank | SELECT T1.University_Name , T2.Citation_point FROM University AS T1 JOIN Overall_ranking AS T2 ON T1.university_id = T2.university_id ORDER BY T2.Reputation_point DESC LIMIT 3 | What is the name and citation point of the unversities with the top 3 reputation points? |
university_rank | SELECT state FROM university WHERE enrollment < 3000 GROUP BY state HAVING count(*) > 2 | which states do have more than two universities with enrollment smaller than 3000? |
university_rank | SELECT state FROM university WHERE enrollment < 3000 GROUP BY state HAVING count(*) > 2 | What are the states that have more than 2 universities with an enrollment less than 3000? |
movie_2 | SELECT title FROM movies WHERE rating = 'null' | Find the titles of movies that don’t have any rating. |
movie_2 | SELECT title FROM movies WHERE rating = 'null' | What are the names of movies that do not have any ratings? |
movie_2 | SELECT title FROM movies WHERE rating = 'G' | Find the names of movies whose rating is ‘G’. |
movie_2 | SELECT title FROM movies WHERE rating = 'G' | What are names of movies that have a 'G' ratings? |
movie_2 | SELECT T1.title FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code = T2.movie WHERE T2.name = 'Odeon' | Find the title of the movie that is played in the Odeon theater. |
movie_2 | SELECT T1.title FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code = T2.movie WHERE T2.name = 'Odeon' | What are the movie titles for ones that are played in the Odeon theater? |
movie_2 | SELECT T1.title , T2.name FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code = T2.movie | Find the names of movies that are played in any theater and the name of the corresponding theater. |
movie_2 | SELECT T1.title , T2.name FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code = T2.movie | What are the names of the movies that are played in any theater and the name of the corresponding theater? |
movie_2 | SELECT count(*) FROM movies WHERE rating = 'G' | Find the number of movies whose rating is ‘G’. |
movie_2 | SELECT count(*) FROM movies WHERE rating = 'G' | How many movies had a 'G' rating? |
movie_2 | SELECT count(*) FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code = T2.movie | How many movies are playing across all theaters? |
movie_2 | SELECT count(*) FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code = T2.movie | How many movies are playing in theaters? |
movie_2 | SELECT count(DISTINCT T1.code) FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code = T2.movie | How many distinct movies are on in theaters? |
movie_2 | SELECT count(DISTINCT T1.code) FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code = T2.movie | How many different movies are playing? |
movie_2 | SELECT count(DISTINCT name) FROM movietheaters | How many distinct movie theaters are there? |
movie_2 | SELECT count(DISTINCT name) FROM movietheaters | How many different movie theaters exist? |
movie_2 | SELECT rating FROM movies WHERE title LIKE '%Citizen%' | Find the rating of the movie whose name includes the word ‘Citizen’. |
movie_2 | SELECT rating FROM movies WHERE title LIKE '%Citizen%' | What is the rating of the movie what has a name including a word like 'Citizen'? |
movie_2 | SELECT title FROM movies WHERE rating = 'G' OR rating = 'PG' | Find the name of the cinemas that are playing movies with either rating ‘G’ or rating ‘PG’. |
movie_2 | SELECT title FROM movies WHERE rating = 'G' OR rating = 'PG' | What are the names of the movie theaters that are playing 'G' or 'PG' rated movies? |
movie_2 | SELECT T1.title FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code = T2.movie WHERE T2.name = 'Odeon' OR T2.name = 'Imperial' | Find the name of the movies that are played in either cinema Odeon or Imperial. |
movie_2 | SELECT T1.title FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code = T2.movie WHERE T2.name = 'Odeon' OR T2.name = 'Imperial' | What are the titles of all the movies that played at the Odeon or Imperial theater? |
movie_2 | SELECT T1.title FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code = T2.movie WHERE T2.name = 'Odeon' INTERSECT SELECT T1.title FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code = T2.movie WHERE T2.name = 'Imperial' | Find the name of the movie that is on in both Odeon and Imperial theaters. |
movie_2 | SELECT T1.title FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code = T2.movie WHERE T2.name = 'Odeon' INTERSECT SELECT T1.title FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code = T2.movie WHERE T2.name = 'Imperial' | What movie is playing at both the Odeon and Imperial theater? |
movie_2 | SELECT title FROM movies EXCEPT SELECT T1.title FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code = T2.movie WHERE T2.name = 'Odeon' | Find the name of all movies that are not played in Odeon theater. |
movie_2 | SELECT title FROM movies EXCEPT SELECT T1.title FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code = T2.movie WHERE T2.name = 'Odeon' | What are the names of every movie that is not playing at the Odeon theater? |
movie_2 | SELECT title FROM movies ORDER BY title | List in alphabetical order the titles of all movies. |
movie_2 | SELECT title FROM movies ORDER BY title | What are the movie names in alphabetical order? |
movie_2 | SELECT title FROM movies ORDER BY rating | Find the titles of all movies sorted by their ratings. |
movie_2 | SELECT title FROM movies ORDER BY rating | What are the movie names sorted by rating? |
movie_2 | SELECT name FROM movietheaters GROUP BY name ORDER BY count(*) DESC LIMIT 1 | Find the name of the theater that is playing the most number of movies. |
movie_2 | SELECT name FROM movietheaters GROUP BY name ORDER BY count(*) DESC LIMIT 1 | What is the name of the theater playing the most movies? |
movie_2 | SELECT T1.title FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code = T2.movie GROUP BY T1.title ORDER BY count(*) DESC LIMIT 1 | Find the name of the movie that is played in the most number of theaters. |
movie_2 | SELECT T1.title FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code = T2.movie GROUP BY T1.title ORDER BY count(*) DESC LIMIT 1 | What is the name of the film playing at the most number of theaters? |
movie_2 | SELECT count(*) , rating FROM movies GROUP BY rating | Find the number of movies in each rating. |
movie_2 | SELECT count(*) , rating FROM movies GROUP BY rating | How many movies exist for each rating? |
movie_2 | SELECT count(*) , rating FROM movies WHERE rating != 'null' GROUP BY rating | Find the number of movies whose rating is not null. |
movie_2 | SELECT count(*) , rating FROM movies WHERE rating != 'null' GROUP BY rating | How many movies have a rating that is not null? |
movie_2 | SELECT name FROM movietheaters GROUP BY name HAVING count(*) >= 1 | Find the name of theaters that has at least one movie playing. |
movie_2 | SELECT name FROM movietheaters GROUP BY name HAVING count(*) >= 1 | What are the names of every theater with at least one movie playing? |
movie_2 | SELECT DISTINCT name FROM MovieTheaters WHERE Movie = 'null' | Select the name of all movie theaters that are not currently showing a movie. |
movie_2 | SELECT DISTINCT name FROM MovieTheaters WHERE Movie = 'null' | What are the names of all cinemas not showing any movies? |
movie_2 | SELECT T2.name FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code = T2.movie WHERE T1.rating = 'G' | Find the name of the movie theaters that are playing the movies whose rating is ‘G’. |
movie_2 | SELECT T2.name FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code = T2.movie WHERE T1.rating = 'G' | What are the names of theaters playing 'G' rated movies? |
movie_2 | SELECT title FROM movies | Select the title of all movies. |
movie_2 | SELECT title FROM movies | What are all of the movie names? |
movie_2 | SELECT DISTINCT rating FROM movies | Show all the distinct ratings in the database. |
movie_2 | SELECT DISTINCT rating FROM movies | What are the different movie ratings? |
movie_2 | SELECT * FROM movies WHERE rating = 'null' | Show all information of all unrated movies. |
movie_2 | SELECT * FROM movies WHERE rating = 'null' | What is all the information about the unrated movies? |
movie_2 | SELECT Title FROM Movies WHERE Code NOT IN (SELECT Movie FROM MovieTheaters WHERE Movie != 'null') | Show the titles of movies not currently being shown in any theaters. |
movie_2 | SELECT Title FROM Movies WHERE Code NOT IN (SELECT Movie FROM MovieTheaters WHERE Movie != 'null') | What are the names of the movies not being shown in any theaters? |
planet_1 | SELECT T2.Name FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Recipient = T2.AccountNumber ORDER BY T1.Weight DESC LIMIT 1 | Who receieved the heaviest package? |
planet_1 | SELECT T2.Name FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Recipient = T2.AccountNumber ORDER BY T1.Weight DESC LIMIT 1 | What is the name of the client who received the heaviest package? |
planet_1 | SELECT sum(T1.Weight) FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender = T2.AccountNumber WHERE T2.Name = "Leo Wong"; | What is the total weight of all the packages that customer Leo Wong sent? |
planet_1 | SELECT sum(T1.Weight) FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender = T2.AccountNumber WHERE T2.Name = "Leo Wong"; | What is the total weight for all packages that Leo Wong sent? |
planet_1 | SELECT POSITION FROM Employee WHERE Name = "Amy Wong"; | What is the position of Amy Wong? |
planet_1 | SELECT POSITION FROM Employee WHERE Name = "Amy Wong"; | What position does Amy Wong have? |
planet_1 | SELECT Salary , POSITION FROM Employee WHERE Name = "Turanga Leela"; | What is Turanga Leela's salary and position? |
planet_1 | SELECT Salary , POSITION FROM Employee WHERE Name = "Turanga Leela"; | What is the salary and position of the employee named Turanga Leela? |
planet_1 | SELECT avg(Salary) FROM Employee WHERE POSITION = "Intern"; | What is the average salary of all intern jobs? |
planet_1 | SELECT avg(Salary) FROM Employee WHERE POSITION = "Intern"; | What is the average salary of an intern? |
planet_1 | SELECT T1.Level FROM Has_Clearance AS T1 JOIN Employee AS T2 ON T1.Employee = T2.EmployeeID WHERE T2.position = "Physician"; | What level is Physician? |
planet_1 | SELECT T1.Level FROM Has_Clearance AS T1 JOIN Employee AS T2 ON T1.Employee = T2.EmployeeID WHERE T2.position = "Physician"; | What is the clearance level of a physician? |
planet_1 | SELECT T1.PackageNumber FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender = T2.AccountNumber WHERE T2.Name = "Leo Wong"; | List Package Number of all package sent by Leo Wong? |
planet_1 | SELECT T1.PackageNumber FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender = T2.AccountNumber WHERE T2.Name = "Leo Wong"; | What is the number of all packages that Leo Wong sent? |
planet_1 | select t1.packagenumber from package as t1 join client as t2 on t1.recipient = t2.accountnumber where t2.name = "leo wong"; | List all package numbers received by Leo Wong ? |
planet_1 | SELECT T1.PackageNumber FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Recipient = T2.AccountNumber WHERE T2.Name = "Leo Wong"; | What are all of the package numbers received by Leo Wong? |
planet_1 | SELECT DISTINCT T1.PackageNumber FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender = T2.AccountNumber OR T1.Recipient = T2.AccountNumber WHERE T2.Name = "Leo Wong" | List all package sent or received by Leo Wong. |
planet_1 | SELECT DISTINCT T1.PackageNumber FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender = T2.AccountNumber OR T1.Recipient = T2.AccountNumber WHERE T2.Name = "Leo Wong" | What are all the different package numbers that Leo Wong sent or received? |
planet_1 | SELECT T1.PackageNumber FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender = T2.AccountNumber WHERE T2.Name = "Ogden Wernstrom" INTERSECT SELECT T1.PackageNumber FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Recipient = T2.AccountNumber WHERE T2.Name = "Leo Wong" | Count the number of packages sent by Ogden Wernstrom and received by Leo Wong. |
planet_1 | SELECT T1.PackageNumber FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender = T2.AccountNumber WHERE T2.Name = "Ogden Wernstrom" INTERSECT SELECT T1.PackageNumber FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Recipient = T2.AccountNumber WHERE T2.Name = "Leo Wong" | How many packages sent by Ogden Wernstrom and received by Leo Wong? |
planet_1 | SELECT T1.Contents FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender = T2.AccountNumber WHERE T2.Name = "John Zoidfarb"; | What are the contents of package sent by John Zoidfarb? |
planet_1 | SELECT T1.Contents FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender = T2.AccountNumber WHERE T2.Name = "John Zoidfarb"; | What are the package contents of all those sent by John Zoidfarb? |
planet_1 | SELECT T1.PackageNumber , max(T1.Weight) FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender = T2.AccountNumber WHERE T2.Name LIKE "John"; | What is the heaviest package sent by the clients which 'John' is part of their name? List package number and weight. |
planet_1 | SELECT T1.PackageNumber , max(T1.Weight) FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender = T2.AccountNumber WHERE T2.Name LIKE "John"; | What is the package number and weight of the heaviest package that was sent by a client named John or something similar? |
planet_1 | SELECT PackageNumber , Weight FROM PACKAGE ORDER BY Weight ASC LIMIT 3; | List package number and weight of top 3 lightest packages. |
planet_1 | SELECT PackageNumber , Weight FROM PACKAGE ORDER BY Weight ASC LIMIT 3; | What is the package number and weight of the 3 lightest packages? |
planet_1 | SELECT T2.Name , count(*) FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender = T2.AccountNumber GROUP BY T1.Sender ORDER BY count(*) DESC LIMIT 1; | Who sent most number of packages? List client name and number of packages sent by that client. |
planet_1 | SELECT T2.Name , count(*) FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender = T2.AccountNumber GROUP BY T1.Sender ORDER BY count(*) DESC LIMIT 1; | What is the name of the client who sent the most packages and how many were there? |
planet_1 | select t2.name , count(*) from package as t1 join client as t2 on t1.recipient = t2.accountnumber group by t1.recipient order by count(*) limit 1; | Who received least number of packages ? List client name and number of packages received by that client . |
planet_1 | select t2.name , count(*) from package as t1 join client as t2 on t1.recipient = t2.accountnumber group by t1.recipient order by count(*) limit 1; | What is the smallest number of packages received and by whom ? |
planet_1 | SELECT T2.Name , count(*) FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender = T2.AccountNumber GROUP BY T1.Sender HAVING count(*) > 1; | Who sent more than one packages? List the client's name. |
planet_1 | SELECT T2.Name , count(*) FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender = T2.AccountNumber GROUP BY T1.Sender HAVING count(*) > 1; | What is the name of all clients who sent more than one package? |
planet_1 | SELECT Coordinates FROM Planet WHERE Name = "Mars"; | What are the Coordinates of planet Mars? |
planet_1 | SELECT Coordinates FROM Planet WHERE Name = "Mars"; | What are the coordinates of the planet named Mars? |
planet_1 | SELECT Name , Coordinates FROM Planet ORDER BY Name | List all Planets' names and coordinates in alphabetical order of name. |
planet_1 | SELECT Name , Coordinates FROM Planet ORDER BY Name | What are the names and coordinates of all planets in alphabetical order by name? |
planet_1 | SELECT T1.ShipmentID FROM Shipment AS T1 JOIN Employee AS T2 ON T1.Manager = T2.EmployeeID WHERE T2.Name = "Phillip J. Fry"; | List all shipment id under Phillip J. Fry's management. |
planet_1 | SELECT T1.ShipmentID FROM Shipment AS T1 JOIN Employee AS T2 ON T1.Manager = T2.EmployeeID WHERE T2.Name = "Phillip J. Fry"; | What are the shipment IDs of every delivery managed by Phillip J Fry? |
planet_1 | SELECT Date FROM Shipment; | List the dates of all shipments. |
planet_1 | SELECT Date FROM Shipment; | What are the dates of every shipment in the database? |
planet_1 | SELECT T1.ShipmentID FROM Shipment AS T1 JOIN Planet AS T2 ON T1.Planet = T2.PlanetID WHERE T2.Name = "Mars"; | List all shipment ids for the planet Mars. |
planet_1 | SELECT T1.ShipmentID FROM Shipment AS T1 JOIN Planet AS T2 ON T1.Planet = T2.PlanetID WHERE T2.Name = "Mars"; | What are the shipment ids for the planet Mars? |
planet_1 | SELECT T1.ShipmentID FROM Shipment AS T1 JOIN Planet AS T2 ON T1.Planet = T2.PlanetID JOIN Employee AS T3 ON T3.EmployeeID = T1.Manager WHERE T2.Name = "Mars" AND T3.Name = "Turanga Leela"; | List all shipment ids for the planet Mars and under the management of Turanga Leela. |
planet_1 | SELECT T1.ShipmentID FROM Shipment AS T1 JOIN Planet AS T2 ON T1.Planet = T2.PlanetID JOIN Employee AS T3 ON T3.EmployeeID = T1.Manager WHERE T2.Name = "Mars" AND T3.Name = "Turanga Leela"; | What are the ids of all shipments on the planet Mars that are managed by Turanga Leela? |
planet_1 | SELECT T1.ShipmentID FROM Shipment AS T1 JOIN Planet AS T2 ON T1.Planet = T2.PlanetID JOIN Employee AS T3 ON T3.EmployeeID = T1.Manager WHERE T2.Name = "Mars" OR T3.Name = "Turanga Leela"; | List all shipment ids on the planet Mars or under the management of Turanga Leela. |
Subsets and Splits
World Countries Non-English Languages
The query filters specific database entries based on a particular query pattern, providing limited insight as it simply retrieves rows that match a specific condition.