{"html_url": "https://github.com/dogsheep/github-to-sqlite/issues/69#issuecomment-985928838", "issue_url": "https://api.github.com/repos/dogsheep/github-to-sqlite/issues/69", "id": 985928838, "node_id": "IC_kwDODFdgUs46xBSG", "user": {"value": 9599, "label": "simonw"}, "created_at": "2021-12-04T00:34:52Z", "updated_at": "2021-12-04T00:34:52Z", "author_association": "MEMBER", "body": "First attempt at this:\r\n```sql\r\nselect 'issues' as \"table\", id, node_id, title, user, created_at, body, repo\r\nfrom issues\r\nunion all\r\nselect 'issue_comments' as \"table\", issue_comments.id, issue_comments.node_id, '' as title, issue_comments.user, issue_comments.created_at, issue_comments.body, issues.repo\r\nfrom issue_comments join issues on issues.id = issue_comments.issue\r\norder by created_at desc\r\n```\r\nhttps://github-to-sqlite.dogsheep.net/github?sql=select+%27issues%27+as+%22table%22%2C+id%2C+node_id%2C+title%2C+user%2C+created_at%2C+body%2C+repo%0D%0Afrom+issues%0D%0Aunion+all%0D%0Aselect+%27issue_comments%27+as+%22table%22%2C+issue_comments.id%2C+issue_comments.node_id%2C+%27%27+as+title%2C+issue_comments.user%2C+issue_comments.created_at%2C+issue_comments.body%2C+issues.repo%0D%0Afrom+issue_comments+join+issues+on+issues.id+%3D+issue_comments.issue%0D%0Aorder+by+created_at+desc", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1071071397, "label": "View that combines issues and issue comments"}, "performed_via_github_app": null}