{"id":4311,"date":"2016-06-04T00:43:15","date_gmt":"2016-06-04T00:43:15","guid":{"rendered":"http:\/\/www.garysieling.com\/blog\/?p=4311"},"modified":"2016-06-04T00:43:15","modified_gmt":"2016-06-04T00:43:15","slug":"listing-stackoverflow-posts-closed-off-topic","status":"publish","type":"post","link":"https:\/\/www.garysieling.com\/blog\/listing-stackoverflow-posts-closed-off-topic\/","title":{"rendered":"Listing of Stackoverflow Posts that are closed as Off Topic"},"content":{"rendered":"<p>This query lets you query for Stackoverflow posts that are closed as off topic, and filtered by how much activity they have:<\/p>\n<pre lang=\"sql\">\nSELECT\n  score, \n  concat('http:\/\/stackoverflow.com\/questions\/', p.Id), \n  title\nFROM Posts p\nJOIN PostHistory ph ON p.Id = ph.PostId\nWHERE p.PostTypeId = 1 \n  AND p.ClosedDate IS NOT NULL \n  AND ph.PostHistoryTypeId = 10 \n  AND (\n    comment = 102\n  ) \n  AND p.Score > 5\n  AND ViewCount > 1000\nORDER BY p.FavoriteCount DESC\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Querying stackoverflow for posts closed as off topic, but which also have a lot of activity<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[12],"tags":[529],"aioseo_notices":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/4311"}],"collection":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/comments?post=4311"}],"version-history":[{"count":0,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/4311\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/media?parent=4311"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/categories?post=4311"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/tags?post=4311"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}