Banking
“Who lends in this neighbourhood, and to whom?”
Washington DC's 2023 lending market, built from four public regulatory filings nobody joins up, plus one bank's own households, accounts and loans.
- Nodes
- 75.2K
- Edges
- 241.2K
- Node labels
- 29
- Relationship types
- 33
Data sources
Built from HMDA, FFIEC, GLEIF, FDIC. The repository carries the loaders, the licence notes for each source, and what is generated rather than collected.
Schema
29 node labels and 33 relationship types, read from the schema file the loader applies — so every name here exists in the graph.
Node labels
- Lender
- LegalEntity
- Application
- Loan
- LoanProduct
- Tract
- County
- MSA
- DenialReason
- Purchaser
- Business
- Address
- Industry
- Franchise
- SBALoan
- DevelopmentCompany
- Filing
- Customer
- Household
- Account
- Product
- BusinessUnit
- Counterparty
- MerchantCategory
- CustomerLoan
- Collateral
- CreditLine
- Card
- Audience
Relationship types
- REGISTERED_AS
- FILED_WITH
- FOR_PRODUCT
- IN_TRACT
- IN_COUNTY
- IN_MSA
- DENIED_FOR
- ORIGINATED_AS
- ORIGINATED_BY
- SOLD_TO
- LOCATED_AT
- IN_INDUSTRY
- BORROWED
- UNDER_FRANCHISE
- MADE_BY
- FILED
- MEMBER_OF
- OWNS
- OF_PRODUCT
- SENDS_TO
- RECEIVES_FROM
- PAID_BY
- SPENDS_AT
- HAS_LOAN
- BORROWS
- SECURED_BY
- HAS_CREDIT_LINE
- HAS_CARD
- HOLDS_CARD
- OWES
- IN_AUDIENCE
- OFFERED_BY
- CLASSIFIED_AS
Example queries
These 6 queries are published by the repository, copied here unchanged. Load the graph and run them to see results — the numbers depend on the snapshot you load.
MATCH (n) RETURN coalesce(n.synthetic, false) AS synthetic, count(n)
MATCH (l:Lender)<-[:ORIGINATED_BY]-(n:Loan) WHERE NOT (n)-[:SOLD_TO]->()WITH l, count(n) AS kept, sum(n.amount) / 1000 AS kept_kMATCH (l)-[:FILED]->(f0:Filing {period: '2022Q4'}), (l)-[:FILED]->(f1:Filing {period: '2023Q4'})RETURN l.name AS lender, kept, kept_k, f1.residential_re_loans_k - f0.residential_re_loans_k AS growth_kORDER BY kept DESC LIMIT 10
MATCH (gone:Customer)-[:MEMBER_OF]->(h:Household)<-[:MEMBER_OF]-(c:Customer)WHERE gone.id <> c.id AND c.status = 'ACTIVE' AND gone.status = 'CLOSED'MATCH (gone)-[o:OWNS]->(a:Account)WHERE o.role_code = 'P' AND a.close_reason_code = 'CUSTOMER_REQUEST' AND a.close_date >= $as_of_minus_60dRETURN c.id, h.id, max(a.close_date)
MATCH (dead:Customer)-[o1:OWNS]->(a:Account)<-[o2:OWNS]-(heir:Customer)WHERE dead.status = 'DECEASED' AND heir.status = 'ACTIVE' AND o1.role_code = 'P' AND o2.role_code IN ['B', 'J']RETURN heir.id, heir.household_id, o2.role
MATCH (old:Customer)-[o1:OWNS]->(a:Account)<-[o2:OWNS]-(young:Customer)WHERE old.age >= 65 AND young.age <= 40 AND old.age - young.age >= 25AND o2.role_code IN ['J', 'B'] AND young.status = 'ACTIVE'RETURN young.id, young.household_id, coalesce(young.last_address_change_dt, ''), young.city
MATCH (u:Customer)-[:MEMBER_OF]->(h:Household)<-[:MEMBER_OF]-(c:Customer)WHERE u.id <> c.id AND u.logins_90d >= 4 AND c.digital_user = false AND c.status = 'ACTIVE'RETURN c.id, h.id, max(u.logins_90d)
Try it
The repository carries the loaders that build this graph from its sources. Once it is loaded, an AI agent can query it over MCP without anyone writing tools.
Counts and sources come from the team's published catalogue; the schema and queries come from the repository.

