{ "task_id": "consumerfinance_013", "domain": "CFPB_COMPLAINT_DATABASE", "autonomy_type": "ordered table", "oracle_output_cardinality": 2, "instruction": "I am writing a crypto-complaint concentration memo. To verify whether complaint peaks within a fixed three-year window are driven only by a few top platforms, I need you to step through the CFPB complaint database and extract relevant data.\n\nFirst, define the underlying data scope. Using the current CFPB complaint form product taxonomy, determine which product bucket Virtual currency currently falls under. Once the bucket is confirmed, strictly limit the time range to 2019-08-26 through 2022-08-26 and retain only complaint records classified under the Virtual currency subcategory within that product bucket. This forms the initial cohort.\n\nSecond, identify two characteristic peak months within this cohort. Step 1: Aggregate complaints by month across the full cohort (with no companies removed) and identify the original peak month (AllCompanies). Step 2: Identify the top two companies by complaint count in that original peak month. Remove all complaint records of these two companies from the entire three-year cohort (not just from the single peak month). Then re-aggregate complaints by month on the remaining data to find the residual peak month (ResidualAfterTop2).\n\nThird, for each of these two peak months, extract detailed data. For each cluster, obtain the total complaint count for that month, the names of the two excluded top companies, and their combined complaint count in the original peak month. Also identify the state with the highest complaint count in that feature month and its complaint count, the most complained-about company within that state and its complaint count, and the full details of the earliest complaint received by that company in that state during that feature month (including Complaint ID, date, Issue, and Sub-issue).\n\nFinally, after completing all the above steps, format the two sets of core parameters into a single string with no spaces. The two rows must be ordered AllCompanies first, ResidualAfterTop2 second. The field order for each row is fixed as: ||||||||||||. To ensure a unique answer: output the two records in AllCompanies then ResidualAfterTop2 order; list ExcludedTop2Companies in descending order of their complaint count in the original peak month, breaking ties alphabetically; for any tie in sorting indicators, sort by field value in ascending alphabetical order; if the earliest complaint date is tied, select the one with the smallest Complaint ID.", "start_url": "https://www.consumerfinance.gov/data-research/consumer-complaints/", "output_format": "Output the two rows in AllCompanies first, ResidualAfterTop2 second order, joined into a formatted string with no spaces. The field order for each row is fixed as: ||||||||||||.", "oracle_answer": "AllCompanies|2021-05|336|Coinbase, Inc.+BAM Management US Holdings Inc.|226|CA|58|Coinbase, Inc.|21|4341451|2021-05-01|Money was not available when promised|NONE,ResidualAfterTop2|2020-06|180|Coinbase, Inc.+BAM Management US Holdings Inc.|226|OH|28|PNC Bank N.A.|22|3687376|2020-06-07|Other transaction problem|NONE", "metadata": { "State-Gated Retrieval": [ "Only consider Complaint Database records under the current product bucket for Virtual currency subcategory, with a received date between 2019-08-26 and 2022-08-26.", "First determine the AllCompanies original peak month, then identify the top two companies by complaint count in that peak month.", "These two companies must be removed entirely from the full three-year cohort, then recompute the residual peak month and all downstream fields based on the remaining cohort." ], "dependency_type": "Data + Control", "intra_chain": true, "inter_chain": true, "data_dependency": [ "current complaint-form taxonomy yields the product bucket for Virtual currency", "complaint records within the fixed three-year cohort yield the all-company peak month, per-month top companies, and residual-cohort recomputations after company removal", "final rows are produced only after the top-2 companies from the original peak month are removed from the full cohort and downstream aggregates are computed on the resulting cohort" ], "control_dependency": [ "peak-month top companies must be removed from the entire cohort, not only from the original peak month", "residual peak detection must be computed from the rewritten cohort rather than by local patching of the original month", "downstream state / company / earliest-complaint fields are valid only after the global company-removal step is locked" ], "freeze": { "historical_window": "Complaint Database records received from 2019-08-26 through 2022-08-26 under the current product-bucket mapping for Virtual currency" }, "answer_type": "multi-row ordered table" }, "rubric": { "inclusion_conditions": [ "Only consider Complaint Database records under the current product bucket for Virtual currency subcategory, with a received date between 2019-08-26 and 2022-08-26.", "First determine the AllCompanies original peak month, then identify the top two companies by complaint count in that peak month.", "These two companies must be removed entirely from the full three-year cohort, then recompute the residual peak month and all downstream fields based on the remaining cohort." ], "exclusion_conditions": [ "Exclude results that only locally delete top-2 company records from the original peak month.", "Exclude results that do not write the top-2 company set back into the full cohort before recomputing the residual peak.", "Exclude results that use downstream state, company, or earliest complaint fields computed from a cohort that has not been recomputed after removal." ], "normalization": { "field_separator": "|", "record_separator": ",", "schema": [ "Cluster", "Month", "MonthComplaints", "ExcludedTop2Companies", "ExcludedTop2PeakMonthComplaints", "TopState", "StateComplaints", "TopCompany", "CompanyComplaints", "EarliestComplaintID", "EarliestDate", "Issue", "SubIssue" ], "cluster_order": [ "AllCompanies", "ResidualAfterTop2" ], "date_format": { "Month": "YYYY-MM", "EarliestDate": "YYYY-MM-DD" }, "ExcludedTop2Companies": "join the two excluded company names with `+` in source-peak complaint-count descending order, breaking ties alphabetically", "TopState": "use the uppercase two-letter state abbreviation", "TopCompany": "use the company display name as shown in the source data", "tie_breaks": "for the earliest complaint use EarliestDate ascending then Complaint ID ascending", "SubIssue": "emit `NONE` when the complaint row has no sub-issue value" } } }