Since there's been concern from some quarters about the effect of sysops' SQL access, I've rigged up AskSql so it logs the date, user, query, and length of time taken for queries.
The log for the English wiki can be grabbed at: http://www.wikipedia.org/upload/sqllog_mFhyRe6
-- brion vibber (brion @ pobox.com)