Display the query array in your theme, add the following code to any theme template file to view
if ( current_user_can( 'manage_options' ) ) { global $wpdb; print_r( $wpdb->queries ); }