Posts with its questions

0

Please login or register to vote for this query.

(click on this box to dismiss)

Data Export for the research project of http://twitter.com/se_statistics

Vegetarianism

Q&A for those committed to a vegan or vegetarian lifestyle and anyone interested in learning more

select top 300 p.Id as antwort_id, q.Id as frage_id, p.Body, p.Score,
q.Body as Question, q.AnswerCount,
p.CreationDate
--, p.Id as [Post Link]
from Posts as p join Posts as q on p.Id =
(select top 1 Id from posts where parentId = q.Id 
and CreationDate < DATEADD(month, -3, GETDATE()) -- at least 3 months old
and LastEditDate < DATEADD(month, -3, GETDATE()) -- at least 3 months untouched
and LEN(Body) > 450 -- more than 450 chars used (TODO: striptags)
and Score >= 0 -- Score >= 3
ORDER BY NEWID())  -- only answers
and q.ClosedDate IS NULL and p.CommunityOwnedDate IS NULL -- not closed, not community wiki
and q.AnswerCount <= 10 -- not more than 30 answers (pagination)
ORDER BY NEWID()

Enter Parameters

Options:
Switch to meta site
loading Hold tight while we fetch your results