Q&A for theoretical computer scientists and researchers in related fields
SELECT COUNT(*) FROM ( 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 400000 rows --fetch next 450000 rows only; ) t