minktn/spider-data huggingface dataset:
Question: Select the title of all movies.

SQL:
select title from movies;
Question: Show all the distinct ratings in the database.

SQL:
select distinct rating from movies;
Question: Show all unrated movies.

SQL:
select * 
from movies
where rating is NULL;
Question: Select all movie theaters that are not currently showing a movie.

SQL:
select * from MovieTheaters
where Movie is NULL;
Question: Select all data from all movie theaters and, additionally, the data from the movie that is being shown in the theater (if one is being shown).

SQL:
SELECT *
   FROM MovieTheaters LEFT JOIN Movies
   ON MovieTheaters.Movie = Movies.Code;
Question: Select all data from all movies and, if that movie is being shown in a theater, show the data from the theater.

SQL:
SELECT *
   FROM Movies LEFT JOIN MovieTheaters
   ON Movies.Code = MovieTheaters.Movie;
Question: Show the titles of movies not currently being shown in any theaters.
SQL:
SELECT Movies.Title
   FROM MovieTheaters RIGHT JOIN Movies
   ON MovieTheaters.Movie = Movies.Code
   WHERE MovieTheaters.Movie IS NULL;
SELECT Title FROM Movies
   WHERE Code NOT IN
   (
     SELECT Movie FROM MovieTheaters
     WHERE Movie IS NOT NULL
   );