SQL Explorer
Demo Environment
This environment resets nightly. Any data or connections you add are public.
SQL Explorer
New Query
Playground
Connections
Logs
Favorites
Prompt length analysis
Title
default
northwind.db
sqlite-sakila.db
job_skills_1.db
job_postings_1.db
job_summary_1.db
tq
transactions_1.db
history_1390634-1970-01-01-MAX_1.db
IMDbMovies-Clean_1.db
179146-Activity_2024-07-12_07-47_101208779_1.db
vehicles_1.db
Connection
What is the average lenght of prompts? How much variability is there?
Description
SQL
WITH LengthStats AS ( SELECT AVG(LENGTH(prompt)) AS mean_length, AVG(LENGTH(prompt) * LENGTH(prompt)) - AVG(LENGTH(prompt)) * AVG(LENGTH(prompt)) AS variance FROM explorer_promptlog ) SELECT mean_length AS average_length, SQRT(variance) AS length_variability FROM LengthStats;
Save & Run
Save Only
Download...
CSV
JSON
Show Schema
Hide Schema
Format
SQL Assistant
Assistant prompt
"Ask Assistant" to try and automatically fix the issue. The assistant is already aware of error messages & context.
Select All
(?)
Search tables
Ask Assistant
Loading...
Preview
Pivot
  Execution time: 11.00 ms
Showing
of 1 total rows.
average_length
length_variability
Sum
1819.4
Avg
1819.4
Min
1819.4
Max
1819.4
NUL
0.0
Sum
1831.1
Avg
1831.1
Min
1831.1
Max
1831.1
NUL
0.0
0
1819.4000000000000000
1831.09644865739234659031879205646140
Link to this
Download CSV
Avg. execution: 7.141ms. Query created by admin on 2024-05-17.
History