[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M698ZJNXJCE7T81AK0Y5R01D":3,"skill-same:01M698ZJNXJCE7T81AK0Y5R01D":103},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":28,"publishedAt":48,"linkOnly":49,"markdownContent":50,"markdownBody":51,"frontMatter":52,"refName":57,"commitSha":58,"skillDirectory":59,"forksCount":60,"repositoryHtmlUrl":61,"repositoryHomepageUrl":62,"ownerHtmlUrl":63,"ownerBlogUrl":64,"ownerDescription":65,"updatedAt":66,"install":67,"resources":80},"01M698ZJNXJCE7T81AK0Y5R01D","bigquery-graph",null,"Skill for Graph Query Language (GQL) or SQL\u002FPGQ queries against a property graph.\nIncludes path finding, multi-hop traversal, topological connection, shortest path,\nnode reachability, edge connectivity, and semantic graph queries.","google\u002Fadk-python","google","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1342004?v=4","01M698VYEFDM0VJBZDYYJ2T83S","Google","01M698XZC2HCATT8VD5VAVZDTP",22217,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fadk-python\u002Fblob\u002Fmain\u002Fsrc\u002Fgoogle\u002Fadk\u002Fintegrations\u002Fbigquery\u002Fskills\u002Fbigquery-graph\u002FSKILL.md",[18,23],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",{"categoryNo":24,"categoryName":25,"taxonomyType":26,"taxonomyTypeDesc":27},"01JBSEEDCAT000000000000033","数据分析师","PROFESSION","适用职业",[29,30,31,32,9,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47],"bigquery graph","bigquery","graph","for","path","connection","multi","semantic","gql","connectivity","query","language","queries","node","hop","graph query","edge","sql","adk","2026-11-10 10:12:30",false,"---\nname: bigquery-graph\nlicense: Apache-2.0\nmetadata:\n  author: google-adk\n  version: \"1.0\"\ndescription: |\n  Skill for Graph Query Language (GQL) or SQL\u002FPGQ queries against a property graph.\n  Includes path finding, multi-hop traversal, topological connection, shortest path,\n  node reachability, edge connectivity, and semantic graph queries.\n\n---\n\n# Graph Query Language (GQL) Query Generation Guidelines\n\nYou are querying a property graph consisting of nodes and edges. You **MUST\nexclusively use the BigQuery GoogleSQL GQL standard**, which is the only\nsupported graph query language and implements the ISO GQL standard.\n\n**You MUST NEVER, under any circumstances, generate or consider Cypher\nqueries.** Any deviation from the BigQuery GoogleSQL GQL standard is strictly\nprohibited.\n\n## Reference Directory\n\n-   [Semantic Graph Guidelines](references\u002Fsemantic_queries.md): Guidelines for\n    generating SQL queries against a semantic graph.\n-   [Graph Schema Best Practices](references\u002Fgraph_schema\u002Fbest_practices.md):\n    Best practices for defining BigQuery property graph schemas.\n-   [Graph Schema DDL Reference](references\u002Fgraph_schema\u002Fddl_reference.md): DDL\n    syntax reference for property graphs.\n-   [Graph Limitations & Feature Parity](references\u002Fgraph_schema\u002Ffeature_parity.md):\n    Current limitations and feature parity for BigQuery Graph.\n-   [Graph Schema DDL Advisor](references\u002Fgraph_schema\u002Fgraph_schema_ddl_advisor.md):\n    Assists in defining and optimizing schemas.\n\n## Pre-generation Checklist\n\nBefore generating any GQL, you MUST:\n\n1.  **Identify Output Intent**: Determine if the user intends to **visualize a\n    graph network** (requires `TO_JSON()`) or **view tabular data** (requires\n    specific properties).\n2.  **Verify Language Standard**: Confirm the query will use **BigQuery\n    GoogleSQL GQL**. NEVER use Cypher.\n\n## Core Directives for Agent Query Generation\n\nWhen generating graph queries, you must adhere to the following global\ndirectives:\n\n1.  **Default Query Construction (Standalone GQL)**: Write standalone GQL\n    queries using the `RETURN` statement natively. **Explicitly avoid using the\n    `GRAPH_TABLE` table-valued function unless the user constraints actively\n    require standard SQL relational integration or aggregation.**\n2.  **Keyword Escaping**: You **MUST** enforce backticks (`) around any reserved\n    SQL and GQL keywords such as 'order', 'begin' and 'path' used as identifiers\n    (e.g., column names, label names, variable names).\n3.  **Strictly Follow Graph Schema**: Ensure all labels (e.g., `:Person`,\n    `:Account`) and properties (e.g., `n.id`, `e.amount`) used in the query\n    strictly match the provided graph schema. Do NOT guess or hallucinate schema\n    elements.\n4.  **Result Uniqueness**: Use the `DISTINCT` keyword automatically in your\n    `RETURN` or `COLUMNS` clause if the user prompt implies they want to\n    retrieve unique information.\n5.  **Graph Path Variables**: When a query involves \"paths\", \"path traversal\",\n    \"path finding\", or finding relationships between nodes, you **MUST** assign\n    the matched pattern to a path variable (e.g., `MATCH p = ...`).\n\n## Basic GQL Query Construction\n\nA linear query statement in BigQuery GQL executes clauses sequentially. The\noutput of one clause provides the input (the \"working table\") to the next.\n\nCommon sequential statements include:\n\n-   `MATCH`: Identifies topological patterns in the graph.\n-   `WITH`: Projects variables from current scope into the next scope,\n    optionally sorting, limiting or grouping.\n-   `LET`: Defines a new variable or alias within the query scope.\n-   `FILTER`: Filters intermediate graph mappings.\n-   `RETURN`: Ends a GQL query or subquery, projecting the final graph\n    variables.\n-   `ORDER BY`, `LIMIT`, `OFFSET`: Control sorting and pagination.\n\n**Chaining with `NEXT`:** Multiple linear statements can be composed into a\ncompound query using the `NEXT` keyword. The results of the first statement pipe\ninto the statement following `NEXT`.\n\n### Example 1: Sequential Statements\n\nThis query demonstrates filtering and projecting data through a single linear\nstatement sequence.\n\n```sql\nGRAPH \u003Cproject>.\u003Cdataset>.\u003Cgraph>\nMATCH (src:Account)-[t:Transfers]->(dst:Account)\nLET transfer_amount = t.amount\nFILTER transfer_amount > 1000\nWITH src, dst, transfer_amount\nORDER BY transfer_amount DESC\nLIMIT 50\nRETURN src.id AS source, dst.id AS destination, transfer_amount\n```\n\n### Example 2: Chaining with NEXT\n\nThis query demonstrates using `NEXT` to pipe the results of one graph pattern\nmatch into a subsequent pattern match.\n\n```sql\nGRAPH \u003Cproject>.\u003Cdataset>.\u003Cgraph>\nMATCH (blocked:Account WHERE blocked.is_frozen = true)\nRETURN blocked.id AS frozen_id\nNEXT\nMATCH (a:Account)-[t:Transfers]->(b:Account)\nFILTER a.id = frozen_id\nRETURN a.id AS source, b.id AS destination, t.amount AS amount\n```\n\n## Graph Pattern Matching\n\nA graph pattern matches topologies within a BigQuery property graph. Patterns\nconsist of vertices (nodes) and connecting edges.\n\n### Node Patterns\n\nNode patterns are enclosed in parentheses `()`. They identify entities in the\ngraph and can optionally bind to a variable or specify label and property\nfilters.\n\n-   `MATCH (n)`: Matches any node and binds it to the variable `n`.\n-   `MATCH (p:Person)`: Matches nodes explicitly labeled with `Person`.\n-   `MATCH (p:Person|Account)`: Uses a label expression `|` (OR) to match nodes\n    that have *either* the `Person` or `Account` label.\n-   `MATCH (p:Person {id: 1})`: Matches nodes that satisfy a specific property\n    filter.\n-   `MATCH (p:Person WHERE p.age > 18)`: Matches nodes applying a `WHERE`\n    condition on properties.\n\n**Important Note on Label Expressions**: BigQuery matches a node if it possesses\n*any* of the labels listed in an `OR` (`|`) expression. You cannot use `&`\ndirectly in label expressions.\n\n### Edge Patterns\n\nEdge patterns represent the relationships between nodes. They are enclosed in\nsquare brackets `[]` and connected using arrows (`-`, `->`, `\u003C-`) to denote\ndirectionality.\n\n-   `MATCH (a)-[e]->(b)`: Matches any directed edge from `a` to `b`, binding the\n    edge to `e`.\n-   `MATCH (a)-[e:Transfers]->(b)`: Directed edge specifically labeled\n    `Transfers`.\n-   `MATCH (a)-[e:Transfers {amount: 50}]->(b)`: Edge with a specific property\n    filter applied.\n-   `MATCH (a)-[e:Transfers]-(b)`: Matches an undirected (any direction) edge\n    between `a` and `b`. Use preferred explicit direction when possible for\n    better performance.\n\n### Pattern Joins and Commas\n\nA complex graph pattern consists of one or more path patterns separated by\ncommas `,`. When multiple comma-separated patterns are used:\n\n-   If they do not share any variables, they result in a **cross join**.\n-   If they share a common variable, BigQuery automatically performs an\n    **equijoin** on that variable.\n\n```sql\n-- Equijoin example where 'interim' connects the two paths\nGRAPH \u003Cproject>.\u003Cdataset>.\u003Cgraph>\nMATCH (src:Account)-[t1:Transfers]->(interim:Account),\n      (interim)\u003C-[:Owns]-(p:Person)\nRETURN src.id AS account_id, p.name AS owner_name\n```\n\n### Variable-Length Paths and Quantifiers\n\nYou can find multi-hop connections by appending a quantifier to an edge pattern,\ndefining variable-length paths. - `{m, n}`: Specifies that the edge pattern must\nbe repeated between `m` and `n` times (e.g., `{1,3}`).\n\n**Group Variables**: When an edge variable is quantified (e.g.,\n`[e:Transfers]->{1,3}`), the variable `e` becomes a \"group variable.\" This\nrepresents an array of the matched edges in the path. You must use array\nfunctions to interact with it, such as `ARRAY_LENGTH(e)` or horizontal\naggregation like `SUM(e.amount)`.\n\n### Path Search Prefixes\n\nVariable-length paths can result in exponential combinations and repeating\npaths. You can constrain the search between source and destination pairs using\nsearch prefixes placed immediately before the path pattern:\n\n-   `ANY`: Returns exactly one arbitrary matching path between each unique pair\n    of source and destination nodes.\n-   `ANY SHORTEST`: Returns a single path for each unique pair, specifically\n    choosing from those with the minimum number of edges (hops).\n-   `ANY CHEAPEST`: Returns a single path with the minimum total cost, computed\n    by aggregating `COST` expressions defined on the edges.\n\n```sql\nGRAPH \u003Cproject>.\u003Cdataset>.\u003Cgraph>\nMATCH ANY SHORTEST\n  (a:Account {id: 123})-[e:Transferred]->{1,3}(b:Account {id: 456})\nRETURN e\n```\n\n## GQL Functions and Operators\n\nBigQuery property graphs support specialized native functions for interrogating\ngraph elements and extracting path metadata. These functions can be used\ndirectly within `MATCH`, `WHERE`, `LET`, and `RETURN`\u002F`COLUMNS` clauses.\n\n### Path Extraction Functions\n\nWhen an entire path pattern is bound to a variable (e.g., `MATCH p = (...)`),\nyou can extract specific metadata and elements from it:\n\n-   `PATH_FIRST(p)`: Extracts and returns the starting node of path `p`.\n-   `PATH_LAST(p)`: Extracts and returns the terminal (ending) node of path `p`.\n-   `PATH_LENGTH(p)`: Returns an `INT64` count representing the number of edge\n    hops in path `p`.\n-   `NODES(p)`: Returns an array of node elements, ordered by their sequence in\n    the path.\n-   `EDGES(p)`: Returns an array of edge elements, ordered by their sequence in\n    the path.\n\n```sql\nGRAPH \u003Cproject>.\u003Cdataset>.\u003Cgraph>\nMATCH p = (a:Account)-[t:Transfers]->{1,3}(b:Account)\nRETURN PATH_LENGTH(p) AS hops, TO_JSON(NODES(p)) AS path_nodes\n```\n\n### Element Traversal and Inspection Functions\n\nThese functions operate on individual node or edge element variables:\n\n-   `DESTINATION_NODE_ID(e)`: Retrieves the unique internal string identifier of\n    an edge `e`'s destination node.\n-   `SOURCE_NODE_ID(e)`: Retrieves the unique internal string identifier of an\n    edge `e`'s source node.\n-   `ELEMENT_ID(x)`: Returns the unique internal identifier for the given node\n    or edge `x`.\n-   `LABELS(x)`: Returns an array of string labels bound to a node or edge\n    element `x`.\n\n## Output Formatting: Graph Visualization vs. Tabular Data\n\nWhen constructing the `RETURN` clause, strictly distinguish between **graph\nvisualization** intent and **tabular data** intent based on the user's\nobjective.\n\n### Path Variables\n\nYou can assign an entire matched pattern sequence to a path variable using the\nassignment operator `=`. This allows you to reference the entire topological\nsequence later in the query.\n\n```sql\nMATCH p = (a:Person)-[e:Knows]->(b:Person)\n```\n\nIn this example, `p` represents the full path, encapsulating the nodes `a` and\n`b` and the edge `e`.\n\n### 1. Graph Visualization Intent\n\nUse this when the user wants to see relationships, paths, topology, networks,\nconnectivity or entire entities (nodes\u002Fedges) as a whole.\n\n-   **Trigger & Keywords**: \"visualize\", \"show the graph\", \"network\",\n    \"connections\", \"find the path\", \"relationship between X and Y\".\n-   **Default JSON Serialization (`TO_JSON`)**: Unless specific properties\n    (e.g., `n.name`) or path metrics (e.g., `PATH_LENGTH(p)`) are explicitly\n    requested, you **MUST** wrap all graph topology outputs (nodes, edges, and\n    path variables) in the standard `TO_JSON()` function. This ensures\n    compatibility with graphing UI components that expect full JSON objects.\n-   **Example**: `RETURN TO_JSON(src) AS source, TO_JSON(p) AS full_path`\n-   **Limit**: Always append `LIMIT 500` to the query to prevent overwhelming\n    the UI with too many nodes\u002Fedges, unless the user explicitly requests a\n    different number.\n\n```sql\nGRAPH \u003Cproject>.\u003Cdataset>.\u003Cgraph>\nMATCH p = (src:Person)-[e:Knows]->(dst:Person)\nRETURN\n    TO_JSON(src) AS source_node,\n    TO_JSON(e) AS relationship,\n    TO_JSON(dst) AS destination_node,\n    TO_JSON(p) AS full_path\nLIMIT 500\n```\n\n### 2. Tabular or Chart Intent\n\nUse this when the user focuses on specific attributes, statistics, or metrics.\n\n-   **Trigger & Keywords**: \"what is the name\", \"list\", \"how many\", \"count\",\n    \"average\", \"top 10\", \"aggregate\".\n-   **Action**: Return ONLY the specific required properties or aggregates. **Do\n    NOT** use `TO_JSON()`.\n-   **Example**: `RETURN account.id, SUM(t.amount) AS total_transfer`\n\n## GRAPH_TABLE Syntax and SQL Integration\n\nThe `GRAPH_TABLE` table-valued function is the primary mechanism for integrating\nproperty graph queries with standard SQL operations in BigQuery.\n\n### When to Use GRAPH_TABLE\n\nYou **SHOULD** use `GRAPH_TABLE()` only when your query requires integration\nwith SQL capabilities beyond basic graph pattern matching. Use it for:\n\n-   **SQL Aggregations & Analysis**: Mixing graph pattern matching with standard\n    SQL aggregations (e.g., `SUM`, `COUNT`, `GROUP BY`).\n-   **Relational Joins**: Joining graph query results with relational tables or\n    other `GRAPH_TABLE` calls.\n-   **Advanced SQL Operations**: Utilizing advanced SQL filtering, reporting, or\n    pagination on the graph results.\n\n### Basic Syntax\n\nThe basic structure of a `GRAPH_TABLE` query involves specifying the graph name,\nthe GQL statements, and a `COLUMNS` clause to define the output relational\nschema.\n\n```sql\nSELECT\n  src_account_id,\n  COUNT(*) AS transfer_count,\n  SUM(amount) AS total_transfer_volume\nFROM GRAPH_TABLE(\n    \u003Cproject>.\u003Cdataset>.\u003Cgraph>\n    MATCH (src:Account)-[t:Transfers]->(dst:Account)\n    WHERE src.is_blocked = true\n    COLUMNS (src.id AS src_account_id, t.amount AS amount)\n)\nGROUP BY src_account_id\nHAVING total_transfer_volume > 10000\nORDER BY total_transfer_volume DESC\n```\n\n### The COLUMNS Clause\n\nThe `COLUMNS` clause is mandatory if you want to explicitly define the returned\ntable's schema.\n\n-   **Explicit Projection**: It limits the output to only the specified\n    expressions from the graph query scope.\n-   **Anonymous Columns**: You *must* alias any expressions in the `COLUMNS`\n    clause if they generate an anonymous column (e.g., `COLUMNS (t.amount * 2 AS\n    doubled_amount)`).\n-   **Default Behavior**: If the `COLUMNS` clause is entirely omitted,\n    `GRAPH_TABLE` returns all graph pattern variables present in the query\n    scope.\n-   **Aggregations**: You can include standard SQL aggregate functions directly\n    within the `COLUMNS` clause to perform grouping and aggregation across the\n    rows of the resulting graph matches.\n\n### Joins with Relational Tables\n\nYou can join the result of `GRAPH_TABLE` with other standard BigQuery tables or\neven other `GRAPH_TABLE` results using standard SQL semantics (e.g., `JOIN`,\n`LEFT JOIN`).\n\nTo make a `GRAPH_TABLE` aware of variables from an earlier table in the `FROM`\nclause, you can use parameterized `GRAPH_TABLE`. In the example below, `a.id`\nfrom the `Accounts` table is passed into the `GRAPH_TABLE` scope:\n\n```sql\nSELECT\n  a.name,\n  g.total_amount\nFROM Accounts AS a\nJOIN GRAPH_TABLE(\n    \u003Cproject>.\u003Cdataset>.\u003Cgraph>\n    MATCH (src:Account {id: a.id})-[t:Transfers]->(dst:Account)\n    COLUMNS (SUM(t.amount) AS total_amount)\n) AS g\n```\n\n## Subquery Limitations\n\nA subquery in BigQuery GQL is enclosed in braces `{}` and evaluates nested\noperations within a linear query statement. While BigQuery Graph supports\nsubqueries, there are critical limitations and syntax differences compared to\nstandard GoogleSQL that you **MUST** adhere to.\n\n### Mandatory Graph Name Specification\n\nIn BigQuery Graph, unlike standard GoogleSQL, you **MUST** specify the graph\nname within the subquery block. If the outer query uses `GRAPH\n\u003Cproject>.\u003Cdataset>.\u003Cgraph>`, the internal subquery must also explicitly\nredeclare it.\n\n```sql\nMATCH (n1)\nWHERE EXISTS {\n  -- REQUIRED: You must re-specify the graph name here\n  GRAPH \u003Cproject>.\u003Cdataset>.\u003Cgraph>\n  MATCH (n2)\n  WHERE n1 = n2\n  RETURN 1 as one\n}\n```\n\nFailure to include the graph name in the subquery will result in a job-server\nerror.\n\n### The WHERE vs. FILTER Rule\n\nCertain types of subqueries **throw errors when used inside a `WHERE` clause**\nbecause BigQuery's query planner cannot decorrelate them if they act as join\npredicates.\n\nFor the following subquery types, you **CANNOT** use the `WHERE` clause. You\n**MUST** use the `FILTER` clause instead: `EXISTS`, `IN`, `LIKE`, and `LIKE\nANY\u002FSOME\u002FALL` subqueries.\n\n**INCORRECT (will throw error):**\n\n```sql\nMATCH (p:Person) WHERE EXISTS { GRAPH\n\u003Cproject>.\u003Cdataset>.\u003Cgraph> MATCH (p)-[:Owns]->(:Account) }\n```\n\n**CORRECT:**\n\n```sql\nMATCH (p:Person) FILTER EXISTS { GRAPH\n\u003Cproject>.\u003Cdataset>.\u003Cgraph> MATCH (p)-[:Owns]->(:Account) }\n```\n\n### Supported Subquery Types and Correlations\n\n-   **`ARRAY` Subquery**: Fully Supported. Evaluates the query block and returns\n    an array of the results.\n-   **`VALUE` Subquery**: Partially Supported. Evaluates the internal query and\n    returns a single scalar value. **Limitation**: `VALUE` subqueries throw\n    errors when correlated variables from the outer block are referenced inside\n    the `VALUE` subquery.\n-   **`EXISTS`, `IN`, `LIKE` Subqueries**: Partially Supported. **Limitation**:\n    Throw errors when correlated variables are used. Throw errors when used in\n    `WHERE` filter (Must use `FILTER`).\n\n## Query Optimization and Best Practices\n\nPerformance is a key consideration for highly connected BigQuery graphs. Adhere\nto these principles whenever writing GQL statements to ensure optimal execution.\n\n### 1. Start Traversals From Low-Cardinality Nodes\n\nAlways write your path traversals so they originate from the lowest cardinality\nnodes (the most specific entities). This drastically reduces the intermediate\nresult set sizes and speeds up execution, especially for variable-length\ntraversals.\n\n-   **Example**: Instead of starting from a highly active `Account` node and\n    traversing backwards to find the owner, start with the specific `Person`\n    node and traverse forward.\n-   **Filter Early**: Push specific properties (e.g., `Account {id: 7}`) as\n    early as possible in your `MATCH` clause to prune the search space\n    immediately.\n\n### 2. Specify Labels Explicitly\n\nYou must explicitly provide node and edge labels when they are known (e.g.,\n`(a:Account)-[:Transfers]->(b:Account)`).\n\nWhile BigQuery attempts to infer labels from query usage, if inference fails or\nlabels are omitted, the engine is forced to perform full table scans over\nmultiple distinct underlying node\u002Fedge tables.\n\n### 3. Avoid Bi-directional Graph Traversals\n\nBigQuery Graph schema physical implementations are directional. You should\nalways specify a source and destination node for an edge (using `->` or `\u003C-`).\n\nAlthough query pattern syntax allows for bidirectional or undirected path\ntraversal (`(node)-[edge]-(node)`), doing so incurs a severe implicit\nperformance penalty.\n\nIf you need to find an edge between two specific nodes regardless of direction,\n**DO NOT** use a bidirectional pattern. Instead, use explicit directional\ntraversals combined with `UNION ALL`:\n\n**GOOD:**\n\n```sql\nGRAPH \u003Cproject>.\u003Cdataset>.\u003Cgraph> MATCH (a1:Account\n{id:10})-[t:Transfer]->(a2:Account {id: 20}) RETURN t UNION ALL MATCH\n(a2:Account{id: 20})-[t:Transfer]->(a1:Account {id: 10}) RETURN t\n```\n\n### 4. Prefer Single MATCH Statements\n\nWhen possible without sacrificing readability or violating logic intent, prefer\ncomposing a single comprehensive `MATCH` statement over chaining multiple\nindividual `MATCH` statements. A single statement allows the query optimizer a\nwider global view of the graph pattern, often leading to better execution plans.\n","# Graph Query Language (GQL) Query Generation Guidelines\n\nYou are querying a property graph consisting of nodes and edges. You **MUST\nexclusively use the BigQuery GoogleSQL GQL standard**, which is the only\nsupported graph query language and implements the ISO GQL standard.\n\n**You MUST NEVER, under any circumstances, generate or consider Cypher\nqueries.** Any deviation from the BigQuery GoogleSQL GQL standard is strictly\nprohibited.\n\n## Reference Directory\n\n-   [Semantic Graph Guidelines](references\u002Fsemantic_queries.md): Guidelines for\n    generating SQL queries against a semantic graph.\n-   [Graph Schema Best Practices](references\u002Fgraph_schema\u002Fbest_practices.md):\n    Best practices for defining BigQuery property graph schemas.\n-   [Graph Schema DDL Reference](references\u002Fgraph_schema\u002Fddl_reference.md): DDL\n    syntax reference for property graphs.\n-   [Graph Limitations & Feature Parity](references\u002Fgraph_schema\u002Ffeature_parity.md):\n    Current limitations and feature parity for BigQuery Graph.\n-   [Graph Schema DDL Advisor](references\u002Fgraph_schema\u002Fgraph_schema_ddl_advisor.md):\n    Assists in defining and optimizing schemas.\n\n## Pre-generation Checklist\n\nBefore generating any GQL, you MUST:\n\n1.  **Identify Output Intent**: Determine if the user intends to **visualize a\n    graph network** (requires `TO_JSON()`) or **view tabular data** (requires\n    specific properties).\n2.  **Verify Language Standard**: Confirm the query will use **BigQuery\n    GoogleSQL GQL**. NEVER use Cypher.\n\n## Core Directives for Agent Query Generation\n\nWhen generating graph queries, you must adhere to the following global\ndirectives:\n\n1.  **Default Query Construction (Standalone GQL)**: Write standalone GQL\n    queries using the `RETURN` statement natively. **Explicitly avoid using the\n    `GRAPH_TABLE` table-valued function unless the user constraints actively\n    require standard SQL relational integration or aggregation.**\n2.  **Keyword Escaping**: You **MUST** enforce backticks (`) around any reserved\n    SQL and GQL keywords such as 'order', 'begin' and 'path' used as identifiers\n    (e.g., column names, label names, variable names).\n3.  **Strictly Follow Graph Schema**: Ensure all labels (e.g., `:Person`,\n    `:Account`) and properties (e.g., `n.id`, `e.amount`) used in the query\n    strictly match the provided graph schema. Do NOT guess or hallucinate schema\n    elements.\n4.  **Result Uniqueness**: Use the `DISTINCT` keyword automatically in your\n    `RETURN` or `COLUMNS` clause if the user prompt implies they want to\n    retrieve unique information.\n5.  **Graph Path Variables**: When a query involves \"paths\", \"path traversal\",\n    \"path finding\", or finding relationships between nodes, you **MUST** assign\n    the matched pattern to a path variable (e.g., `MATCH p = ...`).\n\n## Basic GQL Query Construction\n\nA linear query statement in BigQuery GQL executes clauses sequentially. The\noutput of one clause provides the input (the \"working table\") to the next.\n\nCommon sequential statements include:\n\n-   `MATCH`: Identifies topological patterns in the graph.\n-   `WITH`: Projects variables from current scope into the next scope,\n    optionally sorting, limiting or grouping.\n-   `LET`: Defines a new variable or alias within the query scope.\n-   `FILTER`: Filters intermediate graph mappings.\n-   `RETURN`: Ends a GQL query or subquery, projecting the final graph\n    variables.\n-   `ORDER BY`, `LIMIT`, `OFFSET`: Control sorting and pagination.\n\n**Chaining with `NEXT`:** Multiple linear statements can be composed into a\ncompound query using the `NEXT` keyword. The results of the first statement pipe\ninto the statement following `NEXT`.\n\n### Example 1: Sequential Statements\n\nThis query demonstrates filtering and projecting data through a single linear\nstatement sequence.\n\n```sql\nGRAPH \u003Cproject>.\u003Cdataset>.\u003Cgraph>\nMATCH (src:Account)-[t:Transfers]->(dst:Account)\nLET transfer_amount = t.amount\nFILTER transfer_amount > 1000\nWITH src, dst, transfer_amount\nORDER BY transfer_amount DESC\nLIMIT 50\nRETURN src.id AS source, dst.id AS destination, transfer_amount\n```\n\n### Example 2: Chaining with NEXT\n\nThis query demonstrates using `NEXT` to pipe the results of one graph pattern\nmatch into a subsequent pattern match.\n\n```sql\nGRAPH \u003Cproject>.\u003Cdataset>.\u003Cgraph>\nMATCH (blocked:Account WHERE blocked.is_frozen = true)\nRETURN blocked.id AS frozen_id\nNEXT\nMATCH (a:Account)-[t:Transfers]->(b:Account)\nFILTER a.id = frozen_id\nRETURN a.id AS source, b.id AS destination, t.amount AS amount\n```\n\n## Graph Pattern Matching\n\nA graph pattern matches topologies within a BigQuery property graph. Patterns\nconsist of vertices (nodes) and connecting edges.\n\n### Node Patterns\n\nNode patterns are enclosed in parentheses `()`. They identify entities in the\ngraph and can optionally bind to a variable or specify label and property\nfilters.\n\n-   `MATCH (n)`: Matches any node and binds it to the variable `n`.\n-   `MATCH (p:Person)`: Matches nodes explicitly labeled with `Person`.\n-   `MATCH (p:Person|Account)`: Uses a label expression `|` (OR) to match nodes\n    that have *either* the `Person` or `Account` label.\n-   `MATCH (p:Person {id: 1})`: Matches nodes that satisfy a specific property\n    filter.\n-   `MATCH (p:Person WHERE p.age > 18)`: Matches nodes applying a `WHERE`\n    condition on properties.\n\n**Important Note on Label Expressions**: BigQuery matches a node if it possesses\n*any* of the labels listed in an `OR` (`|`) expression. You cannot use `&`\ndirectly in label expressions.\n\n### Edge Patterns\n\nEdge patterns represent the relationships between nodes. They are enclosed in\nsquare brackets `[]` and connected using arrows (`-`, `->`, `\u003C-`) to denote\ndirectionality.\n\n-   `MATCH (a)-[e]->(b)`: Matches any directed edge from `a` to `b`, binding the\n    edge to `e`.\n-   `MATCH (a)-[e:Transfers]->(b)`: Directed edge specifically labeled\n    `Transfers`.\n-   `MATCH (a)-[e:Transfers {amount: 50}]->(b)`: Edge with a specific property\n    filter applied.\n-   `MATCH (a)-[e:Transfers]-(b)`: Matches an undirected (any direction) edge\n    between `a` and `b`. Use preferred explicit direction when possible for\n    better performance.\n\n### Pattern Joins and Commas\n\nA complex graph pattern consists of one or more path patterns separated by\ncommas `,`. When multiple comma-separated patterns are used:\n\n-   If they do not share any variables, they result in a **cross join**.\n-   If they share a common variable, BigQuery automatically performs an\n    **equijoin** on that variable.\n\n```sql\n-- Equijoin example where 'interim' connects the two paths\nGRAPH \u003Cproject>.\u003Cdataset>.\u003Cgraph>\nMATCH (src:Account)-[t1:Transfers]->(interim:Account),\n      (interim)\u003C-[:Owns]-(p:Person)\nRETURN src.id AS account_id, p.name AS owner_name\n```\n\n### Variable-Length Paths and Quantifiers\n\nYou can find multi-hop connections by appending a quantifier to an edge pattern,\ndefining variable-length paths. - `{m, n}`: Specifies that the edge pattern must\nbe repeated between `m` and `n` times (e.g., `{1,3}`).\n\n**Group Variables**: When an edge variable is quantified (e.g.,\n`[e:Transfers]->{1,3}`), the variable `e` becomes a \"group variable.\" This\nrepresents an array of the matched edges in the path. You must use array\nfunctions to interact with it, such as `ARRAY_LENGTH(e)` or horizontal\naggregation like `SUM(e.amount)`.\n\n### Path Search Prefixes\n\nVariable-length paths can result in exponential combinations and repeating\npaths. You can constrain the search between source and destination pairs using\nsearch prefixes placed immediately before the path pattern:\n\n-   `ANY`: Returns exactly one arbitrary matching path between each unique pair\n    of source and destination nodes.\n-   `ANY SHORTEST`: Returns a single path for each unique pair, specifically\n    choosing from those with the minimum number of edges (hops).\n-   `ANY CHEAPEST`: Returns a single path with the minimum total cost, computed\n    by aggregating `COST` expressions defined on the edges.\n\n```sql\nGRAPH \u003Cproject>.\u003Cdataset>.\u003Cgraph>\nMATCH ANY SHORTEST\n  (a:Account {id: 123})-[e:Transferred]->{1,3}(b:Account {id: 456})\nRETURN e\n```\n\n## GQL Functions and Operators\n\nBigQuery property graphs support specialized native functions for interrogating\ngraph elements and extracting path metadata. These functions can be used\ndirectly within `MATCH`, `WHERE`, `LET`, and `RETURN`\u002F`COLUMNS` clauses.\n\n### Path Extraction Functions\n\nWhen an entire path pattern is bound to a variable (e.g., `MATCH p = (...)`),\nyou can extract specific metadata and elements from it:\n\n-   `PATH_FIRST(p)`: Extracts and returns the starting node of path `p`.\n-   `PATH_LAST(p)`: Extracts and returns the terminal (ending) node of path `p`.\n-   `PATH_LENGTH(p)`: Returns an `INT64` count representing the number of edge\n    hops in path `p`.\n-   `NODES(p)`: Returns an array of node elements, ordered by their sequence in\n    the path.\n-   `EDGES(p)`: Returns an array of edge elements, ordered by their sequence in\n    the path.\n\n```sql\nGRAPH \u003Cproject>.\u003Cdataset>.\u003Cgraph>\nMATCH p = (a:Account)-[t:Transfers]->{1,3}(b:Account)\nRETURN PATH_LENGTH(p) AS hops, TO_JSON(NODES(p)) AS path_nodes\n```\n\n### Element Traversal and Inspection Functions\n\nThese functions operate on individual node or edge element variables:\n\n-   `DESTINATION_NODE_ID(e)`: Retrieves the unique internal string identifier of\n    an edge `e`'s destination node.\n-   `SOURCE_NODE_ID(e)`: Retrieves the unique internal string identifier of an\n    edge `e`'s source node.\n-   `ELEMENT_ID(x)`: Returns the unique internal identifier for the given node\n    or edge `x`.\n-   `LABELS(x)`: Returns an array of string labels bound to a node or edge\n    element `x`.\n\n## Output Formatting: Graph Visualization vs. Tabular Data\n\nWhen constructing the `RETURN` clause, strictly distinguish between **graph\nvisualization** intent and **tabular data** intent based on the user's\nobjective.\n\n### Path Variables\n\nYou can assign an entire matched pattern sequence to a path variable using the\nassignment operator `=`. This allows you to reference the entire topological\nsequence later in the query.\n\n```sql\nMATCH p = (a:Person)-[e:Knows]->(b:Person)\n```\n\nIn this example, `p` represents the full path, encapsulating the nodes `a` and\n`b` and the edge `e`.\n\n### 1. Graph Visualization Intent\n\nUse this when the user wants to see relationships, paths, topology, networks,\nconnectivity or entire entities (nodes\u002Fedges) as a whole.\n\n-   **Trigger & Keywords**: \"visualize\", \"show the graph\", \"network\",\n    \"connections\", \"find the path\", \"relationship between X and Y\".\n-   **Default JSON Serialization (`TO_JSON`)**: Unless specific properties\n    (e.g., `n.name`) or path metrics (e.g., `PATH_LENGTH(p)`) are explicitly\n    requested, you **MUST** wrap all graph topology outputs (nodes, edges, and\n    path variables) in the standard `TO_JSON()` function. This ensures\n    compatibility with graphing UI components that expect full JSON objects.\n-   **Example**: `RETURN TO_JSON(src) AS source, TO_JSON(p) AS full_path`\n-   **Limit**: Always append `LIMIT 500` to the query to prevent overwhelming\n    the UI with too many nodes\u002Fedges, unless the user explicitly requests a\n    different number.\n\n```sql\nGRAPH \u003Cproject>.\u003Cdataset>.\u003Cgraph>\nMATCH p = (src:Person)-[e:Knows]->(dst:Person)\nRETURN\n    TO_JSON(src) AS source_node,\n    TO_JSON(e) AS relationship,\n    TO_JSON(dst) AS destination_node,\n    TO_JSON(p) AS full_path\nLIMIT 500\n```\n\n### 2. Tabular or Chart Intent\n\nUse this when the user focuses on specific attributes, statistics, or metrics.\n\n-   **Trigger & Keywords**: \"what is the name\", \"list\", \"how many\", \"count\",\n    \"average\", \"top 10\", \"aggregate\".\n-   **Action**: Return ONLY the specific required properties or aggregates. **Do\n    NOT** use `TO_JSON()`.\n-   **Example**: `RETURN account.id, SUM(t.amount) AS total_transfer`\n\n## GRAPH_TABLE Syntax and SQL Integration\n\nThe `GRAPH_TABLE` table-valued function is the primary mechanism for integrating\nproperty graph queries with standard SQL operations in BigQuery.\n\n### When to Use GRAPH_TABLE\n\nYou **SHOULD** use `GRAPH_TABLE()` only when your query requires integration\nwith SQL capabilities beyond basic graph pattern matching. Use it for:\n\n-   **SQL Aggregations & Analysis**: Mixing graph pattern matching with standard\n    SQL aggregations (e.g., `SUM`, `COUNT`, `GROUP BY`).\n-   **Relational Joins**: Joining graph query results with relational tables or\n    other `GRAPH_TABLE` calls.\n-   **Advanced SQL Operations**: Utilizing advanced SQL filtering, reporting, or\n    pagination on the graph results.\n\n### Basic Syntax\n\nThe basic structure of a `GRAPH_TABLE` query involves specifying the graph name,\nthe GQL statements, and a `COLUMNS` clause to define the output relational\nschema.\n\n```sql\nSELECT\n  src_account_id,\n  COUNT(*) AS transfer_count,\n  SUM(amount) AS total_transfer_volume\nFROM GRAPH_TABLE(\n    \u003Cproject>.\u003Cdataset>.\u003Cgraph>\n    MATCH (src:Account)-[t:Transfers]->(dst:Account)\n    WHERE src.is_blocked = true\n    COLUMNS (src.id AS src_account_id, t.amount AS amount)\n)\nGROUP BY src_account_id\nHAVING total_transfer_volume > 10000\nORDER BY total_transfer_volume DESC\n```\n\n### The COLUMNS Clause\n\nThe `COLUMNS` clause is mandatory if you want to explicitly define the returned\ntable's schema.\n\n-   **Explicit Projection**: It limits the output to only the specified\n    expressions from the graph query scope.\n-   **Anonymous Columns**: You *must* alias any expressions in the `COLUMNS`\n    clause if they generate an anonymous column (e.g., `COLUMNS (t.amount * 2 AS\n    doubled_amount)`).\n-   **Default Behavior**: If the `COLUMNS` clause is entirely omitted,\n    `GRAPH_TABLE` returns all graph pattern variables present in the query\n    scope.\n-   **Aggregations**: You can include standard SQL aggregate functions directly\n    within the `COLUMNS` clause to perform grouping and aggregation across the\n    rows of the resulting graph matches.\n\n### Joins with Relational Tables\n\nYou can join the result of `GRAPH_TABLE` with other standard BigQuery tables or\neven other `GRAPH_TABLE` results using standard SQL semantics (e.g., `JOIN`,\n`LEFT JOIN`).\n\nTo make a `GRAPH_TABLE` aware of variables from an earlier table in the `FROM`\nclause, you can use parameterized `GRAPH_TABLE`. In the example below, `a.id`\nfrom the `Accounts` table is passed into the `GRAPH_TABLE` scope:\n\n```sql\nSELECT\n  a.name,\n  g.total_amount\nFROM Accounts AS a\nJOIN GRAPH_TABLE(\n    \u003Cproject>.\u003Cdataset>.\u003Cgraph>\n    MATCH (src:Account {id: a.id})-[t:Transfers]->(dst:Account)\n    COLUMNS (SUM(t.amount) AS total_amount)\n) AS g\n```\n\n## Subquery Limitations\n\nA subquery in BigQuery GQL is enclosed in braces `{}` and evaluates nested\noperations within a linear query statement. While BigQuery Graph supports\nsubqueries, there are critical limitations and syntax differences compared to\nstandard GoogleSQL that you **MUST** adhere to.\n\n### Mandatory Graph Name Specification\n\nIn BigQuery Graph, unlike standard GoogleSQL, you **MUST** specify the graph\nname within the subquery block. If the outer query uses `GRAPH\n\u003Cproject>.\u003Cdataset>.\u003Cgraph>`, the internal subquery must also explicitly\nredeclare it.\n\n```sql\nMATCH (n1)\nWHERE EXISTS {\n  -- REQUIRED: You must re-specify the graph name here\n  GRAPH \u003Cproject>.\u003Cdataset>.\u003Cgraph>\n  MATCH (n2)\n  WHERE n1 = n2\n  RETURN 1 as one\n}\n```\n\nFailure to include the graph name in the subquery will result in a job-server\nerror.\n\n### The WHERE vs. FILTER Rule\n\nCertain types of subqueries **throw errors when used inside a `WHERE` clause**\nbecause BigQuery's query planner cannot decorrelate them if they act as join\npredicates.\n\nFor the following subquery types, you **CANNOT** use the `WHERE` clause. You\n**MUST** use the `FILTER` clause instead: `EXISTS`, `IN`, `LIKE`, and `LIKE\nANY\u002FSOME\u002FALL` subqueries.\n\n**INCORRECT (will throw error):**\n\n```sql\nMATCH (p:Person) WHERE EXISTS { GRAPH\n\u003Cproject>.\u003Cdataset>.\u003Cgraph> MATCH (p)-[:Owns]->(:Account) }\n```\n\n**CORRECT:**\n\n```sql\nMATCH (p:Person) FILTER EXISTS { GRAPH\n\u003Cproject>.\u003Cdataset>.\u003Cgraph> MATCH (p)-[:Owns]->(:Account) }\n```\n\n### Supported Subquery Types and Correlations\n\n-   **`ARRAY` Subquery**: Fully Supported. Evaluates the query block and returns\n    an array of the results.\n-   **`VALUE` Subquery**: Partially Supported. Evaluates the internal query and\n    returns a single scalar value. **Limitation**: `VALUE` subqueries throw\n    errors when correlated variables from the outer block are referenced inside\n    the `VALUE` subquery.\n-   **`EXISTS`, `IN`, `LIKE` Subqueries**: Partially Supported. **Limitation**:\n    Throw errors when correlated variables are used. Throw errors when used in\n    `WHERE` filter (Must use `FILTER`).\n\n## Query Optimization and Best Practices\n\nPerformance is a key consideration for highly connected BigQuery graphs. Adhere\nto these principles whenever writing GQL statements to ensure optimal execution.\n\n### 1. Start Traversals From Low-Cardinality Nodes\n\nAlways write your path traversals so they originate from the lowest cardinality\nnodes (the most specific entities). This drastically reduces the intermediate\nresult set sizes and speeds up execution, especially for variable-length\ntraversals.\n\n-   **Example**: Instead of starting from a highly active `Account` node and\n    traversing backwards to find the owner, start with the specific `Person`\n    node and traverse forward.\n-   **Filter Early**: Push specific properties (e.g., `Account {id: 7}`) as\n    early as possible in your `MATCH` clause to prune the search space\n    immediately.\n\n### 2. Specify Labels Explicitly\n\nYou must explicitly provide node and edge labels when they are known (e.g.,\n`(a:Account)-[:Transfers]->(b:Account)`).\n\nWhile BigQuery attempts to infer labels from query usage, if inference fails or\nlabels are omitted, the engine is forced to perform full table scans over\nmultiple distinct underlying node\u002Fedge tables.\n\n### 3. Avoid Bi-directional Graph Traversals\n\nBigQuery Graph schema physical implementations are directional. You should\nalways specify a source and destination node for an edge (using `->` or `\u003C-`).\n\nAlthough query pattern syntax allows for bidirectional or undirected path\ntraversal (`(node)-[edge]-(node)`), doing so incurs a severe implicit\nperformance penalty.\n\nIf you need to find an edge between two specific nodes regardless of direction,\n**DO NOT** use a bidirectional pattern. Instead, use explicit directional\ntraversals combined with `UNION ALL`:\n\n**GOOD:**\n\n```sql\nGRAPH \u003Cproject>.\u003Cdataset>.\u003Cgraph> MATCH (a1:Account\n{id:10})-[t:Transfer]->(a2:Account {id: 20}) RETURN t UNION ALL MATCH\n(a2:Account{id: 20})-[t:Transfer]->(a1:Account {id: 10}) RETURN t\n```\n\n### 4. Prefer Single MATCH Statements\n\nWhen possible without sacrificing readability or violating logic intent, prefer\ncomposing a single comprehensive `MATCH` statement over chaining multiple\nindividual `MATCH` statements. A single statement allows the query optimizer a\nwider global view of the graph pattern, often leading to better execution plans.\n",{"name":5,"license":15,"metadata":53,"description":56},{"author":54,"version":55},"google-adk","1.0","Skill for Graph Query Language (GQL) or SQL\u002FPGQ queries against a property graph.\nIncludes path finding, multi-hop traversal, topological connection, shortest path,\nnode reachability, edge connectivity, and semantic graph queries.\n","main","8cd3b12c8a5d658c5e0d3ea0731d8be34a092a4a","src\u002Fgoogle\u002Fadk\u002Fintegrations\u002Fbigquery\u002Fskills\u002Fbigquery-graph",4356,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fadk-python","https:\u002F\u002Fgoogle.github.io\u002Fadk-docs\u002F","https:\u002F\u002Fgithub.com\u002Fgoogle","https:\u002F\u002Fopensource.google\u002F","Google ❤️ Open Source","2026-11-14 14:38:36",{"source":8,"skillName":5,"commands":68,"prompt":78,"zipAvailable":79},[69,72,75],{"tool":70,"command":71},"npx","npx skills add google\u002Fadk-python --skill bigquery-graph",{"tool":73,"command":74},"bunx","bunx skills add google\u002Fadk-python --skill bigquery-graph",{"tool":76,"command":77},"pnpm","pnpm dlx skills add google\u002Fadk-python --skill bigquery-graph","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fadk-python\u002Fblob\u002Fmain\u002Fsrc\u002Fgoogle\u002Fadk\u002Fintegrations\u002Fbigquery\u002Fskills\u002Fbigquery-graph\u002FSKILL.md",true,[81,87,91,95,99],{"path":82,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":85,"sourceHtmlUrl":86},"references\u002Fgraph_schema\u002Fbest_practices.md","REFERENCE","参考文档",6543,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fadk-python\u002Fblob\u002Fmain\u002Fsrc\u002Fgoogle\u002Fadk\u002Fintegrations\u002Fbigquery\u002Fskills\u002Fbigquery-graph\u002Freferences\u002Fgraph_schema\u002Fbest_practices.md",{"path":88,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":89,"sourceHtmlUrl":90},"references\u002Fgraph_schema\u002Fddl_reference.md",7664,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fadk-python\u002Fblob\u002Fmain\u002Fsrc\u002Fgoogle\u002Fadk\u002Fintegrations\u002Fbigquery\u002Fskills\u002Fbigquery-graph\u002Freferences\u002Fgraph_schema\u002Fddl_reference.md",{"path":92,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":93,"sourceHtmlUrl":94},"references\u002Fgraph_schema\u002Ffeature_parity.md",4903,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fadk-python\u002Fblob\u002Fmain\u002Fsrc\u002Fgoogle\u002Fadk\u002Fintegrations\u002Fbigquery\u002Fskills\u002Fbigquery-graph\u002Freferences\u002Fgraph_schema\u002Ffeature_parity.md",{"path":96,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":97,"sourceHtmlUrl":98},"references\u002Fgraph_schema\u002Fgraph_schema_ddl_advisor.md",4203,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fadk-python\u002Fblob\u002Fmain\u002Fsrc\u002Fgoogle\u002Fadk\u002Fintegrations\u002Fbigquery\u002Fskills\u002Fbigquery-graph\u002Freferences\u002Fgraph_schema\u002Fgraph_schema_ddl_advisor.md",{"path":100,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":101,"sourceHtmlUrl":102},"references\u002Fsemantic_queries.md",3143,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fadk-python\u002Fblob\u002Fmain\u002Fsrc\u002Fgoogle\u002Fadk\u002Fintegrations\u002Fbigquery\u002Fskills\u002Fbigquery-graph\u002Freferences\u002Fsemantic_queries.md",[104,132,160,176,184,190],{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":111,"publishedAt":48},"01M698ZEVMRDDFX2MH3GHQGSNW","bigquery-ai-ml","Leverages BigQuery's built-in machine learning and GenAI capabilities for advanced data analytics. Use when you need to write SQL queries that perform time-series forecasting, predict values, detect outliers or anomalies, find key drivers, perform semantic search or vector search, classify text, calculate similarity, summarize content, translate language, evaluate models, filter by semantic conditions, measure the causal effect of an intervention, compute correlations between columns, detect change points or structural breaks, extract trend or seasonality components, or leverage generative AI capabilities in BigQuery. Do not use for general BigQuery dataset, table, or job management requests.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fadk-python\u002Fblob\u002Fmain\u002Fsrc\u002Fgoogle\u002Fadk\u002Fintegrations\u002Fbigquery\u002Fskills\u002Fbigquery-ai-ml\u002FSKILL.md",[110],{"categoryNo":24,"categoryName":25,"taxonomyType":26,"taxonomyTypeDesc":27},[112,113,30,114,47,9,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131],"ml","bigquery ai ml","ai ml","generative","you","advanced","summarize","genai","dataset","generative ai","translate","leverage","components","when","capabilities","search","vector","effect","structural","time",{"skillNo":133,"name":134,"nameZh":6,"description":135,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":136,"categories":137,"keywords":145,"publishedAt":48},"01M698ZCN6SZ9SJ8E9970M47FQ","code-review-skill","Reviews code with feedback tailored to the developer's profile in session state.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fadk-python\u002Fblob\u002Fmain\u002Fcontributing\u002Fsamples\u002Fenvironment_and_skills\u002Fskills_inject_state\u002Fskills\u002Fcode-review-skill\u002FSKILL.md",[138,141,142],{"categoryNo":139,"categoryName":140,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000007","代码审查",{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":143,"categoryName":144,"taxonomyType":26,"taxonomyTypeDesc":27},"01JBSEEDCAT000000000000030","开发工程师",[146,147,148,149,150,151,152,153,154,155,156,157,158,159],"review skill","code","code review skill","review","code review","with","session state","reviews","true","session","state","developer","feedback","profile",{"skillNo":161,"name":162,"nameZh":6,"description":163,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":164,"categories":165,"keywords":167,"publishedAt":48},"01M698ZAMH02NSGXMR533ETWYW","weather-skill","A skill that provides weather information based on reference data.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fadk-python\u002Fblob\u002Fmain\u002Fcontributing\u002Fsamples\u002Fenvironment_and_skills\u002Fskills_agent\u002Fskills\u002Fweather-skill\u002FSKILL.md",[166],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[168,169,170,171,172,173,174,175],"weather skill","weather","data","reference","speed","get","wind","information",{"skillNo":177,"name":162,"nameZh":6,"description":178,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":179,"categories":180,"keywords":182,"publishedAt":48},"01M698Z8QFDZ713E03589BHEG5","A skill that provides weather information based on reference data and scripts.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fadk-python\u002Fblob\u002Fmain\u002Fcontributing\u002Fsamples\u002Fenvironment_and_skills\u002Fskills\u002Fskills\u002Fweather-skill\u002FSKILL.md",[181],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[168,169,183,170,171,172,173,174,175],"scripts",{"skillNo":185,"name":162,"nameZh":6,"description":163,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":186,"categories":187,"keywords":189,"publishedAt":48},"01M698Z6P1NZFW6A6V342AWZPR","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fadk-python\u002Fblob\u002Fmain\u002Fcontributing\u002Fsamples\u002Fenvironment_and_skills\u002Flocal_environment_skill\u002Fskills\u002Fweather-skill\u002FSKILL.md",[188],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[168,169,170,171,175],{"skillNo":191,"name":192,"nameZh":6,"description":193,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":194,"categories":195,"keywords":197,"publishedAt":48},"01M698Z4XSEG2SXH0522KJNCD1","text-skill","A text processing skill that formats strings using shell scripts.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fadk-python\u002Fblob\u002Fmain\u002Fcontributing\u002Fsamples\u002Fenvironment_and_skills\u002Flocal_env_skill_toolset\u002Fskills\u002Ftext-skill\u002FSKILL.md",[196],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[198,199,200,201,183,202,203,204],"text skill","text","shell","shell scripts","processing","formats","strings"]