[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6MGXHA3BCN4N9TWHYD46E9E":3,"skill-same:01M6MGXHA3BCN4N9TWHYD46E9E":63},{"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":18,"publishedAt":34,"linkOnly":35,"markdownContent":36,"markdownBody":37,"frontMatter":38,"refName":39,"commitSha":40,"skillDirectory":41,"forksCount":42,"repositoryHtmlUrl":43,"repositoryHomepageUrl":44,"ownerHtmlUrl":45,"ownerBlogUrl":46,"ownerDescription":47,"updatedAt":48,"install":49,"resources":62},"01M6MGXHA3BCN4N9TWHYD46E9E","query",null,"Use when the user wants to query, analyze, or explore data through the Honeydew semantic layer. Covers structured queries and multi-step deep analysis.","hashgraph-online\u002Fawesome-codex-plugins","hashgraph-online","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F160371962?v=4","01M6CNB6NRJVNNGN14TR01Q6D3","HOL (Hashgraph Online)","01M6JT1HSKKG9V68KQAQGBA7XP",1575,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fhoneydew-ai\u002Fhoneydew-ai-coding-agents-plugins\u002Fskills\u002Fquery\u002FSKILL.md",[],[5,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33],"deep analysis","data","analysis","explore","analyze","user","use","queries","structured","deep","semantic","explore data","multi","layer","when","2026-11-10 10:12:30",false,"---\nname: query\ndescription: Use when the user wants to query, analyze, or explore data through the Honeydew semantic layer. Covers structured queries and multi-step deep analysis.\n---\n\n## Prerequisites\n\nQueries run against the workspace and branch set for the current session. Use `get_session_workspace_and_branch` to check the current context. If no workspace\u002Fbranch is set, use `list_workspaces`, `list_workspace_branches`, and `set_session_workspace_and_branch` to select one. See the `model-exploration` skill for the full workspace\u002Fbranch tool reference.\n\n---\n\n## Overview\n\nHoneydew provides three ways to query data through the semantic layer. Each method suits a different situation — pick the right one based on how well you understand the model and how complex the question is.\n\n| Method               | Tool                                           | Best For                                                                         |\n| -------------------- | ---------------------------------------------- | -------------------------------------------------------------------------------- |\n| **Structured query** | `get_data_from_fields` \u002F `get_sql_from_fields` | You know the exact fields. Deterministic, full control.                          |\n| **Deep analysis**    | `ask_deep_analysis_question`                   | Any natural language question — simple or complex, \"why\", multi-step, agentic.  |\n\n---\n\n## When to Use Each Method\n\n### 1. Structured Query (`get_data_from_fields` \u002F `get_sql_from_fields`)\n\n**Use when:**\n\n- You know the entity, attribute, and metric names (or can discover them via `list_entities` \u002F `get_entity`)\n- You need precise control over filters, ordering, and field selection\n- You want deterministic, reproducible results\n- You need to validate a newly created metric or attribute\n- The user specifies exact fields like \"show me `detailed_listings.price` by `detailed_listings.room_type`\"\n\n**Do NOT use when:**\n\n- The question requires multi-step reasoning or investigation\n\n**How it works:**\n\n- `get_data_from_fields` — executes the query and returns data rows\n- `get_sql_from_fields` — returns the generated SQL without executing (useful for review, debugging, or handing off to other tools)\n\nBoth take the same field parameters.\n\n### 2. Deep Analysis (`ask_deep_analysis_question`)\n\n**Use when:**\n\n- The user asks a question in plain English and you don't know the exact field names\n- The user wants a quick answer without worrying about model details\n- The question requires multiple steps or investigative reasoning\n- The user asks \"why\" something happened (e.g., \"why did revenue drop in Q3?\")\n- The user wants trend analysis, anomaly detection, or root cause investigation\n- The question is open-ended and may require looking at the data from multiple angles\n- Follow-up questions build on prior analysis (use `conversation_id`)\n\n---\n\n## Decision Flow\n\n```\nUser asks a data question\n    │\n    ├─► Do you know the exact field names?\n    │       │\n    │       ├─► YES → get_data_from_fields (structured, deterministic)\n    │       │         (or get_sql_from_fields to preview SQL without executing)\n    │       │\n    │       └─► NO → ask_deep_analysis_question (plain English, any complexity)\n    │\n    └─► Plain English question \u002F investigation \u002F \"why\" \u002F trends?\n            └─► ask_deep_analysis_question\n```\n\n---\n\n## Method 1: Structured Query\n\n### Field Parameters\n\nA structured query uses flat field parameters to define what data to retrieve:\n\n- **`attributes`** — dimensions to group by (columns in the output), e.g. `[\"entity.attribute_name\"]`\n- **`metrics`** — aggregated measures (SUM, COUNT, AVG, etc.), e.g. `[\"entity.metric_name\"]`\n- **`filters`** — row-level filters applied before aggregation, e.g. `[\"entity.field = 'value'\"]`\n- **`order_by`** — sort order for results. **Each entry MUST be a quoted string**, as if it were a SQL identifier — e.g. `[\"\\\"entity.field\\\" ASC\"]`. Always wrap the field reference in double quotes inside the string.\n- **`domain`** — optional domain name for query context\n- **`limit`** — max rows to return (default: 100)\n- **`offset`** — rows to skip (for pagination)\n\nAll fields use `entity.field_name` syntax. Cross-entity fields are supported when relations exist.\n\n### Discovering Fields\n\nBefore building a query, discover the available fields:\n\n1. `list_entities` — see all entities\n2. `get_entity` with entity name — see its attributes, metrics, and relations\n3. `get_field` with entity and field name — get detailed info about a specific field\n4. `list_domains` — see all available domains (useful before passing `domain` parameter)\n5. `search_model` with a keyword and `search_mode` (`OR` for broad discovery, `EXACT` for known names) — find fields across the model\n\n### Examples\n\n**Simple metric query — total count:**\n\nCall `get_data_from_fields` with:\n\n- `metrics`: `[\"detailed_listings.count\"]`\n\n**Dimension breakdown — listings by room type:**\n\nCall `get_data_from_fields` with:\n\n- `attributes`: `[\"detailed_listings.room_type\"]`\n- `metrics`: `[\"detailed_listings.count\"]`\n- `order_by`: `[\"\\\"detailed_listings.count\\\" DESC\"]`\n\n**Filtered query — only entire homes:**\n\nCall `get_data_from_fields` with:\n\n- `attributes`: `[\"detailed_listings.neighbourhood_cleansed\"]`\n- `metrics`: `[\"detailed_listings.count\"]`\n- `filters`: `[\"detailed_listings.room_type = 'Entire home\u002Fapt'\"]`\n- `order_by`: `[\"\\\"detailed_listings.count\\\" DESC\"]`\n\n**Cross-entity query — listings with host info:**\n\nCall `get_data_from_fields` with:\n\n- `attributes`: `[\"detailed_listings.room_type\", \"dim_host.host_is_superhost\"]`\n- `metrics`: `[\"detailed_listings.count\"]`\n- `order_by`: `[\"\\\"detailed_listings.count\\\" DESC\"]`\n\n**Using aliases — rename fields or ad-hoc expressions:**\n\nYou can alias any field or ad-hoc expression using `AS \"alias_name\"`. This controls the column name in the output.\n\nCall `get_data_from_fields` with:\n\n- `attributes`: `[\"detailed_listings.room_type\"]`\n- `metrics`: `[\"detailed_listings.count AS \\\"total_listings\\\"\", \"AVG(detailed_listings.price) AS \\\"avg_price\\\"\"]`\n- `order_by`: `[\"\\\"total_listings\\\" DESC\"]`\n\nOnce aliased, use the alias (not the original expression) in `order_by`.\n\n**Pagination — large result sets:**\n\nCall `get_data_from_fields` with:\n\n- `attributes`: (your fields)\n- `metrics`: (your metrics)\n- `limit`: 50 (max rows to return)\n- `offset`: 100 (skip first 100 rows)\n\n**Finding duplicate values:**\n\nCall `get_data_from_fields` with:\n\n- `attributes`: `[\"detailed_listings.host_name\"]`\n- `metrics`: `[\"COUNT(detailed_listings.host_name)\"]`\n- `filters`: `[\"COUNT(detailed_listings.host_name) > 1\"]`\n- `order_by`: `[\"\\\"COUNT(detailed_listings.host_name)\\\" DESC\"]`\n\nThis groups by the attribute, counts occurrences, and filters to only rows that appear more than once — surfacing duplicates.\n\n**SQL preview only:**\n\nCall `get_sql_from_fields` with the same field parameters to see the generated SQL without executing.\n\n### Filter Syntax\n\nFilters use standard comparison expressions: `=`, `>`, `\u003C`, `IN (...)`, `ILIKE`, `SEARCH(...)`, `IS NULL`, booleans, date ranges, and `AND`\u002F`OR` combinations.\n\n> For the complete filter expression reference — including SEARCH, date handling, and type casting — see the **filtering** skill.\n\n---\n\n## Method 2: Deep Analysis\n\n### ask_deep_analysis_question\n\nCall with:\n\n- `question` (required): the analysis question\n- `agent` (optional): agent name to use as analysis context — use `list_agents` to discover available agents and their associated domains\n- `conversation_id` (optional): ID from a previous deep analysis call, for follow-up questions\n\n```\nquestion: \"Analyze the relationship between host response time and review scores. Are there significant patterns?\"\nagent: \"my_agent\"\n```\n\nReturns:\n\n- Markdown analysis report with findings\n- Supporting data\n- Suggested follow-up questions\n- `conversation_id` for continuing the conversation\n\n### After Deep Analysis: Display the UI Link\n\nAfter a successful `ask_deep_analysis_question` call, the response includes a `ui_url` field. **Always display this URL to the user** so they can view the full analysis in the Honeydew application.\n\n### Follow-up Questions\n\nUse `conversation_id` from the previous response to ask follow-up questions that build on the prior analysis:\n\n```\nquestion: \"Now break this down by room type — does the pattern hold across all types?\"\nagent: \"my_agent\"\nconversation_id: \"\u003Cid from previous response>\"\n```\n\n### Example Questions\n\n**Simple natural language:**\n- \"What are the top 10 neighbourhoods by number of listings?\"\n- \"Show me average price by room type.\"\n\n**Complex analysis:**\n- \"Why did the average review score drop for listings in Brooklyn?\"\n- \"What factors most influence listing price? Analyze the key drivers.\"\n- \"Compare superhost vs non-superhost performance across all metrics.\"\n- \"Identify unusual patterns in listing availability over the past year.\"\n- \"What are the characteristics of top-performing listings?\"\n\n---\n\n## Combining Methods\n\nFor complex tasks, combine methods in sequence:\n\n1. **Discover** — Use `list_entities` \u002F `get_entity` to understand the model\n2. **Query** — Use `get_data_from_fields` for precise, targeted queries\n3. **Investigate** — Use `ask_deep_analysis_question` for root cause or trend analysis\n\n### Example Workflow\n\nUser: \"Help me understand pricing patterns for Airbnb listings.\"\n\n1. Discover entities: `list_entities` → find `detailed_listings`\n2. Explore fields: `get_entity` for `detailed_listings` → find `price`, `room_type`, `neighbourhood_cleansed`\n3. Targeted query: `get_data_from_fields` → price distribution by neighbourhood for Entire homes only\n4. Deep dive: `ask_deep_analysis_question` → \"What factors most influence listing price? Analyze correlations with room type, location, amenities, and reviews.\"\n\n---\n\n## Documentation Lookup\n\nUse the `honeydew-docs` MCP tools to search the Honeydew documentation when:\n\n- The user asks about query capabilities or features not covered in this skill\n- You need to understand how the query API interacts with domains, parameters, or governance rules\n- The user encounters unexpected query behavior and needs deeper context on how the semantic layer resolves queries\n\nSearch for topics like: \"queries\", \"perspectives\", \"dynamic datasets\", \"parameters\", \"query API\".\n\n---\n\n## Tip: Getting Distinct Values for a Field\n\nTo retrieve the distinct (unique) values of a field, include it in `attributes` and add a count metric in `metrics`.\nUse the entity's built-in count metric (e.g., `entity.count`) if available, or an ad-hoc count metric using `COUNT(entity.field)`\non the field whose distinct values you want — never use `COUNT(*)`.\nThe metric forces aggregation, which groups by the attribute and returns one row per distinct value.\n\n**Example — distinct room types:**\n\nCall `get_data_from_fields` with:\n\n- `attributes`: `[\"detailed_listings.room_type\"]`\n- `metrics`: `[\"COUNT(detailed_listings.room_type)\"]`\n- `order_by`: `[\"\\\"COUNT(detailed_listings.room_type)\\\" DESC\"]`\n\nThis returns each unique `room_type` along with its count, ordered by frequency. The count is a useful bonus — it tells you how common each value is — but the key point is that the query returns **one row per distinct value**.\n\nThis pattern is useful for:\n\n- **Exploring filter values** — find out what values exist before writing a filter expression (see the **filtering** skill)\n- **Validating a new attribute** — after creating a calculated attribute, check its distinct output values to confirm the logic is correct (see the **attribute-creation** skill)\n- **Understanding data distribution** — see how data is spread across categories\n\n---\n\n## Best Practices\n\n- **Start with discovery** — always check `list_entities` \u002F `get_entity` before building queries, so you reference real fields\n- **Use structured queries for precision** — when you know the fields, `get_data_from_fields` gives you full control and reproducible results\n- **Use deep analysis for insight** — when the question is about \"why\" or requires investigating multiple dimensions\n- **Paginate large results** — use `limit` and `offset` in `get_data_from_fields` to avoid overwhelming output\n- **Show SQL when debugging** — use `get_sql_from_fields` to inspect the generated query\n- **Reference fields correctly** — always use `entity.field_name` syntax in field parameters\n","## Prerequisites\n\nQueries run against the workspace and branch set for the current session. Use `get_session_workspace_and_branch` to check the current context. If no workspace\u002Fbranch is set, use `list_workspaces`, `list_workspace_branches`, and `set_session_workspace_and_branch` to select one. See the `model-exploration` skill for the full workspace\u002Fbranch tool reference.\n\n---\n\n## Overview\n\nHoneydew provides three ways to query data through the semantic layer. Each method suits a different situation — pick the right one based on how well you understand the model and how complex the question is.\n\n| Method               | Tool                                           | Best For                                                                         |\n| -------------------- | ---------------------------------------------- | -------------------------------------------------------------------------------- |\n| **Structured query** | `get_data_from_fields` \u002F `get_sql_from_fields` | You know the exact fields. Deterministic, full control.                          |\n| **Deep analysis**    | `ask_deep_analysis_question`                   | Any natural language question — simple or complex, \"why\", multi-step, agentic.  |\n\n---\n\n## When to Use Each Method\n\n### 1. Structured Query (`get_data_from_fields` \u002F `get_sql_from_fields`)\n\n**Use when:**\n\n- You know the entity, attribute, and metric names (or can discover them via `list_entities` \u002F `get_entity`)\n- You need precise control over filters, ordering, and field selection\n- You want deterministic, reproducible results\n- You need to validate a newly created metric or attribute\n- The user specifies exact fields like \"show me `detailed_listings.price` by `detailed_listings.room_type`\"\n\n**Do NOT use when:**\n\n- The question requires multi-step reasoning or investigation\n\n**How it works:**\n\n- `get_data_from_fields` — executes the query and returns data rows\n- `get_sql_from_fields` — returns the generated SQL without executing (useful for review, debugging, or handing off to other tools)\n\nBoth take the same field parameters.\n\n### 2. Deep Analysis (`ask_deep_analysis_question`)\n\n**Use when:**\n\n- The user asks a question in plain English and you don't know the exact field names\n- The user wants a quick answer without worrying about model details\n- The question requires multiple steps or investigative reasoning\n- The user asks \"why\" something happened (e.g., \"why did revenue drop in Q3?\")\n- The user wants trend analysis, anomaly detection, or root cause investigation\n- The question is open-ended and may require looking at the data from multiple angles\n- Follow-up questions build on prior analysis (use `conversation_id`)\n\n---\n\n## Decision Flow\n\n```\nUser asks a data question\n    │\n    ├─► Do you know the exact field names?\n    │       │\n    │       ├─► YES → get_data_from_fields (structured, deterministic)\n    │       │         (or get_sql_from_fields to preview SQL without executing)\n    │       │\n    │       └─► NO → ask_deep_analysis_question (plain English, any complexity)\n    │\n    └─► Plain English question \u002F investigation \u002F \"why\" \u002F trends?\n            └─► ask_deep_analysis_question\n```\n\n---\n\n## Method 1: Structured Query\n\n### Field Parameters\n\nA structured query uses flat field parameters to define what data to retrieve:\n\n- **`attributes`** — dimensions to group by (columns in the output), e.g. `[\"entity.attribute_name\"]`\n- **`metrics`** — aggregated measures (SUM, COUNT, AVG, etc.), e.g. `[\"entity.metric_name\"]`\n- **`filters`** — row-level filters applied before aggregation, e.g. `[\"entity.field = 'value'\"]`\n- **`order_by`** — sort order for results. **Each entry MUST be a quoted string**, as if it were a SQL identifier — e.g. `[\"\\\"entity.field\\\" ASC\"]`. Always wrap the field reference in double quotes inside the string.\n- **`domain`** — optional domain name for query context\n- **`limit`** — max rows to return (default: 100)\n- **`offset`** — rows to skip (for pagination)\n\nAll fields use `entity.field_name` syntax. Cross-entity fields are supported when relations exist.\n\n### Discovering Fields\n\nBefore building a query, discover the available fields:\n\n1. `list_entities` — see all entities\n2. `get_entity` with entity name — see its attributes, metrics, and relations\n3. `get_field` with entity and field name — get detailed info about a specific field\n4. `list_domains` — see all available domains (useful before passing `domain` parameter)\n5. `search_model` with a keyword and `search_mode` (`OR` for broad discovery, `EXACT` for known names) — find fields across the model\n\n### Examples\n\n**Simple metric query — total count:**\n\nCall `get_data_from_fields` with:\n\n- `metrics`: `[\"detailed_listings.count\"]`\n\n**Dimension breakdown — listings by room type:**\n\nCall `get_data_from_fields` with:\n\n- `attributes`: `[\"detailed_listings.room_type\"]`\n- `metrics`: `[\"detailed_listings.count\"]`\n- `order_by`: `[\"\\\"detailed_listings.count\\\" DESC\"]`\n\n**Filtered query — only entire homes:**\n\nCall `get_data_from_fields` with:\n\n- `attributes`: `[\"detailed_listings.neighbourhood_cleansed\"]`\n- `metrics`: `[\"detailed_listings.count\"]`\n- `filters`: `[\"detailed_listings.room_type = 'Entire home\u002Fapt'\"]`\n- `order_by`: `[\"\\\"detailed_listings.count\\\" DESC\"]`\n\n**Cross-entity query — listings with host info:**\n\nCall `get_data_from_fields` with:\n\n- `attributes`: `[\"detailed_listings.room_type\", \"dim_host.host_is_superhost\"]`\n- `metrics`: `[\"detailed_listings.count\"]`\n- `order_by`: `[\"\\\"detailed_listings.count\\\" DESC\"]`\n\n**Using aliases — rename fields or ad-hoc expressions:**\n\nYou can alias any field or ad-hoc expression using `AS \"alias_name\"`. This controls the column name in the output.\n\nCall `get_data_from_fields` with:\n\n- `attributes`: `[\"detailed_listings.room_type\"]`\n- `metrics`: `[\"detailed_listings.count AS \\\"total_listings\\\"\", \"AVG(detailed_listings.price) AS \\\"avg_price\\\"\"]`\n- `order_by`: `[\"\\\"total_listings\\\" DESC\"]`\n\nOnce aliased, use the alias (not the original expression) in `order_by`.\n\n**Pagination — large result sets:**\n\nCall `get_data_from_fields` with:\n\n- `attributes`: (your fields)\n- `metrics`: (your metrics)\n- `limit`: 50 (max rows to return)\n- `offset`: 100 (skip first 100 rows)\n\n**Finding duplicate values:**\n\nCall `get_data_from_fields` with:\n\n- `attributes`: `[\"detailed_listings.host_name\"]`\n- `metrics`: `[\"COUNT(detailed_listings.host_name)\"]`\n- `filters`: `[\"COUNT(detailed_listings.host_name) > 1\"]`\n- `order_by`: `[\"\\\"COUNT(detailed_listings.host_name)\\\" DESC\"]`\n\nThis groups by the attribute, counts occurrences, and filters to only rows that appear more than once — surfacing duplicates.\n\n**SQL preview only:**\n\nCall `get_sql_from_fields` with the same field parameters to see the generated SQL without executing.\n\n### Filter Syntax\n\nFilters use standard comparison expressions: `=`, `>`, `\u003C`, `IN (...)`, `ILIKE`, `SEARCH(...)`, `IS NULL`, booleans, date ranges, and `AND`\u002F`OR` combinations.\n\n> For the complete filter expression reference — including SEARCH, date handling, and type casting — see the **filtering** skill.\n\n---\n\n## Method 2: Deep Analysis\n\n### ask_deep_analysis_question\n\nCall with:\n\n- `question` (required): the analysis question\n- `agent` (optional): agent name to use as analysis context — use `list_agents` to discover available agents and their associated domains\n- `conversation_id` (optional): ID from a previous deep analysis call, for follow-up questions\n\n```\nquestion: \"Analyze the relationship between host response time and review scores. Are there significant patterns?\"\nagent: \"my_agent\"\n```\n\nReturns:\n\n- Markdown analysis report with findings\n- Supporting data\n- Suggested follow-up questions\n- `conversation_id` for continuing the conversation\n\n### After Deep Analysis: Display the UI Link\n\nAfter a successful `ask_deep_analysis_question` call, the response includes a `ui_url` field. **Always display this URL to the user** so they can view the full analysis in the Honeydew application.\n\n### Follow-up Questions\n\nUse `conversation_id` from the previous response to ask follow-up questions that build on the prior analysis:\n\n```\nquestion: \"Now break this down by room type — does the pattern hold across all types?\"\nagent: \"my_agent\"\nconversation_id: \"\u003Cid from previous response>\"\n```\n\n### Example Questions\n\n**Simple natural language:**\n- \"What are the top 10 neighbourhoods by number of listings?\"\n- \"Show me average price by room type.\"\n\n**Complex analysis:**\n- \"Why did the average review score drop for listings in Brooklyn?\"\n- \"What factors most influence listing price? Analyze the key drivers.\"\n- \"Compare superhost vs non-superhost performance across all metrics.\"\n- \"Identify unusual patterns in listing availability over the past year.\"\n- \"What are the characteristics of top-performing listings?\"\n\n---\n\n## Combining Methods\n\nFor complex tasks, combine methods in sequence:\n\n1. **Discover** — Use `list_entities` \u002F `get_entity` to understand the model\n2. **Query** — Use `get_data_from_fields` for precise, targeted queries\n3. **Investigate** — Use `ask_deep_analysis_question` for root cause or trend analysis\n\n### Example Workflow\n\nUser: \"Help me understand pricing patterns for Airbnb listings.\"\n\n1. Discover entities: `list_entities` → find `detailed_listings`\n2. Explore fields: `get_entity` for `detailed_listings` → find `price`, `room_type`, `neighbourhood_cleansed`\n3. Targeted query: `get_data_from_fields` → price distribution by neighbourhood for Entire homes only\n4. Deep dive: `ask_deep_analysis_question` → \"What factors most influence listing price? Analyze correlations with room type, location, amenities, and reviews.\"\n\n---\n\n## Documentation Lookup\n\nUse the `honeydew-docs` MCP tools to search the Honeydew documentation when:\n\n- The user asks about query capabilities or features not covered in this skill\n- You need to understand how the query API interacts with domains, parameters, or governance rules\n- The user encounters unexpected query behavior and needs deeper context on how the semantic layer resolves queries\n\nSearch for topics like: \"queries\", \"perspectives\", \"dynamic datasets\", \"parameters\", \"query API\".\n\n---\n\n## Tip: Getting Distinct Values for a Field\n\nTo retrieve the distinct (unique) values of a field, include it in `attributes` and add a count metric in `metrics`.\nUse the entity's built-in count metric (e.g., `entity.count`) if available, or an ad-hoc count metric using `COUNT(entity.field)`\non the field whose distinct values you want — never use `COUNT(*)`.\nThe metric forces aggregation, which groups by the attribute and returns one row per distinct value.\n\n**Example — distinct room types:**\n\nCall `get_data_from_fields` with:\n\n- `attributes`: `[\"detailed_listings.room_type\"]`\n- `metrics`: `[\"COUNT(detailed_listings.room_type)\"]`\n- `order_by`: `[\"\\\"COUNT(detailed_listings.room_type)\\\" DESC\"]`\n\nThis returns each unique `room_type` along with its count, ordered by frequency. The count is a useful bonus — it tells you how common each value is — but the key point is that the query returns **one row per distinct value**.\n\nThis pattern is useful for:\n\n- **Exploring filter values** — find out what values exist before writing a filter expression (see the **filtering** skill)\n- **Validating a new attribute** — after creating a calculated attribute, check its distinct output values to confirm the logic is correct (see the **attribute-creation** skill)\n- **Understanding data distribution** — see how data is spread across categories\n\n---\n\n## Best Practices\n\n- **Start with discovery** — always check `list_entities` \u002F `get_entity` before building queries, so you reference real fields\n- **Use structured queries for precision** — when you know the fields, `get_data_from_fields` gives you full control and reproducible results\n- **Use deep analysis for insight** — when the question is about \"why\" or requires investigating multiple dimensions\n- **Paginate large results** — use `limit` and `offset` in `get_data_from_fields` to avoid overwhelming output\n- **Show SQL when debugging** — use `get_sql_from_fields` to inspect the generated query\n- **Reference fields correctly** — always use `entity.field_name` syntax in field parameters\n",{"name":5,"description":7},"main","2b63f856ce19c2a797929cacabd9e0fc936812fa","plugins\u002Fhoneydew-ai\u002Fhoneydew-ai-coding-agents-plugins\u002Fskills\u002Fquery",491,"https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins","https:\u002F\u002Fhol.org\u002Fplugins\u002Fbest-codex-plugins","https:\u002F\u002Fgithub.com\u002Fhashgraph-online","https:\u002F\u002Fhol.org","Open-source standards and developer tools for interoperable AI agents: discovery, identity, communication, payments, privacy and security.","2026-11-14 14:06:13",{"source":8,"skillName":5,"commands":50,"prompt":60,"zipAvailable":61},[51,54,57],{"tool":52,"command":53},"npx","npx skills add hashgraph-online\u002Fawesome-codex-plugins --skill query",{"tool":55,"command":56},"bunx","bunx skills add hashgraph-online\u002Fawesome-codex-plugins --skill query",{"tool":58,"command":59},"pnpm","pnpm dlx skills add hashgraph-online\u002Fawesome-codex-plugins --skill query","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fhoneydew-ai\u002Fhoneydew-ai-coding-agents-plugins\u002Fskills\u002Fquery\u002FSKILL.md",true,[],[64,74,82,90,98,106],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":68,"licenseFileUrl":69,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":73},"01M7DV332YQMGD8WTRJ9DZQXTB","worktable-review-with-annotations","Create, inspect, reply to, update, or resolve situated Worktable annotations. Use when feedback belongs to a Doc section, block, text range, or HTML Doc, or when the user asks to address existing review feedback and coordinate a requested artifact edit.","MIT","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-review-with-annotations\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-review-with-annotations\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":68,"licenseFileUrl":78,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":73},"01M7DV2YGHCZVBEB1AHYB6CGHE","worktable-find-and-synthesize-context","Find, assess, and synthesize context from Worktable Docs and Records. Use when the user asks what a workspace contains, wants workspace-backed research, needs current facts reconciled across artifacts, or requests a cited synthesis without changing workspace state.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-find-and-synthesize-context\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-find-and-synthesize-context\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":68,"licenseFileUrl":86,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":73},"01M7DV2TQN1H11ME2SAF9MXN7V","worktable-create-or-update-docs","Create, edit, rename, or maintain narrative Worktable Docs. Use for plans, decisions, briefs, notes, research syntheses, and other durable prose when the user requests a new artifact or a safe update to an existing one.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-update-docs\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-update-docs\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":68,"licenseFileUrl":94,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":73},"01M7DV2NE452NEA8TXATKSNAJH","worktable-create-or-manage-records","Organize repeated structured information as durable Worktable Records. Use for research datasets, inventories, directories, pipelines, trackers, and other collections whose items need identity, fields, filtering, links, validation, or individual updates.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-manage-records\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-manage-records\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":68,"licenseFileUrl":102,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":73},"01M7DV2HENRBR2KSCVM064WH0Y","worktable-create-or-manage-interactive-html","Create or improve durable visual and interactive artifacts in Worktable. Use for dashboards, trackers, calculators, mini apps, slide presentations, and other requests that benefit from a polished HTML Doc.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-manage-interactive-html\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-manage-interactive-html\u002FSKILL.md",[],[],{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":68,"licenseFileUrl":110,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":73},"01M7DV2CADR5R7RQFFYPNAGR9Y","worktable-collaborate-threads","Read, answer, and hand off messages through durable Worktable threads with users or other authenticated participants. Use when the user asks to check addressed messages, reply to a participant, continue a thread, request another agent's help, wait briefly for a response, or watch for comments and messages sent to the agent.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-collaborate-threads\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-collaborate-threads\u002FSKILL.md",[],[]]