In both version 1.6 and 1.8 (can't remember earlier) the SQL button and
Query Tool menu item are inactive/greyed out when a Role is selected in
the Object Browser. This tool should always be available: regardless of
what you're browsing, you might want to write a query.
Thanks,
Rob.