A familiar metric name can hide different questions
OpenAI documents GPT-6.1 Sol for complex coding and professional work. Here it is used to draft a metric specification; no database execution is implied. This article means the specific gpt-6.1-sol model, not every GPT-6.1 variant. Source: the official model reference.
Weekly active accounts might mean accounts that signed in, created a record, or completed a paid action. Those definitions can produce different results from the same database. A query cannot resolve the business choice by itself.

Prepare the schema and the business rule
Supply table and field definitions, event semantics, timezone, and the reporting period. State whether events are duplicated, whether account IDs can merge, and how internal or test accounts are identified. Never substitute real customer records where a sanitized example is enough.
Illustrative input: account A has two qualifying events in one week; account B has one event; one additional event belongs to an excluded test account. Under a distinct-qualifying-account definition, the expected count is two. This is a fictional fixture. If an approved definition changes after deployment, the release-notes workflow helps describe the affected scope without implying universal availability.
Ask for unresolved choices before SQL
The first response should be a compact specification and a short list of questions that would change the result.
Example prompt:
Define weekly active accounts from the supplied business rule and schema before writing SQL. Specify entity grain, qualifying events, timezone, period boundaries, deduplication, exclusions, and late-event policy. List unresolved decisions without guessing. Then give a tiny test fixture with expected membership and count. Only draft a query after the definition is complete.
Use membership checks to catch misleading totals
A total can look right while including the wrong accounts. Review the expected members of the fictional fixture as well as the count. Ask which event makes each account qualify and which exclusion removes the test account.
Add a boundary case just before the period opens and another at the closing boundary. Agree whether the interval is start-inclusive and end-exclusive. Do not let server timezone defaults decide a reporting rule without review. Use the two-export reconciliation workflow when validating membership or amount differences across data extracts.
Implement and validate in your own environment
Once the business owner approves the definition, request SQL for the named database engine. Have a reviewer inspect joins and filters, then execute it using an approved read-only analysis environment.
If a join duplicates qualifying rows, a distinct count may hide some errors while other calculations remain wrong. Inspect intermediate row counts and record-level examples. Keep the specification version with the query so a later edit does not silently redefine the metric.
Bring the specification into Orlino
If GPT-6.1 Sol is available in your Orlino account, you can use the conversation to refine the specification and review sanitized sample rows. Database connectivity and query execution are separate capabilities that require verification.
When sharing the result, include the approved definition, unresolved caveats, query version, and actual validation output. A generated query is a draft until it has been checked. Before automating recurring analysis, the ChatGPT subscription vs OpenAI API guide helps separate an app workflow from a custom integration.
Frequently asked questions
Should I ask for SQL in the first prompt?
Provide the schema and ask for ambiguous metric choices first. A syntactically valid query can still answer the wrong question.
Does this workflow require a database connector?
No. Definition work can use text and sanitized fixtures. Running the query requires a separate approved environment or supported integration.
Sources
Provider information is separate from Orlino account access and plan terms.