Shape a release query

Which release query should the agent build?

Implement the default release query in release-report.sql and show the query plus its result-table test.