execute_query
Execute SQL SELECT queries on clinical datasets like MIMIC-IV and eICU to analyze tabular EHR data and clinical notes.
Instructions
🚀 Execute SQL queries to analyze data.
Recommended workflow:
Use get_database_schema() to list tables
Use get_table_info() to examine structure
Write your SQL query with exact names
Args: dataset: Dataset name, e.g. 'mimic-iv'. sql_query: Your SQL SELECT query (SELECT only).
Returns: Query results or helpful error messages.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql_query | Yes | ||
| dataset | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |