res_s3select=remove_xml_tags_from_result(run_s3select(bucket_name_2,csv_obj_name_2,"select count(0),sum(int(_1)),sum(int(_2)) from s3object where (int(_1)-int(_2)) = 2;"))
res_s3select=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,"select count(0),sum(int(_1)),sum(int(_2)) from s3object where (int(_1)-int(_2)) = 4;"))
res_s3select_nullif=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,"select count(0) from s3object where nullif(_1,_2) is null ;")).replace("\n","")
res_s3select_nullif=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,"select (nullif(_1,_2) is null) from s3object ;")).replace("\n","")
res_s3select_nullif=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,"select count(0) from s3object where not nullif(_1,_2) is null ;")).replace("\n","")
res_s3select_nullif=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,"select (nullif(_1,_2) is not null) from s3object ;")).replace("\n","")
res_s3select_nullif=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,"select count(0) from s3object where nullif(_1,_2) = _1 ;")).replace("\n","")
res_s3select_nullif=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,"select count(*) from s3object where nullif(_1,null) is null;")).replace("\n","")
res_s3select=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,"select count(*) from s3object where _1 is null;")).replace("\n","")
res_s3select_nullif=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,"select (nullif(_1,null) is null) from s3object;")).replace("\n","")
res_s3select=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,"select (_1 is null) from s3object;")).replace("\n","")
res_s3select_nullif=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,"select count(0) from s3object where (nullif(_1,_2) is null) = true ;")).replace("\n","")
res_s3select_nullif=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,"select count(0) from s3object where not (nullif(_1,_2) is null) = true ;")).replace("\n","")
res_s3select_null=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,"select count(*) from s3object where nullif(_1,_2) is not null ;")).replace("\n","")
res_s3select=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,"select count(*) from s3object where _1 != _2 ;")).replace("\n","")
res_s3select_null=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,"select count(*) from s3object where (nullif(_1,_1) and _1 = _2) is not null ;")).replace("\n","")
res_s3select_in=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select int(_1) from s3object where int(_1) in(1);')).replace("\n","")
res_s3select_in=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select int(_1) from s3object where int(_1) in(1,0);')).replace("\n","")
res_s3select=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select int(_1) from s3object where int(_1) = 1 or int(_1) = 0;')).replace("\n","")
res_s3select_in=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select int(_2) from s3object where int(_2) in(1,0,2);')).replace("\n","")
res_s3select=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select int(_2) from s3object where int(_2) = 1 or int(_2) = 0 or int(_2) = 2;')).replace("\n","")
res_s3select=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select (int(_2) = 1 or int(_2) = 0 or int(_2) = 2) from s3object;')).replace("\n","")
res_s3select_in=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select int(_2) from s3object where int(_2)*2 in(int(_3)*2,int(_4)*3,int(_5)*5);')).replace("\n","")
res_s3select=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select int(_2) from s3object where int(_2)*2 = int(_3)*2 or int(_2)*2 = int(_4)*3 or int(_2)*2 = int(_5)*5;')).replace("\n","")
res_s3select_in=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select (int(_2)*2 in(int(_3)*2,int(_4)*3,int(_5)*5)) from s3object;')).replace("\n","")
res_s3select=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select (int(_2)*2 = int(_3)*2 or int(_2)*2 = int(_4)*3 or int(_2)*2 = int(_5)*5) from s3object;')).replace("\n","")
res_s3select_in=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select int(_1) from s3object where character_length(_1) = 2 and substring(_1,2,1) in ("3");')).replace("\n","")
res_s3select_in=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select (character_length(_1) = 2 and substring(_1,2,1) in ("3")) from s3object;')).replace("\n","")
res_s3select_in=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select int(_1) from s3object where (int(_1) in(1)) = true;')).replace("\n","")
res_s3select_in=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select int(_1) from s3object where (int(_1) in(1,0)) = true;')).replace("\n","")
res_s3select=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select int(_1) from s3object where int(_1) = 1 or int(_1) = 0;')).replace("\n","")
res_s3select_in=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select int(_2) from s3object where (int(_2) in(1,0,2)) = true;')).replace("\n","")
res_s3select=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select int(_2) from s3object where int(_2) = 1 or int(_2) = 0 or int(_2) = 2;')).replace("\n","")
res_s3select_in=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select int(_2) from s3object where (int(_2)*2 in(int(_3)*2,int(_4)*3,int(_5)*5)) = true;')).replace("\n","")
res_s3select=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select int(_2) from s3object where int(_2)*2 = int(_3)*2 or int(_2)*2 = int(_4)*3 or int(_2)*2 = int(_5)*5;')).replace("\n","")
res_s3select_in=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select int(_1) from s3object where (character_length(_1) = 2) = true and (substring(_1,2,1) in ("3")) = true;')).replace("\n","")
res_s3select_in=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select (int(_1) in (1,2,0)) as a1 from s3object where a1 = true;')).replace("\n","")
res_s3select=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select \"true\"from s3object where (int(_1) in (1,0,2)) ;')).replace("\n","")
res_s3select_like=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select count(*) from s3object where _1 like "%aeio%";')).replace("\n","")
res_s3select=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select count(*) from s3object where substring(_1,11,4) = "aeio" ;')).replace("\n","")
res_s3select_like=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select count(*) from s3object where _1 like "cbcd%";')).replace("\n","")
res_s3select=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select count(*) from s3object where substring(_1,1,4) = "cbcd";')).replace("\n","")
res_s3select_like=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select count(*) from s3object where _3 like "%y[y-z]";')).replace("\n","")
res_s3select=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select count(*) from s3object where substring(_3,char_length(_3),1) between "y" and "z" and substring(_3,char_length(_3)-1,1) = "y";')).replace("\n","")
res_s3select=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select (substring(_3,char_length(_3),1) between "y" and "z" and substring(_3,char_length(_3)-1,1) = "y") from s3object;')).replace("\n","")
res_s3select_like=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select count(*) from s3object where _2 like "%yz";')).replace("\n","")
res_s3select=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select count(*) from s3object where substring(_2,char_length(_2),1) = "z" and substring(_2,char_length(_2)-1,1) = "y";')).replace("\n","")
res_s3select=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select (substring(_2,char_length(_2),1) = "z" and substring(_2,char_length(_2)-1,1) = "y") from s3object;')).replace("\n","")
res_s3select_like=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select count(*) from s3object where _3 like "c%z";')).replace("\n","")
res_s3select=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select count(*) from s3object where substring(_3,char_length(_3),1) = "z" and substring(_3,1,1) = "c";')).replace("\n","")
res_s3select=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select (substring(_3,char_length(_3),1) = "z" and substring(_3,1,1) = "c") from s3object;')).replace("\n","")
res_s3select_like=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select count(*) from s3object where _2 like "%xy_";')).replace("\n","")
res_s3select=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select count(*) from s3object where substring(_2,char_length(_2)-1,1) = "y" and substring(_2,char_length(_2)-2,1) = "x";')).replace("\n","")
res_s3select=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select (substring(_2,char_length(_2)-1,1) = "y" and substring(_2,char_length(_2)-2,1) = "x") from s3object;')).replace("\n","")
res_s3select_like=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select count(*) from s3object where (_1 like "%aeio%") = true;')).replace("\n","")
res_s3select=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select count(*) from s3object where substring(_1,11,4) = "aeio" ;')).replace("\n","")
res_s3select_like=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select count(*) from s3object where (_1 like "cbcd%") = true;')).replace("\n","")
res_s3select=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select count(*) from s3object where substring(_1,1,4) = "cbcd";')).replace("\n","")
res_s3select_like=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select count(*) from s3object where (_3 like "%y[y-z]") = true;')).replace("\n","")
res_s3select=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select count(*) from s3object where (substring(_3,char_length(_3),1) between "y" and "z") = true and (substring(_3,char_length(_3)-1,1) = "y") = true;')).replace("\n","")
res_s3select_like=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select count(*) from s3object where (_2 like "%yz") = true;')).replace("\n","")
res_s3select_like=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select count(*) from s3object where (_3 like "c%z") = true;')).replace("\n","")
res_s3select_like=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select count(*) from s3object where (_2 like "%xy_") = true;')).replace("\n","")
res_s3select=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,"select min(int(_1)),max(int(_2)),min(int(_3))+1 from s3object;")).replace("\n","")
res_s3select_substring=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select min(int(_2)),max(int(_2)) from s3object where substring(_2,1,1) = "1" and char_length(_2) = 3;')).replace("\n","")
res_s3select_between_numbers=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select min(int(_2)),max(int(_2)) from s3object where int(_2)>=100 and int(_2)<200;')).replace("\n","")
res_s3select_eq_modolu=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select min(int(_2)),max(int(_2)) from s3object where int(_2)/100 = 1 and character_length(_2) = 3;')).replace("\n","")
res_s3select_alias=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,"select int(_1) as a1, int(_2) as a2 , (a1+a2) as a3 from s3object where a3>100 and a3<300;")).replace(",","")
res_s3select_no_alias=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,"select int(_1),int(_2),int(_1)+int(_2) from s3object where (int(_1)+int(_2))>100 and (int(_1)+int(_2))<300;")).replace(",","")
res_s3select_alias=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,"select int(_1) as a1,int(_2) as a2, a1+a4 as a3, a5+a1 as a4, int(_3)+a3 as a5 from s3object;"))
res_s3select_date_time=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select count(0) from s3object where extract(year from to_timestamp(_1)) > 1950 and extract(year from to_timestamp(_1)) < 1960;'))
res_s3select_substring=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select count(0) from s3object where int(substring(_1,1,4))>1950 and int(substring(_1,1,4))<1960;'))
res_s3select_date_time=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select count(0) from s3object where date_diff(month,to_timestamp(_1),date_add(month,2,to_timestamp(_1)) ) = 2;'))
res_s3select_date_time_utcnow=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select count(0) from s3object where date_diff(hour,utcnow(),date_add(day,1,utcnow())) = 24 ;'))
res_s3select_date_time=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select count(0) from s3object where (extract(year from to_timestamp(_1)) > 1950) = true and (extract(year from to_timestamp(_1)) < 1960) = true;'))
res_s3select_substring=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select count(0) from s3object where int(substring(_1,1,4))>1950 and int(substring(_1,1,4))<1960;'))
res_s3select=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,"select min(int(_1)),max(int(_2)),min(int(_3))+1 from s3object;","|","\t")).replace("\n","")
res_multiple_defintion=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,"select c1,c10,int(c11) from s3object;",csv_header_info="USE")).replace("\n","")
res_multiple_defintion=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,"select int(c1)+int(c2) as c4,c4 from s3object;",csv_header_info="USE")).replace("\n","")
res_s3select=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select case when cast(_1 as int)>100 and cast(_1 as int)<200 then "(100-200)" when cast(_1 as int)>200 and cast(_1 as int)<300 then "(200-300)" else "NONE" end from s3object;')).replace("\n","")
res=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select count(*) from s3object where cast(_1 as int)>100 and cast(_1 as int)<200 ;')).replace("\n","")
res1=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select count(*) from s3object where cast(_1 as int)>200 and cast(_1 as int)<300 ;')).replace("\n","")
res2=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select count(*) from s3object where cast(_1 as int)<=100 or cast(_1 as int)>=300 or cast(_1 as int)=200 ;')).replace("\n","")
res_s3select=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select count(*) from s3object where char_length(_3)>2 and char_length(_4)>2 and cast(substring(_3,1,2) as int) = cast(substring(_4,1,2) as int);')).replace("\n","")
res_null=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select count(*) from s3object where cast(_3 as int)>99 and cast(_4 as int)>99 and coalesce(nullif(cast(substring(_3,1,2) as int),cast(substring(_4,1,2) as int)),7) = 7;')).replace("\n","")
res_s3select=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select coalesce(nullif(_5,_5),nullif(_1,_1),_2) from s3object;')).replace("\n","")
res_s3select=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select count(*) from s3object where cast(_3 as int)>999;')).replace("\n","")
res=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select count(*) from s3object where char_length(_3)>3;')).replace("\n","")
res_s3select=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select count(*) from s3object where cast(_3 as int)>99 and cast(_3 as int)<1000;')).replace("\n","")
res_s3select_trim=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select count(*) from s3object where trim(_1) = "aeiou";')).replace("\n","")
res_s3select=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select count(*) from s3object where substring(_1 from 4 for 5) = "aeiou";')).replace("\n","")
res_s3select_trim=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select count(*) from s3object where trim(both from _1) = "aeiou";')).replace("\n","")
res_s3select=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select count(*) from s3object where substring(_1,4,5) = "aeiou";')).replace("\n","")
res_s3select_trim=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select count(*) from s3object where trim(trailing from _1) = " aeiou";')).replace("\n","")
res_s3select=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select count(*) from s3object where substring(_1,4,5) = "aeiou";')).replace("\n","")
res_s3select_trim=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select count(*) from s3object where trim(leading from _1) = "aeiou ";')).replace("\n","")
res_s3select=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select count(*) from s3object where substring(_1,4,5) = "aeiou";')).replace("\n","")
res_s3select_trim=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select count(*) from s3object where trim(trim(leading from _1)) = "aeiou";')).replace("\n","")
res_s3select=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select count(*) from s3object where substring(_1,4,5) = "aeiou";')).replace("\n","")
res_s3select_trim=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select count(*) from s3object where trim(_1) = "aeiou" = true;')).replace("\n","")
res_s3select=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select count(*) from s3object where substring(_1 from 4 for 5) = "aeiou";')).replace("\n","")
res_s3select_trim=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select count(*) from s3object where trim(both from _1) = "aeiou" = true;')).replace("\n","")
res_s3select=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select count(*) from s3object where substring(_1,4,5) = "aeiou";')).replace("\n","")
res_s3select_trim=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select count(*) from s3object where trim(trailing from _1) = " aeiou" = true;')).replace("\n","")
res_s3select=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select count(*) from s3object where substring(_1,4,5) = "aeiou";')).replace("\n","")
res_s3select_trim=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select count(*) from s3object where trim(leading from _1) = "aeiou " = true;')).replace("\n","")
res_s3select=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select count(*) from s3object where substring(_1,4,5) = "aeiou";')).replace("\n","")
res_s3select_trim=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select count(*) from s3object where trim(trim(leading from _1)) = "aeiou" = true;')).replace("\n","")
res_s3select=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select count(*) from s3object where substring(_1,4,5) = "aeiou";')).replace("\n","")
res_s3select_escape=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select count(*) from s3object where _1 like "%_ar" escape "%";')).replace("\n","")
res_s3select=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select count(*) from s3object where substring(_1,char_length(_1),1) = "r" and substring(_1,char_length(_1)-1,1) = "a" and substring(_1,char_length(_1)-2,1) = "_";')).replace("\n","")
res_s3select_escape=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select count(*) from s3object where _1 like "%aeio$_" escape "$";')).replace("\n","")
res_s3select=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select count(*) from s3object where substring(_1,1,5) = "aeio_";')).replace("\n","")
res_s3select_case=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select case cast(_1 as int) when cast(_2 as int) then "case_1_1" else "case_2_2" end from s3object;')).replace("\n","")
res_s3select=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select case when cast(_1 as int) = cast(_2 as int) then "case_1_1" else "case_2_2" end from s3object;')).replace("\n","")
res_s3select_cast=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select count(*) from s3object where cast(int(_1) as bool) = true ;')).replace("\n","")
res_s3select=remove_xml_tags_from_result(run_s3select(bucket_name,csv_obj_name,'select count(*) from s3object where cast(_1 as int) != 0 ;')).replace("\n","")