speb commited on
Commit
2b4c591
·
verified ·
1 Parent(s): 920b9d5

Upload folder using huggingface_hub

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. README.md +351 -0
  2. marts/dim_company_profiles.parquet +3 -0
  3. marts/fct_altman_zscores.parquet +3 -0
  4. marts/fct_capital_allocation.parquet +3 -0
  5. marts/fct_combined_scorecard.parquet +3 -0
  6. marts/fct_dcf_valuations.parquet +3 -0
  7. marts/fct_dividend_history.parquet +3 -0
  8. marts/fct_dupont_decompositions.parquet +3 -0
  9. marts/fct_earning_call_transcripts.parquet +3 -0
  10. marts/fct_earnings_quality.parquet +3 -0
  11. marts/fct_financial_ratios.parquet +3 -0
  12. marts/fct_growth_rates.parquet +3 -0
  13. marts/fct_insider_sentiment.parquet +3 -0
  14. marts/fct_lynch_categories.parquet +3 -0
  15. marts/fct_macro_rates.parquet +3 -0
  16. marts/fct_macro_sensitivity.parquet +3 -0
  17. marts/fct_magic_formulas.parquet +3 -0
  18. marts/fct_momentum_metrics.parquet +3 -0
  19. marts/fct_piotroski_fscores.parquet +3 -0
  20. marts/fct_screener_recommendations.parquet +3 -0
  21. marts/fct_sec_filing_sections.parquet +3 -0
  22. marts/fct_sector_benchmarks.parquet +3 -0
  23. marts/fct_shareholder_yields.parquet +3 -0
  24. marts/fct_valuation_multiples.parquet +3 -0
  25. raw/daily_treasury_yield.parquet +3 -0
  26. raw/exchange_directories.parquet +3 -0
  27. raw/exchange_rate.parquet +3 -0
  28. raw/stock_analyst_price_targets.parquet +3 -0
  29. raw/stock_analyst_recommendations.parquet +3 -0
  30. raw/stock_dividend_events.parquet +3 -0
  31. raw/stock_earning_calendar.parquet +3 -0
  32. raw/stock_earning_call_transcripts.parquet +3 -0
  33. raw/stock_earnings_estimates.parquet +3 -0
  34. raw/stock_earnings_history.parquet +3 -0
  35. raw/stock_eps_trends.parquet +3 -0
  36. raw/stock_insider_transactions.parquet +3 -0
  37. raw/stock_institutional_holders.parquet +3 -0
  38. raw/stock_mutualfund_holders.parquet +3 -0
  39. raw/stock_news/bucket_id=0/data.parquet +3 -0
  40. raw/stock_news/bucket_id=1/data.parquet +3 -0
  41. raw/stock_news/bucket_id=10/data.parquet +3 -0
  42. raw/stock_news/bucket_id=11/data.parquet +3 -0
  43. raw/stock_news/bucket_id=12/data.parquet +3 -0
  44. raw/stock_news/bucket_id=13/data.parquet +3 -0
  45. raw/stock_news/bucket_id=14/data.parquet +3 -0
  46. raw/stock_news/bucket_id=15/data.parquet +3 -0
  47. raw/stock_news/bucket_id=16/data.parquet +3 -0
  48. raw/stock_news/bucket_id=17/data.parquet +3 -0
  49. raw/stock_news/bucket_id=18/data.parquet +3 -0
  50. raw/stock_news/bucket_id=19/data.parquet +3 -0
README.md ADDED
@@ -0,0 +1,351 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-4.0
3
+ ---
4
+
5
+ # Stock Data — Marts Schema Data Dictionary
6
+
7
+ This document provides a comprehensive schema reference and metric dictionary for the 23 analytical tables compiled in the `marts` schema of `database.db` (and saved as Parquet files under `marts/`).
8
+
9
+ ---
10
+
11
+ ## Table of Contents
12
+ 1. [`fct_combined_scorecard`](#1-fct_combined_scorecard) (Unified screening table)
13
+ 2. [`dim_company_profiles`](#2-dim_company_profiles) (Company metadata)
14
+ 3. [`fct_financial_ratios`](#3-fct_financial_ratios) (Core ratios, owner earnings, RONTA)
15
+ 4. [`fct_growth_rates`](#4-fct_growth_rates) (Multi-year CAGRs & consistency)
16
+ 5. [`fct_earnings_quality`](#5-fct_earnings_quality) (Sloan accruals & Beneish M-Score)
17
+ 6. [`fct_dupont_decompositions`](#6-fct_dupont_decompositions) (3-factor and 5-factor ROE decompositions)
18
+ 7. [`fct_valuation_multiples`](#7-fct_valuation_multiples) (Daily historical multiples & Z-Scores)
19
+ 8. [`fct_macro_sensitivity`](#8-fct_macro_sensitivity) (Treasury beta & R-squared)
20
+ 9. [`fct_insider_sentiment`](#9-fct_insider_sentiment) (Rolling 30d/90d/180d net transactions)
21
+ 10. [`fct_dividend_history`](#10-fct_dividend_history) (Chronological distributions & streaks)
22
+ 11. [`fct_magic_formulas`](#11-fct_magic_formulas) (Greenblatt ranking)
23
+ 12. [`fct_piotroski_fscores`](#12-fct_piotroski_fscores) (9-point financial health scorecard)
24
+ 13. [`fct_altman_zscores`](#13-fct_altman_zscores) (Credit strength & solvency)
25
+ 14. [`fct_shareholder_yields`](#14-fct_shareholder_yields) (Total capital return yield)
26
+ 15. [`fct_momentum_metrics`](#15-fct_momentum_metrics) (Relative price strength)
27
+ 16. [`fct_lynch_categories`](#16-fct_lynch_categories) (Peter Lynch stock archetypes)
28
+ 17. [`fct_screener_recommendations`](#17-fct_screener_recommendations) (Long/Short composite scorecard)
29
+ 18. [`fct_capital_allocation`](#18-fct_capital_allocation) (ROIC & incremental capital efficiency)
30
+ 19. [`fct_dcf_valuations`](#19-fct_dcf_valuations) (WACC & multi-scenario DCF price targets)
31
+ 20. [`fct_sector_benchmarks`](#20-fct_sector_benchmarks) (Sector and industry percentile benchmarks)
32
+ 21. [`fct_macro_rates`](#21-fct_macro_rates) (Daily Treasury yields & exchange rates)
33
+ 22. [`fct_earning_call_transcripts`](#22-fct_earning_call_transcripts) (Quarterly call text paragraphs)
34
+ 23. [`fct_sec_filing_sections`](#23-fct_sec_filing_sections) (SEC MD&A & Risk Factors text sections)
35
+
36
+ ---
37
+
38
+ ### 1. `fct_combined_scorecard`
39
+ * **Purpose**: The "front page" dashboard. Flat, denormalized view containing the latest values of every calculated metric joined into a single table for fast querying.
40
+ * **SQL Source**: `9_z_combined_scorecard.sql`
41
+ * **Key Columns**:
42
+ * `symbol` (VARCHAR): Stock ticker symbol (e.g. `AAPL`).
43
+ * `report_date` (VARCHAR): Date of the latest statement period.
44
+ * `market_cap` (DOUBLE): Market capitalization in USD.
45
+ * `pe_ratio` (DOUBLE): Price-to-Earnings ratio.
46
+ * `altman_z_score` (DOUBLE): Altman Z-score.
47
+ * `piotroski_f_score` (INTEGER): Piotroski F-score (0 to 9).
48
+ * `magic_formula_rank` (BIGINT): Overall rank according to the Magic Formula.
49
+ * `total_shareholder_yield_pct` (DOUBLE): Combined yield (dividends, buybacks, debt paydowns).
50
+ * `composite_momentum_pct` (DOUBLE): Weighted price momentum score.
51
+ * `long_short_recommendation` (VARCHAR): Recommended screener classification (`STRONG_BUY`, `BUY`, `NEUTRAL`, `SHORT`, `STRONG_SHORT`).
52
+ * `rev_cagr_3y` (DOUBLE): 3-year Revenue CAGR.
53
+ * `accrual_ratio` (DOUBLE): Sloan accruals ratio.
54
+ * `beneish_m_score` (DOUBLE): Beneish M-Score.
55
+ * `roe_archetype` (VARCHAR): DuPont ROE driver archetype.
56
+ * `pe_z_score` (DOUBLE): Standard deviations of PE vs. historical mean.
57
+ * `treasury_beta_1y` (DOUBLE): Rolled 1-year regression beta vs. 10Y US Treasury yield change.
58
+ * `insider_rolling_90d_net_value` (DECIMAL): USD net buy/sell transactions by corporate insiders.
59
+ * `dividend_streak_years` (BIGINT): Consecutive years of dividend increases.
60
+
61
+ ---
62
+
63
+ ### 2. `dim_company_profiles`
64
+ * **Purpose**: Holds static and semi-static qualitative metadata for each corporation.
65
+ * **SQL Source**: `1.8_dim_company_profiles.sql`
66
+ * **Key Columns**:
67
+ * `symbol` (VARCHAR): Primary Key.
68
+ * `sector` (VARCHAR): Macro sector (e.g. `Technology`).
69
+ * `industry` (VARCHAR): Micro industry (e.g. `Consumer Electronics`).
70
+ * `long_business_summary` (VARCHAR): Full textual description of company operations.
71
+ * `full_time_employees` (BIGINT): Current headcount.
72
+ * `web_site` (VARCHAR): Corporate URL.
73
+
74
+ ---
75
+
76
+ ### 3. `fct_financial_ratios`
77
+ * **Purpose**: Core financial analysis metrics, normalized balance sheet totals, and specialized custom metrics (RONTA, capex-to-operating-cash-flow, R&D-adjusted asset values).
78
+ * **SQL Source**: `2_financial_ratios.sql`
79
+ * **Key Columns**:
80
+ * `net_tangible_assets` (DOUBLE): `Total Assets - Total Liabilities - Goodwill - Intangible Assets`.
81
+ * `owner_earnings` (DOUBLE): `Net Income + D&A - Capital Expenditures`.
82
+ * `ronta_pct` (DOUBLE): **Return on Net Tangible Assets**. Buffett's favorite profitability metric.
83
+ * `buffett_classification` (VARCHAR): Classification of moat quality (`The Great`, `The Good`, `The Gruesome`).
84
+ * `analyst_consensus_upside_pct` (DOUBLE): Percentage difference between current stock price and mean analyst price target.
85
+ * `interest_coverage_ratio` (DOUBLE): `EBIT / Interest Expense`.
86
+ * `rule_of_40_score` (DOUBLE): `Revenue Growth % + Free Cash Flow Margin %` (used for software/SaaS business models).
87
+ * `is_excluded` (BOOLEAN): Flag denoting if the company belongs to financial/cyclical industries that distort structural ratio calculations.
88
+
89
+ ---
90
+
91
+ ### 4. `fct_growth_rates`
92
+ * **Purpose**: Multi-year compound annual growth rates (CAGRs) for major items on the income and cash flow statements, along with consistency and momentum checks.
93
+ * **SQL Source**: `9.0_growth_rates.sql`
94
+ * **Key Columns**:
95
+ * `rev_growth_1y` / `net_growth_1y` / `fcf_growth_1y` (DOUBLE): YoY growth rates.
96
+ * `rev_cagr_3y` / `net_cagr_3y` / `fcf_cagr_3y` (DOUBLE): 3-year compound annual growth rates.
97
+ * `rev_cagr_5y` / `net_cagr_5y` / `fcf_cagr_5y` (DOUBLE): 5-year compound annual growth rates.
98
+ * `rev_deceleration_flag` (BOOLEAN): `True` if current YoY growth is lower than the previous period's growth.
99
+ * `rev_growth_consistency_score` (DOUBLE): Standard deviation of growth rates over the lookback window (lower = more predictable growth).
100
+
101
+ ---
102
+
103
+ ### 5. `fct_earnings_quality`
104
+ * **Purpose**: Evaluates whether reported net income is backed by cash flow, and flags signs of earnings manipulation or accounting anomalies.
105
+ * **SQL Source**: `9.1_earnings_quality.sql`
106
+ * **Key Columns**:
107
+ * `accrual_ratio` (DOUBLE): Sloan accruals metric: `(Net Income - FCF) / Total Assets`.
108
+ * *Threshold*: Values `> 0.10` indicate excessive accruals (earnings ahead of cash).
109
+ * `fcf_conversion_rate` (DOUBLE): `FCF / Net Income`.
110
+ * *Interpretation*: Ideal is `> 1.0`. Sustained values `< 0.70` suggest weak earnings quality.
111
+ * `beneish_m_score` (DOUBLE): Mathematical model utilizing 8 accounting indexes (DSRI, GMI, AQI, SGI, DEPI, SGAI, LVGI, TATA) to detect earnings manipulation.
112
+ * *Threshold*: Scores `> -1.78` denote possible manipulation; `> -1.49` represents a high-risk manipulation signal.
113
+ * `beneish_m_score_label` (VARCHAR): Rating of manipulation risk (`High Risk`, `Safe`).
114
+
115
+ ---
116
+
117
+ ### 6. `fct_dupont_decompositions`
118
+ * **Purpose**: Breaks down Return on Equity (ROE) into 3-factor and 5-factor component parts to determine if profitability is driven by profit margins, asset efficiency, or financial leverage.
119
+ * **SQL Source**: `9.15_dupont_decomposition.sql`
120
+ * **Key Columns**:
121
+ * `roe_pct` (DOUBLE): Profit / Common Equity.
122
+ * `net_margin_pct` (DOUBLE): Profit margin (`Net Income / Revenue`).
123
+ * `asset_turnover` (DOUBLE): Asset efficiency (`Revenue / Average Assets`).
124
+ * `equity_multiplier_leverage` (DOUBLE): Financial leverage (`Average Assets / Average Equity`).
125
+ * `ebit_margin_pct` (DOUBLE): Operating profitability.
126
+ * `interest_burden_factor` (DOUBLE): Pretax Income / EBIT.
127
+ * `tax_burden_factor` (DOUBLE): Net Income / Pretax Income.
128
+ * `roe_archetype` (VARCHAR): Business return driver label:
129
+ * `High-Margin Compounder` (High profit margin, low leverage)
130
+ * `Asset-Light Asset Turner` (High asset turnover, low leverage)
131
+ * `Leverage-Driven Returns` (Low margins/turnover, high leverage)
132
+ * `Underperforming` (Negative ROE)
133
+
134
+ ---
135
+
136
+ ### 7. `fct_valuation_multiples`
137
+ * **Purpose**: Integrates daily stock prices with annual statement disclosures to output daily historical multiples and statistical z-scores (standard deviations from the company's own historical average).
138
+ * **SQL Source**: `9.5_valuation_multiples.sql`
139
+ * **Key Columns**:
140
+ * `price_date` (VARCHAR): Calendar date of the stock price.
141
+ * `pe_ratio` (DOUBLE): Price / Trailing EPS.
142
+ * `price_to_fcf` (DOUBLE): Market Cap / Free Cash Flow.
143
+ * `pe_z_score` (DOUBLE): `(Current PE - Mean historical PE) / StdDev(PE)`.
144
+ * *Interpretation*: Negative z-scores (e.g. `-1.5`) indicate that the stock is historically cheap compared to its own historical trading range.
145
+
146
+ ---
147
+
148
+ ### 8. `fct_macro_sensitivity`
149
+ * **Purpose**: Gauges how sensitive a stock's returns are to macroeconomic interest rate shifts by running a rolling 1-year linear regression of daily stock returns against daily changes in the 10-year US Treasury yield.
150
+ * **SQL Source**: `9.6_macro_sensitivity.sql`
151
+ * **Key Columns**:
152
+ * `treasury_beta_1y` (DOUBLE): Slope coefficient of regression.
153
+ * *Interpretation*: Positive beta (e.g. `1.2`) means the stock moves *up* when bond yields rise (cyclical/financials). Negative beta (e.g. `-0.8`) means the stock falls when yields rise (utilities/defensives).
154
+ * `treasury_r2_1y` (DOUBLE): R-squared (goodness of fit) of the rolling regression, showing how much of the stock's return variance is explained by yield changes.
155
+
156
+ ---
157
+
158
+ ### 9. `fct_insider_sentiment`
159
+ * **Purpose**: Tracks buying and selling activity by corporate executives, officers, and directors.
160
+ * **SQL Source**: `9.3_insider_sentiment.sql`
161
+ * **Key Columns**:
162
+ * `tx_date` (DATE): Transaction execution date.
163
+ * `net_shares_daily` (DOUBLE): Shares purchased minus shares sold on `tx_date`.
164
+ * `net_value_daily` (DECIMAL): USD value of net transactions on `tx_date`.
165
+ * `rolling_30d_net_value` / `rolling_90d_net_value` / `rolling_180d_net_value` (DECIMAL): Combined USD value of insider transactions over the respective trailing day windows.
166
+
167
+ ---
168
+
169
+ ### 10. `fct_dividend_history`
170
+ * **Purpose**: Tracks distributions, stock splits, annual payouts, and consecutive dividend increase streaks.
171
+ * **SQL Source**: `9.4_dividend_history.sql`
172
+ * **Key Columns**:
173
+ * `event_date` (DATE): Date of dividend or split event.
174
+ * `event_type` (VARCHAR): `dividend` or `split`.
175
+ * `amount` (DOUBLE): Dividend distribution per share.
176
+ * `split_factor` (VARCHAR): Split ratio (e.g. `2:1` or `1:1`).
177
+ * `year_annual_payout` (DECIMAL): Sum of all dividends paid in that calendar year.
178
+ * `year_dividend_increase_streak_years` (BIGINT): The consecutive streak of years where the annual dividend payout increased.
179
+
180
+ ---
181
+
182
+ ### 11. `fct_magic_formulas`
183
+ * **Purpose**: Implements Joel Greenblatt's "Magic Formula" screen, ranking companies by their return on capital and earnings yield.
184
+ * **SQL Source**: `3_magic_formula.sql`
185
+ * **Key Columns**:
186
+ * `return_on_capital_pct` (DOUBLE): `EBIT / (Net Working Capital + Net PPE)`.
187
+ * `earnings_yield_pct` (DOUBLE): `EBIT / Enterprise Value`.
188
+ * `roc_rank` (BIGINT): Return on Capital percentile rank within the universe.
189
+ * `ey_rank` (BIGINT): Earnings Yield percentile rank within the universe.
190
+ * `magic_formula_rank` (BIGINT): Consolidated rank (sum of `roc_rank` and `ey_rank`).
191
+
192
+ ---
193
+
194
+ ### 12. `fct_piotroski_fscores`
195
+ * **Purpose**: Computes Joseph Piotroski's 9-point binary score (0-9) analyzing profitability, leverage/liquidity, and operating efficiency.
196
+ * **SQL Source**: `4_piotroski_fscore.sql`
197
+ * **Key Columns**:
198
+ * `f1_positive_roa` to `f9_improving_asset_turnover` (INTEGER): Binary points (0 or 1) for each signal.
199
+ * `f_score` (INTEGER): Combined health score (ranges from 0 to 9).
200
+ * *Interpretation*: `8` or `9` is exceptionally strong; `0` to `3` is weak.
201
+ * `f_score_label` (VARCHAR): Rating class (`Strong Health`, `Moderate Health`, `Weak Health`).
202
+
203
+ ---
204
+
205
+ ### 13. `fct_altman_zscores`
206
+ * **Purpose**: Bankruptcy risk prediction using Edward Altman's 5-factor model for manufacturing and non-manufacturing firms.
207
+ * **SQL Source**: `5_altman_zscore.sql`
208
+ * **Key Columns**:
209
+ * `z_score` (DOUBLE): Output score.
210
+ * `z_score_zone` (VARCHAR): Solvency health zones:
211
+ * `Safe Zone` (Z-Score > 2.90 for manufacturing, > 2.90 for service)
212
+ * `Grey Zone` (1.23 <= Z-Score <= 2.90)
213
+ * `Distress Zone` (Z-Score < 1.23, high risk of insolvency)
214
+
215
+ ---
216
+
217
+ ### 14. `fct_shareholder_yields`
218
+ * **Purpose**: Computes cash returned to investors via dividends, stock buybacks, and net debt reduction.
219
+ * **SQL Source**: `6_shareholder_yield.sql`
220
+ * **Key Columns**:
221
+ * `dividend_yield_pct` (DOUBLE): Cash dividends / Market Cap.
222
+ * `buyback_yield_pct` (DOUBLE): Net stock buybacks / Market Cap.
223
+ * `debt_paydown_yield_pct` (DOUBLE): Net debt paydown / Market Cap.
224
+ * `total_shareholder_yield_pct` (DOUBLE): Combined yield of all three components.
225
+ * `tsy_label` (VARCHAR): Rating based on shareholder yield strength.
226
+
227
+ ---
228
+
229
+ ### 15. `fct_momentum_metrics`
230
+ * **Purpose**: Measures trend-following relative strength over multiple lookback windows (1m, 3m, 6m, 12m).
231
+ * **SQL Source**: `7_momentum.sql`
232
+ * **Key Columns**:
233
+ * `mom_12m_skip1m_pct` (DOUBLE): Returns over 12 months excluding the most recent month (captures structural momentum while avoiding short-term reversal noise).
234
+ * `composite_momentum_pct` (DOUBLE): Weighted average of 3m (20%), 6m (30%), and 12m-skip-1m (50%) momentum returns.
235
+ * `momentum_label` (VARCHAR): Classification (`Strong Momentum`, `Improving`, `Lagging`, etc.).
236
+
237
+ ---
238
+
239
+ ### 16. `fct_lynch_categories`
240
+ * **Purpose**: Implements Peter Lynch's stock categorization framework (Slow Grower, Stalwart, Fast Grower, Cyclical, Asset Play, Turnaround) using growth rates, leverage, size, and health filters.
241
+ * **SQL Source**: `8_lynch_categories.sql`
242
+ * **Key Columns**:
243
+ * `lynch_category` (VARCHAR): The assigned Peter Lynch category.
244
+ * `lynch_confidence` (VARCHAR): Strength classification of the assignment (`High`, `Medium`, `Low`).
245
+ * `net_cash_to_mktcap_pct` (DOUBLE): Net balance sheet cash as a percentage of market cap (key for "Asset Play" screening).
246
+
247
+ ---
248
+
249
+ ### 17. `fct_screener_recommendations`
250
+ * **Purpose**: A compound multi-factor grading model that weights Piotroski, Altman, Magic Formula, owner yield, growth, and R&D-adjusted efficiency into an overall long/short score.
251
+ * **SQL Source**: `9_long_short_screener.sql`
252
+ * **Key Columns**:
253
+ * `long_score` (INTEGER): Points accrued for high quality, value, health, and momentum (0 to 10 scale).
254
+ * `short_score` (INTEGER): Points accrued for distress, manipulation risk, high debt, or poor cash conversion (0 to 10 scale).
255
+ * `long_short_recommendation` (VARCHAR): Screener recommendation rating (e.g. `STRONG_BUY` when `long_score >= 8` and `short_score <= 1`).
256
+
257
+ ---
258
+
259
+ ### 18. `fct_capital_allocation`
260
+ * **Purpose**: Computes Return on Invested Capital (ROIC), pre-tax ROIC, and incremental ROIC over rolling 3-year and 5-year windows to evaluate management's capital deployment efficiency.
261
+ * **SQL Source**: `9.18_capital_allocation.sql`
262
+ * **Key Columns**:
263
+ * `symbol` (VARCHAR): Stock ticker symbol.
264
+ * `report_date` (DATE): Statement report date.
265
+ * `tax_rate` (DOUBLE): Effective tax rate (capped at 35%, default to 21%).
266
+ * `invested_capital` (DOUBLE): Total Debt + Total Equity - Cash.
267
+ * `nopat` (DOUBLE): Net Operating Profit After Tax (`Operating Income * (1.0 - tax_rate)`).
268
+ * `roic_pct` (DOUBLE): Return on Invested Capital percentage.
269
+ * `pretax_roic_pct` (DOUBLE): Pre-tax Return on Invested Capital percentage.
270
+ * `incremental_roic_3y_pct` (DOUBLE): 3-year Incremental ROIC (using NOPAT / Invested Capital change).
271
+ * `pretax_incremental_roic_3y_pct` (DOUBLE): 3-year Pre-tax Incremental ROIC (using EBIT / Invested Capital change).
272
+ * `incremental_roic_5y_pct` (DOUBLE): 5-year Incremental ROIC.
273
+ * `pretax_incremental_roic_5y_pct` (DOUBLE): 5-year Pre-tax Incremental ROIC.
274
+ * `capital_unlocked_growth_3y_flag` (BOOLEAN): `True` if operating income grew while invested capital decreased over 3 years.
275
+ * `capital_allocation_category` (VARCHAR): Classification of management's capital allocation efficiency (`High-Efficiency Compounder`, `Fading Compounder`, `Turnaround Compounder`, `Value Destroyer`, `Capital-Light Grower`, `Standard Allocator`).
276
+
277
+ ---
278
+
279
+ ### 19. `fct_dcf_valuations`
280
+ * **Purpose**: Computes Weighted Average Cost of Capital (WACC), Cost of Equity (CAPM), Cost of Debt, and projects 10-year discounted cash flows under three growth scenarios (Base, Conservative, Aggressive).
281
+ * **SQL Source**: `9.8_dcf_valuation.sql`
282
+ * **Key Columns**:
283
+ * `symbol` (VARCHAR): Stock ticker symbol.
284
+ * `report_date` (DATE): Reference report date for statement metrics.
285
+ * `wacc` (DOUBLE): Weighted Average Cost of Capital (clamped between 5% and 15%).
286
+ * `cost_of_equity` (DOUBLE): Cost of equity via CAPM (`Risk-Free Rate + Beta * 5.5% ERP`).
287
+ * `cost_of_debt` (DOUBLE): Cost of debt (interest expense / total debt, or fallback).
288
+ * `tax_rate` (DOUBLE): Effective tax rate.
289
+ * `base_cash_flow` (DOUBLE): Owner earnings (falling back to FCF, then Net Income).
290
+ * `enterprise_value_base` / `enterprise_value_conservative` / `enterprise_value_aggressive` (DOUBLE): Discounted enterprise values.
291
+ * `equity_value_base` / `equity_value_conservative` / `equity_value_aggressive` (DOUBLE): Estimated equity value (`Enterprise Value + Cash - Debt`).
292
+ * `dcf_price_per_share_base` / `dcf_price_per_share_conservative` / `dcf_price_per_share_aggressive` (DOUBLE): Estimated fair value per share.
293
+
294
+ ---
295
+
296
+ ### 20. `fct_sector_benchmarks`
297
+ * **Purpose**: Computes peer-relative sector and industry percentiles and medians for multiple valuation, profitability, and momentum metrics.
298
+ * **SQL Source**: `9.20_sector_benchmarks.sql`
299
+ * **Key Columns**:
300
+ * `symbol` (VARCHAR): Stock ticker symbol.
301
+ * `sector` (VARCHAR): Corporate macro sector.
302
+ * `industry` (VARCHAR): Corporate micro industry.
303
+ * `pe_industry_percentile` (DOUBLE): Industry percentile for P/E (0 = cheapest/best, 100 = most expensive/worst).
304
+ * `pb_industry_percentile` (DOUBLE): Industry percentile for P/B.
305
+ * `roic_industry_percentile` (DOUBLE): Industry percentile for ROIC (0 = highest/best, 100 = lowest/worst).
306
+ * `rev_growth_1y_industry_percentile` (DOUBLE): Industry percentile for 1-year revenue growth.
307
+ * `mom_6m_industry_percentile` (DOUBLE): Industry percentile for 6-month price momentum.
308
+ * `pe_sector_percentile` (DOUBLE): Sector percentile for P/E.
309
+ * `mom_6m_sector_percentile` (DOUBLE): Sector percentile for 6-month price momentum.
310
+ * `industry_median_pe` / `sector_median_pe` (DOUBLE): Median P/E ratios.
311
+ * `industry_median_roic` / `sector_median_roic` (DOUBLE): Median ROIC values.
312
+
313
+ ---
314
+
315
+ ### 21. `fct_macro_rates`
316
+ * **Purpose**: Cleans and merges daily currency exchange rates and U.S. Treasury constant maturity yields.
317
+ * **SQL Source**: `9.2_macro_rates.sql`
318
+ * **Key Columns**:
319
+ * `currency_symbol` (VARCHAR): Currency symbol (e.g. `EURUSD=X`).
320
+ * `report_date` (DATE): Calendar date of the rates.
321
+ * `exchange_rate` (DECIMAL): Daily close exchange rate.
322
+ * `bc_1month` to `bc_30year` (DECIMAL): Constant maturity yields for 1m, 2m, 3m, 6m, 1y, 2y, 3y, 5y, 7y, 10y, 20y, and 30y U.S. Treasuries.
323
+
324
+ ---
325
+
326
+ ### 22. `fct_earning_call_transcripts`
327
+ * **Purpose**: Compiles raw text paragraphs from quarterly earnings call transcripts and flags whether the speaker is a registered corporate officer (insider).
328
+ * **SQL Source**: `9.21_fct_earning_call_transcripts.sql`
329
+ * **Key Columns**:
330
+ * `symbol` (VARCHAR): Stock ticker symbol.
331
+ * `fiscal_year` (INTEGER): Fiscal year of the earnings call.
332
+ * `fiscal_quarter` (INTEGER): Fiscal quarter.
333
+ * `paragraph_number` (BIGINT): Section paragraph index.
334
+ * `speaker` (VARCHAR): Name of the individual speaking.
335
+ * `is_insider` (BOOLEAN): `True` if speaker matches a known corporate officer name for that symbol.
336
+ * `content` (VARCHAR): Text content of the transcript paragraph.
337
+ * `transcripts_id` (BIGINT): Unique identifier hash for the paragraph.
338
+ * `report_date` (DATE): Earnings report date.
339
+
340
+ ---
341
+
342
+ ### 23. `fct_sec_filing_sections`
343
+ * **Purpose**: Consolidates Item 7 (MD&A) and Item 1A (Risk Factors) sections from SEC corporate filings (e.g., 10-K, 10-Q) into a single textual database table.
344
+ * **SQL Source**: `9.22_fct_sec_filing_sections.sql`
345
+ * **Key Columns**:
346
+ * `symbol` (VARCHAR): Stock ticker symbol.
347
+ * `accession_number` (VARCHAR): Unique SEC accession identifier.
348
+ * `form_type` (VARCHAR): Form type (e.g., `10-K` or `10-Q`).
349
+ * `filing_date` (DATE): SEC filing submission date.
350
+ * `section_type` (VARCHAR): Text category (`mda` or `risk_factors`).
351
+ * `section_text` (VARCHAR): Full plaintext content extracted from the section.
marts/dim_company_profiles.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9d9e067592a948d62b43f478f61ad239d8aad889d8944a231805acd3a637c0a6
3
+ size 13469489
marts/fct_altman_zscores.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:395491c2cf38cc690eceba0f08ca28cc0075cf8ff490b5377f139f8744922c63
3
+ size 11097176
marts/fct_capital_allocation.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d630a4e4e12b2ab5e0319c836fefc258d727f58f714ccdd587f95d03babc1572
3
+ size 3739523
marts/fct_combined_scorecard.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:77f4b5773423598e4accb0e978b6d02372b7784d5265a807d96504a924a1be0f
3
+ size 7498551
marts/fct_dcf_valuations.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e78beea5da677f1935a717131aa83274c0599fe3f2b6a2c3c25c1f38ce94deee
3
+ size 2202052
marts/fct_dividend_history.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1ed0d2770f28c4bfaf417e69cd30410c935bbfd99cf1844bd01f1a546c0e3253
3
+ size 3320402
marts/fct_dupont_decompositions.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3ddc833ecb2bf5c2fa2655ca6266ce66189947ad39c4a26a20c771b547836207
3
+ size 7681438
marts/fct_earning_call_transcripts.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f41fd89f126c2b50f62c75affc60043ba3b76116007069b2c5a95aa74fa59d0a
3
+ size 1316410356
marts/fct_earnings_quality.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d962e1c729c1c91707e441e8d4f8fdb7fd851971e97c62820424f8acdde3eaab
3
+ size 4340902
marts/fct_financial_ratios.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:66081943c9c84e5a78e509ad32a928c6e14ed2bc677294ebdc01157ef4387040
3
+ size 36065846
marts/fct_growth_rates.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:48c8e08adc67f94a62f2eec55b2876c2c9e0f3e4bf060608f2e64e124ae424d7
3
+ size 3889970
marts/fct_insider_sentiment.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fb1786636d11fec5605f51294a10ce15fb751c23429181e23b911c0a7cb67994
3
+ size 8969551
marts/fct_lynch_categories.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5b7cdee7353213159739480a4690c1c946c3829f2f0d0d19c09dee0d16a33e6a
3
+ size 13664837
marts/fct_macro_rates.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e5d5f0116b80dbc61ec666f637bee412f1896da4d189b722d67902073fe90984
3
+ size 2645032
marts/fct_macro_sensitivity.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b8b37d6d572e7a4e75064d172b2c90ca8289df7f17d722235eba71659152bda8
3
+ size 1476464394
marts/fct_magic_formulas.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:45e40931d8e5f7dcf170135dc98a7c7588a7c1aed2b8ac3ec483cf9cef4239d2
3
+ size 864227
marts/fct_momentum_metrics.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c01fc4ac24bcdb1ff8af950f0140e4e2547e47316517e983060787be47c917da
3
+ size 2316939
marts/fct_piotroski_fscores.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9f5ae2091777ef44243bb66e09d0a6ccc7beb132bdcf5c96fe9127f72eb8541f
3
+ size 1599576
marts/fct_screener_recommendations.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:30d664c2b2419ca39723bff2e2d8a1eb05c3b2006e567f29d82a85e6dc3087d6
3
+ size 3586232
marts/fct_sec_filing_sections.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3baa9a7d23deae07f32ae530fcbe137fe301caa3f1714e2291be1c6e5c26166b
3
+ size 2284942469
marts/fct_sector_benchmarks.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:740fddc204187ab796636445ae3ba4c5347caba3c29af8ad558416690da582f5
3
+ size 984446
marts/fct_shareholder_yields.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fed9e62fc10f1acc7bd656c11721a3290221a453d69c2dd4f0a84fb4e463c7f8
3
+ size 7138180
marts/fct_valuation_multiples.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:66f1c95798f64541663da881d1e35b5330f7fc9301dc12b5f46df6646d4bafc4
3
+ size 237550124
raw/daily_treasury_yield.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ae839bd6cd0991eb546c9318ad2f56aa4f0cbf62730ebed4914937f688114a56
3
+ size 135259
raw/exchange_directories.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:17519c99dd81b9811bb8e2ad2a04b51cf08e2e88a2acf6e56fc35bbed6356bef
3
+ size 734573
raw/exchange_rate.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fc9aea03e8b13b68d888e94d90ed53a931e3a927e16040359789557a4fd4a216
3
+ size 4164034
raw/stock_analyst_price_targets.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3601016b006e7777dbb2fa2a40e09889692ef07e6ba321edd999ba4b3a73f36c
3
+ size 2767938
raw/stock_analyst_recommendations.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aac9207a0c41bbc04986a3d2fe4cd4d9f7f3c0cb007b72835152fdf1f2c3943d
3
+ size 1365921
raw/stock_dividend_events.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f3ddf6da056e428ea358349dcc55dd514e87c8b989c9b9ad74c4ea5800c1bb87
3
+ size 3780565
raw/stock_earning_calendar.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b0b2458437c770149b50a4f359d7426cb8c3e8cce5a1f53f287e304f7d3a6ae9
3
+ size 472344
raw/stock_earning_call_transcripts.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:272e337db4fad1f11471bcfa7949ef581e77d1067508c70b17b888eb7af8353b
3
+ size 1013330
raw/stock_earnings_estimates.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:26c179435e2816d61364b2e52ba98f2e4527d3727f0cdb973e14d63a12d6d531
3
+ size 18542667
raw/stock_earnings_history.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1587ec0197abf8a9a54d073047e5a8f871ceac2bb9bf6f4dd31546c42d05ccca
3
+ size 613970
raw/stock_eps_trends.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dc4712005a35ae94d996039f9a422578aecb09ec2e6ef74818a5ccbab5499d2e
3
+ size 5489467
raw/stock_insider_transactions.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0538e620cd248b93a1421fbb9f3f372089019f9f1691f91e0a7d9e68e1dd658e
3
+ size 15457185
raw/stock_institutional_holders.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a8b16435a346894f6316dd353ae730f447177f0ca69e4de5af74671fb4765542
3
+ size 2419349
raw/stock_mutualfund_holders.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4ac2ab230a40542cfed7a5af1bfb28f59c2d1253121c17874c6473bd705a09a7
3
+ size 3101897
raw/stock_news/bucket_id=0/data.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:56392f8aa36fbcc01f275875efddc7659464cd6805237241f28d450d04de02b4
3
+ size 342
raw/stock_news/bucket_id=1/data.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:56392f8aa36fbcc01f275875efddc7659464cd6805237241f28d450d04de02b4
3
+ size 342
raw/stock_news/bucket_id=10/data.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:56392f8aa36fbcc01f275875efddc7659464cd6805237241f28d450d04de02b4
3
+ size 342
raw/stock_news/bucket_id=11/data.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:56392f8aa36fbcc01f275875efddc7659464cd6805237241f28d450d04de02b4
3
+ size 342
raw/stock_news/bucket_id=12/data.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:56392f8aa36fbcc01f275875efddc7659464cd6805237241f28d450d04de02b4
3
+ size 342
raw/stock_news/bucket_id=13/data.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:56392f8aa36fbcc01f275875efddc7659464cd6805237241f28d450d04de02b4
3
+ size 342
raw/stock_news/bucket_id=14/data.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:56392f8aa36fbcc01f275875efddc7659464cd6805237241f28d450d04de02b4
3
+ size 342
raw/stock_news/bucket_id=15/data.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:56392f8aa36fbcc01f275875efddc7659464cd6805237241f28d450d04de02b4
3
+ size 342
raw/stock_news/bucket_id=16/data.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:56392f8aa36fbcc01f275875efddc7659464cd6805237241f28d450d04de02b4
3
+ size 342
raw/stock_news/bucket_id=17/data.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:56392f8aa36fbcc01f275875efddc7659464cd6805237241f28d450d04de02b4
3
+ size 342
raw/stock_news/bucket_id=18/data.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:56392f8aa36fbcc01f275875efddc7659464cd6805237241f28d450d04de02b4
3
+ size 342
raw/stock_news/bucket_id=19/data.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:56392f8aa36fbcc01f275875efddc7659464cd6805237241f28d450d04de02b4
3
+ size 342