my $db_query= "select (...) from (...) where (...)and (@query_out) group by (...)";