subquery-patterns-and-union

Community

Master multi-dataset queries with subqueries

Authorrustomax
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill provides a structured pattern library to build and combine multiple OPAL subqueries using labels, unions, and timeshift, enabling powerful period-over-period comparisons and multi-dataset analysis.

Core Features & Use Cases

  • Subquery syntax: define reusable blocks with @label <- @dataset to organize complex pipelines.
  • Union patterns: merge results from different periods or datasets while preserving comparable columns.
  • Timeshift and alignment: shift data to compare adjacent periods (e.g., current vs previous hour) and align buckets for accurate joins.
  • any_not_null() collapse: collapse sparse union results into a single per-group row.
  • Use Case: perform period-over-period metric comparisons, time-series analysis, and build intermediate results for multi-stage calculations.

Quick Start

Run a simple example: build a current subquery for a metric, a timeshifted previous subquery, union their results and apply aggregation to produce a per-group summary.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: subquery-patterns-and-union
Download link: https://github.com/rustomax/observe-community-mcp/archive/main.zip#subquery-patterns-and-union

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.