{"action":"opened","number":1,"pull_request":{"url":"https://api.github.com/repos/mpolakovic/db1/pulls/1","id":58266641,"html_url":"https://github.com/mpolakovic/db1/pull/1","diff_url":"https://github.com/mpolakovic/db1/pull/1.diff","patch_url":"https://github.com/mpolakovic/db1/pull/1.patch","issue_url":"https://api.github.com/repos/mpolakovic/db1/issues/1","number":1,"state":"open","locked":false,"title":"Improve readabity of SQL code, enforce consistency","user":{"login":"lorvus","id":9025852,"avatar_url":"https://avatars.githubusercontent.com/u/9025852?v=3","gravatar_id":"","url":"https://api.github.com/users/lorvus","html_url":"https://github.com/lorvus","followers_url":"https://api.github.com/users/lorvus/followers","following_url":"https://api.github.com/users/lorvus/following{/other_user}","gists_url":"https://api.github.com/users/lorvus/gists{/gist_id}","starred_url":"https://api.github.com/users/lorvus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lorvus/subscriptions","organizations_url":"https://api.github.com/users/lorvus/orgs","repos_url":"https://api.github.com/users/lorvus/repos","events_url":"https://api.github.com/users/lorvus/events{/privacy}","received_events_url":"https://api.github.com/users/lorvus/received_events","type":"User","site_admin":false},"body":"Many inconsistencies with \"as\" vs. \"AS\" are fixed along with some\r\ncases of header size disparity in markdown.\r\nSome queries are straight simplified, others redesigned to employ\r\na different approach, in order to help a reader assess their meaning\r\nmore quickly.","created_at":"2016-02-04T10:27:34Z","updated_at":"2016-02-04T10:27:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mpolakovic/db1/pulls/1/commits","review_comments_url":"https://api.github.com/repos/mpolakovic/db1/pulls/1/comments","review_comment_url":"https://api.github.com/repos/mpolakovic/db1/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mpolakovic/db1/issues/1/comments","statuses_url":"https://api.github.com/repos/mpolakovic/db1/statuses/75515fb29b49202a28d0f3fd9804a18e9ae65bc3","head":{"label":"lorvus:master","ref":"master","sha":"75515fb29b49202a28d0f3fd9804a18e9ae65bc3","user":{"login":"lorvus","id":9025852,"avatar_url":"https://avatars.githubusercontent.com/u/9025852?v=3","gravatar_id":"","url":"https://api.github.com/users/lorvus","html_url":"https://github.com/lorvus","followers_url":"https://api.github.com/users/lorvus/followers","following_url":"https://api.github.com/users/lorvus/following{/other_user}","gists_url":"https://api.github.com/users/lorvus/gists{/gist_id}","starred_url":"https://api.github.com/users/lorvus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lorvus/subscriptions","organizations_url":"https://api.github.com/users/lorvus/orgs","repos_url":"https://api.github.com/users/lorvus/repos","events_url":"https://api.github.com/users/lorvus/events{/privacy}","received_events_url":"https://api.github.com/users/lorvus/received_events","type":"User","site_admin":false},"repo":{"id":51002301,"name":"db1","full_name":"lorvus/db1","owner":{"login":"lorvus","id":9025852,"avatar_url":"https://avatars.githubusercontent.com/u/9025852?v=3","gravatar_id":"","url":"https://api.github.com/users/lorvus","html_url":"https://github.com/lorvus","followers_url":"https://api.github.com/users/lorvus/followers","following_url":"https://api.github.com/users/lorvus/following{/other_user}","gists_url":"https://api.github.com/users/lorvus/gists{/gist_id}","starred_url":"https://api.github.com/users/lorvus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lorvus/subscriptions","organizations_url":"https://api.github.com/users/lorvus/orgs","repos_url":"https://api.github.com/users/lorvus/repos","events_url":"https://api.github.com/users/lorvus/events{/privacy}","received_events_url":"https://api.github.com/users/lorvus/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lorvus/db1","description":"","fork":true,"url":"https://api.github.com/repos/lorvus/db1","forks_url":"https://api.github.com/repos/lorvus/db1/forks","keys_url":"https://api.github.com/repos/lorvus/db1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lorvus/db1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lorvus/db1/teams","hooks_url":"https://api.github.com/repos/lorvus/db1/hooks","issue_events_url":"https://api.github.com/repos/lorvus/db1/issues/events{/number}","events_url":"https://api.github.com/repos/lorvus/db1/events","assignees_url":"https://api.github.com/repos/lorvus/db1/assignees{/user}","branches_url":"https://api.github.com/repos/lorvus/db1/branches{/branch}","tags_url":"https://api.github.com/repos/lorvus/db1/tags","blobs_url":"https://api.github.com/repos/lorvus/db1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lorvus/db1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lorvus/db1/git/refs{/sha}","trees_url":"https://api.github.com/repos/lorvus/db1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lorvus/db1/statuses/{sha}","languages_url":"https://api.github.com/repos/lorvus/db1/languages","stargazers_url":"https://api.github.com/repos/lorvus/db1/stargazers","contributors_url":"https://api.github.com/repos/lorvus/db1/contributors","subscribers_url":"https://api.github.com/repos/lorvus/db1/subscribers","subscription_url":"https://api.github.com/repos/lorvus/db1/subscription","commits_url":"https://api.github.com/repos/lorvus/db1/commits{/sha}","git_commits_url":"https://api.github.com/repos/lorvus/db1/git/commits{/sha}","comments_url":"https://api.github.com/repos/lorvus/db1/comments{/number}","issue_comment_url":"https://api.github.com/repos/lorvus/db1/issues/comments{/number}","contents_url":"https://api.github.com/repos/lorvus/db1/contents/{+path}","compare_url":"https://api.github.com/repos/lorvus/db1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lorvus/db1/merges","archive_url":"https://api.github.com/repos/lorvus/db1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lorvus/db1/downloads","issues_url":"https://api.github.com/repos/lorvus/db1/issues{/number}","pulls_url":"https://api.github.com/repos/lorvus/db1/pulls{/number}","milestones_url":"https://api.github.com/repos/lorvus/db1/milestones{/number}","notifications_url":"https://api.github.com/repos/lorvus/db1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lorvus/db1/labels{/name}","releases_url":"https://api.github.com/repos/lorvus/db1/releases{/id}","deployments_url":"https://api.github.com/repos/lorvus/db1/deployments","created_at":"2016-02-03T13:45:19Z","updated_at":"2016-01-14T22:35:21Z","pushed_at":"2016-02-04T01:10:50Z","git_url":"git://github.com/lorvus/db1.git","ssh_url":"git@github.com:lorvus/db1.git","clone_url":"https://github.com/lorvus/db1.git","svn_url":"https://github.com/lorvus/db1","homepage":null,"size":15,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mpolakovic:master","ref":"master","sha":"b4608aac0adc6b544787deede1e76f3a28f0ef9c","user":{"login":"mpolakovic","id":9453554,"avatar_url":"https://avatars.githubusercontent.com/u/9453554?v=3","gravatar_id":"","url":"https://api.github.com/users/mpolakovic","html_url":"https://github.com/mpolakovic","followers_url":"https://api.github.com/users/mpolakovic/followers","following_url":"https://api.github.com/users/mpolakovic/following{/other_user}","gists_url":"https://api.github.com/users/mpolakovic/gists{/gist_id}","starred_url":"https://api.github.com/users/mpolakovic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpolakovic/subscriptions","organizations_url":"https://api.github.com/users/mpolakovic/orgs","repos_url":"https://api.github.com/users/mpolakovic/repos","events_url":"https://api.github.com/users/mpolakovic/events{/privacy}","received_events_url":"https://api.github.com/users/mpolakovic/received_events","type":"User","site_admin":false},"repo":{"id":49679783,"name":"db1","full_name":"mpolakovic/db1","owner":{"login":"mpolakovic","id":9453554,"avatar_url":"https://avatars.githubusercontent.com/u/9453554?v=3","gravatar_id":"","url":"https://api.github.com/users/mpolakovic","html_url":"https://github.com/mpolakovic","followers_url":"https://api.github.com/users/mpolakovic/followers","following_url":"https://api.github.com/users/mpolakovic/following{/other_user}","gists_url":"https://api.github.com/users/mpolakovic/gists{/gist_id}","starred_url":"https://api.github.com/users/mpolakovic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpolakovic/subscriptions","organizations_url":"https://api.github.com/users/mpolakovic/orgs","repos_url":"https://api.github.com/users/mpolakovic/repos","events_url":"https://api.github.com/users/mpolakovic/events{/privacy}","received_events_url":"https://api.github.com/users/mpolakovic/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mpolakovic/db1","description":"","fork":false,"url":"https://api.github.com/repos/mpolakovic/db1","forks_url":"https://api.github.com/repos/mpolakovic/db1/forks","keys_url":"https://api.github.com/repos/mpolakovic/db1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mpolakovic/db1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mpolakovic/db1/teams","hooks_url":"https://api.github.com/repos/mpolakovic/db1/hooks","issue_events_url":"https://api.github.com/repos/mpolakovic/db1/issues/events{/number}","events_url":"https://api.github.com/repos/mpolakovic/db1/events","assignees_url":"https://api.github.com/repos/mpolakovic/db1/assignees{/user}","branches_url":"https://api.github.com/repos/mpolakovic/db1/branches{/branch}","tags_url":"https://api.github.com/repos/mpolakovic/db1/tags","blobs_url":"https://api.github.com/repos/mpolakovic/db1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mpolakovic/db1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mpolakovic/db1/git/refs{/sha}","trees_url":"https://api.github.com/repos/mpolakovic/db1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mpolakovic/db1/statuses/{sha}","languages_url":"https://api.github.com/repos/mpolakovic/db1/languages","stargazers_url":"https://api.github.com/repos/mpolakovic/db1/stargazers","contributors_url":"https://api.github.com/repos/mpolakovic/db1/contributors","subscribers_url":"https://api.github.com/repos/mpolakovic/db1/subscribers","subscription_url":"https://api.github.com/repos/mpolakovic/db1/subscription","commits_url":"https://api.github.com/repos/mpolakovic/db1/commits{/sha}","git_commits_url":"https://api.github.com/repos/mpolakovic/db1/git/commits{/sha}","comments_url":"https://api.github.com/repos/mpolakovic/db1/comments{/number}","issue_comment_url":"https://api.github.com/repos/mpolakovic/db1/issues/comments{/number}","contents_url":"https://api.github.com/repos/mpolakovic/db1/contents/{+path}","compare_url":"https://api.github.com/repos/mpolakovic/db1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mpolakovic/db1/merges","archive_url":"https://api.github.com/repos/mpolakovic/db1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mpolakovic/db1/downloads","issues_url":"https://api.github.com/repos/mpolakovic/db1/issues{/number}","pulls_url":"https://api.github.com/repos/mpolakovic/db1/pulls{/number}","milestones_url":"https://api.github.com/repos/mpolakovic/db1/milestones{/number}","notifications_url":"https://api.github.com/repos/mpolakovic/db1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mpolakovic/db1/labels{/name}","releases_url":"https://api.github.com/repos/mpolakovic/db1/releases{/id}","deployments_url":"https://api.github.com/repos/mpolakovic/db1/deployments","created_at":"2016-01-14T22:35:21Z","updated_at":"2016-01-14T22:35:21Z","pushed_at":"2016-01-17T21:21:15Z","git_url":"git://github.com/mpolakovic/db1.git","ssh_url":"git@github.com:mpolakovic/db1.git","clone_url":"https://github.com/mpolakovic/db1.git","svn_url":"https://github.com/mpolakovic/db1","homepage":null,"size":11,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mpolakovic/db1/pulls/1"},"html":{"href":"https://github.com/mpolakovic/db1/pull/1"},"issue":{"href":"https://api.github.com/repos/mpolakovic/db1/issues/1"},"comments":{"href":"https://api.github.com/repos/mpolakovic/db1/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/mpolakovic/db1/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/mpolakovic/db1/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mpolakovic/db1/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/mpolakovic/db1/statuses/75515fb29b49202a28d0f3fd9804a18e9ae65bc3"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":10,"additions":126,"deletions":140,"changed_files":5}}