minktn/spider-data huggingface dataset:
Database: warehouse_1
Question: What is the total capacity of all warehouses?
SQL: SELECT sum(capacity) FROM warehouses
Database: warehouse_1
Question: Find the value of the most expensive boxes saved in each warehouse location.
SQL: SELECT max(T1.value) ,  T2.location FROM boxes AS T1 JOIN warehouses AS T2 ON T1.warehouse  =  T2.code GROUP BY T2.location
Database: warehouse_1
Question: For each warehouse location, what is the value of the most expensive box?
SQL: SELECT max(T1.value) ,  T2.location FROM boxes AS T1 JOIN warehouses AS T2 ON T1.warehouse  =  T2.code GROUP BY T2.location
Database: warehouse_1
Question: Select the warehouse codes along with the number of boxes in each warehouse.
SQL: SELECT Warehouse ,  count(*) FROM boxes GROUP BY warehouse
Database: warehouse_1
Question: How many boxes are there with each warehouse ?
SQL: select warehouse ,  count(*) from boxes group by warehouse
Database: warehouse_1
Question: Find the number of different locations where Rocks are stored.
SQL: SELECT count(DISTINCT LOCATION) FROM boxes AS T1 JOIN warehouses AS T2 ON T1.warehouse  =  T2.code WHERE T1.contents  =  'Rocks'
Database: warehouse_1
Question: In how many different warehouses are Rocks stored within boxes?
SQL: SELECT count(DISTINCT LOCATION) FROM boxes AS T1 JOIN warehouses AS T2 ON T1.warehouse  =  T2.code WHERE T1.contents  =  'Rocks'
Database: warehouse_1
Question: Select the code of each box, along with the name of the city the box is located in.
SQL: SELECT T1.code ,  T2.location FROM boxes AS T1 JOIN warehouses AS T2 ON T1.Warehouse  =  T2.Code
Database: warehouse_1
Question: What are the codes of all boxes, as well as the locations of the warehouses they are in?
SQL: SELECT T1.code ,  T2.location FROM boxes AS T1 JOIN warehouses AS T2 ON T1.Warehouse  =  T2.Code
Database: warehouse_1
Question: Select the codes of all the boxes located in Chicago.
SQL: SELECT T1.code FROM boxes AS T1 JOIN Warehouses AS T2 ON T1.warehouse  =  T2.code WHERE T2.location  =  'Chicago'
Database: warehouse_1
Question: What are the codes of boxes stored in warehouses in Chicago?
SQL: SELECT T1.code FROM boxes AS T1 JOIN Warehouses AS T2 ON T1.warehouse  =  T2.code WHERE T2.location  =  'Chicago'
Database: warehouse_1
Question: Find the number of boxes saved in each warehouse.
SQL: SELECT count(*) ,  warehouse FROM boxes GROUP BY warehouse
Database: warehouse_1
Question: How many boxes are stored in each warehouse?
SQL: SELECT count(*) ,  warehouse FROM boxes GROUP BY warehouse
Database: warehouse_1
Question: Find the number of distinct types of contents in each warehouse.
SQL: SELECT count(DISTINCT CONTENTS) ,  warehouse FROM boxes GROUP BY warehouse
Database: warehouse_1
Question: How many different types of contents are stored in each warehouse?
SQL: SELECT count(DISTINCT CONTENTS) ,  warehouse FROM boxes GROUP BY warehouse
Database: warehouse_1
Question: Select the codes of all warehouses that are above capacity.
SQL: SELECT T2.code FROM boxes AS T1 JOIN Warehouses AS T2 ON T1.warehouse  =  T2.code GROUP BY T2.code HAVING count(*)  >  T2.capacity
Database: warehouse_1
Question: What are the codes of warehouses that have more boxes than their capacity?
SQL: SELECT T2.code FROM boxes AS T1 JOIN Warehouses AS T2 ON T1.warehouse  =  T2.code GROUP BY T2.code HAVING count(*)  >  T2.capacity
Database: warehouse_1
Question: Find the total values of boxes that are not in the warehouses located at Chicago.
SQL: SELECT sum(T1.value) FROM boxes AS T1 JOIN Warehouses AS T2 ON T1.warehouse  =  T2.code WHERE T2.location != 'Chicago'
Database: warehouse_1
Question: What is the total value of boxes contained in any location but Chicago?
SQL: SELECT sum(T1.value) FROM boxes AS T1 JOIN Warehouses AS T2 ON T1.warehouse  =  T2.code WHERE T2.location != 'Chicago'
Database: university_rank
Question: Show name, city, and state for all universities in  alphabetical order of university name.
SQL: SELECT university_name ,  city ,  state FROM University ORDER BY university_name
Database: university_rank
Question: What are the names, cities, and states of all universities in alphabetical order (by name of the university).
SQL: SELECT university_name ,  city ,  state FROM University ORDER BY university_name
Database: university_rank
Question: How many universities are in Illinois or Ohio?
SQL: SELECT count(*) FROM University WHERE state  =  'Illinois' OR state  =  'Ohio'
Database: university_rank
Question: What is the total number of universities located in Illinois or Ohio?
SQL: SELECT count(*) FROM University WHERE state  =  'Illinois' OR state  =  'Ohio'
Database: university_rank
Question: What is the maximum, average, and minimum enrollment for universities?
SQL: SELECT max(enrollment) ,  avg(enrollment) ,  min(enrollment) FROM University
Database: university_rank
Question: What is the maximum, average, and minimum enrollment for all universities?
SQL: SELECT max(enrollment) ,  avg(enrollment) ,  min(enrollment) FROM University
Database: university_rank
Question: List team name for all universities with enrollments above the average.
SQL: SELECT team_name FROM University WHERE enrollment  >  (SELECT avg(enrollment) FROM University)
Database: university_rank
Question: What are the names of all teams from universities that have more people enrolled than average ?
SQL: select team_name from university where enrollment  >  (select avg(enrollment) from university)
Database: university_rank
Question: Show all home conferences.
SQL: SELECT DISTINCT home_conference FROM University
Database: university_rank
Question: What are the different home conferences from the university table?
SQL: SELECT DISTINCT home_conference FROM University
Database: university_rank
Question: Show all home conferences and the number of universities in each conference.
SQL: SELECT home_conference ,  count(*) FROM University GROUP BY home_conference
Database: university_rank
Question: For every home conference, how many universities attended that conference?
SQL: SELECT home_conference ,  count(*) FROM University GROUP BY home_conference
Database: university_rank
Question: Which state has most number of universities?
SQL: SELECT state FROM University GROUP BY state ORDER BY count(*) DESC LIMIT 1
Database: university_rank
Question: What is the state with the most universities?
SQL: SELECT state FROM University GROUP BY state ORDER BY count(*) DESC LIMIT 1
Database: university_rank
Question: Show all home conferences with average enrollment of universities above 2000.
SQL: SELECT home_conference FROM University GROUP BY home_conference HAVING avg(enrollment)  >  2000
Database: university_rank
Question: What are the home conferences that have an average university enrollment above 2000?
SQL: SELECT home_conference FROM University GROUP BY home_conference HAVING avg(enrollment)  >  2000
Database: university_rank
Question: Which conference has the least number of total enrollment?
SQL: SELECT home_conference FROM University GROUP BY home_conference ORDER BY sum(enrollment) LIMIT 1
Database: university_rank
Question: What are the home conferences with the fewest number of people enrolled?
SQL: SELECT home_conference FROM University GROUP BY home_conference ORDER BY sum(enrollment) LIMIT 1
Database: university_rank
Question: List all major name and major code in the order of their major code
SQL: SELECT major_name ,  major_code FROM Major ORDER BY major_code
Database: university_rank
Question: What are the names and codes for all majors ordered by their code?
SQL: SELECT major_name ,  major_code FROM Major ORDER BY major_code
Database: university_rank
Question: Show all majors and major ranks for the university with name Augustana College.
SQL: SELECT T1.rank ,  T3.major_name FROM Major_Ranking AS T1 JOIN University AS T2 JOIN Major AS T3 ON T1.university_id  =  T2.university_id AND T1.major_id  =  T3.major_id WHERE T2.university_name  =  'Augustana College'
Database: university_rank
Question: What are the ranks and names of all majors at Augustana College?
SQL: SELECT T1.rank ,  T3.major_name FROM Major_Ranking AS T1 JOIN University AS T2 JOIN Major AS T3 ON T1.university_id  =  T2.university_id AND T1.major_id  =  T3.major_id WHERE T2.university_name  =  'Augustana College'
Database: university_rank
Question: What is the name, city, state of the university with a rank 1 on Accounting major?
SQL: SELECT T2.university_name ,  T2.city ,  T2.state FROM Major_Ranking AS T1 JOIN University AS T2 JOIN Major AS T3 ON T1.university_id  =  T2.university_id AND T1.major_id  =  T3.major_id WHERE T1.rank  =  1 AND T3.major_name  =  'Accounting'
Database: university_rank
Question: What is the name, city, and state of the university with number 1 ranked Accounting major?
SQL: SELECT T2.university_name ,  T2.city ,  T2.state FROM Major_Ranking AS T1 JOIN University AS T2 JOIN Major AS T3 ON T1.university_id  =  T2.university_id AND T1.major_id  =  T3.major_id WHERE T1.rank  =  1 AND T3.major_name  =  'Accounting'
Database: university_rank
Question: What is the name of the university that has most number of majors with rank 1?
SQL: SELECT T2.university_name FROM Major_Ranking AS T1 JOIN University AS T2 ON T1.university_id  =  T2.university_id WHERE T1.rank  =  1 GROUP BY T2.university_name ORDER BY count(*) DESC LIMIT 1
Database: university_rank
Question: What is the name of the university with the most majors ranked number 1?
SQL: SELECT T2.university_name FROM Major_Ranking AS T1 JOIN University AS T2 ON T1.university_id  =  T2.university_id WHERE T1.rank  =  1 GROUP BY T2.university_name ORDER BY count(*) DESC LIMIT 1
Database: university_rank
Question: Show all university names without a major with rank 1?
SQL: SELECT university_name FROM University EXCEPT SELECT T2.university_name FROM Major_Ranking AS T1 JOIN University AS T2 ON T1.university_id  =  T2.university_id WHERE T1.rank  =  1
Database: university_rank
Question: What are the names of all universities without any majors ranked number 1?
SQL: SELECT university_name FROM University EXCEPT SELECT T2.university_name FROM Major_Ranking AS T1 JOIN University AS T2 ON T1.university_id  =  T2.university_id WHERE T1.rank  =  1
Database: university_rank
Question: Show all university names with both major Accounting and major Urban Education.
SQL: SELECT T2.university_name FROM Major_Ranking AS T1 JOIN University AS T2 JOIN Major AS T3 ON T1.university_id  =  T2.university_id AND T1.major_id  =  T3.major_id WHERE T3.major_name  =  'Accounting' INTERSECT SELECT T2.university_name FROM Major_Ranking AS T1 JOIN University AS T2 JOIN Major AS T3 ON T1.university_id  =  T2.university_id AND T1.major_id  =  T3.major_id WHERE T3.major_name  =  'Urban Education'
Database: university_rank
Question: What are the names of all universities that have both Accounting and Urban Education majors?
SQL: SELECT T2.university_name FROM Major_Ranking AS T1 JOIN University AS T2 JOIN Major AS T3 ON T1.university_id  =  T2.university_id AND T1.major_id  =  T3.major_id WHERE T3.major_name  =  'Accounting' INTERSECT SELECT T2.university_name FROM Major_Ranking AS T1 JOIN University AS T2 JOIN Major AS T3 ON T1.university_id  =  T2.university_id AND T1.major_id  =  T3.major_id WHERE T3.major_name  =  'Urban Education'
Database: university_rank
Question: What is the name and overall ranking of universities in Wisconsin state?
SQL: SELECT T1.university_name ,  T2.rank FROM University AS T1 JOIN Overall_ranking AS T2 ON T1.university_id  =  T2.university_id WHERE T1.state  =  'Wisconsin'
Database: university_rank
Question: What is the name and rank of every university in Wisconsin?
SQL: SELECT T1.university_name ,  T2.rank FROM University AS T1 JOIN Overall_ranking AS T2 ON T1.university_id  =  T2.university_id WHERE T1.state  =  'Wisconsin'
Database: university_rank
Question: What is the university name with highest research point?
SQL: SELECT T1.university_name FROM University AS T1 JOIN Overall_ranking AS T2 ON T1.university_id  =  T2.university_id ORDER BY T2.research_point DESC LIMIT 1
Database: university_rank
Question: What is the name of the university with the most research points?
SQL: SELECT T1.university_name FROM University AS T1 JOIN Overall_ranking AS T2 ON T1.university_id  =  T2.university_id ORDER BY T2.research_point DESC LIMIT 1
Database: university_rank
Question: List all university names in ascending order of their reputation points.
SQL: SELECT T1.university_name FROM University AS T1 JOIN Overall_ranking AS T2 ON T1.university_id  =  T2.university_id ORDER BY T2.reputation_point
Database: university_rank
Question: What are the names of all universities in ascending order of reputation points?
SQL: SELECT T1.university_name FROM University AS T1 JOIN Overall_ranking AS T2 ON T1.university_id  =  T2.university_id ORDER BY T2.reputation_point
Database: university_rank
Question: What is the name of university with major Accounting ranked 3 or above?
SQL: SELECT T2.university_name FROM Major_Ranking AS T1 JOIN University AS T2 JOIN Major AS T3 ON T1.university_id  =  T2.university_id AND T1.major_id  =  T3.major_id WHERE T1.rank  <=  3 AND T3.major_name  =  "Accounting"
Database: university_rank
Question: What are the names of the university with an Accounting major ranked 3 or higher?
SQL: SELECT T2.university_name FROM Major_Ranking AS T1 JOIN University AS T2 JOIN Major AS T3 ON T1.university_id  =  T2.university_id AND T1.major_id  =  T3.major_id WHERE T1.rank  <=  3 AND T3.major_name  =  "Accounting"
Database: university_rank
Question: What is the total enrollment of universities with a overall rank 5 or below?
SQL: SELECT sum(enrollment) FROM University AS T1 JOIN Overall_ranking AS T2 ON T1.university_id  =  T2.university_id WHERE T2.rank  >=  5
Database: university_rank
Question: What is the total number of students enrolled in an university with a rank of 5 or below?
SQL: SELECT sum(enrollment) FROM University AS T1 JOIN Overall_ranking AS T2 ON T1.university_id  =  T2.university_id WHERE T2.rank  >=  5
Database: university_rank
Question: Find the name and Citation point of the universities whose reputation points are top 3 and above.
SQL: 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
Database: university_rank
Question: What is the name and citation point of the unversities with the top 3 reputation points?
SQL: 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
Database: university_rank
Question: which states do have more than two universities with enrollment smaller than 3000?
SQL: SELECT state FROM university WHERE enrollment  <  3000 GROUP BY state HAVING count(*)  >  2
Database: university_rank
Question: What are the states that have more than 2 universities with an enrollment less than 3000?
SQL: SELECT state FROM university WHERE enrollment  <  3000 GROUP BY state HAVING count(*)  >  2
Database: movie_2
Question: Find the titles of movies that don’t have any rating.
SQL: SELECT title FROM movies WHERE rating  =  'null'
Database: movie_2
Question: What are the names of movies that do not have any ratings?
SQL: SELECT title FROM movies WHERE rating  =  'null'
Database: movie_2
Question: Find the names of movies whose rating is ‘G’.
SQL: SELECT title FROM movies WHERE rating  =  'G'
Database: movie_2
Question: What are names of movies that have a 'G' ratings?
SQL: SELECT title FROM movies WHERE rating  =  'G'
Database: movie_2
Question: Find the title of the movie that is played in the Odeon theater.
SQL: SELECT T1.title FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code  =  T2.movie WHERE T2.name  =  'Odeon'
Database: movie_2
Question: What are the movie titles for ones that are played in the Odeon theater?
SQL: SELECT T1.title FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code  =  T2.movie WHERE T2.name  =  'Odeon'
Database: movie_2
Question: Find the names of movies that are played in any theater and the name of the corresponding theater.
SQL: SELECT T1.title ,  T2.name FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code  =  T2.movie
Database: movie_2
Question: What are the names of the movies that are played in any theater and the name of the corresponding theater?
SQL: SELECT T1.title ,  T2.name FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code  =  T2.movie
Database: movie_2
Question: Find the number of movies whose rating is ‘G’.
SQL: SELECT count(*) FROM movies WHERE rating  =  'G'
Database: movie_2
Question: How many movies had a 'G' rating?
SQL: SELECT count(*) FROM movies WHERE rating  =  'G'
Database: movie_2
Question: How many movies are playing across all theaters?
SQL: SELECT count(*) FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code  =  T2.movie
Database: movie_2
Question: How many movies are playing in theaters?
SQL: SELECT count(*) FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code  =  T2.movie
Database: movie_2
Question: How many distinct movies are on in theaters?
SQL: SELECT count(DISTINCT T1.code) FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code  =  T2.movie
Database: movie_2
Question: How many different movies are playing?
SQL: SELECT count(DISTINCT T1.code) FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code  =  T2.movie
Database: movie_2
Question: How many distinct movie theaters are there?
SQL: SELECT count(DISTINCT name) FROM movietheaters
Database: movie_2
Question: How many different movie theaters exist?
SQL: SELECT count(DISTINCT name) FROM movietheaters
Database: movie_2
Question: Find the rating of the movie whose name includes the word ‘Citizen’.
SQL: SELECT rating FROM movies WHERE title LIKE '%Citizen%'
Database: movie_2
Question: What is the rating of the movie what has a name including a word like 'Citizen'?
SQL: SELECT rating FROM movies WHERE title LIKE '%Citizen%'
Database: movie_2
Question: Find the name of the cinemas that are playing movies with either rating ‘G’ or rating ‘PG’.
SQL: SELECT title FROM movies WHERE rating  =  'G' OR rating  =  'PG'
Database: movie_2
Question: What are the names of the movie theaters that are playing 'G' or 'PG' rated movies?
SQL: SELECT title FROM movies WHERE rating  =  'G' OR rating  =  'PG'
Database: movie_2
Question: Find the name of the movies that are played in either cinema Odeon or Imperial.
SQL: SELECT T1.title FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code  =  T2.movie WHERE T2.name  =  'Odeon' OR T2.name  =  'Imperial'
Database: movie_2
Question: What are the titles of all the movies that played at the Odeon or Imperial theater?
SQL: SELECT T1.title FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code  =  T2.movie WHERE T2.name  =  'Odeon' OR T2.name  =  'Imperial'
Database: movie_2
Question: Find the name of the movie that is on in both Odeon and Imperial theaters.
SQL: 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'
Database: movie_2
Question: What movie is playing at both the Odeon and Imperial theater?
SQL: 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'
Database: movie_2
Question: Find the name of all movies that are not played in Odeon theater.
SQL: 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'
Database: movie_2
Question: What are the names of every movie that is not playing at the Odeon theater?
SQL: 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'
Database: movie_2
Question: List in alphabetical order the titles of all movies.
SQL: SELECT title FROM movies ORDER BY title
Database: movie_2
Question: What are the movie names in alphabetical order?
SQL: SELECT title FROM movies ORDER BY title
Database: movie_2
Question: Find the titles of all movies sorted by their ratings.
SQL: SELECT title FROM movies ORDER BY rating
Database: movie_2
Question: What are the movie names sorted by rating?
SQL: SELECT title FROM movies ORDER BY rating
Database: movie_2
Question: Find the name of the theater that is playing the most number of movies.
SQL: SELECT name FROM movietheaters GROUP BY name ORDER BY count(*) DESC LIMIT 1
Database: movie_2
Question: What is the name of the theater playing the most movies?
SQL: SELECT name FROM movietheaters GROUP BY name ORDER BY count(*) DESC LIMIT 1
Database: movie_2
Question: Find the name of the movie that is played in the most number of theaters.
SQL: 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
Database: movie_2
Question: What is the name of the film playing at the most number of theaters?
SQL: 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
Database: movie_2
Question: Find the number of movies in each rating.
SQL: SELECT count(*) ,  rating FROM movies GROUP BY rating
Database: movie_2
Question: How many movies exist for each rating?
SQL: SELECT count(*) ,  rating FROM movies GROUP BY rating
Database: movie_2
Question: Find the number of movies whose rating is not null.
SQL: SELECT count(*) ,  rating FROM movies WHERE rating != 'null' GROUP BY rating
Database: movie_2
Question: How many movies have a rating that is not null?
SQL: SELECT count(*) ,  rating FROM movies WHERE rating != 'null' GROUP BY rating
Database: movie_2
Question: Find the name of theaters that has at least one movie playing.
SQL: SELECT name FROM movietheaters GROUP BY name HAVING count(*)  >=  1
Database: movie_2
Question: What are the names of every theater with at least one movie playing?
SQL: SELECT name FROM movietheaters GROUP BY name HAVING count(*)  >=  1
Database: movie_2
Question: Select the name of all movie theaters that are not currently showing a movie.
SQL: SELECT DISTINCT name FROM MovieTheaters WHERE Movie  =  'null'
Database: movie_2
Question: What are the names of all cinemas not showing any movies?
SQL: SELECT DISTINCT name FROM MovieTheaters WHERE Movie  =  'null'
Database: movie_2
Question: Find the name of the movie theaters that are playing the movies whose rating is ‘G’.
SQL: SELECT T2.name FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code  =  T2.movie WHERE T1.rating  =  'G'
Database: movie_2
Question: What are the names of theaters playing 'G' rated movies?
SQL: SELECT T2.name FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code  =  T2.movie WHERE T1.rating  =  'G'
Database: movie_2
Question: Select the title of all movies.
SQL: SELECT title FROM movies
Database: movie_2
Question: What are all of the movie names?
SQL: SELECT title FROM movies
Database: movie_2
Question: Show all the distinct ratings in the database.
SQL: SELECT DISTINCT rating FROM movies
Database: movie_2
Question: What are the different movie ratings?
SQL: SELECT DISTINCT rating FROM movies
Database: movie_2
Question: Show all information of all unrated movies.
SQL: SELECT * FROM movies WHERE rating  =  'null'
Database: movie_2
Question: What is all the information about the unrated movies?
SQL: SELECT * FROM movies WHERE rating  =  'null'
Database: movie_2
Question: Show the titles of movies not currently being shown in any theaters.
SQL: SELECT Title FROM Movies WHERE Code NOT IN (SELECT Movie FROM MovieTheaters WHERE Movie != 'null')
Database: movie_2
Question: What are the names of the movies not being shown in any theaters?
SQL: SELECT Title FROM Movies WHERE Code NOT IN (SELECT Movie FROM MovieTheaters WHERE Movie != 'null')
Database: planet_1
Question: Who receieved the heaviest package?
SQL: SELECT T2.Name FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Recipient  =  T2.AccountNumber ORDER BY T1.Weight DESC LIMIT 1
Database: planet_1
Question: What is the name of the client who received the heaviest package?
SQL: SELECT T2.Name FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Recipient  =  T2.AccountNumber ORDER BY T1.Weight DESC LIMIT 1
Database: planet_1
Question: What is the total weight of all the packages that customer Leo Wong sent?
SQL: SELECT sum(T1.Weight) FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender  =  T2.AccountNumber WHERE T2.Name  =  "Leo Wong";
Database: planet_1
Question: What is the total weight for all packages that Leo Wong sent?
SQL: SELECT sum(T1.Weight) FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender  =  T2.AccountNumber WHERE T2.Name  =  "Leo Wong";
Database: planet_1
Question: What is the position of Amy Wong?
SQL: SELECT POSITION FROM Employee WHERE Name  =  "Amy Wong";
Database: planet_1
Question: What position does Amy Wong have?
SQL: SELECT POSITION FROM Employee WHERE Name  =  "Amy Wong";
Database: planet_1
Question: What is Turanga Leela's salary and position?
SQL: SELECT Salary ,  POSITION FROM Employee WHERE Name  =  "Turanga Leela";
Database: planet_1
Question: What is the salary and position of the employee named Turanga Leela?
SQL: SELECT Salary ,  POSITION FROM Employee WHERE Name  =  "Turanga Leela";
Database: planet_1
Question: What is the average salary of all intern jobs?
SQL: SELECT avg(Salary) FROM Employee WHERE POSITION  =  "Intern";
Database: planet_1
Question: What is the average salary of an intern?
SQL: SELECT avg(Salary) FROM Employee WHERE POSITION  =  "Intern";
Database: planet_1
Question: What level is Physician?
SQL: SELECT T1.Level FROM Has_Clearance AS T1 JOIN Employee AS T2 ON T1.Employee = T2.EmployeeID WHERE T2.position  =  "Physician";
Database: planet_1
Question: What is the clearance level of a physician?
SQL: SELECT T1.Level FROM Has_Clearance AS T1 JOIN Employee AS T2 ON T1.Employee = T2.EmployeeID WHERE T2.position  =  "Physician";
Database: planet_1
Question: List Package Number of all package sent by Leo Wong?
SQL: SELECT T1.PackageNumber FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender  =  T2.AccountNumber WHERE T2.Name  =  "Leo Wong";
Database: planet_1
Question: What is the number of all packages that Leo Wong sent?
SQL: SELECT T1.PackageNumber FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender  =  T2.AccountNumber WHERE T2.Name  =  "Leo Wong";
Database: planet_1
Question: List all package numbers received by Leo Wong ?
SQL: select t1.packagenumber from package as t1 join client as t2 on t1.recipient  =  t2.accountnumber where t2.name = "leo wong";
Database: planet_1
Question: What are all of the package numbers received by Leo Wong?
SQL: SELECT T1.PackageNumber FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Recipient  =  T2.AccountNumber WHERE T2.Name = "Leo Wong";
Database: planet_1
Question: List all package sent or received by Leo Wong.
SQL: 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"
Database: planet_1
Question: What are all the different package numbers that Leo Wong sent or received?
SQL: 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"
Database: planet_1
Question: Count the number of packages sent by Ogden Wernstrom and received by Leo Wong.
SQL: 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"
Database: planet_1
Question: How many packages sent by Ogden Wernstrom and received by Leo Wong?
SQL: 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"
Database: planet_1
Question: What are the contents of package sent by John Zoidfarb?
SQL: SELECT T1.Contents FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender  =  T2.AccountNumber WHERE T2.Name  =  "John Zoidfarb";
Database: planet_1
Question: What are the package contents of all those sent by John Zoidfarb?
SQL: SELECT T1.Contents FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender  =  T2.AccountNumber WHERE T2.Name  =  "John Zoidfarb";
Database: planet_1
Question: What is the heaviest package sent by the clients which 'John' is part of their name? List package number and weight.
SQL: SELECT T1.PackageNumber ,  max(T1.Weight) FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender  =  T2.AccountNumber WHERE T2.Name LIKE "John";
Database: planet_1
Question: What is the package number and weight of the heaviest package that was sent by a client named John or something similar?
SQL: SELECT T1.PackageNumber ,  max(T1.Weight) FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender  =  T2.AccountNumber WHERE T2.Name LIKE "John";
Database: planet_1
Question: List package number and weight of top 3 lightest packages.
SQL: SELECT PackageNumber ,  Weight FROM PACKAGE ORDER BY Weight ASC LIMIT 3;
Database: planet_1
Question: What is the package number and weight of the 3 lightest packages?
SQL: SELECT PackageNumber ,  Weight FROM PACKAGE ORDER BY Weight ASC LIMIT 3;
Database: planet_1
Question: Who sent most number of packages? List client name and number of packages sent by that client.
SQL: 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;
Database: planet_1
Question: What is the name of the client who sent the most packages and how many were there?
SQL: 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;
Database: planet_1
Question: Who received least number of packages ? List client name and number of packages received by that client .
SQL: 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;
Database: planet_1
Question: What is the smallest number of packages received and by whom ?
SQL: 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;
Database: planet_1
Question: Who sent more than one packages? List the client's name.
SQL: SELECT T2.Name ,  count(*) FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender  =  T2.AccountNumber GROUP BY T1.Sender HAVING count(*)  >  1;
Database: planet_1
Question: What is the name of all clients who sent more than one package?
SQL: SELECT T2.Name ,  count(*) FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender  =  T2.AccountNumber GROUP BY T1.Sender HAVING count(*)  >  1;
Database: planet_1
Question: What are the Coordinates of planet Mars?
SQL: SELECT Coordinates FROM Planet WHERE Name  =  "Mars";
Database: planet_1
Question: What are the coordinates of the planet named Mars?
SQL: SELECT Coordinates FROM Planet WHERE Name  =  "Mars";
Database: planet_1
Question: List all Planets' names and coordinates in alphabetical order of name.
SQL: SELECT Name ,  Coordinates FROM Planet ORDER BY Name
Database: planet_1
Question: What are the names and coordinates of all planets in alphabetical order by name?
SQL: SELECT Name ,  Coordinates FROM Planet ORDER BY Name
Database: planet_1
Question: List all shipment id under Phillip J. Fry's management.
SQL: SELECT T1.ShipmentID FROM Shipment AS T1 JOIN Employee AS T2 ON T1.Manager = T2.EmployeeID WHERE T2.Name = "Phillip J. Fry";
Database: planet_1
Question: What are the shipment IDs of every delivery managed by Phillip J Fry?
SQL: SELECT T1.ShipmentID FROM Shipment AS T1 JOIN Employee AS T2 ON T1.Manager = T2.EmployeeID WHERE T2.Name = "Phillip J. Fry";
Database: planet_1
Question: List the dates of all shipments.
SQL: SELECT Date FROM Shipment;
Database: planet_1
Question: What are the dates of every shipment in the database?
SQL: SELECT Date FROM Shipment;
Database: planet_1
Question: List all shipment ids for the planet Mars.
SQL: SELECT T1.ShipmentID FROM Shipment AS T1 JOIN Planet AS T2 ON T1.Planet = T2.PlanetID WHERE T2.Name  =  "Mars";
Database: planet_1
Question: What are the shipment ids for the planet Mars?
SQL: SELECT T1.ShipmentID FROM Shipment AS T1 JOIN Planet AS T2 ON T1.Planet = T2.PlanetID WHERE T2.Name  =  "Mars";
Database: planet_1
Question: List all shipment ids for the planet Mars and under the management of Turanga Leela.
SQL: 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";
Database: planet_1
Question: What are the ids of all shipments on the planet Mars that are managed by Turanga Leela?
SQL: 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";
Database: planet_1
Question: List all shipment ids on the planet Mars or under the management of Turanga Leela.
SQL: 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";
Database: planet_1
Question: What are the ids for all shipments on the planet Mars that Turanga Leela manages?
SQL: 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";
Database: planet_1
Question: What is the total shipments in each planet? List the planet name and total shipments.
SQL: SELECT T2.Name ,  count(*) FROM Shipment AS T1 JOIN Planet AS T2 ON T1.Planet = T2.PlanetID GROUP BY T1.Planet;
Database: planet_1
Question: How many shipments take place on each planet?
SQL: SELECT T2.Name ,  count(*) FROM Shipment AS T1 JOIN Planet AS T2 ON T1.Planet = T2.PlanetID GROUP BY T1.Planet;
Database: planet_1
Question: Which planet has most shipments? List the planet name.
SQL: SELECT T2.Name FROM Shipment AS T1 JOIN Planet AS T2 ON T1.Planet = T2.PlanetID GROUP BY T1.Planet ORDER BY count(*) DESC LIMIT 1;
Database: planet_1
Question: What is the name of the planet with the most shipments?
SQL: SELECT T2.Name FROM Shipment AS T1 JOIN Planet AS T2 ON T1.Planet = T2.PlanetID GROUP BY T1.Planet ORDER BY count(*) DESC LIMIT 1;
Database: planet_1
Question: List the manger's name and number of shipments under his management.
SQL: SELECT T2.Name ,  count(*) FROM Shipment AS T1 JOIN Employee AS T2 ON T1.Manager = T2.EmployeeID GROUP BY T1.Manager;
Database: planet_1
Question: What are the number of shipments managed and names of each manager?
SQL: SELECT T2.Name ,  count(*) FROM Shipment AS T1 JOIN Employee AS T2 ON T1.Manager = T2.EmployeeID GROUP BY T1.Manager;
Database: planet_1
Question: Calculate total weight of package shipped on Mars.
SQL: SELECT sum(T1.Weight) FROM PACKAGE AS T1 JOIN Shipment AS T2 ON T1.Shipment = T2.ShipmentID JOIN Planet AS T3 ON T2.Planet = T3.PlanetID WHERE T3.Name = "Mars";
Database: planet_1
Question: what is the total weight of all packages shipped on Mars?
SQL: SELECT sum(T1.Weight) FROM PACKAGE AS T1 JOIN Shipment AS T2 ON T1.Shipment = T2.ShipmentID JOIN Planet AS T3 ON T2.Planet = T3.PlanetID WHERE T3.Name = "Mars";
Database: planet_1
Question: Calculate total weight of package shipped in each planet . show the name of each planet .
SQL: select t3.name ,  sum(t1.weight) from package as t1 join shipment as t2 on t1.shipment = t2.shipmentid join planet as t3 on t2.planet = t3.planetid group by t2.planet;
Database: planet_1
Question: what is the total package weight for each planet, list its name ?
SQL: select t3.name ,  sum(t1.weight) from package as t1 join shipment as t2 on t1.shipment = t2.shipmentid join planet as t3 on t2.planet = t3.planetid group by t2.planet;
Database: planet_1
Question: Which planet has total weight of shipment greater than 30? List planet name.
SQL: SELECT T3.Name FROM PACKAGE AS T1 JOIN Shipment AS T2 ON T1.Shipment = T2.ShipmentID JOIN Planet AS T3 ON T2.Planet = T3.PlanetID GROUP BY T2.Planet HAVING sum(T1.Weight)  >  30;
Database: planet_1
Question: What are the names of all planets tjat have a total shipment weight greater than 30?
SQL: SELECT T3.Name FROM PACKAGE AS T1 JOIN Shipment AS T2 ON T1.Shipment = T2.ShipmentID JOIN Planet AS T3 ON T2.Planet = T3.PlanetID GROUP BY T2.Planet HAVING sum(T1.Weight)  >  30;
Database: planet_1
Question: List package number of package shipped in planet Omicron Persei 8 and sent by Zapp Brannigan.
SQL: SELECT T1.PackageNumber FROM PACKAGE AS T1 JOIN Client AS T2 ON  T1.Sender = T2.AccountNumber JOIN Shipment AS T3 ON T1.Shipment = T3.ShipmentID JOIN Planet AS T4 ON T3.Planet = T4.PlanetID WHERE T2.Name = "Zapp Brannigan" AND T4.Name = "Omicron Persei 8";
Database: planet_1
Question: What are the number of packages sent by Zapp Brannigan and shipped on the Omicron Persei 8?
SQL: SELECT T1.PackageNumber FROM PACKAGE AS T1 JOIN Client AS T2 ON  T1.Sender = T2.AccountNumber JOIN Shipment AS T3 ON T1.Shipment = T3.ShipmentID JOIN Planet AS T4 ON T3.Planet = T4.PlanetID WHERE T2.Name = "Zapp Brannigan" AND T4.Name = "Omicron Persei 8";
Database: planet_1
Question: List package number of packages shipped in Omicron Persei 8 planet or sent by Zapp Brannigan.
SQL: SELECT T1.PackageNumber FROM PACKAGE AS T1 JOIN Client AS T2 ON  T1.Sender = T2.AccountNumber JOIN Shipment AS T3 ON T1.Shipment = T3.ShipmentID JOIN Planet AS T4 ON T3.Planet = T4.PlanetID WHERE T2.Name  =  "Zapp Brannigan" OR T4.Name  =  "Omicron Persei 8";
Database: planet_1
Question: What are the number of packages shipped on Omicron Persei 8 planet or sent by Zapp Brannigan?
SQL: SELECT T1.PackageNumber FROM PACKAGE AS T1 JOIN Client AS T2 ON  T1.Sender = T2.AccountNumber JOIN Shipment AS T3 ON T1.Shipment = T3.ShipmentID JOIN Planet AS T4 ON T3.Planet = T4.PlanetID WHERE T2.Name  =  "Zapp Brannigan" OR T4.Name  =  "Omicron Persei 8";
Database: planet_1
Question: Which packages have weight between 10 and 30? List the package number and weight.
SQL: SELECT PackageNumber ,  Weight FROM PACKAGE WHERE Weight BETWEEN 10 AND 30;
Database: planet_1
Question: What are the package numbers and weights that are between 10 and 30?
SQL: SELECT PackageNumber ,  Weight FROM PACKAGE WHERE Weight BETWEEN 10 AND 30;
Database: planet_1
Question: Which employees do not have clearance in Mars? List employee's name.
SQL: SELECT Name FROM Employee EXCEPT SELECT T2.Name FROM Has_Clearance AS T1 JOIN Employee AS T2 ON T1.Employee = T2.EmployeeID JOIN Planet AS T3 ON T1.Planet = T3.PlanetID WHERE T3.Name = "Mars";
Database: planet_1
Question: What are the names of all employees who don't have clearance on Mars?
SQL: SELECT Name FROM Employee EXCEPT SELECT T2.Name FROM Has_Clearance AS T1 JOIN Employee AS T2 ON T1.Employee = T2.EmployeeID JOIN Planet AS T3 ON T1.Planet = T3.PlanetID WHERE T3.Name = "Mars";
Database: planet_1
Question: Which employees have clearance in Omega III? List employees' name.
SQL: SELECT T2.Name FROM Has_Clearance AS T1 JOIN Employee AS T2 ON T1.Employee = T2.EmployeeID JOIN Planet AS T3 ON T1.Planet = T3.PlanetID WHERE T3.Name  =  "Omega III";
Database: planet_1
Question: What are the names of all employees with clearance on Omega III?
SQL: SELECT T2.Name FROM Has_Clearance AS T1 JOIN Employee AS T2 ON T1.Employee = T2.EmployeeID JOIN Planet AS T3 ON T1.Planet = T3.PlanetID WHERE T3.Name  =  "Omega III";
Database: planet_1
Question: Which planets that have exact one employee has clearance? List planets' name.
SQL: SELECT T3.Name FROM Has_Clearance AS T1 JOIN Employee AS T2 ON T1.Employee = T2.EmployeeID JOIN Planet AS T3 ON T1.Planet = T3.PlanetID GROUP BY T1.Planet HAVING count(*)  =  1;
Database: planet_1
Question: What are the names of all planets with one employee that has clearance?
SQL: SELECT T3.Name FROM Has_Clearance AS T1 JOIN Employee AS T2 ON T1.Employee = T2.EmployeeID JOIN Planet AS T3 ON T1.Planet = T3.PlanetID GROUP BY T1.Planet HAVING count(*)  =  1;
Database: planet_1
Question: Which employees have salaries between 5000 and 10000? List employees' name.
SQL: SELECT Name FROM Employee WHERE Salary BETWEEN 5000 AND 10000
Database: planet_1
Question: What are the employees's names for those that have salaries between 5000 and 10000?
SQL: SELECT Name FROM Employee WHERE Salary BETWEEN 5000 AND 10000
Database: planet_1
Question: Find the name of employees whose salary is above the average salary or more than 5000.
SQL: SELECT Name FROM Employee WHERE Salary  >  5000 OR Salary  >  (SELECT avg(salary) FROM employee)
Database: planet_1
Question: What are the names of all employees who have a salary greater than average or more than 5000?
SQL: SELECT Name FROM Employee WHERE Salary  >  5000 OR Salary  >  (SELECT avg(salary) FROM employee)
Database: planet_1
Question: Find the number of employees who do not have clearance in Mars .
SQL: select count(*) from employee where employeeid not in ( select t2.employeeid from has_clearance as t1 join employee as t2 on t1.employee = t2.employeeid join planet as t3 on t1.planet = t3.planetid where t3.name = "mars" );
Database: planet_1
Question: What is the number of employees that do not have clearance on Mars ?
SQL: select count(*) from employee where employeeid not in ( select t2.employeeid from has_clearance as t1 join employee as t2 on t1.employee = t2.employeeid join planet as t3 on t1.planet = t3.planetid where t3.name = "mars" );
Database: video_game
Question: How many games are there?
SQL: SELECT count(*) FROM game
Database: video_game
Question: Count the number of games.
SQL: SELECT count(*) FROM game
Database: video_game
Question: List the Title and Developers of all games ordered by units sold from large to small.
SQL: SELECT Title ,  Developers FROM game ORDER BY Units_sold_Millions DESC
Database: video_game
Question: What are the titles and developers of all games, sorted by units sold descending?
SQL: SELECT Title ,  Developers FROM game ORDER BY Units_sold_Millions DESC
Database: video_game
Question: What is the average units sold in millions of the games that are not developed by Nintendo?
SQL: SELECT avg(Units_sold_Millions) FROM game WHERE developers != 'Nintendo'
Database: video_game
Question: Return the average number of units sold in millions for games not developed by Nintendo.
SQL: SELECT avg(Units_sold_Millions) FROM game WHERE developers != 'Nintendo'
Database: video_game
Question: What are the names and market districts of all platforms?
SQL: SELECT Platform_name ,  Market_district FROM platform
Database: video_game
Question: Return all platform names and corresponding market districts.
SQL: SELECT Platform_name ,  Market_district FROM platform
Database: video_game
Question: What are the names and id of platforms whose download rank is 1?
SQL: SELECT Platform_name ,  Platform_ID FROM platform WHERE Download_rank  =  1
Database: video_game
Question: Return the names and ids of all platforms with the download rank of 1.
SQL: SELECT Platform_name ,  Platform_ID FROM platform WHERE Download_rank  =  1
Database: video_game
Question: What are the maximum and minimum rank of the year of players.
SQL: SELECT max(Rank_of_the_year) ,  min(Rank_of_the_year) FROM player
Database: video_game
Question: Give the maximum and minimum rank of the year across all players.
SQL: SELECT max(Rank_of_the_year) ,  min(Rank_of_the_year) FROM player
Database: video_game
Question: How many players have rank of the year smaller than 3?
SQL: SELECT count(*) FROM player WHERE Rank_of_the_year  <=  3
Database: video_game
Question: Count the number of players that have a rank of year of at most 3.
SQL: SELECT count(*) FROM player WHERE Rank_of_the_year  <=  3
Database: video_game
Question: List all player names in ascending alphabetical order.
SQL: SELECT Player_name FROM player ORDER BY Player_name ASC
Database: video_game
Question: What are the names of all players in alphabetical order?
SQL: SELECT Player_name FROM player ORDER BY Player_name ASC
Database: video_game
Question: List names and colleges of all players in descending order of rank of the year.
SQL: SELECT Player_name ,  College FROM player ORDER BY Rank_of_the_year DESC
Database: video_game
Question: What are the names and colleges of all players, ordered by rank of year descending?
SQL: SELECT Player_name ,  College FROM player ORDER BY Rank_of_the_year DESC
Database: video_game
Question: Please show the names and rank of players that have played the game titled "Super Mario World".
SQL: SELECT T3.Player_name ,  T3.rank_of_the_year FROM game AS T1 JOIN game_player AS T2 ON T1.Game_ID  =  T2.Game_ID JOIN player AS T3 ON T2.Player_ID  =  T3.Player_ID WHERE T1.Title  =  "Super Mario World"
Database: video_game
Question: What are the names and ranks of players who have played the game with the title "Super Mario World"?
SQL: SELECT T3.Player_name ,  T3.rank_of_the_year FROM game AS T1 JOIN game_player AS T2 ON T1.Game_ID  =  T2.Game_ID JOIN player AS T3 ON T2.Player_ID  =  T3.Player_ID WHERE T1.Title  =  "Super Mario World"
Database: video_game
Question: Show the distinct developer of games played by players that go to college "Auburn".
SQL: SELECT DISTINCT T1.Developers FROM game AS T1 JOIN game_player AS T2 ON T1.Game_ID  =  T2.Game_ID JOIN player AS T3 ON T2.Player_ID  =  T3.Player_ID WHERE T3.College  =  "Auburn"
Database: video_game
Question: What are the different developers of games that are played by players that attend Auburn college?
SQL: SELECT DISTINCT T1.Developers FROM game AS T1 JOIN game_player AS T2 ON T1.Game_ID  =  T2.Game_ID JOIN player AS T3 ON T2.Player_ID  =  T3.Player_ID WHERE T3.College  =  "Auburn"
Database: video_game
Question: What is the average number of units sold in millions of games played by players with position "Guard"?
SQL: SELECT avg(Units_sold_Millions) FROM game AS T1 JOIN game_player AS T2 ON T1.Game_ID  =  T2.Game_ID JOIN player AS T3 ON T2.Player_ID  =  T3.Player_ID WHERE T3.Position  =  "Guard"
Database: video_game
Question: Return the average number of units sold in millions among games played by players who have the position Guard.
SQL: SELECT avg(Units_sold_Millions) FROM game AS T1 JOIN game_player AS T2 ON T1.Game_ID  =  T2.Game_ID JOIN player AS T3 ON T2.Player_ID  =  T3.Player_ID WHERE T3.Position  =  "Guard"
Database: video_game
Question: Please list the title and platform name of games.
SQL: SELECT T1.Title ,  T2.Platform_name FROM game AS T1 JOIN platform AS T2 ON T1.Platform_ID  =  T2.Platform_ID
Database: video_game
Question: What are the titles and platform names of all games?
SQL: SELECT T1.Title ,  T2.Platform_name FROM game AS T1 JOIN platform AS T2 ON T1.Platform_ID  =  T2.Platform_ID
Database: video_game
Question: Please list the title of games with platforms that have market district in Asia or USA.
SQL: SELECT T1.Title FROM game AS T1 JOIN platform AS T2 ON T1.Platform_ID  =  T2.Platform_ID WHERE T2.Market_district  =  "Asia" OR T2.Market_district  =  "USA"
Database: video_game
Question: What are the titles of games that have platforms in the market districts of Asia or the USA?
SQL: SELECT T1.Title FROM game AS T1 JOIN platform AS T2 ON T1.Platform_ID  =  T2.Platform_ID WHERE T2.Market_district  =  "Asia" OR T2.Market_district  =  "USA"
Database: video_game
Question: List the name of each franchise and the number of games belonging to that franchise.
SQL: SELECT Franchise ,  COUNT(*) FROM game GROUP BY Franchise
Database: video_game
Question: How many games are there from each Franchise?
SQL: SELECT Franchise ,  COUNT(*) FROM game GROUP BY Franchise
Database: video_game
Question: List the name of franchise that have the most number of games.
SQL: SELECT Franchise FROM game GROUP BY Franchise ORDER BY COUNT(*) DESC LIMIT 1
Database: video_game
Question: Which franchise has the most games?
SQL: SELECT Franchise FROM game GROUP BY Franchise ORDER BY COUNT(*) DESC LIMIT 1
Database: video_game
Question: List the names of franchises that have at least two games.
SQL: SELECT Franchise FROM game GROUP BY Franchise HAVING COUNT(*)  >=  2
Database: video_game
Question: What are the names of franchises that have two or more games?
SQL: SELECT Franchise FROM game GROUP BY Franchise HAVING COUNT(*)  >=  2
Database: video_game
Question: List the name of players that do not play any game.
SQL: SELECT Player_name FROM player WHERE Player_ID NOT IN (SELECT Player_ID FROM game_player)