INTERACTIVE DEMOS
A P&C insurance carrier processes 15,000 new applications per day. Each application must be scored for fraud risk in real time — before the policy is bound — by cross-referencing the applicant against claims history, prior policy cancellations, and known fraud rings.
| app_id | applicant_name | ssn_last4 | state | coverage_type | premium | vehicle_vin | declared_value | ts |
|---|---|---|---|---|---|---|---|---|
| APP-20240315-7821 | Marcus D. Reeves | 4478 | FL | AUTO_COMPREHENSIVE | 2840 | 1HGCM...4390 | 38500 | 2024-03-15T09:14:22.000Z |
| APP-20240315-7822 | Jennifer Kowalski | 9213 | TX | HOME_HO3 | 4100 | NULL | 425000 | 2024-03-15T09:15:03.000Z |
| APP-20240315-7823 | Robert Tanaka | 6051 | CA | AUTO_LIABILITY | 1290 | 5YJSA...7104 | 52000 | 2024-03-15T09:15:47.000Z |
| APP-20240315-7824 | Aisha Patel | 3387 | NY | RENTERS_HO4 | 840 | NULL | 15200 | 2024-03-15T09:16:31.000Z |
| APP-20240315-7825 | Charles Beaumont | 7745 | IL | AUTO_COMPREHENSIVE | 3670 | 3VWDX...8812 | 44900 | 2024-03-15T09:17:08.000Z |
| APP-20240315-7826 | Diana M. Reeves | 4478 | CA | AUTO_COMPREHENSIVE | 2950 | 2T1BU...6290 | 31000 | 2024-03-15T09:18:14.000Z |
CREATE MATERIALIZED VIEW claims_crossref AS
SELECT
a.app_id,
a.applicant_name,
a.ssn_last4,
a.state,
COUNT(c.claim_id) AS prior_claims_24mo,
COUNT(DISTINCT c.loss_address_zip) AS distinct_loss_addresses,
SUM(c.payout_amount) AS total_prior_payouts,
MAX(c.claim_date) AS most_recent_claim
FROM policy_applications a
LEFT JOIN historical_claims c
ON a.ssn_last4 = c.ssn_last4
AND c.claim_date > a.ts - INTERVAL '24 MONTHS'
GROUP BY a.app_id, a.applicant_name, a.ssn_last4, a.state
HAVING
COUNT(c.claim_id) > 2
OR COUNT(DISTINCT c.loss_address_zip) > 1;| app_id | applicant_name | risk_level | risk_score | flags | scored_at |
|---|---|---|---|---|---|
| APP-20240315-7821 | Marcus D. Reeves | CRITICAL | 155 | 3 claims in 24mo,Claims from 2 addresses,VIN previously reported total loss | 2024-03-15T09:14:22.804Z |
| APP-20240315-7826 | Diana M. Reeves | HIGH | 90 | 3 claims in 24mo,Claims from 2 addresses | 2024-03-15T09:18:14.612Z |
| APP-20240315-7824 | Aisha Patel | LOW | 0 | 2024-03-15T09:16:31.203Z |