bigquery-graph

Generates GQL queries and property graph DDL for BigQuery graph analytics.

Updated Aug 11, 2026
One-click install
npx skills add https://github.com/Yashyasik/zexca-api --skill bigquery-graph-yashyasik
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: bigquery-graph
Source: https://github.com/Yashyasik/zexca-api/tree/main/.gemini/skills/bigquery-graph
Command: npx skills add https://github.com/Yashyasik/zexca-api --skill bigquery-graph-yashyasik

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Writing correct graph queries and property graph schemas in BigQuery requires deep knowledge of GQL syntax, GRAPH_TABLE integration, GRAPH_EXPAND semantics, and schema design pitfalls. This Skill provides the guidelines and references needed to generate valid GQL queries and well-formed CREATE PROPERTY GRAPH DDL without trial and error. ## Core Features & Use Cases - GQL Query Generation: Produces BigQuery GoogleSQL GQL queries with correct pattern matching, path variables, quantifiers, and output formatting for visualization or tabular results. - Semantic Graph Querying: Guides use of the GRAPH_EXPAND table-valued function and the AGG() function for measure columns in semantic graphs. - Graph Schema Design: Assists in writing CREATE PROPERTY GRAPH DDL with scoped properties, safe aliases, key constraints, measures, and metadata options. - Use Case: A data engineer needs to model a fraud-detection network of accounts and transfers. The Skill helps define the property graph DDL with proper node/edge keys, then generates a shortest-path GQL query to trace suspicious multi-hop transfers. ## Quick Start Ask the assistant to write a GQL query that finds the shortest transfer path between two accounts in your BigQuery property graph.

Frequently Asked Questions about bigquery-graph

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write a graph query in BigQuery?▼

Use BigQuery's GoogleSQL GQL syntax with MATCH patterns against a property graph, such as GRAPH project.dataset.graph MATCH (a:Account)-[t:Transfers]->(b:Account) RETURN a.id. Standalone GQL with RETURN is preferred; use GRAPH_TABLE only when you need SQL aggregation or relational joins.

How do I create a property graph in BigQuery?▼

Use the CREATE PROPERTY GRAPH DDL statement, defining NODE TABLES with keys, labels, and scoped properties, plus EDGE TABLES with SOURCE KEY and DESTINATION KEY references. Always assign safe aliases with AS and limit exposed columns via PROPERTIES (col1, col2) for performance.

Does BigQuery GQL support Cypher queries?▼

No. BigQuery graph analytics exclusively supports the BigQuery GoogleSQL GQL standard, which implements the ISO GQL standard. Cypher queries are not supported and must never be generated for BigQuery property graphs.

How do I query a semantic graph in BigQuery?▼

Query semantic graphs using the GRAPH_EXPAND table-valued function with the full graph name string, never as a regular table. Measure columns marked with is_measure=TRUE must be wrapped in the AGG() function rather than standard aggregations like SUM or COUNT.

What graph structures does GRAPH_EXPAND support?▼

GRAPH_EXPAND requires the graph to form a valid tree structure. It does not support disconnected graphs with multiple roots, directed cycles, self-loops, or convergent diamond paths. Workarounds include separate GRAPH_EXPAND calls per component or standard GQL pattern matching.

Why does my BigQuery graph query fail with EXISTS subqueries?▼

EXISTS, IN, and LIKE subqueries throw errors when used inside a WHERE clause in BigQuery GQL. Use the FILTER clause instead, and always re-specify the graph name inside the subquery block, since BigQuery requires it unlike standard GoogleSQL.