a

0

Please login or register to vote for this query.

(click on this box to dismiss)

Vegetarianism

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

with UserPostCounts as (
    select users.displayname, count(posts.owneruserid) as post_count 
    from users, posts
    where posts.owneruserid = users.id and location = 'Russia'
    group by users.displayname
    having count(posts.owneruserid) > some(
        select count(posts.owneruserid) from users, posts
        where posts.owneruserid = users.id and location = 'Poland'
        group by users.displayname)) 
select top 5 displayname, post_count from UserPostCounts order by post_count desc;

Enter Parameters

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