Dynamic SQL: queries with a variable number of values (movie genre intersections), overview of pagination using offset (bad for performance, but easier to implement)