I already have a working query, but I have no clue if this is a good solution, because I have 3 sub queries and a join.
Scenario: Users can create threads and can create