Skip to content

Commit cb4e312

Browse files
cfahlgren1lhoestq
andauthored
Update docs/hub/datasets-viewer-sql-console.md
Co-authored-by: Quentin Lhoest <[email protected]>
1 parent df3e077 commit cb4e312

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/hub/datasets-viewer-sql-console.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,10 @@ The SQL Console makes filtering datasets really easily. For example, if you want
8181
In the query, we can use the `len` function to get the length of the `reasoning_chains` column and the `bar` function to create a bar chart of the reasoning lengths.
8282

8383
```sql
84-
select len(reasoning_chains) as reason_len, bar(reason_len, 0, 100), *
85-
from train
86-
where reason_len > 10
87-
order by reason_len desc
84+
SELECT len(reasoning_chains) AS reason_len, bar(reason_len, 0, 100), *
85+
FROM train
86+
WHERE reason_len > 10
87+
ORDER BY reason_len DESC
8888
```
8989

9090
The [bar](https://duckdb.org/docs/sql/functions/char.html#barx-min-max-width) function is a neat built-in DuckDB function that creates a bar chart of the reasoning lengths.

0 commit comments

Comments
 (0)