Toolkit of queries for examining SQL databases, in executable IPython Notebook format. For the moment there is only one notebook, for PostgreSQL, but that may change (feel free to submit patches!).
Requires IPython Notebook the IPython %%SQL magic, and a Python database adapter for the database in question, like psycopg2.
PostgreSQL sample data comes from opensourceshakespeare.