With great power comes great responsibility. See http://stackoverflow.com/help/roomba. The check for reopen votes is usually too conservative, but votes should expire after 14 days at the most. This query excludes questions that are duplicate targets, even though the roomba would be willing to delete them.
Q&A about the site for students, teachers, and linguists wanting to discuss the finer points of the Italian language
select top 100 p.id as [Post Link], p.score, count(v.votetypeid) as 'Delete Votes'
from posts p
left join posthistory ph on ph.postid = p.id
left join votes v on (v.postid = p.id and v.votetypeid = '10')
inner join posthistorytypes phn on phn.id = ph.posthistorytypeid
inner join posts a on p.id = a.parentid
ph.comment != 1 and ph.comment != 101
and ph.posthistorytypeid = 10
and p.acceptedanswerid is null
and p.closeddate is not null
and p.tags like '%' + ##TagsContain:string?<source-code>## + '%'
and p.tags not like '%' + ##TagsDoNotContain:string?xyzzy## + '%'
and p.viewcount < ##ViewCount:int?2000##
and p.closeddate <= '2015-07-10'
and p.score >= ##MinScore:int?-10##
group by p.id, p.score, v.votetypeid
having count(v.votetypeid) = 0 and max(a.score) <= 1
order by p.score asc