patch in the patches table by id and then in the same query counts how many patches exist with the same user_id as the one selected.FROM patches p and WHERE user_id = p.user_id.db.execute() like this:updatedAt: datetime("updated_at") I get the data back with a key of updated_at, and as a string instead of a Date object. I'd like to get the same kind of result as when I'm using db.select().from(patches)..mapsWith() function, but I haven't figured out how yet.