Query editor
with locks as (select *from query_3375114), unlocks as (select *from query_3412277), net as (select l.locked_for, l.locked - coalesce(u.unlocked, 0) as lockedfrom locks lleft join unlocks u on u.token_id = l.token_id)select locked_for, sum(locked) as lockedfrom netgroup by locked_fororder by locked_for