Our intern created the following model scope

Movie query problem image

and they want to use in this view:

Movie query problem image

Which of these code snippets they use to fetch the correct results, and avoid the N+1 query issue?

Movie query problem image