Source
Query Reddit with source-native SQL
The public Reddit archive — posts and comments queryable with read-only SQL by subreddit, author, timestamp, text, and score.
Query surfaces
reddit.commentsreddit.posts
Public Reddit archive and source-native comment records.
Best for
subreddit discovery and trend analysis
public author and score aggregates
scoped lexical retrieval over comment evidence
Fields
idparent_idlink_idsubredditauthorcreated_utcbodyscoresource_filesearch_text_lc
Queries
Search scoped comments
Scope by subreddit first, then match the indexed lowercase tokens.
SELECT id, subreddit, author, created_utc, score, body
FROM reddit.comments
WHERE subreddit = 'MachineLearning'
AND hasAllTokens(search_text_lc, ['mechanistic', 'interpretability'])
ORDER BY created_utc DESC
LIMIT 50;
Subreddit aggregate discovery
Compare bounded subreddit totals and latest timestamps from the enabled comment relation.
SELECT subreddit, count() AS comments, max(created_utc) AS latest
FROM reddit.comments
WHERE subreddit IN ('MachineLearning', 'LocalLLaMA')
GROUP BY subreddit
ORDER BY comments DESC
LIMIT 20;