Query Understanding Reports

See a real Query Understanding report.

This sample is rendered from the same workspace-backed Explain artifact DV Quick Run generates from VS Code. It shows how Understanding Engine v2.2 turns Dataverse query structure into investigation narrative, technical truth, persona, scorecard, positive findings, smells, recommendations, and clause-level evidence.

Real Explain artifact

Rendered from DVQR-Explain-account-sample.md

The website does not recreate this report as marketing copy. It renders the generated Explain output so the preview stays close to the evidence artifact users save, review, and share from DV Quick Run.

Investigation Narrative

Explains what the query is trying to do, how mature it is, and what an investigator should check next.

Technical Truth

Preserves exact query facts: target, clauses, selected fields, filters, ordering, limits, traversal shape, and returned shape.

Investigation Persona

Classifies the query as discovery, validation, evidence capture, audit verification, relationship inspection, sampling, automation, export, or bulk-processing oriented.

Investigation Scorecard

Reviews evidence quality, repeatability, payload efficiency, verification readiness, and automation suitability without creating an aggregate truth score.

Positive Findings

Highlights strengths such as focused projection, bounded sampling, useful filters, or deterministic ordering where present.

Investigation Smells

Calls out review risks such as broad retrieval, weak evidence, missing ordering, unbounded sampling, large payloads, or comparison instability.

.dvforgelab/dvqr/explain/DVQR-Explain-account-sample.md
Explain Preview

DV Quick Run - Explain Query

Explain Result

  • Understanding Engine: v2.2
  • Understanding Document: 2.2
  • Subject: odata
  • Confidence: Medium
  • Entity: account

Understanding Document

  • Narrative layer: Investigation Narrative
  • Technical layer: Technical Truth
  • Boundary: narrative may explain the query, but technical truth remains tied to the parsed query.

Technical Truth

  • Target entity set: accounts
  • Logical table: account
  • Operation: retrieve multiple records
  • Selected columns: accountcategorycode, accountclassificationcode, accountid, accountnumber, accountratingcode
  • Row limit: 10
  • Filter: none
  • Ordering: none
  • Expansion: none

Investigation Persona

  • Primary persona: Discovery
  • Secondary posture: Sampling
  • Why: the query retrieves a bounded, focused shape without a filter or deterministic ordering.

Investigation Scorecard

  • Evidence Quality: Medium
  • Repeatability: Medium-Low because no $orderby is present.
  • Payload Efficiency: Good because the projection is narrow.
  • Verification Readiness: Medium because the query is easy to inspect but not targeted.
  • Automation Suitability: Low until filtering and ordering are added.

Positive Findings

  • Focused projection keeps the returned payload reviewable.
  • $top=10 keeps discovery bounded during early inspection.
  • The selected columns appear suitable for account classification and identity review.

Investigation Smells

  • Broad retrieval: no $filter is present, so the result does not answer a specific operational question.
  • Missing ordering: repeated runs may return a different row order.
  • Weak evidence: without execution evidence, DVQR can explain the query shape but not validate returned rows.

Investigation Summary

This appears to be a lightweight inspection query for account records. It deliberately requests 5 columns instead of a full entity payload, which usually indicates browsing, validation, or focused investigation rather than complete export. No filter is applied, so the query is sampling from the available record set rather than targeting a specific condition. No explicit ordering is present, so repeated executions may not be directly comparable. The 10-row limit keeps the result bounded while the query shape is being validated. Overall this query is appropriate for discovery and validation, but should usually be refined before being relied upon as investigation evidence.

Investigation Stage

  • Current stage: Discovery
  • Suitable for: browsing, validation, and understanding data shape.
  • Not yet ideal for: audit evidence, repeatable comparison, or automation.
  • Suggested next stage: narrow the question with a filter or ordering rule before relying on the result as evidence.

Investigation Profile

  • Pattern: Inspection Query
  • Primary purpose: Discovery
  • Evidence strength: Medium
  • Repeatability: Medium
  • Payload size: Lightweight
  • Relationship context: None detected
  • Suggested next step: Add a filter before capturing evidence for a specific operational question.

Confidence Assessment

  • Overall confidence: Medium
  • DVQR can explain the main query shape, but some context is unavailable or advisory, so the assessment should be treated as guided interpretation rather than complete certainty.

Why confidence is Medium:

  • Query parsed: The query shape was parsed into recognised OData clauses.
  • Projection analysed: Selected columns were recognised and used to explain the intended payload shape.
  • Filter boundary assessed: The presence or absence of a filter was used to assess investigation focus.
  • Execution evidence unavailable: The assessment explains query shape but cannot compare it with a recent observed execution.

To increase confidence:

  • Run the query once so DVQR can compare the parsed shape with observed rows and timing.

Operational Implications

  • Without explicit $orderby, repeated executions may return different rows or ordering, which weakens comparisons and screenshots as evidence.
  • Because no $filter is applied, the result is exploratory rather than evidence for a specific condition.
  • Only projected columns are available downstream, so missing fields may require a follow-up query rather than being inferred from this result.
  • The row limit keeps the first pass reviewable; treat the result as a bounded sample, not a complete export.

Things Worth Verifying

  • If deterministic paging, screenshots, or cross-run comparison are required, add an explicit $orderby.
  • Confirm that discovery is the goal; add $filter if the investigation is meant to test a narrower operational question.
  • Confirm the $top value is large enough to answer the current question but small enough to keep review noise low.

Investigation Pattern

Investigator's Mental Model

This query follows a common investigation pattern: retrieve a focused shape, inspect what comes back, narrow the question, validate the result, and only then capture evidence.

Typical workflow: Retrieve → Inspect → Narrow → Validate → Capture Evidence

  • Projection teaches intent. The query requests 5 selected columns, which makes the evidence payload narrower and easier to review.
    • Why it matters: A projection tells the next reader which fields matter to the investigation instead of forcing them to interpret a full record payload.
    • Use when: Use narrow projections for list views, quick validation, handoff evidence and report-style queries.
    • Trade-off: Fields not selected are unavailable to the caller, so follow-up investigation may require another query or a broader projection.
  • No filter means the query is exploratory. The query samples from the available record set rather than targeting a specific condition.
    • Why it matters: Exploratory reads are useful for discovering data shape, but they are weaker evidence for a specific operational question.
    • Use when: Use broad retrieval when discovering available records or validating the basic shape of an entity.
    • Trade-off: Without a filter, returned rows may be representative samples rather than evidence for a specific record or condition.
  • Ordering is a repeatability concern. No explicit $orderby is present, so repeated executions may not be directly comparable.
    • Why it matters: Dataverse collection results do not carry a stable business meaning unless an ordering rule is specified.
    • Use when: Use explicit ordering when results will be paged, compared across runs, used in automation or included as investigation evidence.
    • Trade-off: For quick browsing this may be acceptable, but comparisons and automation usually need deterministic ordering.
  • Row limits are investigation guardrails. $top=10 keeps the first pass bounded while the query shape is being validated.
    • Why it matters: A small bounded result is faster to inspect and easier to preserve as evidence during early investigation.
    • Use when: Use $top for sampling, validation and early investigation before widening the query.
    • Trade-off: A bounded result is a sample, not proof that no other matching records exist beyond the requested page.

Clause Analysis

Raw Query

accounts?$top=10&$select=accountcategorycode,accountclassificationcode,accountid,accountnumber,accountratingcode

Query Intent

  • This looks like a general retrieval query.
  • Projection is used, so the query is intentionally not asking for full rows.

Target

  • Entity set: accounts
  • Logical name: account
  • Operation: Retrieve multiple records

$select

Limits the returned columns to only the requested fields. Fields returned:

  • accountcategorycode
  • accountclassificationcode
  • accountid — Likely an identifier or relationship-linked field.
  • accountnumber
  • accountratingcode

$top

Caps the maximum number of rows returned. Maximum rows requested: 10

Design Notes

  • Collection query shape detected.
  • Uses $select to reduce payload size rather than returning full rows.
  • No $orderby detected, so collection ordering may be implicit.
  • Uses $top to cap result size.

Trust Model

  • Clause explanations are based on parsed OData query structure.
  • Dataverse-specific hints are applied only for recognised patterns and common system fields.
  • Unknown query options are preserved and shown rather than silently ignored.
  • Query Doctor recommendations are advisory and do not claim root cause certainty.

Evidence References

  • Parsed query: Entity set accounts, selected columns 5, expands 0.

Investigation Pipeline

  • ✓ Investigation Summary
  • ✓ Confidence Assessment
  • ✓ Investigation Pattern
  • ✓ Teaching & Best Practices
  • ✓ Query Structure Analysis
  • ✓ Validation & Unknowns
  • ✓ Field Provenance & Relationship Advice
  • ✓ Query Doctor
  • ✓ Execution Evidence
  • ✓ Trust Assessment

This report synthesizes parsed query structure into investigation guidance. Recommendations are advisory, evidence-backed, and do not establish operational authority, root cause, or deployment correctness.

Query Understanding is advisory and evidence-backed. It may narrate investigation intent and recommend verification, but Technical Truth remains tied to the parsed query and available evidence. It does not establish operational authority, deployment correctness, remediation, or root-cause certainty.