Slowest db calls made in application

What is the TraceQL query for sorting the traces by duration in descending order?
I have tried the following query to get traces of calls made to a specific db:
{.db.name=“some_db”}
I’m trying to get the slowest db calls made in my application.