CREATE TABLE actor (aid NUMBER, gender CLOB, name CLOB, nationality CLOB, birth_city CLOB, birth_year NUMBER)
CREATE TABLE writer (wid NUMBER, gender CLOB, name CLOB, nationality CLOB, birth_city CLOB, birth_year NUMBER)
CREATE TABLE director (did NUMBER, gender CLOB, name CLOB, nationality CLOB, birth_city CLOB, birth_year NUMBER)
CREATE TABLE movie (mid NUMBER, title CLOB, release_year NUMBER, title_aka CLOB, budget CLOB)
CREATE TABLE classification (id NUMBER, msid NUMBER, gid NUMBER)
CREATE TABLE producer (pid NUMBER, gender CLOB, name CLOB, nationality CLOB, birth_city CLOB, birth_year NUMBER)
CREATE TABLE directed_by (id NUMBER, msid NUMBER, did NUMBER)
CREATE TABLE written_by (id NUMBER, msid NUMBER, wid NUMBER)
CREATE TABLE made_by (id NUMBER, msid NUMBER, pid NUMBER)
CREATE TABLE copyright (id NUMBER, msid NUMBER, cid NUMBER)
CREATE TABLE keyword (id NUMBER, keyword CLOB)
CREATE TABLE cast (id NUMBER, msid NUMBER, aid NUMBER, role CLOB)
CREATE TABLE tags (id NUMBER, msid NUMBER, kid NUMBER)
CREATE TABLE tv_series (sid NUMBER, title CLOB, release_year NUMBER, num_of_seasons NUMBER, num_of_episodes NUMBER, title_aka CLOB, budget CLOB)
CREATE TABLE genre (gid NUMBER, genre CLOB)
CREATE TABLE company (id NUMBER, name CLOB, country_code VARCHAR2)

Find all movies written and produced by ' Woody Allen
SELECT movie.title FROM made_by, movie, producer, writer, written_by WHERE movie.mid = made_by.msid AND producer.name = 'Woody Allen' AND producer.pid = made_by.pid AND writer.name = 'Woody Allen' AND written_by.msid = movie.mid AND written_by.wid = writer.wid
SELECT "movie"."title" FROM "made_by" JOIN "movie" ON "made_by"."msid" = "movie"."mid" JOIN "producer" ON "made_by"."pid" = "producer"."pid" AND "producer"."name" = 'Woody Allen' JOIN "written_by" ON "movie"."mid" = "written_by"."msid" JOIN "writer" ON "writer"."name" = 'Woody Allen' AND "writer"."wid" = "written_by"."wid"