Flipside Data Sciencehad babies
Updated 2024-08-02
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
›
⌄
WITH all_moms_pops AS (
select
block_timestamp,
decoded_log:matronId AS mom_id,
decoded_log:sireId AS pop_id
from ethereum.core.ez_decoded_event_logs
WHERE
event_name = 'Pregnant'
AND
contract_address = '0x06012c8cf97bead5deae237070f9587f8e7a266d'
--AND
--block_timestamp > '2023-03-01'
--AND
--block_timestamp < '2023-03-16'
),
all_parent_ids AS (
SELECT
block_timestamp,
mom_id AS parent_id
FROM
all_moms_pops
UNION
SELECT
block_timestamp,
pop_id AS parent_id
FROM
all_moms_pops
),
counts_by_parent AS (
select
QueryRunArchived: QueryRun has been archived