nl stringlengths 22 185 | sql stringlengths 22 608 | db_id stringclasses 40
values | table_schema stringclasses 305
values |
|---|---|---|---|
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 | university_rank | [{'table_name': 'university', 'table_schema': [{'col_name': 'university id'}, {'col_name': 'university name'}, {'col_name': 'city'}, {'col_name': 'state'}, {'col_name': 'team name'}, {'col_name': 'affiliation'}, {'col_name': 'enrollment'}, {'col_name': 'home conference'}], 'foreign_key_columns': [], 'primary_keys': ['u... |
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 | university_rank | [{'table_name': 'university', 'table_schema': [{'col_name': 'university id'}, {'col_name': 'university name'}, {'col_name': 'city'}, {'col_name': 'state'}, {'col_name': 'team name'}, {'col_name': 'affiliation'}, {'col_name': 'enrollment'}, {'col_name': 'home conference'}], 'foreign_key_columns': [], 'primary_keys': ['u... |
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 | university_rank | [{'table_name': 'university', 'table_schema': [{'col_name': 'university id'}, {'col_name': 'university name'}, {'col_name': 'city'}, {'col_name': 'state'}, {'col_name': 'team name'}, {'col_name': 'affiliation'}, {'col_name': 'enrollment'}, {'col_name': 'home conference'}], 'foreign_key_columns': [], 'primary_keys': ['u... |
Find the titles of movies that don’t have any rating. | SELECT title FROM movies WHERE rating = 'null' | movie_2 | [{'table_name': 'movies', 'table_schema': [{'col_name': 'code'}, {'col_name': 'title'}, {'col_name': 'rating'}], 'foreign_key_columns': [], 'primary_keys': ['code']}] |
What are the names of movies that do not have any ratings? | SELECT title FROM movies WHERE rating = 'null' | movie_2 | [{'table_name': 'movies', 'table_schema': [{'col_name': 'code'}, {'col_name': 'title'}, {'col_name': 'rating'}], 'foreign_key_columns': [], 'primary_keys': ['code']}] |
Find the names of movies whose rating is ‘G’. | SELECT title FROM movies WHERE rating = 'G' | movie_2 | [{'table_name': 'movies', 'table_schema': [{'col_name': 'code'}, {'col_name': 'title'}, {'col_name': 'rating'}], 'foreign_key_columns': [], 'primary_keys': ['code']}] |
What are names of movies that have a 'G' ratings? | SELECT title FROM movies WHERE rating = 'G' | movie_2 | [{'table_name': 'movies', 'table_schema': [{'col_name': 'code'}, {'col_name': 'title'}, {'col_name': 'rating'}], 'foreign_key_columns': [], 'primary_keys': ['code']}] |
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' | movie_2 | [{'table_name': 'movies', 'table_schema': [{'col_name': 'code'}, {'col_name': 'title'}, {'col_name': 'rating'}], 'foreign_key_columns': [], 'primary_keys': ['code']}, {'table_name': 'movie theaters', 'table_schema': [{'col_name': 'code'}, {'col_name': 'name'}, {'col_name': 'movie'}], 'foreign_key_columns': ['movie'], '... |
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' | movie_2 | [{'table_name': 'movies', 'table_schema': [{'col_name': 'code'}, {'col_name': 'title'}, {'col_name': 'rating'}], 'foreign_key_columns': [], 'primary_keys': ['code']}, {'table_name': 'movie theaters', 'table_schema': [{'col_name': 'code'}, {'col_name': 'name'}, {'col_name': 'movie'}], 'foreign_key_columns': ['movie'], '... |
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 | movie_2 | [{'table_name': 'movies', 'table_schema': [{'col_name': 'code'}, {'col_name': 'title'}, {'col_name': 'rating'}], 'foreign_key_columns': [], 'primary_keys': ['code']}, {'table_name': 'movie theaters', 'table_schema': [{'col_name': 'code'}, {'col_name': 'name'}, {'col_name': 'movie'}], 'foreign_key_columns': ['movie'], '... |
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 | movie_2 | [{'table_name': 'movies', 'table_schema': [{'col_name': 'code'}, {'col_name': 'title'}, {'col_name': 'rating'}], 'foreign_key_columns': [], 'primary_keys': ['code']}, {'table_name': 'movie theaters', 'table_schema': [{'col_name': 'code'}, {'col_name': 'name'}, {'col_name': 'movie'}], 'foreign_key_columns': ['movie'], '... |
Find the number of movies whose rating is ‘G’. | SELECT count(*) FROM movies WHERE rating = 'G' | movie_2 | [{'table_name': 'movies', 'table_schema': [{'col_name': 'code'}, {'col_name': 'title'}, {'col_name': 'rating'}], 'foreign_key_columns': [], 'primary_keys': ['code']}] |
How many movies had a 'G' rating? | SELECT count(*) FROM movies WHERE rating = 'G' | movie_2 | [{'table_name': 'movies', 'table_schema': [{'col_name': 'code'}, {'col_name': 'title'}, {'col_name': 'rating'}], 'foreign_key_columns': [], 'primary_keys': ['code']}] |
How many movies are playing across all theaters? | SELECT count(*) FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code = T2.movie | movie_2 | [{'table_name': 'movies', 'table_schema': [{'col_name': 'code'}, {'col_name': 'title'}, {'col_name': 'rating'}], 'foreign_key_columns': [], 'primary_keys': ['code']}, {'table_name': 'movie theaters', 'table_schema': [{'col_name': 'code'}, {'col_name': 'name'}, {'col_name': 'movie'}], 'foreign_key_columns': ['movie'], '... |
How many movies are playing in theaters? | SELECT count(*) FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code = T2.movie | movie_2 | [{'table_name': 'movies', 'table_schema': [{'col_name': 'code'}, {'col_name': 'title'}, {'col_name': 'rating'}], 'foreign_key_columns': [], 'primary_keys': ['code']}, {'table_name': 'movie theaters', 'table_schema': [{'col_name': 'code'}, {'col_name': 'name'}, {'col_name': 'movie'}], 'foreign_key_columns': ['movie'], '... |
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 | movie_2 | [{'table_name': 'movies', 'table_schema': [{'col_name': 'code'}, {'col_name': 'title'}, {'col_name': 'rating'}], 'foreign_key_columns': [], 'primary_keys': ['code']}, {'table_name': 'movie theaters', 'table_schema': [{'col_name': 'code'}, {'col_name': 'name'}, {'col_name': 'movie'}], 'foreign_key_columns': ['movie'], '... |
How many different movies are playing? | SELECT count(DISTINCT T1.code) FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code = T2.movie | movie_2 | [{'table_name': 'movies', 'table_schema': [{'col_name': 'code'}, {'col_name': 'title'}, {'col_name': 'rating'}], 'foreign_key_columns': [], 'primary_keys': ['code']}, {'table_name': 'movie theaters', 'table_schema': [{'col_name': 'code'}, {'col_name': 'name'}, {'col_name': 'movie'}], 'foreign_key_columns': ['movie'], '... |
How many distinct movie theaters are there? | SELECT count(DISTINCT name) FROM movietheaters | movie_2 | [{'table_name': 'movie theaters', 'table_schema': [{'col_name': 'code'}, {'col_name': 'name'}, {'col_name': 'movie'}], 'foreign_key_columns': ['movie'], 'primary_keys': ['code']}] |
How many different movie theaters exist? | SELECT count(DISTINCT name) FROM movietheaters | movie_2 | [{'table_name': 'movie theaters', 'table_schema': [{'col_name': 'code'}, {'col_name': 'name'}, {'col_name': 'movie'}], 'foreign_key_columns': ['movie'], 'primary_keys': ['code']}] |
Find the rating of the movie whose name includes the word ‘Citizen’. | SELECT rating FROM movies WHERE title LIKE '%Citizen%' | movie_2 | [{'table_name': 'movies', 'table_schema': [{'col_name': 'code'}, {'col_name': 'title'}, {'col_name': 'rating'}], 'foreign_key_columns': [], 'primary_keys': ['code']}] |
What is the rating of the movie what has a name including a word like 'Citizen'? | SELECT rating FROM movies WHERE title LIKE '%Citizen%' | movie_2 | [{'table_name': 'movies', 'table_schema': [{'col_name': 'code'}, {'col_name': 'title'}, {'col_name': 'rating'}], 'foreign_key_columns': [], 'primary_keys': ['code']}] |
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' | movie_2 | [{'table_name': 'movies', 'table_schema': [{'col_name': 'code'}, {'col_name': 'title'}, {'col_name': 'rating'}], 'foreign_key_columns': [], 'primary_keys': ['code']}] |
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' | movie_2 | [{'table_name': 'movies', 'table_schema': [{'col_name': 'code'}, {'col_name': 'title'}, {'col_name': 'rating'}], 'foreign_key_columns': [], 'primary_keys': ['code']}] |
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' | movie_2 | [{'table_name': 'movies', 'table_schema': [{'col_name': 'code'}, {'col_name': 'title'}, {'col_name': 'rating'}], 'foreign_key_columns': [], 'primary_keys': ['code']}, {'table_name': 'movie theaters', 'table_schema': [{'col_name': 'code'}, {'col_name': 'name'}, {'col_name': 'movie'}], 'foreign_key_columns': ['movie'], '... |
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' | movie_2 | [{'table_name': 'movies', 'table_schema': [{'col_name': 'code'}, {'col_name': 'title'}, {'col_name': 'rating'}], 'foreign_key_columns': [], 'primary_keys': ['code']}, {'table_name': 'movie theaters', 'table_schema': [{'col_name': 'code'}, {'col_name': 'name'}, {'col_name': 'movie'}], 'foreign_key_columns': ['movie'], '... |
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' | movie_2 | [{'table_name': 'movies', 'table_schema': [{'col_name': 'code'}, {'col_name': 'title'}, {'col_name': 'rating'}], 'foreign_key_columns': [], 'primary_keys': ['code']}, {'table_name': 'movie theaters', 'table_schema': [{'col_name': 'code'}, {'col_name': 'name'}, {'col_name': 'movie'}], 'foreign_key_columns': ['movie'], '... |
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' | movie_2 | [{'table_name': 'movies', 'table_schema': [{'col_name': 'code'}, {'col_name': 'title'}, {'col_name': 'rating'}], 'foreign_key_columns': [], 'primary_keys': ['code']}, {'table_name': 'movie theaters', 'table_schema': [{'col_name': 'code'}, {'col_name': 'name'}, {'col_name': 'movie'}], 'foreign_key_columns': ['movie'], '... |
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' | movie_2 | [{'table_name': 'movies', 'table_schema': [{'col_name': 'code'}, {'col_name': 'title'}, {'col_name': 'rating'}], 'foreign_key_columns': [], 'primary_keys': ['code']}, {'table_name': 'movie theaters', 'table_schema': [{'col_name': 'code'}, {'col_name': 'name'}, {'col_name': 'movie'}], 'foreign_key_columns': ['movie'], '... |
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' | movie_2 | [{'table_name': 'movies', 'table_schema': [{'col_name': 'code'}, {'col_name': 'title'}, {'col_name': 'rating'}], 'foreign_key_columns': [], 'primary_keys': ['code']}, {'table_name': 'movie theaters', 'table_schema': [{'col_name': 'code'}, {'col_name': 'name'}, {'col_name': 'movie'}], 'foreign_key_columns': ['movie'], '... |
List in alphabetical order the titles of all movies. | SELECT title FROM movies ORDER BY title | movie_2 | [{'table_name': 'movies', 'table_schema': [{'col_name': 'code'}, {'col_name': 'title'}, {'col_name': 'rating'}], 'foreign_key_columns': [], 'primary_keys': ['code']}] |
What are the movie names in alphabetical order? | SELECT title FROM movies ORDER BY title | movie_2 | [{'table_name': 'movies', 'table_schema': [{'col_name': 'code'}, {'col_name': 'title'}, {'col_name': 'rating'}], 'foreign_key_columns': [], 'primary_keys': ['code']}] |
Find the titles of all movies sorted by their ratings. | SELECT title FROM movies ORDER BY rating | movie_2 | [{'table_name': 'movies', 'table_schema': [{'col_name': 'code'}, {'col_name': 'title'}, {'col_name': 'rating'}], 'foreign_key_columns': [], 'primary_keys': ['code']}] |
What are the movie names sorted by rating? | SELECT title FROM movies ORDER BY rating | movie_2 | [{'table_name': 'movies', 'table_schema': [{'col_name': 'code'}, {'col_name': 'title'}, {'col_name': 'rating'}], 'foreign_key_columns': [], 'primary_keys': ['code']}] |
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 | movie_2 | [{'table_name': 'movie theaters', 'table_schema': [{'col_name': 'code'}, {'col_name': 'name'}, {'col_name': 'movie'}], 'foreign_key_columns': ['movie'], 'primary_keys': ['code']}] |
What is the name of the theater playing the most movies? | SELECT name FROM movietheaters GROUP BY name ORDER BY count(*) DESC LIMIT 1 | movie_2 | [{'table_name': 'movie theaters', 'table_schema': [{'col_name': 'code'}, {'col_name': 'name'}, {'col_name': 'movie'}], 'foreign_key_columns': ['movie'], 'primary_keys': ['code']}] |
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 | movie_2 | [{'table_name': 'movies', 'table_schema': [{'col_name': 'code'}, {'col_name': 'title'}, {'col_name': 'rating'}], 'foreign_key_columns': [], 'primary_keys': ['code']}, {'table_name': 'movie theaters', 'table_schema': [{'col_name': 'code'}, {'col_name': 'name'}, {'col_name': 'movie'}], 'foreign_key_columns': ['movie'], '... |
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 | movie_2 | [{'table_name': 'movies', 'table_schema': [{'col_name': 'code'}, {'col_name': 'title'}, {'col_name': 'rating'}], 'foreign_key_columns': [], 'primary_keys': ['code']}, {'table_name': 'movie theaters', 'table_schema': [{'col_name': 'code'}, {'col_name': 'name'}, {'col_name': 'movie'}], 'foreign_key_columns': ['movie'], '... |
Find the number of movies in each rating. | SELECT count(*) , rating FROM movies GROUP BY rating | movie_2 | [{'table_name': 'movies', 'table_schema': [{'col_name': 'code'}, {'col_name': 'title'}, {'col_name': 'rating'}], 'foreign_key_columns': [], 'primary_keys': ['code']}] |
How many movies exist for each rating? | SELECT count(*) , rating FROM movies GROUP BY rating | movie_2 | [{'table_name': 'movies', 'table_schema': [{'col_name': 'code'}, {'col_name': 'title'}, {'col_name': 'rating'}], 'foreign_key_columns': [], 'primary_keys': ['code']}] |
Find the number of movies whose rating is not null. | SELECT count(*) , rating FROM movies WHERE rating != 'null' GROUP BY rating | movie_2 | [{'table_name': 'movies', 'table_schema': [{'col_name': 'code'}, {'col_name': 'title'}, {'col_name': 'rating'}], 'foreign_key_columns': [], 'primary_keys': ['code']}] |
How many movies have a rating that is not null? | SELECT count(*) , rating FROM movies WHERE rating != 'null' GROUP BY rating | movie_2 | [{'table_name': 'movies', 'table_schema': [{'col_name': 'code'}, {'col_name': 'title'}, {'col_name': 'rating'}], 'foreign_key_columns': [], 'primary_keys': ['code']}] |
Find the name of theaters that has at least one movie playing. | SELECT name FROM movietheaters GROUP BY name HAVING count(*) >= 1 | movie_2 | [{'table_name': 'movie theaters', 'table_schema': [{'col_name': 'code'}, {'col_name': 'name'}, {'col_name': 'movie'}], 'foreign_key_columns': ['movie'], 'primary_keys': ['code']}] |
What are the names of every theater with at least one movie playing? | SELECT name FROM movietheaters GROUP BY name HAVING count(*) >= 1 | movie_2 | [{'table_name': 'movie theaters', 'table_schema': [{'col_name': 'code'}, {'col_name': 'name'}, {'col_name': 'movie'}], 'foreign_key_columns': ['movie'], 'primary_keys': ['code']}] |
Select the name of all movie theaters that are not currently showing a movie. | SELECT DISTINCT name FROM MovieTheaters WHERE Movie = 'null' | movie_2 | [{'table_name': 'movie theaters', 'table_schema': [{'col_name': 'code'}, {'col_name': 'name'}, {'col_name': 'movie'}], 'foreign_key_columns': ['movie'], 'primary_keys': ['code']}] |
What are the names of all cinemas not showing any movies? | SELECT DISTINCT name FROM MovieTheaters WHERE Movie = 'null' | movie_2 | [{'table_name': 'movie theaters', 'table_schema': [{'col_name': 'code'}, {'col_name': 'name'}, {'col_name': 'movie'}], 'foreign_key_columns': ['movie'], 'primary_keys': ['code']}] |
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' | movie_2 | [{'table_name': 'movies', 'table_schema': [{'col_name': 'code'}, {'col_name': 'title'}, {'col_name': 'rating'}], 'foreign_key_columns': [], 'primary_keys': ['code']}, {'table_name': 'movie theaters', 'table_schema': [{'col_name': 'code'}, {'col_name': 'name'}, {'col_name': 'movie'}], 'foreign_key_columns': ['movie'], '... |
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' | movie_2 | [{'table_name': 'movies', 'table_schema': [{'col_name': 'code'}, {'col_name': 'title'}, {'col_name': 'rating'}], 'foreign_key_columns': [], 'primary_keys': ['code']}, {'table_name': 'movie theaters', 'table_schema': [{'col_name': 'code'}, {'col_name': 'name'}, {'col_name': 'movie'}], 'foreign_key_columns': ['movie'], '... |
Select the title of all movies. | SELECT title FROM movies | movie_2 | [{'table_name': 'movies', 'table_schema': [{'col_name': 'code'}, {'col_name': 'title'}, {'col_name': 'rating'}], 'foreign_key_columns': [], 'primary_keys': ['code']}] |
What are all of the movie names? | SELECT title FROM movies | movie_2 | [{'table_name': 'movies', 'table_schema': [{'col_name': 'code'}, {'col_name': 'title'}, {'col_name': 'rating'}], 'foreign_key_columns': [], 'primary_keys': ['code']}] |
Show all the distinct ratings in the database. | SELECT DISTINCT rating FROM movies | movie_2 | [{'table_name': 'movies', 'table_schema': [{'col_name': 'code'}, {'col_name': 'title'}, {'col_name': 'rating'}], 'foreign_key_columns': [], 'primary_keys': ['code']}] |
What are the different movie ratings? | SELECT DISTINCT rating FROM movies | movie_2 | [{'table_name': 'movies', 'table_schema': [{'col_name': 'code'}, {'col_name': 'title'}, {'col_name': 'rating'}], 'foreign_key_columns': [], 'primary_keys': ['code']}] |
Show all information of all unrated movies. | SELECT * FROM movies WHERE rating = 'null' | movie_2 | [{'table_name': 'movies', 'table_schema': [{'col_name': 'code'}, {'col_name': 'title'}, {'col_name': 'rating'}], 'foreign_key_columns': [], 'primary_keys': ['code']}] |
What is all the information about the unrated movies? | SELECT * FROM movies WHERE rating = 'null' | movie_2 | [{'table_name': 'movies', 'table_schema': [{'col_name': 'code'}, {'col_name': 'title'}, {'col_name': 'rating'}], 'foreign_key_columns': [], 'primary_keys': ['code']}] |
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') | movie_2 | [{'table_name': 'movies', 'table_schema': [{'col_name': 'code'}, {'col_name': 'title'}, {'col_name': 'rating'}], 'foreign_key_columns': [], 'primary_keys': ['code']}, {'table_name': 'movie theaters', 'table_schema': [{'col_name': 'code'}, {'col_name': 'name'}, {'col_name': 'movie'}], 'foreign_key_columns': ['movie'], '... |
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') | movie_2 | [{'table_name': 'movies', 'table_schema': [{'col_name': 'code'}, {'col_name': 'title'}, {'col_name': 'rating'}], 'foreign_key_columns': [], 'primary_keys': ['code']}, {'table_name': 'movie theaters', 'table_schema': [{'col_name': 'code'}, {'col_name': 'name'}, {'col_name': 'movie'}], 'foreign_key_columns': ['movie'], '... |
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 | planet_1 | [{'table_name': 'client', 'table_schema': [{'col_name': 'account number'}, {'col_name': 'name'}], 'foreign_key_columns': [], 'primary_keys': ['account number']}, {'table_name': 'package', 'table_schema': [{'col_name': 'shipment'}, {'col_name': 'package number'}, {'col_name': 'contents'}, {'col_name': 'weight'}, {'col_n... |
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 | planet_1 | [{'table_name': 'client', 'table_schema': [{'col_name': 'account number'}, {'col_name': 'name'}], 'foreign_key_columns': [], 'primary_keys': ['account number']}, {'table_name': 'package', 'table_schema': [{'col_name': 'shipment'}, {'col_name': 'package number'}, {'col_name': 'contents'}, {'col_name': 'weight'}, {'col_n... |
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"; | planet_1 | [{'table_name': 'client', 'table_schema': [{'col_name': 'account number'}, {'col_name': 'name'}], 'foreign_key_columns': [], 'primary_keys': ['account number']}, {'table_name': 'package', 'table_schema': [{'col_name': 'shipment'}, {'col_name': 'package number'}, {'col_name': 'contents'}, {'col_name': 'weight'}, {'col_n... |
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"; | planet_1 | [{'table_name': 'client', 'table_schema': [{'col_name': 'account number'}, {'col_name': 'name'}], 'foreign_key_columns': [], 'primary_keys': ['account number']}, {'table_name': 'package', 'table_schema': [{'col_name': 'shipment'}, {'col_name': 'package number'}, {'col_name': 'contents'}, {'col_name': 'weight'}, {'col_n... |
What is the position of Amy Wong? | SELECT POSITION FROM Employee WHERE Name = "Amy Wong"; | planet_1 | [{'table_name': 'employee', 'table_schema': [{'col_name': 'employee id'}, {'col_name': 'name'}, {'col_name': 'position'}, {'col_name': 'salary'}, {'col_name': 'remarks'}], 'foreign_key_columns': [], 'primary_keys': ['employee id']}] |
What position does Amy Wong have? | SELECT POSITION FROM Employee WHERE Name = "Amy Wong"; | planet_1 | [{'table_name': 'employee', 'table_schema': [{'col_name': 'employee id'}, {'col_name': 'name'}, {'col_name': 'position'}, {'col_name': 'salary'}, {'col_name': 'remarks'}], 'foreign_key_columns': [], 'primary_keys': ['employee id']}] |
What is Turanga Leela's salary and position? | SELECT Salary , POSITION FROM Employee WHERE Name = "Turanga Leela"; | planet_1 | [{'table_name': 'employee', 'table_schema': [{'col_name': 'employee id'}, {'col_name': 'name'}, {'col_name': 'position'}, {'col_name': 'salary'}, {'col_name': 'remarks'}], 'foreign_key_columns': [], 'primary_keys': ['employee id']}] |
What is the salary and position of the employee named Turanga Leela? | SELECT Salary , POSITION FROM Employee WHERE Name = "Turanga Leela"; | planet_1 | [{'table_name': 'employee', 'table_schema': [{'col_name': 'employee id'}, {'col_name': 'name'}, {'col_name': 'position'}, {'col_name': 'salary'}, {'col_name': 'remarks'}], 'foreign_key_columns': [], 'primary_keys': ['employee id']}] |
What is the average salary of all intern jobs? | SELECT avg(Salary) FROM Employee WHERE POSITION = "Intern"; | planet_1 | [{'table_name': 'employee', 'table_schema': [{'col_name': 'employee id'}, {'col_name': 'name'}, {'col_name': 'position'}, {'col_name': 'salary'}, {'col_name': 'remarks'}], 'foreign_key_columns': [], 'primary_keys': ['employee id']}] |
What is the average salary of an intern? | SELECT avg(Salary) FROM Employee WHERE POSITION = "Intern"; | planet_1 | [{'table_name': 'employee', 'table_schema': [{'col_name': 'employee id'}, {'col_name': 'name'}, {'col_name': 'position'}, {'col_name': 'salary'}, {'col_name': 'remarks'}], 'foreign_key_columns': [], 'primary_keys': ['employee id']}] |
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"; | planet_1 | [{'table_name': 'employee', 'table_schema': [{'col_name': 'employee id'}, {'col_name': 'name'}, {'col_name': 'position'}, {'col_name': 'salary'}, {'col_name': 'remarks'}], 'foreign_key_columns': [], 'primary_keys': ['employee id']}, {'table_name': 'has clearance', 'table_schema': [{'col_name': 'employee'}, {'col_name':... |
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"; | planet_1 | [{'table_name': 'employee', 'table_schema': [{'col_name': 'employee id'}, {'col_name': 'name'}, {'col_name': 'position'}, {'col_name': 'salary'}, {'col_name': 'remarks'}], 'foreign_key_columns': [], 'primary_keys': ['employee id']}, {'table_name': 'has clearance', 'table_schema': [{'col_name': 'employee'}, {'col_name':... |
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"; | planet_1 | [{'table_name': 'client', 'table_schema': [{'col_name': 'account number'}, {'col_name': 'name'}], 'foreign_key_columns': [], 'primary_keys': ['account number']}, {'table_name': 'package', 'table_schema': [{'col_name': 'shipment'}, {'col_name': 'package number'}, {'col_name': 'contents'}, {'col_name': 'weight'}, {'col_n... |
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"; | planet_1 | [{'table_name': 'client', 'table_schema': [{'col_name': 'account number'}, {'col_name': 'name'}], 'foreign_key_columns': [], 'primary_keys': ['account number']}, {'table_name': 'package', 'table_schema': [{'col_name': 'shipment'}, {'col_name': 'package number'}, {'col_name': 'contents'}, {'col_name': 'weight'}, {'col_n... |
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"; | planet_1 | [{'table_name': 'client', 'table_schema': [{'col_name': 'account number'}, {'col_name': 'name'}], 'foreign_key_columns': [], 'primary_keys': ['account number']}, {'table_name': 'package', 'table_schema': [{'col_name': 'shipment'}, {'col_name': 'package number'}, {'col_name': 'contents'}, {'col_name': 'weight'}, {'col_n... |
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"; | planet_1 | [{'table_name': 'client', 'table_schema': [{'col_name': 'account number'}, {'col_name': 'name'}], 'foreign_key_columns': [], 'primary_keys': ['account number']}, {'table_name': 'package', 'table_schema': [{'col_name': 'shipment'}, {'col_name': 'package number'}, {'col_name': 'contents'}, {'col_name': 'weight'}, {'col_n... |
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" | planet_1 | [{'table_name': 'client', 'table_schema': [{'col_name': 'account number'}, {'col_name': 'name'}], 'foreign_key_columns': [], 'primary_keys': ['account number']}, {'table_name': 'package', 'table_schema': [{'col_name': 'shipment'}, {'col_name': 'package number'}, {'col_name': 'contents'}, {'col_name': 'weight'}, {'col_n... |
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" | planet_1 | [{'table_name': 'client', 'table_schema': [{'col_name': 'account number'}, {'col_name': 'name'}], 'foreign_key_columns': [], 'primary_keys': ['account number']}, {'table_name': 'package', 'table_schema': [{'col_name': 'shipment'}, {'col_name': 'package number'}, {'col_name': 'contents'}, {'col_name': 'weight'}, {'col_n... |
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" | planet_1 | [{'table_name': 'client', 'table_schema': [{'col_name': 'account number'}, {'col_name': 'name'}], 'foreign_key_columns': [], 'primary_keys': ['account number']}, {'table_name': 'package', 'table_schema': [{'col_name': 'shipment'}, {'col_name': 'package number'}, {'col_name': 'contents'}, {'col_name': 'weight'}, {'col_n... |
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" | planet_1 | [{'table_name': 'client', 'table_schema': [{'col_name': 'account number'}, {'col_name': 'name'}], 'foreign_key_columns': [], 'primary_keys': ['account number']}, {'table_name': 'package', 'table_schema': [{'col_name': 'shipment'}, {'col_name': 'package number'}, {'col_name': 'contents'}, {'col_name': 'weight'}, {'col_n... |
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"; | planet_1 | [{'table_name': 'client', 'table_schema': [{'col_name': 'account number'}, {'col_name': 'name'}], 'foreign_key_columns': [], 'primary_keys': ['account number']}, {'table_name': 'package', 'table_schema': [{'col_name': 'shipment'}, {'col_name': 'package number'}, {'col_name': 'contents'}, {'col_name': 'weight'}, {'col_n... |
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"; | planet_1 | [{'table_name': 'client', 'table_schema': [{'col_name': 'account number'}, {'col_name': 'name'}], 'foreign_key_columns': [], 'primary_keys': ['account number']}, {'table_name': 'package', 'table_schema': [{'col_name': 'shipment'}, {'col_name': 'package number'}, {'col_name': 'contents'}, {'col_name': 'weight'}, {'col_n... |
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"; | planet_1 | [{'table_name': 'client', 'table_schema': [{'col_name': 'account number'}, {'col_name': 'name'}], 'foreign_key_columns': [], 'primary_keys': ['account number']}, {'table_name': 'package', 'table_schema': [{'col_name': 'shipment'}, {'col_name': 'package number'}, {'col_name': 'contents'}, {'col_name': 'weight'}, {'col_n... |
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"; | planet_1 | [{'table_name': 'client', 'table_schema': [{'col_name': 'account number'}, {'col_name': 'name'}], 'foreign_key_columns': [], 'primary_keys': ['account number']}, {'table_name': 'package', 'table_schema': [{'col_name': 'shipment'}, {'col_name': 'package number'}, {'col_name': 'contents'}, {'col_name': 'weight'}, {'col_n... |
List package number and weight of top 3 lightest packages. | SELECT PackageNumber , Weight FROM PACKAGE ORDER BY Weight ASC LIMIT 3; | planet_1 | [{'table_name': 'package', 'table_schema': [{'col_name': 'shipment'}, {'col_name': 'package number'}, {'col_name': 'contents'}, {'col_name': 'weight'}, {'col_name': 'sender'}, {'col_name': 'recipient'}], 'foreign_key_columns': ['recipient', 'sender', 'shipment'], 'primary_keys': ['shipment']}] |
What is the package number and weight of the 3 lightest packages? | SELECT PackageNumber , Weight FROM PACKAGE ORDER BY Weight ASC LIMIT 3; | planet_1 | [{'table_name': 'package', 'table_schema': [{'col_name': 'shipment'}, {'col_name': 'package number'}, {'col_name': 'contents'}, {'col_name': 'weight'}, {'col_name': 'sender'}, {'col_name': 'recipient'}], 'foreign_key_columns': ['recipient', 'sender', 'shipment'], 'primary_keys': ['shipment']}] |
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; | planet_1 | [{'table_name': 'client', 'table_schema': [{'col_name': 'account number'}, {'col_name': 'name'}], 'foreign_key_columns': [], 'primary_keys': ['account number']}, {'table_name': 'package', 'table_schema': [{'col_name': 'shipment'}, {'col_name': 'package number'}, {'col_name': 'contents'}, {'col_name': 'weight'}, {'col_n... |
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; | planet_1 | [{'table_name': 'client', 'table_schema': [{'col_name': 'account number'}, {'col_name': 'name'}], 'foreign_key_columns': [], 'primary_keys': ['account number']}, {'table_name': 'package', 'table_schema': [{'col_name': 'shipment'}, {'col_name': 'package number'}, {'col_name': 'contents'}, {'col_name': 'weight'}, {'col_n... |
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; | planet_1 | [{'table_name': 'client', 'table_schema': [{'col_name': 'account number'}, {'col_name': 'name'}], 'foreign_key_columns': [], 'primary_keys': ['account number']}, {'table_name': 'package', 'table_schema': [{'col_name': 'shipment'}, {'col_name': 'package number'}, {'col_name': 'contents'}, {'col_name': 'weight'}, {'col_n... |
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; | planet_1 | [{'table_name': 'client', 'table_schema': [{'col_name': 'account number'}, {'col_name': 'name'}], 'foreign_key_columns': [], 'primary_keys': ['account number']}, {'table_name': 'package', 'table_schema': [{'col_name': 'shipment'}, {'col_name': 'package number'}, {'col_name': 'contents'}, {'col_name': 'weight'}, {'col_n... |
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; | planet_1 | [{'table_name': 'client', 'table_schema': [{'col_name': 'account number'}, {'col_name': 'name'}], 'foreign_key_columns': [], 'primary_keys': ['account number']}, {'table_name': 'package', 'table_schema': [{'col_name': 'shipment'}, {'col_name': 'package number'}, {'col_name': 'contents'}, {'col_name': 'weight'}, {'col_n... |
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; | planet_1 | [{'table_name': 'client', 'table_schema': [{'col_name': 'account number'}, {'col_name': 'name'}], 'foreign_key_columns': [], 'primary_keys': ['account number']}, {'table_name': 'package', 'table_schema': [{'col_name': 'shipment'}, {'col_name': 'package number'}, {'col_name': 'contents'}, {'col_name': 'weight'}, {'col_n... |
What are the Coordinates of planet Mars? | SELECT Coordinates FROM Planet WHERE Name = "Mars"; | planet_1 | [{'table_name': 'planet', 'table_schema': [{'col_name': 'planet id'}, {'col_name': 'name'}, {'col_name': 'coordinates'}], 'foreign_key_columns': [], 'primary_keys': ['planet id']}] |
What are the coordinates of the planet named Mars? | SELECT Coordinates FROM Planet WHERE Name = "Mars"; | planet_1 | [{'table_name': 'planet', 'table_schema': [{'col_name': 'planet id'}, {'col_name': 'name'}, {'col_name': 'coordinates'}], 'foreign_key_columns': [], 'primary_keys': ['planet id']}] |
List all Planets' names and coordinates in alphabetical order of name. | SELECT Name , Coordinates FROM Planet ORDER BY Name | planet_1 | [{'table_name': 'planet', 'table_schema': [{'col_name': 'planet id'}, {'col_name': 'name'}, {'col_name': 'coordinates'}], 'foreign_key_columns': [], 'primary_keys': ['planet id']}] |
What are the names and coordinates of all planets in alphabetical order by name? | SELECT Name , Coordinates FROM Planet ORDER BY Name | planet_1 | [{'table_name': 'planet', 'table_schema': [{'col_name': 'planet id'}, {'col_name': 'name'}, {'col_name': 'coordinates'}], 'foreign_key_columns': [], 'primary_keys': ['planet id']}] |
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"; | planet_1 | [{'table_name': 'employee', 'table_schema': [{'col_name': 'employee id'}, {'col_name': 'name'}, {'col_name': 'position'}, {'col_name': 'salary'}, {'col_name': 'remarks'}], 'foreign_key_columns': [], 'primary_keys': ['employee id']}, {'table_name': 'shipment', 'table_schema': [{'col_name': 'shipment id'}, {'col_name': '... |
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"; | planet_1 | [{'table_name': 'employee', 'table_schema': [{'col_name': 'employee id'}, {'col_name': 'name'}, {'col_name': 'position'}, {'col_name': 'salary'}, {'col_name': 'remarks'}], 'foreign_key_columns': [], 'primary_keys': ['employee id']}, {'table_name': 'shipment', 'table_schema': [{'col_name': 'shipment id'}, {'col_name': '... |
List the dates of all shipments. | SELECT Date FROM Shipment; | planet_1 | [{'table_name': 'shipment', 'table_schema': [{'col_name': 'shipment id'}, {'col_name': 'date'}, {'col_name': 'manager'}, {'col_name': 'planet'}], 'foreign_key_columns': ['planet', 'manager'], 'primary_keys': ['shipment id']}] |
What are the dates of every shipment in the database? | SELECT Date FROM Shipment; | planet_1 | [{'table_name': 'shipment', 'table_schema': [{'col_name': 'shipment id'}, {'col_name': 'date'}, {'col_name': 'manager'}, {'col_name': 'planet'}], 'foreign_key_columns': ['planet', 'manager'], 'primary_keys': ['shipment id']}] |
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"; | planet_1 | [{'table_name': 'planet', 'table_schema': [{'col_name': 'planet id'}, {'col_name': 'name'}, {'col_name': 'coordinates'}], 'foreign_key_columns': [], 'primary_keys': ['planet id']}, {'table_name': 'shipment', 'table_schema': [{'col_name': 'shipment id'}, {'col_name': 'date'}, {'col_name': 'manager'}, {'col_name': 'plane... |
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"; | planet_1 | [{'table_name': 'planet', 'table_schema': [{'col_name': 'planet id'}, {'col_name': 'name'}, {'col_name': 'coordinates'}], 'foreign_key_columns': [], 'primary_keys': ['planet id']}, {'table_name': 'shipment', 'table_schema': [{'col_name': 'shipment id'}, {'col_name': 'date'}, {'col_name': 'manager'}, {'col_name': 'plane... |
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"; | planet_1 | [{'table_name': 'employee', 'table_schema': [{'col_name': 'employee id'}, {'col_name': 'name'}, {'col_name': 'position'}, {'col_name': 'salary'}, {'col_name': 'remarks'}], 'foreign_key_columns': [], 'primary_keys': ['employee id']}, {'table_name': 'planet', 'table_schema': [{'col_name': 'planet id'}, {'col_name': 'name... |
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"; | planet_1 | [{'table_name': 'employee', 'table_schema': [{'col_name': 'employee id'}, {'col_name': 'name'}, {'col_name': 'position'}, {'col_name': 'salary'}, {'col_name': 'remarks'}], 'foreign_key_columns': [], 'primary_keys': ['employee id']}, {'table_name': 'planet', 'table_schema': [{'col_name': 'planet id'}, {'col_name': 'name... |
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"; | planet_1 | [{'table_name': 'employee', 'table_schema': [{'col_name': 'employee id'}, {'col_name': 'name'}, {'col_name': 'position'}, {'col_name': 'salary'}, {'col_name': 'remarks'}], 'foreign_key_columns': [], 'primary_keys': ['employee id']}, {'table_name': 'planet', 'table_schema': [{'col_name': 'planet id'}, {'col_name': 'name... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.