This are the statistics for bounties that are started by users on their own question:
all Community Ended User Ended Awarded Half Awarded Not Awarded
------ --------------- ---------- ------- ------------ -----------
161727 84315 77381 108430 27734 53297
As stated in the comments by Taryn it wasn't possible to get these numbers from the public SEDE because the Votes table is sanitized for VoteTypeId 9 (Bounty Awarded). Votetypeid 8 does come with a userid so it is possible to determine who started a bounty.
Besides votes there is also a PostHistory table. This table holds events 33 and 34 (Notice added and Notice removed) and does record a userid. It turns out that if the Community user ends the bounty a row with Posthistorytypeid = 34 and userid = -1 is stored. If we join with PostNotices we know for sure the record Notice removed event is for a bounty.
With that joined up correctly you can sum the results.
Here is the SEDE Query
;with Askerbounties as
(
select p.id
, v.creationdate
, v.bountyamount
from posts p
inner join votes v on v.postid = p.id
where p.posttypeid = 1
and v.votetypeid = 8
and v.userid = p.owneruserid
)
,
AnswerWithBounties as
(
select p.parentid id
, v.creationdate
, v.bountyamount as [awarded]
from posts p
inner join votes v on v.postid = p.id
inner join askerbounties a on a.id = p.parentid
where p.posttypeid = 2
and v.votetypeid = 9
)
select count(*) [all ]
, sum(case when userid = -1 then 1 else 0 end) [Community Ended]
, sum(case when userid <> -1 then 1 else 0 end) [User Ended]
, sum(case when awarded is not null then 1 else 0 end) [Awarded]
, sum(case when awarded is not null
and awarded < bountyamount then 1 else 0 end) [Half Awarded]
, sum(case when awarded is null then 1 else 0 end) [Not Awarded]
from askerbounties ab
left outer join AnswerWithBounties ans on ab.id = ans.id
inner join posthistory ph on ph.postid = ab.id
inner join postnotices pn on pn.postid = ph.postid
inner join postnoticetypes pt on pt.id = pn.postnoticetypeid
where ph.posthistorytypeid = 34 -- notice removed.
and pt.classid = 2 -- bounty notice
and pn.deletiondate = ph.creationdate
and (ans.creationdate is null
or ans.creationdate < dateadd(d, 9, ab.creationdate) -- 7 days + 24 hours graceperiod and rounding]
)
SEDE is updated on Sunday, 03:00 UTC. Do try the tutorial and say 'Hi!' in the SEDE chat room.