skip to content

Analysis / Data engineering and quality

Find orphan records in related business datasets

Find orphan references and unexpected relationship counts across datasets, accounting for permitted retention rules and historical deletions.

A starting point for

Data analyst · Analytics engineer

Bring this question into Chat

Your starting prompt.

Audit relationships between [parent dataset] and [child dataset] for children lacking a valid parent, parents with unexpected child counts and references to inactive records. Apply [relationship rules] and permitted retention exceptions. Show affected counts by source and first observed date, plus sample keys. Prepare an owner review list without deleting or relinking records, and explain where historical deletions prevent a definitive diagnosis.

Copy this starting point, then replace the placeholders with your own inputs.

Method and review

Keep the assumptions visible.

Profile keys, row counts, types, missing values and join cardinality. Retain source lineage and concrete exception records so a correction can be checked.

For this task, check

Retention policies or historical deletions can create expected orphan references.

This starting prompt has no published worked example yet. Begin with a small sample and check the calculations before relying on the result.

Before you begin

  • Bring exports you are allowed to upload, or data your Workspace can already query.
  • Choose the reporting period and agree what each record represents.

Work with permitted files or queryable data. Verify the result against the original records.

Take the next step

Make it your investigation.

Copy the prompt above, create or open your Workspace, and paste it into Chat. Add the inputs you have permission to use and adapt the assumptions with your agent.

Start exploring

Your prompt is carried by copy and paste. Signing up does not submit it or start this work automatically.

Or start with your own agent

The setup prompt includes this public task. Your agent will help you connect when needed and use the access you approve.

Choose Claude, Codex, or Cursor—or copy the prompt to use anywhere.