Q&A for theoretical computer scientists and researchers in related fields
SELECT distinct c.* FROM COMMENTS c INNER JOIN POSTS q on c.POSTID = q.ID AND q.TAGS LIKE '%spring%' INNER JOIN POSTS a on a.ParentId = q.Id ORDER BY c.Id offset 250000 rows fetch next 300000 rows only;