db_id
stringlengths
4
31
SQL
stringlengths
18
1.45k
input_sequence
stringlengths
148
11k
question
stringlengths
16
325
codebase_community
select t1.title from posts as t1 inner join users as t2 on t1.owneruserid = t2.id where t2.displayname = 'csgillespie'
Question: please list the titles of the posts owned by the user csgillespie? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplayName. postLinks...
please list the titles of the posts owned by the user csgillespie?
codebase_community
select t2.displayname from posts as t1 inner join users as t2 on t1.owneruserid = t2.id where t1.title = 'eliciting priors from experts'
Question: who is the owner of the post 'eliciting priors from experts'? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplayName. postLinks -> I...
who is the owner of the post 'eliciting priors from experts'?
codebase_community
select t1.title from posts as t1 inner join users as t2 on t1.owneruserid = t2.id where t2.displayname = 'csgillespie' order by t1.viewcount desc limit 1
Question: what is the title of the post that is owned by csgillespie and has the highest popularity? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, Us...
what is the title of the post that is owned by csgillespie and has the highest popularity?
codebase_community
select t2.displayname from posts as t1 inner join users as t2 on t1.owneruserid = t2.id order by t1.favoritecount desc limit 1
Question: what is the display name of the user who is the owner of the most valuable post? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplayN...
what is the display name of the user who is the owner of the most valuable post?
codebase_community
select sum(t1.commentcount) from posts as t1 inner join users as t2 on t1.owneruserid = t2.id where t2.displayname = 'csgillespie'
Question: what is the total number of comments of all the posts owned by csgillespie? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplayName. ...
what is the total number of comments of all the posts owned by csgillespie?
codebase_community
select max(t1.answercount) from posts as t1 inner join users as t2 on t1.owneruserid = t2.id where t2.displayname = 'csgillespie'
Question: for the post that got the most number of answers owned by csgillespie, how many answers did it get? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Co...
for the post that got the most number of answers owned by csgillespie, how many answers did it get?
codebase_community
select t2.displayname from posts as t1 inner join users as t2 on t1.lasteditoruserid = t2.id where t1.title = 'examples for teaching: correlation does not mean causation'
Question: what is the display name of the user who last edited the post 'examples for teaching: correlation does not mean causation'? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, Creati...
what is the display name of the user who last edited the post 'examples for teaching: correlation does not mean causation'?
codebase_community
select count(t1.id) from posts as t1 inner join users as t2 on t1.owneruserid = t2.id where t2.displayname = 'csgillespie' and t1.parentid is null
Question: among the posts owned by csgillespie, how many of them are root posts? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplayName. postL...
among the posts owned by csgillespie, how many of them are root posts?
codebase_community
select t2.displayname from posts as t1 inner join users as t2 on t1.owneruserid = t2.id where t1.closeddate is not null
Question: please list the display names of all the users who owns a post that is well-finished. | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDis...
please list the display names of all the users who owns a post that is well-finished.
codebase_community
select count(t1.id) from posts as t1 inner join users as t2 on t1.owneruserid = t2.id where t1.score >= 20 and t2.age > 65
Question: among the posts owned by an elder user, how many of them have a score of over 19? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplay...
among the posts owned by an elder user, how many of them have a score of over 19?
codebase_community
select t2.location from posts as t1 inner join users as t2 on t1.owneruserid = t2.id where t1.title = 'eliciting priors from experts'
Question: what is the location of the owner of the post 'eliciting priors from experts'? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplayNam...
what is the location of the owner of the post 'eliciting priors from experts'?
codebase_community
select t2.body from tags as t1 inner join posts as t2 on t2.id = t1.excerptpostid where t1.tagname = 'bayesian'
Question: from which post is the tag 'bayesian' excerpted from? please give the body of the post. | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserD...
from which post is the tag 'bayesian' excerpted from? please give the body of the post.
codebase_community
select body from posts where id = ( select excerptpostid from tags order by count desc limit 1 )
Question: from which post is the most popular tag excerpted from? please give the body of the post. | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, Use...
from which post is the most popular tag excerpted from? please give the body of the post.
codebase_community
select count(t1.id) from badges as t1 inner join users as t2 on t1.userid = t2.id where t2.displayname = 'csgillespie'
Question: how many badges has the user csgillespie obtained? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplayName. postLinks -> Id, Creation...
how many badges has the user csgillespie obtained?
codebase_community
select t1.`name` from badges as t1 inner join users as t2 on t1.userid = t2.id where t2.displayname = 'csgillespie'
Question: please list the names of the badges obtained by csgillespie. | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplayName. postLinks -> Id...
please list the names of the badges obtained by csgillespie.
codebase_community
select count(t1.id) from badges as t1 inner join users as t2 on t1.userid = t2.id where strftime('%y', t1.date) = '2011' and t2.displayname = 'csgillespie'
Question: among the badges obtained by csgillespie, how many of them were obtained in the year 2011? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, Us...
among the badges obtained by csgillespie, how many of them were obtained in the year 2011?
codebase_community
select t2.displayname from badges as t1 inner join users as t2 on t1.userid = t2.id group by t2.displayname order by count(t1.id) desc limit 1
Question: what is the display name of the user who has obtained the most number of badges? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplayN...
what is the display name of the user who has obtained the most number of badges?
codebase_community
select avg(t1.score) from posts as t1 inner join users as t2 on t1.owneruserid = t2.id where t2.displayname = 'csgillespie'
Question: what is the average score of the posts owned by the user csgillespie? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplayName. postLi...
what is the average score of the posts owned by the user csgillespie?
codebase_community
select cast(count(t1.id) as real) / count(distinct t2.displayname) from badges as t1 inner join users as t2 on t1.userid = t2.id where t2.views > 200
Question: what is the average number of badges obtained by a user with over 200 views? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplayName....
what is the average number of badges obtained by a user with over 200 views?
codebase_community
select cast(sum(iif(t2.age > 65, 1, 0)) as real) * 100 / count(t1.id) from posts as t1 inner join users as t2 on t1.owneruserid = t2.id where t1.score > 20
Question: among the posts with a score of over 20, what is the percentage of them being owned by an elder user? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, ...
among the posts with a score of over 20, what is the percentage of them being owned by an elder user?
codebase_community
select count(id) from votes where userid = 58 and creationdate = '2010-07-19'
Question: how many votes did the user no.58 take on 2010/7/19? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplayName. postLinks -> Id, Creati...
how many votes did the user no.58 take on 2010/7/19?
codebase_community
select creationdate from votes group by creationdate order by count(id) desc limit 1
Question: indicate the creation date of the maximum number of votes. | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplayName. postLinks -> Id, ...
indicate the creation date of the maximum number of votes.
codebase_community
select count(id) from badges where name = 'revival'
Question: give the number of 'revival' badges. | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplayName. postLinks -> Id, CreationDate, PostId, ...
give the number of 'revival' badges.
codebase_community
select title from posts where id = ( select postid from comments order by score desc limit 1 )
Question: what is the title for the post which got the highest score comment? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplayName. postLink...
what is the title for the post which got the highest score comment?
codebase_community
select count(t1.id) from posts as t1 inner join comments as t2 on t1.id = t2.postid where t1.viewcount = 1910
Question: for the post which got 1910 view counts, how many comments does it get? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplayName. post...
for the post which got 1910 view counts, how many comments does it get?
codebase_community
select t1.favoritecount from posts as t1 inner join comments as t2 on t1.id = t2.postid where t2.creationdate = '2014-04-23 20:29:39.0' and t2.userid = 3025
Question: user no.3025 gave a comment at 20:29:39 on 2014/4/23 to a post, how many favorite counts did that post get? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, ...
user no.3025 gave a comment at 20:29:39 on 2014/4/23 to a post, how many favorite counts did that post get?
codebase_community
select t2.text from posts as t1 inner join comments as t2 on t1.id = t2.postid where t1.parentid = 107829 and t1.commentcount = 1
Question: give the only one comment text of the post with parent id 107829. | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplayName. postLinks ...
give the only one comment text of the post with parent id 107829.
codebase_community
select iif(t2.closeddate is null, 'not well-finished', 'well-finished') as resylt from comments as t1 inner join posts as t2 on t1.postid = t2.id where t1.userid = 23853 and t1.creationdate = '2013-07-12 09:08:18.0'
Question: user no.23853 gave a comment to a post at 9:08:18 on 2013/7/12, was that post well-finished? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, ...
user no.23853 gave a comment to a post at 9:08:18 on 2013/7/12, was that post well-finished?
codebase_community
select t1.reputation from users as t1 inner join posts as t2 on t1.id = t2.owneruserid where t2.id = 65041
Question: for the owner user of post no. 65041, what is his/her reputation points? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplayName. pos...
for the owner user of post no. 65041, what is his/her reputation points?
codebase_community
select count(t1.id) from users as t1 inner join posts as t2 on t1.id = t2.owneruserid where t1.displayname = 'tiago pasqualini'
Question: for the user with the display name of 'tiago pasqualini', how many posts did he/she own? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, User...
for the user with the display name of 'tiago pasqualini', how many posts did he/she own?
codebase_community
select t1.displayname from users as t1 inner join votes as t2 on t1.id = t2.userid where t2.id = 6347
Question: provide the display name of the user who made the vote no.6347. | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplayName. postLinks ->...
provide the display name of the user who made the vote no.6347.
codebase_community
select count(t1.id) from posts as t1 inner join votes as t2 on t1.id = t2.postid where t1.title like '%data visualization%'
Question: give the number of votes for the post about data visualization. | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplayName. postLinks ->...
give the number of votes for the post about data visualization.
codebase_community
select t2.name from users as t1 inner join badges as t2 on t1.id = t2.userid where t1.displayname = 'datepiccoderguywhoprograms'
Question: for the user whose display name is 'datepiccoderguywhoprograms', what is his/her badge's name? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment...
for the user whose display name is 'datepiccoderguywhoprograms', what is his/her badge's name?
codebase_community
select cast(count(t2.id) as real) / count(distinct t1.id) from votes as t1 inner join posts as t2 on t1.userid = t2.owneruserid where t1.userid = 24
Question: for the user no.24, how many times is the number of his/her posts compared to his/her votes? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, ...
for the user no.24, how many times is the number of his/her posts compared to his/her votes?
codebase_community
select viewcount from posts where title = 'integration of weka and/or rapidminer into informatica powercenter/developer'
Question: how many views did the post titled 'integration of weka and/or rapidminer into informatica powercenter/developer' get? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDat...
how many views did the post titled 'integration of weka and/or rapidminer into informatica powercenter/developer' get?
codebase_community
select text from comments where score = 17
Question: write the contents of comments with a score of 17. | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplayName. postLinks -> Id, Creation...
write the contents of comments with a score of 17.
codebase_community
select displayname from users where websiteurl = 'http://stackoverflow.com'
Question: which user has the website url listed at 'http://stackoverflow.com' | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplayName. postLink...
which user has the website url listed at 'http://stackoverflow.com'
codebase_community
select t2.name from users as t1 inner join badges as t2 on t1.id = t2.userid where t1.displayname = 'silentghost'
Question: what is the badge name that user 'silentghost' obtained? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplayName. postLinks -> Id, Cr...
what is the badge name that user 'silentghost' obtained?
codebase_community
select t1.displayname from users as t1 inner join comments as t2 on t1.id = t2.userid where t2.text = 'thank you user93!'
Question: name the user that commented 'thank you user93!' | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplayName. postLinks -> Id, CreationDa...
name the user that commented 'thank you user93!'
codebase_community
select t2.text from users as t1 inner join comments as t2 on t1.id = t2.userid where t1.displayname = 'a lion'
Question: write all comments made by user 'a lion.' | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplayName. postLinks -> Id, CreationDate, Pos...
write all comments made by user 'a lion.'
codebase_community
select t1.displayname, t1.reputation from users as t1 inner join posts as t2 on t1.id = t2.owneruserid where t2.title = 'understanding what dassault isight is doing?'
Question: which user made a post titled 'understanding what dassault isight is doing?' and how much is the reputation of the user? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationD...
which user made a post titled 'understanding what dassault isight is doing?' and how much is the reputation of the user?
codebase_community
select t1.text from comments as t1 inner join posts as t2 on t1.postid = t2.id where t2.title = 'how does gentle boosting differ from adaboost?'
Question: write all comments made on the post titled 'how does gentle boosting differ from adaboost?' | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, U...
write all comments made on the post titled 'how does gentle boosting differ from adaboost?'
codebase_community
select t1.displayname from users as t1 inner join badges as t2 on t1.id = t2.userid where t2.name = 'necromancer' limit 10
Question: name 10 users with the badge name 'necromancer.' | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplayName. postLinks -> Id, CreationDa...
name 10 users with the badge name 'necromancer.'
codebase_community
select t2.displayname from posts as t1 inner join users as t2 on t1.owneruserid = t2.id where t1.title = 'open source tools for visualizing multi-dimensional data?'
Question: who is the editor of the post titled 'open source tools for visualizing multi-dimensional data?' | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comme...
who is the editor of the post titled 'open source tools for visualizing multi-dimensional data?'
codebase_community
select t1.title from posts as t1 inner join users as t2 on t1.owneruserid = t2.id where t2.displayname = 'vebjorn ljosa'
Question: list the title of posts which were edited by vebjorn ljosa. | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplayName. postLinks -> Id,...
list the title of posts which were edited by vebjorn ljosa.
codebase_community
select sum(t1.score), t2.websiteurl from posts as t1 inner join users as t2 on t1.owneruserid = t2.id where t2.displayname = 'yevgeny' group by t2.websiteurl
Question: what is the total score of the posts edited by yevgeny and include the user's website url. | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, Us...
what is the total score of the posts edited by yevgeny and include the user's website url.
codebase_community
select t2.comment from posts as t1 inner join posthistory as t2 on t1.id = t2.postid where t1.title = 'why square the difference instead of taking the absolute value in standard deviation?'
Question: write all the comments left by users who edited the post titled 'why square the difference instead of taking the absolute value in standard deviation?' | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, ...
write all the comments left by users who edited the post titled 'why square the difference instead of taking the absolute value in standard deviation?'
codebase_community
select sum(t2.bountyamount) from posts as t1 inner join votes as t2 on t1.id = t2.postid where t1.title like '%data%'
Question: how much is the total bounty amount of the post titled about 'data' | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplayName. postLink...
how much is the total bounty amount of the post titled about 'data'
codebase_community
select t3.displayname, t1.title from posts as t1 inner join votes as t2 on t1.id = t2.postid inner join users as t3 on t3.id = t2.userid where t2.bountyamount = 50 and t1.title like '%variance%'
Question: which user added a bounty amount of 50 to the post title mentioning variance? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplayName...
which user added a bounty amount of 50 to the post title mentioning variance?
codebase_community
select avg(t2.viewcount), t2.title, t1.text from comments as t1 inner join posts as t2 on t1.id = t1.postid where t2.tags = '<humor>'
Question: calculate the average view count of posts tagged as 'humor' and write the title and the comments of the posts alongside their scores if applicable. | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, Post...
calculate the average view count of posts tagged as 'humor' and write the title and the comments of the posts alongside their scores if applicable.
codebase_community
select count(id) from comments where userid = 13
Question: give the total number of comments posted by user id 13. | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplayName. postLinks -> Id, Cre...
give the total number of comments posted by user id 13.
codebase_community
select id from users where reputation = ( select max(reputation) from users )
Question: which user id has the highest reputation? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplayName. postLinks -> Id, CreationDate, Pos...
which user id has the highest reputation?
codebase_community
select id from users where views = ( select min(views) from users )
Question: which user id has the lowest view? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplayName. postLinks -> Id, CreationDate, PostId, Re...
which user id has the lowest view?
codebase_community
select count(id) from badges where strftime('%y', date) = '2011' and name = 'supporter'
Question: how many users are awarded with supporter badge during year 2011? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplayName. postLinks ...
how many users are awarded with supporter badge during year 2011?
codebase_community
select userid from ( select userid, count(name) as num from badges group by userid ) t where t.num > 5
Question: how many users are awarded with more than 5 badges? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplayName. postLinks -> Id, Creatio...
how many users are awarded with more than 5 badges?
codebase_community
select count(distinct t1.id) from badges as t1 inner join users as t2 on t1.userid = t2.id where t1.name in ('supporter', 'teacher') and t2.location = 'new york'
Question: how many users from new york have a teacher and supporter badge? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplayName. postLinks -...
how many users from new york have a teacher and supporter badge?
codebase_community
select t2.id, t2.reputation from comments as t1 inner join users as t2 on t1.userid = t2.id where t1.postid = 1
Question: which user created post id 1 and what is the reputation of this user? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplayName. postLi...
which user created post id 1 and what is the reputation of this user?
codebase_community
select t2.userid from users as t1 inner join posthistory as t2 on t1.id = t2.userid inner join posts as t3 on t2.postid = t3.id where t3.viewcount >= 1000 group by t2.userid having count(distinct t2.posthistorytypeid) = 1
Question: which user have only one post history per post and having at least 1000 views? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplayNam...
which user have only one post history per post and having at least 1000 views?
codebase_community
select name from badges as t1 inner join comments as t2 on t1.userid = t2.userid group by t2.userid order by count(t2.userid) desc limit 1
Question: which users have posted the most comments. list out the user's badge? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplayName. postLi...
which users have posted the most comments. list out the user's badge?
codebase_community
select count(t1.id) from badges as t1 inner join users as t2 on t1.userid = t2.id where t2.location = 'india' and t1.name = 'teacher'
Question: how many users from india have the teacher badges? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplayName. postLinks -> Id, Creation...
how many users from india have the teacher badges?
codebase_community
select cast(sum(iif(strftime('%y', date) = '2010', 1, 0)) as real) * 100 / count(id) - cast(sum(iif(strftime('%y', date) = '2011', 1, 0)) as real) * 100 / count(id) from badges where name = 'student'
Question: what is the percentage difference of student badges given during 2010 and 2011? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplayNa...
what is the percentage difference of student badges given during 2010 and 2011?
codebase_community
select t1.posthistorytypeid, (select count(distinct userid) from comments where postid = 3720) as numberofusers from posthistory as t1 where t1.postid = 3720
Question: what are the post history type ids for post id 3720 and how many unique users have commented on the post? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Te...
what are the post history type ids for post id 3720 and how many unique users have commented on the post?
codebase_community
select t1.viewcount from posts as t1 inner join postlinks as t2 on t1.id = t2.postid where t2.postid = 61217
Question: list out all post that are related to post id 61217 and what is the popularity of this post? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, ...
list out all post that are related to post id 61217 and what is the popularity of this post?
codebase_community
select t1.score, t2.linktypeid from posts as t1 inner join postlinks as t2 on t1.id = t2.postid where t2.postid = 395
Question: what is the score and the link type id for post id 395? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplayName. postLinks -> Id, Cre...
what is the score and the link type id for post id 395?
codebase_community
select postid, userid from posthistory where postid in ( select id from posts where score > 60 )
Question: list out all post id with score more than 60 and list out all the user id that created these post. | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Com...
list out all post id with score more than 60 and list out all the user id that created these post.
codebase_community
select sum(distinct favoritecount) from posts where id in ( select postid from posthistory where userid = 686 and strftime('%y', creationdate) = '2011' )
Question: what is the sum of favourite count gained by user id 686 in 2011? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplayName. postLinks ...
what is the sum of favourite count gained by user id 686 in 2011?
codebase_community
select avg(t1.upvotes), avg(t1.age) from users as t1 inner join ( select owneruserid, count(*) as post_count from posts group by owneruserid having post_count > 10) as t2 on t1.id = t2.owneruserid
Question: what is the average of the up votes and the average user age for users creating more than 10 posts? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Co...
what is the average of the up votes and the average user age for users creating more than 10 posts?
codebase_community
select count(id) from badges where name = 'announcer'
Question: how many users obtained the 'announcer' badge? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplayName. postLinks -> Id, CreationDate...
how many users obtained the 'announcer' badge?
codebase_community
select name from badges where date = '2010-07-19 19:39:08.0'
Question: list out the name of badges that users obtained on 7/19/2010 7:39:08 pm. | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplayName. pos...
list out the name of badges that users obtained on 7/19/2010 7:39:08 pm.
codebase_community
select count(id) from comments where score > 60
Question: how many positive comments are there on the list? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplayName. postLinks -> Id, CreationD...
how many positive comments are there on the list?
codebase_community
select text from comments where creationdate = '2010-07-19 19:16:14.0'
Question: state the detailed content of the comment which was created on 7/19/2010 7:25:47 pm. | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisp...
state the detailed content of the comment which was created on 7/19/2010 7:25:47 pm.
codebase_community
select count(id) from posts where score = 10
Question: how many posts have a score of 10 on the list? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplayName. postLinks -> Id, CreationDate...
how many posts have a score of 10 on the list?
codebase_community
select t2.name from users as t1 inner join badges as t2 on t1.id = t2.userid order by t1.reputation desc limit 1
Question: what are the names of badges that users who have the highest reputation obtained? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplay...
what are the names of badges that users who have the highest reputation obtained?
codebase_community
select t1.reputation from users as t1 inner join badges as t2 on t1.id = t2.userid where t2.date = '2010-07-19 19:39:08.0'
Question: mention the reputation of users who had obtained the badge on 7/19/2010 7:39:08 pm. | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDispl...
mention the reputation of users who had obtained the badge on 7/19/2010 7:39:08 pm.
codebase_community
select t2.name from users as t1 inner join badges as t2 on t1.id = t2.userid where t1.displayname = 'pierre'
Question: what is the name of badge that the user whose display name is 'pierre' obtained? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplayN...
what is the name of badge that the user whose display name is 'pierre' obtained?
codebase_community
select t2.date from users as t1 inner join badges as t2 on t1.id = t2.userid where t1.location = 'rochester, ny'
Question: list out the dates that users who are located in rochester, ny obtained their badges? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDis...
list out the dates that users who are located in rochester, ny obtained their badges?
codebase_community
select cast(count(t1.id) as real) * 100 / (select count(id) from users) from users as t1 inner join badges as t2 on t1.id = t2.userid where t2.name = 'teacher'
Question: among the users who obtained the 'teacher' badge, calculate their percentage of users | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDis...
among the users who obtained the 'teacher' badge, calculate their percentage of users
codebase_community
select cast(sum(iif(t2.age between 13 and 18, 1, 0)) as real) * 100 / count(t1.id) from badges as t1 inner join users as t2 on t1.userid = t2.id where t1.`name` = 'organizer'
Question: among the users who obtained the 'organizer' badges, calculate the percentage of users who are teenagers. | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Te...
among the users who obtained the 'organizer' badges, calculate the percentage of users who are teenagers.
codebase_community
select t1.score from comments as t1 inner join posts as t2 on t1.postid = t2.id where t1.creationdate = '2010-07-19 19:19:56.0'
Question: what is the comment's rating score of the post which was created on 7/19/2010 7:19:56 pm | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, User...
what is the comment's rating score of the post which was created on 7/19/2010 7:19:56 pm
codebase_community
select t1.text from comments as t1 inner join posts as t2 on t1.postid = t2.id where t1.creationdate = '2010-07-19 19:37:33.0'
Question: what is the detailed content of the comment of the post which was created on 7/19/2010 7:37:33 pm? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Com...
what is the detailed content of the comment of the post which was created on 7/19/2010 7:37:33 pm?
codebase_community
select t1.age from users as t1 inner join badges as t2 on t1.id = t2.userid where t1.location = 'vienna, austria'
Question: list out the age of users who located in vienna, austria obtained the badge? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplayName....
list out the age of users who located in vienna, austria obtained the badge?
codebase_community
select count(t1.id) from users as t1 inner join badges as t2 on t1.id = t2.userid where t2.name = 'supporter' and t1.age between 19 and 65
Question: how many adults who obtained the badge supporter? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplayName. postLinks -> Id, CreationD...
how many adults who obtained the badge supporter?
codebase_community
select t1.views from users as t1 inner join badges as t2 on t1.id = t2.userid where t2.date = '2010-07-19 19:39:08.0'
Question: state the number of views of users who obtained the badge on 7/19/2010 7:39:08 pm. | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDispla...
state the number of views of users who obtained the badge on 7/19/2010 7:39:08 pm.
codebase_community
select t2.name from users as t1 inner join badges as t2 on t1.id = t2.userid where t1.reputation = (select min(reputation) from users)
Question: what are the name of badges that users who have the lowest reputation obtained? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplayNa...
what are the name of badges that users who have the lowest reputation obtained?
codebase_community
select t2.name from users as t1 inner join badges as t2 on t1.id = t2.userid where t1.displayname = 'sharpie'
Question: state the name of badge that the user whose display name is 'sharpie' obtained. | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplayNa...
state the name of badge that the user whose display name is 'sharpie' obtained.
codebase_community
select count(t1.id) from users as t1 inner join badges as t2 on t1.id = t2.userid where t1.age > 65 and t2.name = 'supporter'
Question: how many elders obtained the 'supporter' badge? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplayName. postLinks -> Id, CreationDat...
how many elders obtained the 'supporter' badge?
codebase_community
select displayname from users where id = 30
Question: what is the name of user with the id of 30? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplayName. postLinks -> Id, CreationDate, P...
what is the name of user with the id of 30?
codebase_community
select count(id) from users where location = 'new york'
Question: how many users were from new york? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplayName. postLinks -> Id, CreationDate, PostId, Re...
how many users were from new york?
codebase_community
select count(id) from votes where strftime('%y', creationdate) = '2010'
Question: how many votes were made in 2010? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplayName. postLinks -> Id, CreationDate, PostId, Rel...
how many votes were made in 2010?
codebase_community
select count(id) from users where age between 19 and 65
Question: how many users were adult? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplayName. postLinks -> Id, CreationDate, PostId, RelatedPos...
how many users were adult?
codebase_community
select id, displayname from users where views = ( select max(views) from users )
Question: which users have the highest number of views? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplayName. postLinks -> Id, CreationDate,...
which users have the highest number of views?
codebase_community
select cast(sum(iif(strftime('%y', creationdate) = '2010', 1, 0)) as real) / sum(iif(strftime('%y', creationdate) = '2011', 1, 0)) from votes
Question: calculate the ratio of votes in 2010 and 2011. | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplayName. postLinks -> Id, CreationDate...
calculate the ratio of votes in 2010 and 2011.
codebase_community
select t3.tags from users as t1 inner join posthistory as t2 on t1.id = t2.userid inner join posts as t3 on t2.postid = t3.id where t1.displayname = 'john salvatier'
Question: what is the name of tags used by john stauffer's? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplayName. postLinks -> Id, CreationD...
what is the name of tags used by john stauffer's?
codebase_community
select count(t1.id) from users as t1 inner join posthistory as t2 on t1.id = t2.userid where t1.displayname = 'daniel vassallo'
Question: how many posts were created by daniel vassallo? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplayName. postLinks -> Id, CreationDat...
how many posts were created by daniel vassallo?
codebase_community
select count(t1.id) from users as t1 inner join posthistory as t2 on t1.id = t2.userid inner join votes as t3 on t3.postid = t2.postid where t1.displayname = 'harlan'
Question: how many votes were made by harlan? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplayName. postLinks -> Id, CreationDate, PostId, R...
how many votes were made by harlan?
codebase_community
select t2.postid from users as t1 inner join posthistory as t2 on t1.id = t2.userid inner join posts as t3 on t2.postid = t3.id where t1.displayname = 'slashnick' order by t3.answercount desc limit 1
Question: which post by slashnick has the most answers count? state the post id. | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplayName. postL...
which post by slashnick has the most answers count? state the post id.
codebase_community
select t1.displayname from users as t1 inner join posthistory as t2 on t1.id = t2.userid inner join posts as t3 on t2.postid = t3.id where t1.displayname = 'harvey motulsky' or t1.displayname = 'noah snyder' group by t1.displayname order by sum(t3.viewcount) desc limit 1
Question: among posts by harvey motulsky and noah snyder, which one has higher popularity? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplayN...
among posts by harvey motulsky and noah snyder, which one has higher popularity?
codebase_community
select count(t1.id) from users as t1 inner join posthistory as t2 on t1.id = t2.userid inner join posts as t3 on t2.postid = t3.id inner join votes as t4 on t4.postid = t3.id where t1.displayname = 'matt parker' group by t2.postid, t4.id having count(t4.id) > 4
Question: how many posts by matt parker have more than 4 votes? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplayName. postLinks -> Id, Creat...
how many posts by matt parker have more than 4 votes?
codebase_community
select count(t3.id) from users as t1 inner join posts as t2 on t1.id = t2.owneruserid inner join comments as t3 on t2.id = t3.postid where t1.displayname = 'neil mcguigan' and t3.score < 60
Question: how many negative comments did neil mcguigan get in his posts? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplayName. postLinks -> ...
how many negative comments did neil mcguigan get in his posts?
codebase_community
select t3.tags from users as t1 inner join posthistory as t2 on t1.id = t2.userid inner join posts as t3 on t3.id = t2.postid where t1.displayname = 'mark meckes' and t3.commentcount = 0
Question: state all the tags used by mark meckes in his posts that doesn't have comments. | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplayNa...
state all the tags used by mark meckes in his posts that doesn't have comments.