Recent Hacker News items
Start from a bounded source-native sample before adding filters or aggregates.
SELECT hn_id, title, original_author, original_timestamp, uri FROM hackernews.items WHERE title != '' ORDER BY hn_id DESC LIMIT 20;
Source
Every Hacker News story and comment, queryable with read-only SQL — source-native records, timestamps, authors, scores, and a live tail.
hackernews.itemsPublic Hacker News item API and archive-derived source-native records.
hn_idkindtitlepayloadoriginal_authororiginal_timestampupvotescomment_countstory_hn_iduriStart from a bounded source-native sample before adding filters or aggregates.
SELECT hn_id, title, original_author, original_timestamp, uri FROM hackernews.items WHERE title != '' ORDER BY hn_id DESC LIMIT 20;
Aggregate public Hacker News posts and comments by author and year.
SELECT toYear(original_timestamp) AS year,
count() AS items,
sum(ifNull(upvotes, 0)) AS upvotes
FROM hackernews.items
WHERE original_author = 'pg'
AND original_timestamp IS NOT NULL
GROUP BY year
ORDER BY year DESC
LIMIT 20;