owners = db.query(`
WITH latest_block AS (
SELECT token_id, MAX(block_timestamp) AS block_timestamp
FROM ghozaliEverydayTransfer20220221
GROUP BY 1
)
SELECT trf_to AS address,
COUNT(DISTINCT token_id) AS nfts
FROM ghozaliEverydayTransfer20220221
JOIN latest_block USING (block_timestamp, token_id)
GROUP BY 1 ORDER BY 2 DESC
`)