Professional Definition: The capability to identify and retrieve specific attributes that are encapsulated within semi-structured or unstructured text columns rather than being isolated in dedicated, typed relational columns. This requires the agent to combine schema item grounding with the generation of SQL string manipulation and pattern-matching functions (e.g., LIKE, SUBSTR, CAST) to extract and process values as if they were structured fields.
Dimension Hierarchy: Environment Grounding->Retrieval and Alignment->textual attribute grounding
Real Case
[Case 1]
Initial Environment: A relational database where the 'supplier' table contains s_suppkey, s_name, and s_address, but lacks a dedicated numeric 's_acctbal' column. Instead, a column named 'description' contains free-text entries such as 'Supplier#000004248 has an account balance of 7129.18 and is noted for...'
Real Question: Find the supply key of the top ten suppliers with the most account balance, and list the supply key along with the account balance in descending order of account balance.
Real Trajectory: 1. Inspect schema and notice s_acctbal is missing. 2. Read the 'description' column to locate the embedded balance information. 3. Identify the consistent prefix 'account balance of ' within the string. 4. Write a query that extracts the numeric portion via string functions and casts it to a literal for sorting.
Real Answer: SELECT s_suppkey, CAST(SUBSTR(description, INSTR(description, 'account balance of ') + 19) AS FLOAT) AS balance FROM supplier ORDER BY balance DESC LIMIT 10
Why this demonstrates the capability: This case tests the transition from a structured intent to a semi-structured source. The agent must realize the target column is 'description' and use non-trivial string arithmetic (INSTR + SUBSTR) and type casting to provide a sorted result that a simple SELECT cannot produce.
[Case 2]
Initial Environment: A biomedical database with a table called 'drug_performance'. The 'citation' column is missing; however, a 'clinical_notes' column contains sentences like 'As per the study (JCO.2020.V18), Alectinib demonstrated high efficacy...'
Real Question: Which reference is cited for the clinical data on Alectinib in the table?
Real Trajectory: 1. Ground the 'drug_performance' table and locate the 'clinical_notes' field. 2. Filter for rows where the text mentions 'Alectinib'. 3. Search for bracketed or parenthetical references within the retrieved text fragments. 4. Extract the citation string using pattern matching.
Real Answer: SELECT clinical_notes FROM drug_performance WHERE clinical_notes LIKE '%Alectinib%' AND clinical_notes LIKE '%(%)%'
Why this demonstrates the capability: This demonstrates textual attribute grounding by requiring the agent to find a specific 'hidden' entity (a citation) within a prose column. It isolates the challenge of recognizing that information is embedded rather than missing from the database entirely.
Pipeline Execution Instructions
To synthesize data for this capability, you must strictly follow a 3-phase pipeline. Do not hallucinate steps. Read the corresponding reference file for each phase sequentially:
Phase 1: Environment Exploration
Read the exploration guidelines to discover raw knowledge seeds:
references/EXPLORATION.md
Phase 2: Trajectory Selection
Once Phase 1 is complete, read the selection criteria to evaluate the trajectory:
references/SELECTION.md
Phase 3: Data Synthesis
Once a trajectory passes Phase 2, read the synthesis instructions to generate the final data:
references/SYNTHESIS.md
1---2name: textual-attribute-grounding3description: Skill: textual attribute grounding4---56# Skill: textual attribute grounding78## 1. Capability Definition & Real Case9* **Professional Definition**: The capability to identify and retrieve specific attributes that are encapsulated within semi-structured or unstructured text columns rather than being isolated in dedicated, typed relational columns. This requires the agent to combine schema item grounding with the generation of SQL string manipulation and pattern-matching functions (e.g., LIKE, SUBSTR, CAST) to extract and process values as if they were structured fields.10* **Dimension Hierarchy**: Environment Grounding->Retrieval and Alignment->textual attribute grounding1112### Real Case13**[Case 1]**14* **Initial Environment**: A relational database where the 'supplier' table contains s_suppkey, s_name, and s_address, but lacks a dedicated numeric 's_acctbal' column. Instead, a column named 'description' contains free-text entries such as 'Supplier#000004248 has an account balance of 7129.18 and is noted for...'15* **Real Question**: Find the supply key of the top ten suppliers with the most account balance, and list the supply key along with the account balance in descending order of account balance.16* **Real Trajectory**: 1. Inspect schema and notice s_acctbal is missing. 2. Read the 'description' column to locate the embedded balance information. 3. Identify the consistent prefix 'account balance of ' within the string. 4. Write a query that extracts the numeric portion via string functions and casts it to a literal for sorting.17* **Real Answer**: SELECT s_suppkey, CAST(SUBSTR(description, INSTR(description, 'account balance of ') + 19) AS FLOAT) AS balance FROM supplier ORDER BY balance DESC LIMIT 1018* **Why this demonstrates the capability**: This case tests the transition from a structured intent to a semi-structured source. The agent must realize the target column is 'description' and use non-trivial string arithmetic (INSTR + SUBSTR) and type casting to provide a sorted result that a simple SELECT cannot produce.19---20**[Case 2]**21* **Initial Environment**: A biomedical database with a table called 'drug_performance'. The 'citation' column is missing; however, a 'clinical_notes' column contains sentences like 'As per the study (JCO.2020.V18), Alectinib demonstrated high efficacy...'22* **Real Question**: Which reference is cited for the clinical data on Alectinib in the table?23* **Real Trajectory**: 1. Ground the 'drug_performance' table and locate the 'clinical_notes' field. 2. Filter for rows where the text mentions 'Alectinib'. 3. Search for bracketed or parenthetical references within the retrieved text fragments. 4. Extract the citation string using pattern matching.24* **Real Answer**: SELECT clinical_notes FROM drug_performance WHERE clinical_notes LIKE '%Alectinib%' AND clinical_notes LIKE '%(%)%'25* **Why this demonstrates the capability**: This demonstrates textual attribute grounding by requiring the agent to find a specific 'hidden' entity (a citation) within a prose column. It isolates the challenge of recognizing that information is embedded rather than missing from the database entirely.2627## Pipeline Execution Instructions28To synthesize data for this capability, you must strictly follow a 3-phase pipeline. **Do not hallucinate steps.** Read the corresponding reference file for each phase sequentially:29301. **Phase 1: Environment Exploration**31 Read the exploration guidelines to discover raw knowledge seeds:32 `references/EXPLORATION.md`33342. **Phase 2: Trajectory Selection**35 Once Phase 1 is complete, read the selection criteria to evaluate the trajectory:36 `references/SELECTION.md`37383. **Phase 3: Data Synthesis**39 Once a trajectory passes Phase 2, read the synthesis instructions to generate the final data:40 `references/SYNTHESIS.md`
Run npx skillmds@latest add dingxingdi/textual-attribute-grounding in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Skill: textual attribute grounding It is listed under Data & Analytics on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
dingxingdi (@dingxingdi) published this skill. Their other Agent Skills are listed on their SkillMD profile.