Query editor
with profile_created as (select json_value(vars, 'lax $.to') as user_address,json_value(vars, 'lax $.handle') as handle_name,replace(json_value(vars, 'lax $.handle'), '.lens', '') as short_name,call_block_time,output_0 as profile_id,call_tx_hashfrom lens_polygon.LensHub_call_createProfilewhere call_success = true)select call_block_time,profile_id,handle_name,short_name,'<a href=https://polygonscan.com/tx/' || cast(call_tx_hash as varchar) || ' target=_blank>Polyscan</a>' as link,call_tx_hashfrom profile_createdwhere (case when '{{name_contains}}' <> 'keyword' then short_name like '%{{name_contains}}%' else 1 = 1 end)and (case when cast('{{name_length}}' as integer) < 5 then 2 = 2when cast('{{name_length}}' as integer) >= 20 then length(short_name) >= 20else length(short_name) = cast('{{name_length}}' as integer)end)and (case when '{{name_pattern}}' = 'Pure Digits' then regexp_like(short_name, '^[0-9]+$')when '{{name_pattern}}' = 'Pure Letters' then regexp_like(short_name, '^[a-z]+$')else 3 = 3end)order by call_block_time desclimit 1000