Skip to main content

SQL

Read-only access to the public tables, as DuckDB SQL: lanes, lane_points, lastfm.*, reading.*, parkrun.*, chess.* and the sanitised garmin.sleep and garmin.daily. One SELECT per request, at most 500 rows.

Example queries

Choose one to load it into the box above and run it. A column holding what svg_chart returns is drawn as a chart, for the first 24 rows.

Music

  • The artists played most, with how many tracks and the first and last play.
  • A bar chart of scrobbles by calendar month.
  • Plays by hour of the day, UTC.
  • The ten artists played most.

Reading

  • Domains in the reading list, with how many articles and the latest.
  • A bar chart of reading-list entries by month.
  • The ten domains read most.

Parkrun

  • Event, date, position, time and age grade, newest first.
  • A line chart of finish time in minutes, run by run.
  • The age-graded percentage for each run.
  • How many parkruns in each year, stacked by whether it was a personal best.

Chess

  • A bar chart of games by month.
  • Wins for white, wins for black and draws, as a chart.
  • The most common ECO codes, with the time control each was most often played at.
  • The higher of the two players' ratings in each month, as a line.

Sleep, heart rate and steps

  • Hours slept on each of the last 90 nights.
  • Average deep, light and REM sleep and time awake, per month.
  • Daily resting and average heart rate over the last 180 days.
  • Average daily steps in each week.
  • Nights grouped by whole hours slept, with the steps taken on the day they ended and the average sleep score.