Query Library
Choose a question from a business process, then browse the same business topics used in Reports and Analytics. Each query appears once, with its objective, output grain, source tables, expandable SQL, and original-file download together.
Start with the guided paths below for a connected investigation, or search by question or table and select a business topic. Expand Interpret these results for topic-specific accounting guidance and Anomaly coverage where available. The guided query paths connect statement reconciliation and CAPEX steps without duplicating query cards.
Guided Paths and Query Catalog
Guided Query Paths
Follow these sequences when the question requires several linked queries. Each step links to its query in the catalog below.
Financial Statement Reconciliation Path
This sequence follows the statement tie from annual net income into retained earnings, then narrows into revenue reconciliation when the statement view and the operational view stop matching. Work through the queries in order so the bridge stays connected from statement to ledger to source document.
- Annual Income to Equity Bridge
Start with the annual statement tie between net income, retained earnings, and the balance-sheet residual.
- Post Close Profit and Loss Leakage Review
Then confirm that no revenue, expense, or
8010balances remain open after the close. - Round Dollar Manual Journal Close Sensitivity Review
Use this sensitivity review only when a custom anomaly profile or manual edit leaves unexplained residuals after close.
- Annual Net Revenue Bridge
Then move account by account into annual net revenue.
- Invoice Revenue Cutoff Exception Summary
Open the cutoff summary when annual net revenue does not tie from source documents into the GL.
- Invoice Revenue Cutoff Exception Trace
Then inspect the affected invoice lines, shipment lines, and revenue GL rows in detail.
CAPEX and Fixed Asset Path
This sequence starts in the fixed-asset subledger, then ties the asset lifecycle back into manufacturing cost, debt cash flows, and the budget roll-forward. Work through it in order so students keep the operational document chain separate from depreciation, note financing, and disposal accounting.
- Fixed Asset Rollforward by Behavior Group
Start with the monthly rollforward by behavior group so manufacturing, warehouse, and office assets stay separated.
- Capex Acquisitions Financing and Disposals
Then trace the lifecycle events behind each addition, financing choice, and disposal.
- Debt Amortization and Cash Impact
Use the debt schedule next so principal, interest, and cash timing are explicit.
- Manufacturing Cost Component Bridge
Then connect manufacturing-equipment depreciation back into manufacturing clearing and conversion cost.
- Cash Flow Statement Indirect Monthly
Use the indirect cash flow statement to show how CAPEX moves into investing cash while note activity moves into financing cash.
- Pro Forma Cash Flow Indirect Monthly
Finish with the pro forma cash flow to compare the explicit CAPEX and note schedule with the budget roll-forward.
All Queries
Showing 170 of 170 queries
Statements and Cash
Reconcile statements and close entries, explain cash and working capital, and trace accruals, assets, and debt.
Connect the evidence: Journals and Close · Accounting core tables · Estimate and settlement practice · Profit, cash, and close case
Interpret these results
- Working-capital analysis gets stronger when students separate balances from timing.
- Accrued-expense analysis should focus on
2040,PurchaseInvoiceLine.AccrualJournalEntryID, the service-item lines that settle finance-managed estimates, and the outbound-freight accrual and settlement pattern created fromShipment.FreightCost. - Year-end close entries are real posted journals and should be filtered when you want raw multi-year P&L activity.
- The income-statement starter queries use pre-close P&L activity, so they exclude the year-end close journals that zero out revenue and expense accounts.
- The balance-sheet starter queries are point-in-time ending-balance statements, not monthly activity reports.
- The balance-sheet starter queries derive
Current Year Earningsfor interim periods so assets continue to tie to liabilities plus equity before the annual close moves earnings into retained earnings. - The indirect-method cash flow starter queries reconcile from pre-close net income into operating cash, then combine that with investing and financing cash movements.
- The direct-method cash flow starter queries classify cash-ledger activity into teaching buckets such as customer receipts, supplier payments, payroll, and other operating cash.
- The cash flow starter queries treat opening journals as the
Beginning Cashseed for the first reporting period instead of showing them as operating, investing, or financing flows. - Warehouse and office fixed-asset depreciation debits
6130, which keeps those assets in operating expense even when they share the same broad fixed-asset lifecycle controls as plant equipment. - CAPEX additions, note-financing reclasses, debt payments, and disposals now sit in the same financial-analysis path, so students can reconcile the asset register to investing cash, financing cash, and gain-or-loss activity.
- The budget model starts from
BudgetLine, so students can move from forecast, planned price, standard cost, payroll, and timing assumptions into the summaryBudgettable and the pro forma statements.
Trial Balance by Period
Journal and Close Cycle Review
Control Account Reconciliation
Accrued Expense Rollforward
Accrued vs Invoiced vs Paid Timing
Retained Earnings and Close Entry Impact
Working Capital Bridge by Month
Cash Conversion Timing Review
Income Statement Monthly
Income Statement Quarterly
Income Statement Annual
Balance Sheet Monthly
Balance Sheet Quarterly
Balance Sheet Annual
Cash Flow Statement Indirect Monthly
Cash Flow Statement Indirect Quarterly
Cash Flow Statement Indirect Annual
Cash Flow Statement Direct Monthly
Cash Flow Statement Direct Quarterly
Cash Flow Statement Direct Annual
Annual Income to Equity Bridge
Post Close Profit and Loss Leakage Review
Round Dollar Manual Journal Close Sensitivity Review
Pro Forma Income Statement Monthly
Pro Forma Balance Sheet Monthly
Pro Forma Cash Flow Indirect Monthly
Budget vs Actual Statement Bridge Monthly
Budget vs Actual Working Capital and Cash Bridge
Fixed Asset Rollforward by Behavior Group
Capex Acquisitions Financing and Disposals
Debt Amortization and Cash Impact
Budget vs Actual by Cost Center
Cost Center Activity Summary
Cutoff and Timing Analysis
Over Under Accrual Review
Accrued Service Settlement Exception Review
Sales and Customers
Investigate revenue, pricing, product margins, service billing, customer balances, commissions, and related controls.
Connect the evidence: Order-to-Cash · Sales and customer tables · Customer settlement practice · Customer account case · Design Services
Interpret these results
- Revenue posts at invoicing. COGS posts at shipment.
CashReceiptdoes not equal settled AR by itself. UseCashReceiptApplication.- Explicit price-list, promotion, and override lineage lets students analyze revenue and margin against commercial rules.
- The richer item master now supports collection, style family, lifecycle, and supply-mode financial analysis without changing the underlying posting model.
- Customer deposits and unapplied cash analysis should start from
CashReceiptandCashReceiptApplication, alongside AR. - Sales commission analysis should start from
SalesInvoiceLine.LineTotal, then traceSalesCommissionAccrual,SalesCommissionAdjustment,SalesCommissionPaymentLine, andSalesCommissionPaymentinto2034and6290. - Supply mode changes the meaning of cost analysis. Manufactured items can support both absorption and contribution-margin work because fixed overhead is stored separately.
- Portfolio mix and profitability should be read together with service-level measures such as fill rate, shipment lag, and return pressure.
- The dataset includes commercial-pricing coverage, so students can compare list price, resolved price-list pricing, promotions, overrides, and net realized margin without introducing a separate quote system.
- Sales commissions are modeled as a separate selling-cost subledger, so students can compare commission expense by rep, segment, and revenue type without mixing it into payroll.
- Pricing-control review should distinguish price-list master-data failures from transaction-level override and promotion-use failures.
Monthly Revenue and Gross Margin
AR Aging Open Invoices
Customer Credit and Refunds
Customer Deposits and Unapplied Cash Aging
Revenue and Gross Margin by Collection Style Lifecycle Supply Mode
Price Realization vs List by Segment Customer Region Collection Style
Gross Margin Impact of Promotions vs Nonpromotion Sales
Annual Net Revenue Bridge
Invoice Revenue Cutoff Exception Summary
Invoice Revenue Cutoff Exception Trace
Monthly AR Aging Detail
Monthly AR Aging Summary
Design Service Revenue and Billed Hours by Customer Month
Sales Commission Payable Rollforward
Sales Mix by Customer Region Item Group
Basic Product Profitability
Absorption vs Contribution Margin
Manufactured vs Purchased Margin Comparison
Backorder Fill Rate and Shipment Lag
Returns and Refund Impact by Customer and Item
Sales Margin by Collection Style Material
Product Portfolio Mix by Collection Style Lifecycle Supply Mode
Contribution Margin by Collection Material Lifecycle Supply Mode
Customer Service Impact by Collection Style
Portfolio Return Refund Impact by Collection Lifecycle
Sales Rep Override Rate and Discount Dispersion
Collection Revenue Margin Before After Promotions
Customer Specific Pricing Concentration and Dependency
Monthly Price Floor Pressure and Override Concentration
Budget vs Actual Revenue Price Volume Cost Bridge
Design Service Engagement Utilization and Labor Margin
Sales Commission Expense by Rep Segment
O2C Document Chain Completeness
Backorder and Return Review
Customer Deposits and Unapplied Cash Exception Review
Sales Below Floor without Approval
Anomaly coverage
Review focus: price-floor review
Expected anomaly types: sale_below_price_floor_without_approval, missing_price_override_approval
Trace flagged rows to their source documents before concluding that a control failed.
Expired or Overlapping Price List Review
Anomaly coverage
Review focus: price-list validity review
Expected anomaly types: expired_price_list_used, overlapping_active_price_list
Trace flagged rows to their source documents before concluding that a control failed.
Promotion Scope and Date Mismatch Review
Anomaly coverage
Review focus: promotion-scope review
Expected anomaly types: promotion_outside_effective_dates
Trace flagged rows to their source documents before concluding that a control failed.
Customer Specific Price List Bypass Review
Anomaly coverage
Review focus: customer-price review
Expected anomaly types: customer_specific_price_bypass
Trace flagged rows to their source documents before concluding that a control failed.
Override Approval Completeness Review
Anomaly coverage
Review focus: override-approval review
Expected anomaly types: missing_price_override_approval, sale_below_price_floor_without_approval
Trace flagged rows to their source documents before concluding that a control failed.
Design Service Approved vs Billed Hours Review
O2C Line Trace Order Shipment Invoice
O2C Source to GL Trace
Purchasing and Inventory
Trace purchasing and supplier settlement, compare inventory and supply reliability, and review AP and item-master exceptions.
Connect the evidence: Procure-to-Pay · Purchasing tables · Receipt-to-payable practice · Supplier obligations case
Interpret these results
- Forecast, policy, and replenishment tables support planning-informed working-capital and inventory-timing analysis.
- The item master supports collection, style family, material, finish, color, lifecycle, and supply-mode analysis inside the existing
Itemtable. - Item-master review should distinguish current-state lifecycle and launch-date logic from operational usage timing.
AP Aging Open Invoices
Monthly AP Aging Detail
Monthly AP Aging Summary
Inventory Movement by Item and Warehouse
Purchasing Activity by Supplier Category
Supplier Lead Time and Receipt Reliability
Inventory Coverage and Projected Stockout Risk
Expedite Pressure by Item Family and Month
Supply Plan Driver Mix by Collection and Supply Mode
P2P Document Chain Completeness
Duplicate Payment Reference Review
Anomaly coverage
Review focus: AP payment review
Expected anomaly types: duplicate_vendor_payment_reference, duplicate_supplier_invoice_number
Trace flagged rows to their source documents before concluding that a control failed.
Duplicate AP Reference Detail Review
Anomaly coverage
Review focus: AP duplicate-reference review
Expected anomaly types: duplicate_vendor_payment_reference, duplicate_supplier_invoice_number
Trace flagged rows to their source documents before concluding that a control failed.
Item Master Completeness Review
Anomaly coverage
Review focus: item-master completeness review
Expected anomaly types: missing_item_catalog_attribute
Trace flagged rows to their source documents before concluding that a control failed.
Discontinued or Prelaunch Item Activity Review
Anomaly coverage
Review focus: item-lifecycle review
Expected anomaly types: discontinued_item_in_new_activity, prelaunch_item_in_new_activity
Trace flagged rows to their source documents before concluding that a control failed.
Item Status Alignment Review
Anomaly coverage
Review focus: item-status alignment review
Expected anomaly types: item_status_alignment_conflict
Trace flagged rows to their source documents before concluding that a control failed.
Inactive or Stale Inventory Policy Review
Anomaly coverage
Review focus: inventory-policy review
Expected anomaly types: inactive_policy_for_active_item
Trace flagged rows to their source documents before concluding that a control failed.
Recommendation Converted After Need by Date Review
Anomaly coverage
Review focus: recommendation-timing review
Expected anomaly types: late_recommendation_conversion
Trace flagged rows to their source documents before concluding that a control failed.
P2P Invoice Line Trace Receipt vs Accrual
P2P Accrual Journal Invoice Payment GL Trace
Production and Planning
Connect forecasts, material requirements, capacity, work orders, manufacturing cost, and production-control evidence.
Connect the evidence: Manufacturing · Production tables · Manufacturing cost practice · Production cost case
Interpret these results
- Manufacturing-equipment depreciation debits
1090Manufacturing Cost Clearing, so it belongs in manufacturing-cost interpretation rather than warehouse or office operating expense review. - The dataset includes a weekly planning layer, so students can compare forecast, policy, recommendation, and rough-cut capacity pressure before execution starts.
- The current manufacturing model is still a foundation. It supports operations, labor, and contribution-margin analysis without switching inventory valuation to actual cost.
- Demand-planning analysis is most useful when students connect
DemandForecast,InventoryPolicy,SupplyPlanRecommendation,MaterialRequirementPlan, andRoughCutCapacityPlanin one analytical path.
Manufacturing WIP Clearing Variance
Manufacturing Cost Component Bridge
Forecast vs Actual Demand by Week Item Group Collection Lifecycle
Recommendation Conversion by Type Priority Planner
BOM Standard Cost Rollup
Work Order Throughput by Month
Material Usage and Scrap Review
Production Completion and FG Availability
Manufacturing Variance by Month Item Group
Direct Labor by Work Order and Employee Class
Unit Cost Bridge Dm Dl Varoh Fixedoh
Labor Efficiency and Rate Variance
Routing Master Review
Work Center Activity and Operation Hours
Daily Load vs Capacity
Monthly Work Center Utilization
Operation Delay and Bottleneck Review
Backlog Aging by Work Center
Rough Cut Capacity Load vs Available Hours
Forecast Error and Bias by Collection Style Family
Missing BOM or Supply Mode Conflict
Over Issue and Open WIP Review
Work Order Close Timing Review
Missing Routing or Operation Link Review
Anomaly coverage
Review focus: manufacturing linkage review
Expected anomaly types: missing_work_order_operations, invalid_direct_labor_operation_link
Trace flagged rows to their source documents before concluding that a control failed.
Operation Sequence and Final Completion Review
Anomaly coverage
Review focus: operation sequence review
Expected anomaly types: overlapping_operation_sequence, completion_before_operation_end
Trace flagged rows to their source documents before concluding that a control failed.
Schedule on Nonworking Day Review
Anomaly coverage
Review focus: capacity-calendar review
Expected anomaly types: scheduled_on_nonworking_day
Trace flagged rows to their source documents before concluding that a control failed.
Over Capacity Day Review
Anomaly coverage
Review focus: capacity review
Expected anomaly types: overbooked_work_center_day
Trace flagged rows to their source documents before concluding that a control failed.
Completion Before Scheduled Operation End
Anomaly coverage
Review focus: schedule-completion review
Expected anomaly types: completion_before_operation_end
Trace flagged rows to their source documents before concluding that a control failed.
Labor Outside Scheduled Operation Window Review
Anomaly coverage
Review focus: labor timing review
Expected anomaly types: labor_after_operation_close
Trace flagged rows to their source documents before concluding that a control failed.
Forecast Approval and Override Review
Anomaly coverage
Review focus: forecast-governance review
Expected anomaly types: missing_forecast_approval, forecast_override_outlier
Trace flagged rows to their source documents before concluding that a control failed.
Requisitions and Work Orders without Planning Support
Anomaly coverage
Review focus: planning-support review
Expected anomaly types: purchase_requisition_without_plan, work_order_without_plan
Trace flagged rows to their source documents before concluding that a control failed.
Discontinued or Prelaunch Planning Activity Review
Anomaly coverage
Review focus: planning-lifecycle review
Expected anomaly types: inactive_policy_for_active_item, missing_forecast_approval, forecast_override_outlier, late_recommendation_conversion
Trace flagged rows to their source documents before concluding that a control failed.
Released Work Orders Due without Actual Start Review
Released Work Orders Due without Actual Start Summary
Manufacturing Work Order Operation Trace
Manufacturing Work Order Close GL Trace
People and Payroll
Follow workforce structure, rosters, punches, approved time, labor allocation, payroll, and employee-validity controls.
Connect the evidence: Payroll · Payroll and time tables · Hours-to-payroll practice · Staffing and payroll case
Interpret these results
- Payroll register activity records liabilities first; cash leaves through payroll payments and remittances later.
- The richer employee master now supports job-family, job-level, and people-cost review without requiring a separate HR-history subledger.
- The employee master supports work location, job family, job level, employment status, and current-state active analysis without a separate HR-history model.
- Work location and cost center answer different questions. Use both when students compare workforce structure to payroll or labor usage.
- Workforce-planning analysis compares rostered hours, approved worked hours, absences, raw punches, and overtime approvals while retaining their different source grains.
- Employee-master review should distinguish current-state
IsActivefrom historical validity driven byHireDateandTerminationDate.
Payroll Liability Rollforward
Gross to Net Payroll Review
Payroll Cash Payments and Remittances
Hourly Payroll Hours to Paid Earnings Bridge
Payroll Expense Mix by Cost Center and Pay Class
Payroll and People Cost Mix by Cost Center Job Family Level
Shift Adherence and Overtime by Work Center
Approved Clock Hours vs Labor Allocation
Paid Hours vs Productive Labor by Work Center
Headcount by Cost Center Job Family Status
Labor and Headcount by Work Location Job Family Cost Center
Staffing Coverage vs Work Center Planned Load
Rostered vs Worked Hours by Work Center Shift
Absence Rate by Work Location Job Family Month
Overtime Approval Coverage and Concentration
Punch to Pay Bridge for Hourly Workers
Late Arrival Early Departure by Shift Department
Payroll Control Review
Anomaly coverage
Review focus: payroll settlement review
Expected anomaly types: missing_payroll_payment, payroll_payment_before_approval
Trace flagged rows to their source documents before concluding that a control failed.
Labor Time After Close and Paid without Time
Anomaly coverage
Review focus: labor support review
Expected anomaly types: labor_after_operation_close, paid_without_clock
Trace flagged rows to their source documents before concluding that a control failed.
Time Clock Exceptions by Employee Supervisor Work Center
Anomaly coverage
Review focus: attendance exception review
Expected anomaly types: missing_clock_out, duplicate_time_clock_day, off_shift_clocking
Trace flagged rows to their source documents before concluding that a control failed.
Paid without Clock and Clock without Pay Review
Anomaly coverage
Review focus: payroll-time reconciliation
Expected anomaly types: paid_without_clock, missing_clock_out
Trace flagged rows to their source documents before concluding that a control failed.
Time Clock Payroll Labor Bridge Review
Anomaly coverage
Review focus: workforce bridge review
Expected anomaly types: paid_without_clock, missing_clock_out, labor_after_operation_close
Trace flagged rows to their source documents before concluding that a control failed.
Terminated Employee Activity Review
Anomaly coverage
Review focus: employment validity review
Expected anomaly types: terminated_employee_on_payroll, terminated_employee_approval, inactive_employee_time_or_labor
Trace flagged rows to their source documents before concluding that a control failed.
Terminated Employee Activity Rollup by Process Area
Anomaly coverage
Review focus: employment rollup review
Expected anomaly types: terminated_employee_on_payroll, terminated_employee_approval, inactive_employee_time_or_labor
Trace flagged rows to their source documents before concluding that a control failed.
Current State Employee Assignment Review
Anomaly coverage
Review focus: assignment ownership review
Expected anomaly types: inactive_employee_current_assignment
Trace flagged rows to their source documents before concluding that a control failed.
Scheduled without Punch and Punch without Schedule Review
Anomaly coverage
Review focus: roster-punch review
Expected anomaly types: punch_without_roster, missing_final_punch
Trace flagged rows to their source documents before concluding that a control failed.
Overtime without Approval Review
Anomaly coverage
Review focus: overtime approval review
Expected anomaly types: overtime_without_approval
Trace flagged rows to their source documents before concluding that a control failed.
Absence with Worked Time Review
Anomaly coverage
Review focus: absence-time conflict review
Expected anomaly types: absence_with_worked_time
Trace flagged rows to their source documents before concluding that a control failed.
Overlapping or Incomplete Punch Review
Anomaly coverage
Review focus: punch-sequence review
Expected anomaly types: missing_final_punch, overlapping_punch_sequence
Trace flagged rows to their source documents before concluding that a control failed.
Roster After Termination Review
Anomaly coverage
Review focus: post-termination roster review
Expected anomaly types: roster_after_termination
Trace flagged rows to their source documents before concluding that a control failed.
Controls and Exceptions
Review cross-process approvals, role assignments, authority limits, segregation of duties, and broad anomaly screening.
Connect the evidence: Process responsibilities and controls · Source traceability · BPMN and controls workshop · Exceptions and controls case
Interpret these results
- The published default SQLite is anomaly-enriched when
anomaly_modeisstandard, so it is useful for teaching comparisons but not as the clean baseline for database-integrity reconciliation. - Exception-oriented queries are designed to return reviewable control patterns from the published dataset.
- The GL remains balanced even when audit queries identify exceptions.
- Source-table tracing should remain the final step in explaining each exception pattern.
Approval and SOD Review
Potential Anomaly Review
Anomaly coverage
Review focus: broad control screening
Expected anomaly types: weekend_journal_entry, same_creator_approver, same_creator_approver_journal, missing_approval, invoice_before_shipment, duplicate_vendor_payment_reference
Trace flagged rows to their source documents before concluding that a control failed.
Approval Role Review by Org Position
Executive Role Uniqueness and Control Assignment Review
Anomaly coverage
Review focus: executive-role review
Expected anomaly types: duplicate_executive_title_assignment
Trace flagged rows to their source documents before concluding that a control failed.
Approval Authority Review by Expected Role Family
Anomaly coverage
Review focus: approval-role review
Expected anomaly types: unexpected_role_family_approval
Trace flagged rows to their source documents before concluding that a control failed.
Approval Authority Limit Review
Anomaly coverage
Review focus: authority-limit review
Expected anomaly types: approval_above_authority_limit, unexpected_role_family_approval
Trace flagged rows to their source documents before concluding that a control failed.
Search and topic selections are kept in the URL for classroom links and Back/Forward recovery. A direct query link reveals the destination even if the current filters would hide it. If SQL cannot load, use Retry SQL or download its original file.
Build Your Analysis
For accounting SQL practice, begin with connecting records to examine join keys and row grain, then finding accounting entries to trace source documents into GLEntry. These lessons prepare you to adapt the catalog examples without treating every matching row as independent evidence.
Start with the SQL Guide for a first query or Learn and Practice for a focused evidence trace. The cases provide structured investigations and assessed outputs.
Before comparing results, define the fiscal period, source population, row grain, sign convention, and filters. Keep the source records unchanged. Align dates and populations, retain document keys, and distinguish an exception flag from a supported accounting or control conclusion. The Schema Reference and Posting Reference support the final source-to-ledger check.