Help building queries based on multiple conditions from an array of objects - Drizzle Team