Returns questions that are old (+6 months), have low views and score, have no upvoted or accept answer and where the user hasn't been active in the last 6 months. Modified from the query build out of this conversation http://chat.stackexchange.com/transcript/message/409809#409809
Q&A about the site for serious players and enthusiasts of chess
-- Potentially abandoned questions with inactive owners -- Returns questions that are old (+6 months), have low views and score, -- have no upvoted or accept answer and where the user hasn't been active -- in the last 6 months. -- -- Modified from the query build out of this conversation -- http://chat.stackexchange.com/transcript/message/409809#409809 SELECT TOP 1000 p.Id AS [Post Link], p.Score, p.ViewCount AS Views, p.AnswerCount AS Answers, CONVERT(varchar(4),Year(p.LastActivityDate)) + '-' + CONVERT(varchar(2),Month(p.LastActivityDate)) AS QLastUpdate, u.Id AS [User Link], CONVERT(varchar(4),Year(u.LastAccessDate)) + '-' + CONVERT(varchar(2),Month(u.LastAccessDate)) AS ULastAccess FROM Posts p LEFT JOIN Users u on p.OwnerUserId = u.Id WHERE p.PostTypeId = 1 AND p.ViewCount < 200 AND p.Score < 4 AND p.AcceptedAnswerId IS NULL AND NOT EXISTS (SELECT c.[Id] FROM [Posts] c WHERE c.[Score] > 0 AND c.[ParentId] = p.[Id]) AND p.LastActivityDate < dateadd(month,-6,getdate()) AND u.LastAccessDate <dateadd(month,-6,getdate()) ORDER BY -- Year(p.LastActivityDate), -- Month(p.LastActivityDate), p.Score, p.AnswerCount DESC, p.ViewCount