query_id
int64 0
2.15k
| database_id
stringclasses 40
values | table_id
listlengths 1
4
| query
stringlengths 22
185
| answer
stringlengths 22
608
| difficulty
stringclasses 4
values |
---|---|---|---|---|---|
1,800 |
university_rank
|
[
"overall_ranking",
"university"
] |
What is the name and citation point of the unversities with the top 3 reputation points?
|
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
|
hard
|
1,801 |
university_rank
|
[
"university"
] |
which states do have more than two universities with enrollment smaller than 3000?
|
SELECT state FROM university WHERE enrollment < 3000 GROUP BY state HAVING count(*) > 2
|
medium
|
1,802 |
university_rank
|
[
"university"
] |
What are the states that have more than 2 universities with an enrollment less than 3000?
|
SELECT state FROM university WHERE enrollment < 3000 GROUP BY state HAVING count(*) > 2
|
medium
|
1,803 |
movie_2
|
[
"movies"
] |
Find the titles of movies that don’t have any rating.
|
SELECT title FROM movies WHERE rating = 'null'
|
easy
|
1,804 |
movie_2
|
[
"movies"
] |
What are the names of movies that do not have any ratings?
|
SELECT title FROM movies WHERE rating = 'null'
|
easy
|
1,805 |
movie_2
|
[
"movies"
] |
Find the names of movies whose rating is ‘G’.
|
SELECT title FROM movies WHERE rating = 'G'
|
easy
|
1,806 |
movie_2
|
[
"movies"
] |
What are names of movies that have a 'G' ratings?
|
SELECT title FROM movies WHERE rating = 'G'
|
easy
|
1,807 |
movie_2
|
[
"movietheaters",
"movies"
] |
Find the title of the movie that is played in the Odeon theater.
|
SELECT T1.title FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code = T2.movie WHERE T2.name = 'Odeon'
|
medium
|
1,808 |
movie_2
|
[
"movietheaters",
"movies"
] |
What are the movie titles for ones that are played in the Odeon theater?
|
SELECT T1.title FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code = T2.movie WHERE T2.name = 'Odeon'
|
medium
|
1,809 |
movie_2
|
[
"movietheaters",
"movies"
] |
Find the names of movies that are played in any theater and the name of the corresponding theater.
|
SELECT T1.title , T2.name FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code = T2.movie
|
medium
|
1,810 |
movie_2
|
[
"movietheaters",
"movies"
] |
What are the names of the movies that are played in any theater and the name of the corresponding theater?
|
SELECT T1.title , T2.name FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code = T2.movie
|
medium
|
1,811 |
movie_2
|
[
"movies"
] |
Find the number of movies whose rating is ‘G’.
|
SELECT count(*) FROM movies WHERE rating = 'G'
|
easy
|
1,812 |
movie_2
|
[
"movies"
] |
How many movies had a 'G' rating?
|
SELECT count(*) FROM movies WHERE rating = 'G'
|
easy
|
1,813 |
movie_2
|
[
"movietheaters",
"movies"
] |
How many movies are playing across all theaters?
|
SELECT count(*) FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code = T2.movie
|
easy
|
1,814 |
movie_2
|
[
"movietheaters",
"movies"
] |
How many movies are playing in theaters?
|
SELECT count(*) FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code = T2.movie
|
easy
|
1,815 |
movie_2
|
[
"movietheaters",
"movies"
] |
How many distinct movies are on in theaters?
|
SELECT count(DISTINCT T1.code) FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code = T2.movie
|
easy
|
1,816 |
movie_2
|
[
"movietheaters",
"movies"
] |
How many different movies are playing?
|
SELECT count(DISTINCT T1.code) FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code = T2.movie
|
easy
|
1,817 |
movie_2
|
[
"movietheaters"
] |
How many distinct movie theaters are there?
|
SELECT count(DISTINCT name) FROM movietheaters
|
easy
|
1,818 |
movie_2
|
[
"movietheaters"
] |
How many different movie theaters exist?
|
SELECT count(DISTINCT name) FROM movietheaters
|
easy
|
1,819 |
movie_2
|
[
"movies"
] |
Find the rating of the movie whose name includes the word ‘Citizen’.
|
SELECT rating FROM movies WHERE title LIKE '%Citizen%'
|
medium
|
1,820 |
movie_2
|
[
"movies"
] |
What is the rating of the movie what has a name including a word like 'Citizen'?
|
SELECT rating FROM movies WHERE title LIKE '%Citizen%'
|
medium
|
1,821 |
movie_2
|
[
"movies"
] |
Find the name of the cinemas that are playing movies with either rating ‘G’ or rating ‘PG’.
|
SELECT title FROM movies WHERE rating = 'G' OR rating = 'PG'
|
medium
|
1,822 |
movie_2
|
[
"movies"
] |
What are the names of the movie theaters that are playing 'G' or 'PG' rated movies?
|
SELECT title FROM movies WHERE rating = 'G' OR rating = 'PG'
|
medium
|
1,823 |
movie_2
|
[
"movietheaters",
"movies"
] |
Find the name of the movies that are played in either cinema Odeon or Imperial.
|
SELECT T1.title FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code = T2.movie WHERE T2.name = 'Odeon' OR T2.name = 'Imperial'
|
hard
|
1,824 |
movie_2
|
[
"movietheaters",
"movies"
] |
What are the titles of all the movies that played at the Odeon or Imperial theater?
|
SELECT T1.title FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code = T2.movie WHERE T2.name = 'Odeon' OR T2.name = 'Imperial'
|
hard
|
1,825 |
movie_2
|
[
"movietheaters",
"movies"
] |
Find the name of the movie that is on in both Odeon and Imperial theaters.
|
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'
|
extra
|
1,826 |
movie_2
|
[
"movietheaters",
"movies"
] |
What movie is playing at both the Odeon and Imperial theater?
|
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'
|
extra
|
1,827 |
movie_2
|
[
"movietheaters",
"movies"
] |
Find the name of all movies that are not played in Odeon theater.
|
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'
|
hard
|
1,828 |
movie_2
|
[
"movietheaters",
"movies"
] |
What are the names of every movie that is not playing at the Odeon theater?
|
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'
|
hard
|
1,829 |
movie_2
|
[
"movies"
] |
List in alphabetical order the titles of all movies.
|
SELECT title FROM movies ORDER BY title
|
easy
|
1,830 |
movie_2
|
[
"movies"
] |
What are the movie names in alphabetical order?
|
SELECT title FROM movies ORDER BY title
|
easy
|
1,831 |
movie_2
|
[
"movies"
] |
Find the titles of all movies sorted by their ratings.
|
SELECT title FROM movies ORDER BY rating
|
easy
|
1,832 |
movie_2
|
[
"movies"
] |
What are the movie names sorted by rating?
|
SELECT title FROM movies ORDER BY rating
|
easy
|
1,833 |
movie_2
|
[
"movietheaters"
] |
Find the name of the theater that is playing the most number of movies.
|
SELECT name FROM movietheaters GROUP BY name ORDER BY count(*) DESC LIMIT 1
|
hard
|
1,834 |
movie_2
|
[
"movietheaters"
] |
What is the name of the theater playing the most movies?
|
SELECT name FROM movietheaters GROUP BY name ORDER BY count(*) DESC LIMIT 1
|
hard
|
1,835 |
movie_2
|
[
"movietheaters",
"movies"
] |
Find the name of the movie that is played in the most number of theaters.
|
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
|
extra
|
1,836 |
movie_2
|
[
"movietheaters",
"movies"
] |
What is the name of the film playing at the most number of theaters?
|
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
|
extra
|
1,837 |
movie_2
|
[
"movies"
] |
Find the number of movies in each rating.
|
SELECT count(*) , rating FROM movies GROUP BY rating
|
medium
|
1,838 |
movie_2
|
[
"movies"
] |
How many movies exist for each rating?
|
SELECT count(*) , rating FROM movies GROUP BY rating
|
medium
|
1,839 |
movie_2
|
[
"movies"
] |
Find the number of movies whose rating is not null.
|
SELECT count(*) , rating FROM movies WHERE rating != 'null' GROUP BY rating
|
medium
|
1,840 |
movie_2
|
[
"movies"
] |
How many movies have a rating that is not null?
|
SELECT count(*) , rating FROM movies WHERE rating != 'null' GROUP BY rating
|
medium
|
1,841 |
movie_2
|
[
"movietheaters"
] |
Find the name of theaters that has at least one movie playing.
|
SELECT name FROM movietheaters GROUP BY name HAVING count(*) >= 1
|
easy
|
1,842 |
movie_2
|
[
"movietheaters"
] |
What are the names of every theater with at least one movie playing?
|
SELECT name FROM movietheaters GROUP BY name HAVING count(*) >= 1
|
easy
|
1,843 |
movie_2
|
[
"movietheaters"
] |
Select the name of all movie theaters that are not currently showing a movie.
|
SELECT DISTINCT name FROM MovieTheaters WHERE Movie = 'null'
|
easy
|
1,844 |
movie_2
|
[
"movietheaters"
] |
What are the names of all cinemas not showing any movies?
|
SELECT DISTINCT name FROM MovieTheaters WHERE Movie = 'null'
|
easy
|
1,845 |
movie_2
|
[
"movietheaters",
"movies"
] |
Find the name of the movie theaters that are playing the movies whose rating is ‘G’.
|
SELECT T2.name FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code = T2.movie WHERE T1.rating = 'G'
|
medium
|
1,846 |
movie_2
|
[
"movietheaters",
"movies"
] |
What are the names of theaters playing 'G' rated movies?
|
SELECT T2.name FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code = T2.movie WHERE T1.rating = 'G'
|
medium
|
1,847 |
movie_2
|
[
"movies"
] |
Select the title of all movies.
|
SELECT title FROM movies
|
easy
|
1,848 |
movie_2
|
[
"movies"
] |
What are all of the movie names?
|
SELECT title FROM movies
|
easy
|
1,849 |
movie_2
|
[
"movies"
] |
Show all the distinct ratings in the database.
|
SELECT DISTINCT rating FROM movies
|
easy
|
1,850 |
movie_2
|
[
"movies"
] |
What are the different movie ratings?
|
SELECT DISTINCT rating FROM movies
|
easy
|
1,851 |
movie_2
|
[
"movies"
] |
Show all information of all unrated movies.
|
SELECT * FROM movies WHERE rating = 'null'
|
easy
|
1,852 |
movie_2
|
[
"movies"
] |
What is all the information about the unrated movies?
|
SELECT * FROM movies WHERE rating = 'null'
|
easy
|
1,853 |
movie_2
|
[
"movietheaters",
"movies"
] |
Show the titles of movies not currently being shown in any theaters.
|
SELECT Title FROM Movies WHERE Code NOT IN (SELECT Movie FROM MovieTheaters WHERE Movie != 'null')
|
hard
|
1,854 |
movie_2
|
[
"movietheaters",
"movies"
] |
What are the names of the movies not being shown in any theaters?
|
SELECT Title FROM Movies WHERE Code NOT IN (SELECT Movie FROM MovieTheaters WHERE Movie != 'null')
|
hard
|
1,855 |
planet_1
|
[
"package",
"client"
] |
Who receieved the heaviest package?
|
SELECT T2.Name FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Recipient = T2.AccountNumber ORDER BY T1.Weight DESC LIMIT 1
|
hard
|
1,856 |
planet_1
|
[
"package",
"client"
] |
What is the name of the client who received the heaviest package?
|
SELECT T2.Name FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Recipient = T2.AccountNumber ORDER BY T1.Weight DESC LIMIT 1
|
hard
|
1,857 |
planet_1
|
[
"package",
"client"
] |
What is the total weight of all the packages that customer Leo Wong sent?
|
SELECT sum(T1.Weight) FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender = T2.AccountNumber WHERE T2.Name = "Leo Wong";
|
medium
|
1,858 |
planet_1
|
[
"package",
"client"
] |
What is the total weight for all packages that Leo Wong sent?
|
SELECT sum(T1.Weight) FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender = T2.AccountNumber WHERE T2.Name = "Leo Wong";
|
medium
|
1,859 |
planet_1
|
[
"employee"
] |
What is the position of Amy Wong?
|
SELECT POSITION FROM Employee WHERE Name = "Amy Wong";
|
easy
|
1,860 |
planet_1
|
[
"employee"
] |
What position does Amy Wong have?
|
SELECT POSITION FROM Employee WHERE Name = "Amy Wong";
|
easy
|
1,861 |
planet_1
|
[
"employee"
] |
What is Turanga Leela's salary and position?
|
SELECT Salary , POSITION FROM Employee WHERE Name = "Turanga Leela";
|
medium
|
1,862 |
planet_1
|
[
"employee"
] |
What is the salary and position of the employee named Turanga Leela?
|
SELECT Salary , POSITION FROM Employee WHERE Name = "Turanga Leela";
|
medium
|
1,863 |
planet_1
|
[
"employee"
] |
What is the average salary of all intern jobs?
|
SELECT avg(Salary) FROM Employee WHERE POSITION = "Intern";
|
easy
|
1,864 |
planet_1
|
[
"employee"
] |
What is the average salary of an intern?
|
SELECT avg(Salary) FROM Employee WHERE POSITION = "Intern";
|
easy
|
1,865 |
planet_1
|
[
"employee",
"has_clearance"
] |
What level is Physician?
|
SELECT T1.Level FROM Has_Clearance AS T1 JOIN Employee AS T2 ON T1.Employee = T2.EmployeeID WHERE T2.position = "Physician";
|
medium
|
1,866 |
planet_1
|
[
"employee",
"has_clearance"
] |
What is the clearance level of a physician?
|
SELECT T1.Level FROM Has_Clearance AS T1 JOIN Employee AS T2 ON T1.Employee = T2.EmployeeID WHERE T2.position = "Physician";
|
medium
|
1,867 |
planet_1
|
[
"package",
"client"
] |
List Package Number of all package sent by Leo Wong?
|
SELECT T1.PackageNumber FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender = T2.AccountNumber WHERE T2.Name = "Leo Wong";
|
medium
|
1,868 |
planet_1
|
[
"package",
"client"
] |
What is the number of all packages that Leo Wong sent?
|
SELECT T1.PackageNumber FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender = T2.AccountNumber WHERE T2.Name = "Leo Wong";
|
medium
|
1,869 |
planet_1
|
[
"client",
"package"
] |
List all package numbers received by Leo Wong ?
|
select t1.packagenumber from package as t1 join client as t2 on t1.recipient = t2.accountnumber where t2.name = "leo wong";
|
medium
|
1,870 |
planet_1
|
[
"package",
"client"
] |
What are all of the package numbers received by Leo Wong?
|
SELECT T1.PackageNumber FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Recipient = T2.AccountNumber WHERE T2.Name = "Leo Wong";
|
medium
|
1,871 |
planet_1
|
[
"package",
"client"
] |
List all package sent or received by Leo Wong.
|
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"
|
medium
|
1,872 |
planet_1
|
[
"package",
"client"
] |
What are all the different package numbers that Leo Wong sent or received?
|
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"
|
medium
|
1,873 |
planet_1
|
[
"package",
"client"
] |
Count the number of packages sent by Ogden Wernstrom and received by Leo Wong.
|
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"
|
extra
|
1,874 |
planet_1
|
[
"package",
"client"
] |
How many packages sent by Ogden Wernstrom and received by Leo Wong?
|
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"
|
extra
|
1,875 |
planet_1
|
[
"package",
"client"
] |
What are the contents of package sent by John Zoidfarb?
|
SELECT T1.Contents FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender = T2.AccountNumber WHERE T2.Name = "John Zoidfarb";
|
medium
|
1,876 |
planet_1
|
[
"package",
"client"
] |
What are the package contents of all those sent by John Zoidfarb?
|
SELECT T1.Contents FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender = T2.AccountNumber WHERE T2.Name = "John Zoidfarb";
|
medium
|
1,877 |
planet_1
|
[
"package",
"client"
] |
What is the heaviest package sent by the clients which 'John' is part of their name? List package number and weight.
|
SELECT T1.PackageNumber , max(T1.Weight) FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender = T2.AccountNumber WHERE T2.Name LIKE "John";
|
hard
|
1,878 |
planet_1
|
[
"package",
"client"
] |
What is the package number and weight of the heaviest package that was sent by a client named John or something similar?
|
SELECT T1.PackageNumber , max(T1.Weight) FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender = T2.AccountNumber WHERE T2.Name LIKE "John";
|
hard
|
1,879 |
planet_1
|
[
"package"
] |
List package number and weight of top 3 lightest packages.
|
SELECT PackageNumber , Weight FROM PACKAGE ORDER BY Weight ASC LIMIT 3;
|
medium
|
1,880 |
planet_1
|
[
"package"
] |
What is the package number and weight of the 3 lightest packages?
|
SELECT PackageNumber , Weight FROM PACKAGE ORDER BY Weight ASC LIMIT 3;
|
medium
|
1,881 |
planet_1
|
[
"package",
"client"
] |
Who sent most number of packages? List client name and number of packages sent by that client.
|
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;
|
extra
|
1,882 |
planet_1
|
[
"package",
"client"
] |
What is the name of the client who sent the most packages and how many were there?
|
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;
|
extra
|
1,883 |
planet_1
|
[
"client",
"package"
] |
Who received least number of packages ? List client name and number of packages received by that client .
|
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;
|
extra
|
1,884 |
planet_1
|
[
"client",
"package"
] |
What is the smallest number of packages received and by whom ?
|
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;
|
extra
|
1,885 |
planet_1
|
[
"package",
"client"
] |
Who sent more than one packages? List the client's name.
|
SELECT T2.Name , count(*) FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender = T2.AccountNumber GROUP BY T1.Sender HAVING count(*) > 1;
|
medium
|
1,886 |
planet_1
|
[
"package",
"client"
] |
What is the name of all clients who sent more than one package?
|
SELECT T2.Name , count(*) FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender = T2.AccountNumber GROUP BY T1.Sender HAVING count(*) > 1;
|
medium
|
1,887 |
planet_1
|
[
"planet"
] |
What are the Coordinates of planet Mars?
|
SELECT Coordinates FROM Planet WHERE Name = "Mars";
|
easy
|
1,888 |
planet_1
|
[
"planet"
] |
What are the coordinates of the planet named Mars?
|
SELECT Coordinates FROM Planet WHERE Name = "Mars";
|
easy
|
1,889 |
planet_1
|
[
"planet"
] |
List all Planets' names and coordinates in alphabetical order of name.
|
SELECT Name , Coordinates FROM Planet ORDER BY Name
|
medium
|
1,890 |
planet_1
|
[
"planet"
] |
What are the names and coordinates of all planets in alphabetical order by name?
|
SELECT Name , Coordinates FROM Planet ORDER BY Name
|
medium
|
1,891 |
planet_1
|
[
"employee",
"shipment"
] |
List all shipment id under Phillip J. Fry's management.
|
SELECT T1.ShipmentID FROM Shipment AS T1 JOIN Employee AS T2 ON T1.Manager = T2.EmployeeID WHERE T2.Name = "Phillip J. Fry";
|
medium
|
1,892 |
planet_1
|
[
"employee",
"shipment"
] |
What are the shipment IDs of every delivery managed by Phillip J Fry?
|
SELECT T1.ShipmentID FROM Shipment AS T1 JOIN Employee AS T2 ON T1.Manager = T2.EmployeeID WHERE T2.Name = "Phillip J. Fry";
|
medium
|
1,893 |
planet_1
|
[
"shipment"
] |
List the dates of all shipments.
|
SELECT Date FROM Shipment;
|
easy
|
1,894 |
planet_1
|
[
"shipment"
] |
What are the dates of every shipment in the database?
|
SELECT Date FROM Shipment;
|
easy
|
1,895 |
planet_1
|
[
"planet",
"shipment"
] |
List all shipment ids for the planet Mars.
|
SELECT T1.ShipmentID FROM Shipment AS T1 JOIN Planet AS T2 ON T1.Planet = T2.PlanetID WHERE T2.Name = "Mars";
|
medium
|
1,896 |
planet_1
|
[
"planet",
"shipment"
] |
What are the shipment ids for the planet Mars?
|
SELECT T1.ShipmentID FROM Shipment AS T1 JOIN Planet AS T2 ON T1.Planet = T2.PlanetID WHERE T2.Name = "Mars";
|
medium
|
1,897 |
planet_1
|
[
"planet",
"employee",
"shipment"
] |
List all shipment ids for the planet Mars and under the management of Turanga Leela.
|
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";
|
hard
|
1,898 |
planet_1
|
[
"planet",
"employee",
"shipment"
] |
What are the ids of all shipments on the planet Mars that are managed by Turanga Leela?
|
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";
|
hard
|
1,899 |
planet_1
|
[
"planet",
"employee",
"shipment"
] |
List all shipment ids on the planet Mars or under the management of Turanga Leela.
|
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";
|
extra
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.