04:49
Can we get the number of questions which were closed (include deleted ones too) and had some answers?
And more specifically I need the questions which were closed for lack of context. Does the sede allow filtering via "closed reason"
1 hour later…
06:05
I will add a link to the documentation where you can see what is available: Database schema documentation for the public data dump and SEDE
354
Stack Exchange releases "data dumps" of all its publicly available content roughly every three months via archive.org, and also makes that information queryable over the Internet at the Stack Exchange Data Explorer (SEDE) (updated weekly, on Sunday). Over time, as new features and other bits of d...
@ParamanandSingh This depends a bit on whether you plan to run this yourself or whether you plan to ask a CM. The CMs have access to an internal SEDE instance which has all data also for deleted posts: How much did "advice for first-time askers" help?
Using
AnswerCount>0
you would get the questions which have at least one answer. But that doesn't work for deleted posts.
For deleted posts you would need to check for answers in some other way. But it is still possible also using the public instance of SEDE. Here is an example of query that counts answers for deleted questions: data.stackexchange.com/math/query/845040/…
@ParamanandSingh I do not think this is possible. There is a feature request about this: Please add the individual close-as-off-topic reason in the Data Explorer. (We can upvote that question or add a bounty, but there is not guarantee that it will be implemented in some way.)
> If PostHistoryTypeId = 10, this field contains the CloseReasonId of the close reason (listed in CloseReasonTypes):
Old close reasons:
1 = Exact Duplicate
2 = Off-topic
3 = Subjective and argumentative
4 = Not a real question
7 = Too localized
10 = General reference
20 = Noise or pointless (Meta sites only)
Current close reasons:
101 = Duplicate
102 = Off-topic
103 = Unclear what you're asking
104 = Too broad
105 = Primarily opinion-based
Old close reasons:
1 = Exact Duplicate
2 = Off-topic
3 = Subjective and argumentative
4 = Not a real question
7 = Too localized
10 = General reference
20 = Noise or pointless (Meta sites only)
Current close reasons:
101 = Duplicate
102 = Off-topic
103 = Unclear what you're asking
104 = Too broad
105 = Primarily opinion-based
But again, this would only work for the existing posts, not the deleted ones. (Unless it is run on the internal instance.)
The documentation explicitly says about the PostHistory table: "Note that the history of deleted posts is scrubbed from this table in SEDE."
To add some context for people who stumble upon this in chat, there is a related comment under this answer: Statistics of fraction of questions closed per month (posted that month itself).
I need such queries with some further conditions in order to get some idea of effect of EoQS. Will discuss in chat in a day or two. — Paramanand Singh ♦ 4 hours ago
2 hours later…
08:35
This is just a test - to see whether the two methods (AnswerCount and CTE) will give the same result if I look at the
Posts
table: data.stackexchange.com/math/query/1560973/…
@ParamanandSingh The above query would be one of the things you asked about - the questions which are closed and have at least one answer.
As I said, I do not think there is a possibility to have only the questions closed for lack of context there.
I think it is possible to get questions closed as off-topic (which includes, among other things, lack of context) - but only for existing posts, not the deleted ones. (But the CMs would be able to run the same query on the database that includes deleted posts.)
To include a specific example, in this query I looked at the duplicated closures and I used:
(ph.PostHistoryTypeId=10) AND (ph.Comment IN (1,101))
.
@ParamanandSingh Probably I should also point out that there is a SEDE chatroom - and you're more likely to get a good advice concerning SQL there. (And I am pretty sure that at least some of the mods are more fluent in SQL than I am.)
« first day (2636 days earlier) ← previous day next day → last day (1016 days later) »