Query editor
SELECT t1."from" "销售者",count(t1."from") "挂单总数",t2.xgl "取消/改价",(count(t1."from") - t2.xgl) "出售的订单" FROM arbitrum.transactions t1 left join ( SELECT "from" "xgz",count(1) "xgl" FROM arbitrum.transactions t1 WHERE to = 0xf5131c59194f11d9248a8e14c32d5b6f234542f6 and (SUBSTRING(data FROM 1 FOR 4) = 0x96b5a755 or SUBSTRING(data FROM 1 FOR 4) = 0xb3de019c) and success = true group by "from" )t2 on t1."from" = t2."xgz" WHERE to = 0x1e3e1ed17a8df57c215b45f00c2ec4717b33a93d and SUBSTRING(data FROM 1 FOR 4) = 0xb88d4fde and success = true group by t1."from",t2.xgl order by (count(t1."from") - t2.xgl) desc