Query editor
with openCa as ((selecttx_hash,block_time,from_hex('0x' || LOWER("RIGHT" (CAST(to_hex(CAST(topic1 AS varbinary)) AS varchar),40))) as owner,from_hex('0x' || LOWER("RIGHT" (CAST(to_hex(CAST(topic2 AS varbinary)) AS varchar),40))) as creditAccount,block_number, "index" as log_index,contract_address facadefrom ethereum.logswhere topic0 = 0xfa2baf5d3eb95569f312f22477b246f9d4c50276f1cb3ded8e1aeadcbc07a763)union all(selecttx_hash,block_time,from_hex('0x' || LOWER("RIGHT" (CAST(to_hex(CAST(topic2 AS varbinary)) AS varchar),40))) as owner,from_hex('0x' || LOWER("RIGHT" (CAST(to_hex(CAST(topic1 AS varbinary)) AS varchar),40))) as creditAccount,block_number, "index" as log_index,contract_address facadefrom ethereum.logswhere topic0 = 0x6e4927aac3383b13ffc5b6f44447693caf351f2f7ca800c9b4463b76997911b0)),closeCa as (selecttx_hash,block_time,block_number, "index" as log_index,from_hex('0x' || LOWER("RIGHT" (CAST(to_hex(CAST(topic1 AS varbinary)) AS varchar),40)