format all querys with the "query_struct" method