You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SELECT get_json_string(data, 'commit.collection') AS event, count() AS count FROM bluesky GROUP BY event ORDER BY count DESC;
2
2
SELECT get_json_string(data, 'commit.collection') AS event, count() AS count, count(DISTINCT get_json_string(data, 'did')) AS users FROM bluesky WHERE (get_json_string(data, 'kind') ='commit') AND (get_json_string(data, 'commit.operation') ='create') GROUP BY event ORDER BY count DESC;
3
-
SELECT get_json_string(data, 'commit.collection') AS event, hour(from_unixtime(round(divide(get_json_int(data, 'time_us'), 1000000)))) as hour_of_day, count() AS count FROM bluesky WHERE (get_json_string(data, 'kind') ='commit') AND (get_json_string(data, 'commit.operation') ='create') AND (array_contains(['app.bsky.feed.post', 'app.bsky.feed.repost', 'app.bsky.feed.like'], get_json_string(data, 'commit.collection'))) GROUP BY event, hour_of_day ORDER BY hour_of_day, event;
4
-
SELECT get_json_string(data, '$.did') as user_id, min(from_unixtime(round(divide(get_json_int(data, 'time_us'), 1000000)))) AS first_post_date FROM bluesky WHERE (get_json_string(data, 'kind') ='commit') AND (get_json_string(data, 'commit.operation') ='create') AND (get_json_string(data, 'commit.collection') ='app.bsky.feed.post') GROUP BY user_id ORDER BY first_post_date ASCLIMIT3;
5
-
SELECT get_json_string(data, '$.did') as user_id, date_diff('millisecond', min(from_unixtime(round(divide(get_json_int(data, 'time_us'), 1000000)))), max(from_unixtime(round(divide(get_json_int(data, 'time_us'), 1000000))))) AS activity_span FROM bluesky WHERE (get_json_string(data, 'kind') ='commit') AND (get_json_string(data, 'commit.operation') ='create') AND (get_json_string(data, 'commit.collection') ='app.bsky.feed.post') GROUP BY user_id ORDER BY activity_span DESCLIMIT3;
3
+
SELECT get_json_string(data, 'commit.collection') AS event, hour_from_unixtime(get_json_int(data, 'time_us')/1000000) as hour_of_day, count() AS count FROM bluesky WHERE (get_json_string(data, 'kind') ='commit') AND (get_json_string(data, 'commit.operation') ='create') AND (array_contains(['app.bsky.feed.post', 'app.bsky.feed.repost', 'app.bsky.feed.like'], get_json_string(data, 'commit.collection'))) GROUP BY event, hour_of_day ORDER BY hour_of_day, event;
4
+
SELECT get_json_string(data, 'did') as user_id, to_datetime(min(get_json_int(data, 'time_us')), 6) AS first_post_date FROM bluesky WHERE (get_json_string(data, 'kind') ='commit') AND (get_json_string(data, 'commit.operation') ='create') AND (get_json_string(data, 'commit.collection') ='app.bsky.feed.post') GROUP BY user_id ORDER BY first_post_date ASCLIMIT3;
5
+
SELECT get_json_string(data, 'did') as user_id, date_diff('millisecond', to_datetime(min(get_json_int(data, 'time_us')), 6), to_datetime(max(get_json_int(data, 'time_us')), 6)) AS activity_span FROM bluesky WHERE (get_json_string(data, 'kind') ='commit') AND (get_json_string(data, 'commit.operation') ='create') AND (get_json_string(data, 'commit.collection') ='app.bsky.feed.post') GROUP BY user_id ORDER BY activity_span DESCLIMIT3;
0 commit comments