128
votes
Accepted
What is the median reputation level on Stack Overflow?
Go to the users > reputation > all page
Look at the last page in the list of pages. Divide that value by two
Go to that page by editing the query string parameter for the page number. (At the time ...
- 201k
109
votes
Accepted
Top generous users—users that spend their reputation in bounties
Thanks to Pekka, I have created the following query and that user shows as number 1 on the list:
-- Show top 20 most generous users: bounties awarded
-- Minimum of 50 reputation required (removes low ...
- 53.2k
108
votes
Accepted
Tags that I am in the Top 5 answerers
With the use of SEDE (short for The Stack Exchange Data Explorer, tutorial) and some SQL fu the following query gives you roughly what you're looking for:
-- userid: User Id "The id in the url of ...
- 40.8k
76
votes
Accepted
Average Stack Overflow user over the course of their career
Interesting question! Here's a small start, open to critiques as I feel I'm bound to've made some kind of reasoning mistake...
First things first, this is what my hacking around initially results in:
...
- 59.1k
58
votes
What is the median reputation level on Stack Overflow?
After looking at rene's answer, I ran my own query filtering out anyone with 1 rep and got an answer of 21. For anyone interested the query is thus:
select avg(reputation) median from
(select ...
- 6,836
55
votes
Accepted
Invalid column name 'Age' in Stack Exchange Data Explorer
Age has been removed from SEDE (and from all internal databases) as part of an audit for GDPR. We no longer display it, so there's no reason to ask for or keep it.
It was my call to remove the column ...
- 619k
42
votes
What is the median reputation level on Stack Overflow?
The existing posts answer your question perfectly, but for information, here is what the reputation distribution looks like. You can obtain the data with the following query:
SELECT Reputation AS ...
- 19.8k
40
votes
What is the median reputation level on Stack Overflow?
It is 1 based on this SEDE query
-- http://stackoverflow.com/a/7227860/578411
select avg(reputation) median from
(select reputation,
rnasc = row_number() over(order by reputation),
rndesc = ...
- 40.8k
35
votes
Accepted
Why does the comments score distribution show a logarithmic trend?
To look at this more globally, consider the frequency distribution of all comment scores in the history of the site (SEDE query). In the plot below, comment scores are represented by points, ...
josliberMod
- 43.5k
34
votes
How can SEDE be utilized to find potential plagiarism on Stack Overflow?
Finding Exact-Match Answers
There are two types of plagiarism that can be found on Stack Overflow: exact-match instances, and non-exact-match instances. Of the two types, exact-match plagiarism is ...
- 141
32
votes
Accepted
Which users have the highest rep to total posts ratio?
Here's my query:
SELECT TOP 50
u.Id,
u.DisplayName,
u.Reputation,
count(*) as [Total Number of Posts],
u.Reputation/count(*) as Ratio
FROM Users u
join Posts p on p.OwnerUserId = u.Id
...
- 9,105
28
votes
Top generous users—users that spend their reputation in bounties
All in one...
This query includes amounts and percentages for reputation spent on one's self and on others. While an overall rank is included for context, results are ordered by a composite generosity ...
- 39.9k
28
votes
Accepted
How to find all answers that a certain person has answered me?
The following SEDE Query does that:
;with answers as
(select a.id
, a.owneruserid
from posts q
inner join posts a on q.id = a.parentid
where q.owneruserid = ##userid:int?3577745##
)
select a....
- 40.8k
27
votes
Accepted
Why is the quality of PHP questions, on Stack Overflow, in decline?
There comes a point where a resource like php has reached the full breadth of what it can cover within the constraints of what Stack Overflow considers to be on topic. What remains is a lot of noise ...
- 33.1k
27
votes
Accepted
How to search for two users?
There is no such functionality in the search engine.
I instead use the Stack Exchange Data Explorer (SEDE) for this, with a query aptly named Have they met?
The query takes two userids and then ...
- 1.0m
26
votes
Accepted
User with most posts doesn't have an “OwnerUserId”
As per this Meta Stack Exchange FAQ post
OwnerUserId (only present if user has not been deleted; always -1 for tag wiki entries, i.e. the community user owns them)
So filtering out OwnerUserId IS ...
- 12.9k
24
votes
Accepted
Why is the rate of positively scoring questions and answers steadily declining?
I don't have any data to back this up, but with how many duplicate closings I do any given day I'd say the reason you are seeing this is because Stack Overflow has basically succeeded.
If you have a ...
- 167k
23
votes
Accepted
Difference Between AccountId and UserId in Stack Overflow?
AccountId is the id that belongs to your network profile. So it is a ForeignKey to the Account table. However, that table isn't in SEDE.
It is stable across all your user profiles on all sites.
...
- 40.8k
22
votes
Accepted
Strange behavior of a SEDE query for Stack Overflow with Unicode characters
Using a Unicode string N'%中国%' instead of '%中国%' gives you the desired results:
SELECT
ROW_NUMBER() OVER(ORDER BY Reputation DESC) AS [#],
Id AS Link,
DisplayName,
location,
...
- 23.3k
22
votes
Extend Stack Overflow data with external links
Let's not make it easier to bulk scrape contact information from Stack Overflow
Stack Overflow already had to make it a Terms-of-Service violation to scrape personal information from Stack Overflow ...
Ryan MMod
- 17.3k
22
votes
Accepted
How many new users start off asking good questions?
39.2% on 2022-07-03, out of 4.582m first posts.
This does not include deleted posts (only the first post non-deleted post). It does not include users who did not post at all. It only counts first ...
- 40.8k
21
votes
User with most posts doesn't have an “OwnerUserId”
These are posts by deleted users. They also include dissociated posts.
This can be confirmed by the following query:
select top 10 Id as [Post Link], OwnerUserId from Posts where OwnerUserId is ...
- 48.6k
20
votes
Accepted
Can SEDE be used to compare SE sites?
Yes, that is possible.1
In T-SQL you can switch between databases or link to a database. To know which databases there are you can run this query:
select name
from sys.databases
The tables are always ...
- 40.8k
20
votes
How to include parameters and link to results in SEDE query?
So, it's good if there was a parameter, added in the link
It already exists, you can just add parameters like this:
https://data.stackexchange.com/stackoverflow/query/949/?UserId=2377343
This will ...
- 21.5k
20
votes
Accepted
How to get all questions marked duplicate of a certain question through SEDE?
This should do it for you. Just input the ID of the question you want to search and run the query. Thanks @HansPassant for pointing to a good starting point (and @jon.doe12231 for making such ...
- 920
20
votes
Accepted
Help on SEDE query for count of the deleted answers for given user
Deleted posts in SEDE are available, but anonymized. This means you can't view the count of deleted answers for a specific user.
Deleted posts also get removed from related tables like PostHistory to ...
- 31.2k
18
votes
Invalid column name 'Age' in Stack Exchange Data Explorer
It is true, Age is gone. But not just that. We've completely dropped the Birthdate field from our database altogether (and the option is gone from the Edit Profile screen).
The API will forever ...
- 53.2k
18
votes
Accepted
How can I use SEDE to get the answers that earned the most reputation through bounties?
These are the answers that earned the most reputation with bounties:
SELECT TOP 100
SUM(V.BountyAmount) as 'Bounty Amount',
COUNT(*) as 'Amount of Bounties',
V.PostId AS [Post Link]
FROM
...
- 39.7k
17
votes
Accepted
How to find (your) posts containing images
The Posts.Body field in SEDE actually contains the rendered HTML version of the post content, so it's pretty easy to search it for <img> tags:
SELECT Id AS [Post Link]
FROM Posts
WHERE lower(...
- 48.9k
17
votes
How to find (your) posts containing images
Well, most images that I see are all hosted by imgur. So I just did a query that searches for your posts that include text like imgur. You can see the query here: https://data.stackexchange.com/...
- 8,536
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
data-explorer × 153support × 88
discussion × 55
feature-request × 11
statistics × 11
tags × 8
reputation × 8
search × 8
data-dump × 8
bug × 7
comments × 6
api × 6
answers × 5
vote-to-close × 4
bounty × 4
voting × 3
meta × 3
status-completed × 2
questions × 2
scope × 2
closed-questions × 2
users × 2
status-norepro × 2
stack-exchange × 2
site-analytics × 2