-- Database schema
| users : userid [ INTEGER ] primary_key , age [ TEXT ] , u_gender [ TEXT ] , occupation [ TEXT ] | directors : directorid [ INTEGER ] primary_key , d_quality [ INTEGER ] , avg_revenue [ INTEGER ] | actors : actorid [ INTEGER ] primary_key , a_gender [ TEXT ] , a_quality [ INTEGER ] | movies : movieid [ INTEGER ] primary_key , year [ INTEGER ] , isEnglish [ TEXT ] , country [ TEXT ] , runningtime [ INTEGER ] | movies2actors : movieid [ INTEGER ] , actorid [ INTEGER ] , cast_num [ INTEGER ] | movies2directors : movieid [ INTEGER ] , directorid [ INTEGER ] , genre [ TEXT ] | u2base : userid [ INTEGER ] , movieid [ INTEGER ] , rating [ TEXT ] |
-- -- Which movies have received the greatest ratings from female users whose occupations fall within the category of 3?

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;