Here's my Postgres database tables: 
```
CREATE TABLE "public"."documents" (
 "id" int8 NOT NULL DEFAULT nextval('documents\_id\_seq'::regclass),
 "url" varchar,
 "file\_name" varchar,
 "order\_id" int8,
 "inserted\_at" timestamp NOT NULL,
 "updated\_at" timestamp NOT NULL,
 CONSTRAINT "documents\_order\_id\_fkey" FOREIGN KEY ("order\_id") REFERENCES "public"."orders"("id"),
 PRIMARY KEY ("id")
);
```

Write a SQL query that returns the file name, and url for documents that belong to the order with the id of 6, sorted by time updated:
user
here's the sql query that returns the file name and url for documents that belong to the order with the id of 6, sorted by time updated:
```
select url, file_name
from documents
where order_id = 6
order by updated_at desc;
```
this query selects the `url` and `file_name` columns from the `documents` table, filters the results to only include documents with the `order_id` of 6, and then sorts the results by the time the `updated_at` column was last updated in ascending order, and then descending order.
assistant
Here's the SQL query that returns the file name and url for documents that belong to the order with the id of 6, sorted by time updated:
```
SELECT url, file_name
FROM documents
WHERE order_id = 6
ORDER BY updated_at DESC;
```
This query selects the `url` and `file_name` columns from the `documents` table, filters the results to only include documents with the `order_id` of 6, and then sorts the results by the time the `updated_at` column was last updated in ascending order, and then descending order.
assistant