Not a query, but this might be of interest:
Analytics and reporting
SQL queries for Discussion Forum analysis
This discussion has been locked so you can no longer reply to it.
Not a query, but this might be of interest: