7

I'm not the best creating SEDE searches on Stack Overflow. Also I'm not sure if this question is appropriate on meta.SO.

Is there a SEDE search definition for questions based on OP's country information (as far present) available?

I would actually want to see how question score relates to countries (don't ask why).

Is there a skeleton/template available I could use as a starting point for such query?

How can I find such from saved SEDE queries?

13
  • 1
    Seems on-topic enough for MSO. Although potentially more appropriate on MSE.
    – ryanyuyu
    Jul 14, 2015 at 19:13
  • You could use join to select the author of the post and their location using users.location that's about as far as my specific knowledge goes. @rene could probably come up with something good.
    – user4639281
    Jul 14, 2015 at 19:15
  • @TinyGiant My SQL fu is rusty ;-) Jul 14, 2015 at 19:16
  • @rene Yeah, cool THX. That's kinda of what I've been looking for. Jul 14, 2015 at 19:19
  • I would caution that the query in @rene 's link only accounts for user-provided associations with countries (and only a limited subset of them at that). Based on this query, many users seem to provide garbage information on their location.
    – ryanyuyu
    Jul 14, 2015 at 19:21
  • 1
    @ryanyuyu I've mentioned that:: "(as far present) ". Jul 14, 2015 at 19:24
  • 3
    "(don't ask why)" Don't worry, I know what this is about...
    – BoltClock
    Jul 14, 2015 at 19:31
  • @BoltClock You have checked my recent comments activity? I'm not going to provide another comment on that discussion, backed up from SEDE. I'm just curious, to get some numbers and facts. Jul 14, 2015 at 19:33
  • 3
    @πάντα ῥεῖ: Nope, I was responding to some flags. Yeah good on you for stepping away - some people can't be reasoned with.
    – BoltClock
    Jul 14, 2015 at 19:34
  • @BoltClock I've noticed some of my comments were removed. I don't really seem to get those people's culture, and what they consider being rude. Jul 14, 2015 at 19:38
  • Don't worry, I only removed your comments as part of the entire conversation. Doesn't really make sense to delete only one side and leave the other side hanging :)
    – BoltClock
    Jul 14, 2015 at 19:40
  • @BoltClock Then removing that continued one (... because of not enough space within a single comment) was probably a wrong decision, but well, let it go :-P ... Jul 14, 2015 at 19:42
  • 1
    Could I suggest someone writes the wiki for the SEDE tag? I saw this question on the sidebar and was curious to see what SEDE was but there's no wiki and googling it doesn't return an answer that seems to match. Jul 16, 2015 at 15:37

1 Answer 1

4

SEDE has more questions on MSE than it has here on MSO.

For your typical request I started with this search and tried a search on country, but unfortunately SEDE search is even less advanced than SE search.

Here is reputation per location:

select u.location
     , sum(p.score) [sum]
     , avg(p.score) [avg]
     , max(p.score) [max]
     , min(p.score) [min]
from posts p
inner join users u on u.id = p.owneruserid
group by u.location

location and rep

And here are numbers for the reliability of the Location field.

The overview of the schema is found here and an ERD here.

5
  • 1
    "SEDE has more questions on MSE then it has here on MSO." Meta SO is my natural home haven ;-) ... Jul 14, 2015 at 19:26
  • "and a big lie in obvious cases" You mean that too many new users of StackOverflow don't even think about to provide that information? Yeah, that's seriously considerable when analyzing the results. I plan to even constraining this for user name patterns, that indicate a particular world region of origin. Jul 14, 2015 at 19:31
  • 1
    @πάνταῥεῖ I've added a link to a query with the counts per location to give you an idea of how it is used
    – rene
    Jul 14, 2015 at 19:45
  • THX a lot. I've got enough stuff to play with now I think. Jul 14, 2015 at 19:46
  • 1
    Worth noting is that there are 79 unique occurrences of users whose location is Dallas, Texas. My favorite is "Dallas,Tejas"
    – ryanyuyu
    Jul 15, 2015 at 20:19

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .