GithubHelp home page GithubHelp logo

ld2's Introduction

LD2

All information related to the LD2

Currently our consolidated_layer_reports.reports represent the raw data, LD-2.

  • LD-2 is available at here by clicking Lobbying Disclosure
  • LD-2's detailed filing instruction is available at here

Our current table - consolidated_layer_reports.reports has a attribute column, amount, which comes from the LD-2's INCOME or EXPENSE, which are correspondent to Line12 and Line13 of the form respectively. (Check here for the sample LD-2)

According to the official instruction, when filing LD-2,

  • One must complete the income summary if lobbying on behalf of a client
  • One must complete the expense summary if you are lobbying on your own behalf

Therefore, if we know whether the amount attribute value comes from INCOME or EXPENSE, we could figure out whether the _client_uuid points the same entity with the _reigstrant_uuid or not.

For example, let's see the below example LD-2: Screen Shot 2020-05-08 at 1 22 48 AM

This LD-2 is registered by Ally Financials Inc. and its client is itself, Ally Financials Inc. We guarantee that those two are the same and unique entity by the information EXPENSE field filed, however, at the db level, we could only partially assume they are same entity based on the same name since we have different _uuid for client and registrants, and we don't have relation between them.

select c."_client_uuid", c."client_full_name", r."_registrant_uuid", regist."registrant_full_name"
from consolidated_layer_reports.reports r 
	inner join consolidated_layer_reports.clients as c using ("_client_uuid" )
	inner join consolidated_layer_reports.registrants as regist using ("_registrant_uuid")
where c.client_full_name ILIKE '%Ally Financial%' and regist.registrant_full_name ilike '%Ally Financial%'

>>> _client_uuid	client_full_name	_registrant_uuid	registrant_full_name
>>>c70362bc-70ce-5e00-bef9-cd52d1b1674b	ALLY FINANCIAL INC 	f2460a41-ec8b-5d7d-99a7-c8a37d597d20	ALLY FINANCIAL INC.

ld2's People

Contributors

syyunn avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.