Query editor
-- Subquery to get daily tweet counts from Ether.fi's Twitter accountWITH daily_tweet_counts AS (SELECTDATE(tweet_time) AS date,COUNT(*) AS num_tweetsFROM public.twitter_data -- Example schema and table name for Twitter dataWHEREtwitter_handle = '@ether_fi' -- Twitter handle of Ether.fiGROUP BYDATE(tweet_time)),-- Subquery to get daily deposits into Ether.fidaily_deposits AS (SELECTDATE(deposit_time) AS date,SUM(amount) / 1e18 AS total_depositsFROM public.ethereum_deposits -- Example schema and table name for deposit dataWHEREcontract_address = 0x35fA164735182de50811E8e2E824cFb9B6118ac2 -- Ether.fi contract addressGROUP BYDATE(deposit_time))-- Main query to join the tweet counts and deposits dataSELECTt.date AS date,t.num_tweets AS num_tweets,d.total_deposits AS total_depositsFROMdaily_tweet_counts tJOINdaily_deposits dONt.date = d.dateORDER BYt.date