how to model this query in drizzle - Drizzle Team