Nason commited on
Commit
0dcca42
·
verified ·
1 Parent(s): 83431ca

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +173 -0
README.md ADDED
@@ -0,0 +1,173 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ task_categories:
4
+ - tabular-classification
5
+ - tabular-regression
6
+ tags:
7
+ - immigration
8
+ - eoir
9
+ - immigration-court
10
+ - foia
11
+ - duckdb
12
+ - legal
13
+ - policy
14
+ - government-data
15
+ pretty_name: EOIR Immigration Court Database
16
+ size_categories:
17
+ - 100M<n<1B
18
+ ---
19
+
20
+ # EOIR Immigration Court Database
21
+
22
+ A clean, queryable DuckDB database built from the [EOIR FOIA data dump](https://www.justice.gov/eoir/foia-library-0) -- the most comprehensive public dataset on U.S. immigration court proceedings.
23
+
24
+ **164,633,807 rows** across **97 tables** covering every immigration court case since the 1970s.
25
+
26
+ Built with [eoir-database](https://github.com/ian-nason/eoir-database).
27
+
28
+ ## Quick Start
29
+
30
+ ### DuckDB CLI
31
+
32
+ ```sql
33
+ INSTALL httpfs;
34
+ LOAD httpfs;
35
+ ATTACH 'https://huggingface.co/datasets/ian-nason/eoir-database/resolve/main/eoir.duckdb' AS eoir (READ_ONLY);
36
+
37
+ -- Query immediately
38
+ SELECT court_name, COUNT(*) as cases
39
+ FROM eoir.v_proceedings_full
40
+ WHERE CASE_TYPE = 'RMV'
41
+ GROUP BY court_name
42
+ ORDER BY cases DESC
43
+ LIMIT 10;
44
+ ```
45
+
46
+ ### Python
47
+
48
+ ```python
49
+ import duckdb
50
+ con = duckdb.connect()
51
+ con.sql("INSTALL httpfs; LOAD httpfs;")
52
+ con.sql("""
53
+ ATTACH 'https://huggingface.co/datasets/ian-nason/eoir-database/resolve/main/eoir.duckdb'
54
+ AS eoir (READ_ONLY)
55
+ """)
56
+ con.sql("SELECT * FROM eoir._metadata").show()
57
+ ```
58
+
59
+ DuckDB uses HTTP range requests, so only the pages needed for your query are downloaded.
60
+
61
+ ## Tables
62
+
63
+ | Table | Description | Rows |
64
+ |-------|-------------|------|
65
+ | `schedule` | Hearing schedule entries with calendar type and adjournments | 45,183,976 |
66
+ | `representatives` | Attorney representation records | 25,639,802 |
67
+ | `charges` | Individual charges per proceeding | 18,484,804 |
68
+ | `proceedings` | Proceedings: hearings, decisions, judges, charges | 16,216,773 |
69
+ | `applications` | Applications for relief (asylum, cancellation, etc.) | 15,756,896 |
70
+ | `cases` | Case-level demographics, custody, dates, attorney info | 12,461,924 |
71
+ | `custody_history` | Custody status change records | 9,777,557 |
72
+ | `motions` | Motions filed in proceedings | 8,030,259 |
73
+ | `juvenile_history` | Juvenile designation records | 2,953,170 |
74
+ | `lead_rider` | Lead/rider case relationships | 2,582,001 |
75
+ | `case_identifiers` | Case ID cross-references | 2,392,405 |
76
+ | `bonds` | Bond hearing records and amounts | 1,586,265 |
77
+ | `appeals` | Appeals to Board of Immigration Appeals | 1,457,288 |
78
+ | `appeal2` | Loaded from tblAppeal2.csv | 1,195,783 |
79
+ | `attorneys` | Attorney registry | 403,612 |
80
+ | `appeal_fed_courts` | Loaded from tblAppealFedCourts.csv | 179,707 |
81
+ | `case_priority_history` | Priority code changes | 138,004 |
82
+ | `three_mbr_referrals` | Loaded from tblThreeMbrReferrals.csv | 83,464 |
83
+ | `pro_bono` | Pro bono screening records | 65,944 |
84
+ | `lu_judge_base_city` | Loaded from tblLookupJudgeBaseCity.csv | 11,266 |
85
+ | `lu_insta` | Loaded from tblLookupINSTA.csv | 8,972 |
86
+ | `lu_inmate` | Loaded from tblLookupInmate.csv | 4,844 |
87
+ | `lu_inmate_housing` | Loaded from tblInmateHousing.csv | 4,752 |
88
+ | `lu_responsible_party` | Loaded from tblResponsibleParty.csv | 3,381 |
89
+ | `lu_judge` | Immigration judge codes | 1,455 |
90
+ | `lu_hearing_location` | Hearing location codes | 1,241 |
91
+ | `lu_insloc` | Loaded from tblLookupINSLOC.csv | 1,020 |
92
+ | `lu_bia` | Loaded from tblLookupBIA.csv | 867 |
93
+ | `lu_insaddress` | Loaded from tblLookUpINSAddress.csv | 754 |
94
+ | `lu_language` | Language codes | 738 |
95
+ | `lu_holidays` | Loaded from tblLookupHolidays.csv | 613 |
96
+ | `lu_notice` | Loaded from tblLookupNOTICE.csv | 598 |
97
+ | `lu_district_location` | Loaded from tblLookupDistrictLocation.csv | 288 |
98
+ | `lu_office_location` | Loaded from tblLookupOfficeLocation.csv | 264 |
99
+ | `lu_alien_nat` | Loaded from tblLookupAlienNat.csv | 256 |
100
+ | `lu_country` | Loaded from tblLookupCountry.csv | 254 |
101
+ | `lu_charges` | Charge codes and descriptions | 252 |
102
+ | `lu_nationality` | Nationality/country codes | 251 |
103
+ | `lu_appeal_issues` | Loaded from tblLookupAppealIssues.csv | 246 |
104
+ | `lu_biacluster` | Loaded from tblLookup_BIACluster.csv | 244 |
105
+ | `lu_court_decision` | Court decision codes (by case type) | 217 |
106
+ | `lu_bar_code_type` | Loaded from tblBarCodeType.csv | 141 |
107
+ | `lu_adjournment` | Adjournment reason codes | 122 |
108
+ | `lu_case_identifier` | Loaded from tblLookUpCaseIdentifier.csv | 110 |
109
+ | `lu_base_city` | Immigration court locations | 97 |
110
+ | `lu_in_tr_pr` | Loaded from tblLookupInTrPr.csv | 94 |
111
+ | `lu_motion_type` | Motion type codes | 72 |
112
+ | `lu_insoffice` | Loaded from tblINSoffice.csv | 72 |
113
+ | `lu_state` | U.S. state codes | 59 |
114
+ | `lu_bia_decision` | BIA decision codes | 53 |
115
+ | `lu_special_issue` | Loaded from tblLookupSpecialIssue.csv | 43 |
116
+ | `lu_application` | Application type codes | 40 |
117
+ | `lu_teams` | Loaded from tblTeams.csv | 37 |
118
+ | `lu_hold_reason` | Loaded from tblLookupHoldReason.csv | 37 |
119
+ | `lu_schedule_type` | Schedule type codes | 36 |
120
+ | `lu_callup_reasons` | Loaded from tblLookupCallup_Reasons.csv | 30 |
121
+ | `lu_cal_type` | Calendar type codes | 29 |
122
+ | `lu_dddecision_types` | Loaded from tblLookUpDDDecisionTypes.csv | 23 |
123
+ | `lu_panels` | Loaded from tblPanels.csv | 20 |
124
+ | `lu_appeal_type` | Loaded from tbllookupAppealType.csv | 19 |
125
+ | `lu_board_motions` | Loaded from tblLookupBoardMotions.csv | 16 |
126
+ | `lu_priority` | Loaded from tblLookupPriority.csv | 15 |
127
+ | `lu_br_deduct_codes` | Loaded from tbl_br_DeductCodes.csv | 15 |
128
+ | `lu_app_decision` | Application decision codes | 14 |
129
+ | `lu_intr_pr_lang` | Loaded from tblLookupIntrPrLang.csv | 14 |
130
+ | `lu_transcribers` | Loaded from tblLookupTranscribers.csv | 14 |
131
+ | `lu_case_type` | Case type codes | 13 |
132
+ | `lu_dec_code` | Loaded from tblDecCode.csv | 12 |
133
+ | `lu_filing_method_party` | Loaded from tblLookupFiling_Method_Party.csv | 10 |
134
+ | `lu_filed_by` | Loaded from tblLookupFiledBy.csv | 9 |
135
+ | `lu_comment_type_board` | Loaded from tblLookupCommentTypeBoard.csv | 9 |
136
+ | `lu_contact_change` | Loaded from tblLookupContactChange.csv | 9 |
137
+ | `lu_torture_conv_id` | Loaded from tblTortureConvID.csv | 8 |
138
+ | `lu_ins_clock_entry_status` | Loaded from tblLookup_INS_Clock_Entry_Status.csv | 8 |
139
+ | `lu_3_mbr_referred_reason` | Loaded from tblLookup3MbrReferredReason.csv | 7 |
140
+ | `lu_category` | Loaded from tbllookup_Category.csv | 7 |
141
+ | `lu_vote` | Loaded from tblLookupVote.csv | 7 |
142
+ | `lu_juvenile` | Loaded from tblLookup_Juvenile.csv | 6 |
143
+ | `lu_service_method` | Loaded from tblLookupService_Method.csv | 6 |
144
+ | `lu_case_priority` | Loaded from tblLookup_CasePriority.csv | 6 |
145
+ | `lu_fee_status` | Loaded from tblLookupFeeStatus.csv | 5 |
146
+ | `lu_consulted_with` | Loaded from tblLookupConsultedWith.csv | 5 |
147
+ | `lu_biadecision_type` | Loaded from tblLookupBIADecisionType.csv | 5 |
148
+ | `lu_in_tr_pr_agenda` | Loaded from tblLookupInTrPrAgenda.csv | 5 |
149
+ | `lu_fed_court_decision` | Loaded from tblLookupFedCourtDecision.csv | 4 |
150
+ | `lu_oaresponse` | Loaded from tblLookupOAResponse.csv | 4 |
151
+ | `lu_components` | Loaded from tblLookupComponents.csv | 4 |
152
+ | `lu_filing_method` | Loaded from tblLookupFiling_Method.csv | 4 |
153
+ | `lu_final_disposition` | Loaded from tblLookupFinalDisposition.csv | 4 |
154
+ | `lu_claimed_issue` | Loaded from tblLookupClaimedIssue.csv | 4 |
155
+ | `lu_custody_status` | Custody status codes | 3 |
156
+ | `lu_fee_type` | Loaded from tblLookupFeeType.csv | 3 |
157
+ | `lu_allegation_stmt` | Loaded from tblLookUpAllegationStmt.csv | 3 |
158
+ | `lu_region` | Loaded from tblLookupRegion.csv | 2 |
159
+ | `lu_sex` | Loaded from tblLookupSex.csv | 2 |
160
+ | `lu_in_tr_pr_lang_group` | Loaded from tblLookupInTrPrLangGroup.csv | 2 |
161
+ | `lu_fed_court_remand_to` | Loaded from tblLookupFedCourtRemandTo.csv | 2 |
162
+
163
+ ## Data Source
164
+
165
+ [EOIR FOIA Library](https://www.justice.gov/eoir/foia-library-0) -- updated monthly by the Executive Office for Immigration Review (U.S. Department of Justice). This is public domain U.S. government data.
166
+
167
+ ## License
168
+
169
+ Database build code: MIT. Underlying data: public domain (U.S. government work).
170
+
171
+ ## GitHub
172
+
173
+ Full source code, build instructions, and example analyses: [github.com/ian-nason/eoir-database](https://github.com/ian-nason/eoir-database)