Query editor
SELECTdate_trunc('month', creation_date) as month,count_if(chain = 'ethereum') as ethereum_per_month,count_if(chain = 'polygon') as polygon_per_month,count_if(chain = 'base') as base_per_month,count_if(chain = 'optimism') as optimism_per_month,count_if(chain = 'arbitrum') as arbitrum_per_month,sum(count_if(chain = 'ethereum')) over (order by date_trunc('month', creation_date)) as ethereum_cumulative,sum(count_if(chain = 'polygon')) over (order by date_trunc('month', creation_date)) as polygon_cumulative,sum(count_if(chain = 'base')) over (order by date_trunc('month', creation_date)) as base_cumulative,sum(count_if(chain = 'optimism')) over (order by date_trunc('month', creation_date)) as optimism_cumulative,sum(count_if(chain = 'arbitrum')) over (order by date_trunc('month', creation_date)) as arbitrum_cumulative,sum(count(*)) over (order by date_trunc('month', creation_date)) as cumulativeFROM query_4172028 -- loans with $ value bootstrapGROUP BY 1