How to filter query based on children table? - Drizzle Team