### Database Schema:
CREATE TABLE users (
	userid	INTEGER	NOT NULL	DEFAULT 0	PRIMARY KEY,
	age	TEXT	NOT NULL,
	u_gender	TEXT	NOT NULL,
	occupation	TEXT	NOT NULL
);

CREATE TABLE directors (
	directorid	INTEGER	NOT NULL	PRIMARY KEY,
	d_quality	INTEGER	NOT NULL,
	avg_revenue	INTEGER	NOT NULL
);

CREATE TABLE u2base (
	userid	INTEGER	NOT NULL	DEFAULT 0	PRIMARY KEY,
	movieid	INTEGER	NOT NULL	PRIMARY KEY,
	rating	TEXT	NOT NULL,
	foreign key (userid) references users (userid),
	foreign key (movieid) references movies (movieid)
);

CREATE TABLE movies2actors (
	movieid	INTEGER	NOT NULL	PRIMARY KEY,
	actorid	INTEGER	NOT NULL	PRIMARY KEY,
	cast_num	INTEGER	NOT NULL,
	foreign key (actorid) references actors (actorid),
	foreign key (movieid) references movies (movieid)
);

CREATE TABLE movies (
	movieid	INTEGER	NOT NULL	DEFAULT 0	PRIMARY KEY,
	year	INTEGER	NOT NULL,
	isEnglish	TEXT	NOT NULL,
	country	TEXT	NOT NULL,
	runningtime	INTEGER	NOT NULL
);

CREATE TABLE actors (
	actorid	INTEGER	NOT NULL	PRIMARY KEY,
	a_gender	TEXT	NOT NULL,
	a_quality	INTEGER	NOT NULL
);

CREATE TABLE movies2directors (
	movieid	INTEGER	NOT NULL	PRIMARY KEY,
	directorid	INTEGER	NOT NULL	PRIMARY KEY,
	genre	TEXT	NOT NULL,
	foreign key (movieid) references movies (movieid),
	foreign key (directorid) references directors (directorid)
);

### User's Query:
Which movies have received the greatest ratings from female users whose occupations fall within the category of 3?

### Extra Knowledge:
Female users mean that u_gender = 'F'
SELECT T2.movieid FROM users AS T1 INNER JOIN u2base AS T2 ON T1.userid = T2.userid INNER JOIN movies AS T3 ON T2.movieid = T3.movieid WHERE T1.u_gender = 'F' AND T1.occupation = 3 AND T2.rating = 5