Detailed SQL queries must be performed directly towards the database back-end. It is not practical to post huge SQL queries on a web page, since there is no control over content and volume...
Contact the system administrator if you would like access to the database backend.