Reference: Sujansky, W. & Shwe, M. The SQLX System: Generating Explanations for Clinical Rules Encoded in SQL. 1992.
Abstract: We have developed a system to provide case-specific explanations for SQL query results. The explanation facility, called SQLX, is intended to improve user acceptance of clinical rules that are encoded in the SQL query language and are triggered by updates to a relational database. Our design goal is to combine the efficiency and familiarity of the SQL query model with a more intuitive and case-specific display of query results. SQLX defines an augmented SQL syntax that allow the incorporation of explanation text directly into query specifications. A query analyzer determines which retrieved data logically contribute to rule firing, and combines the data with explantion text to generate a case-specific explanation. Although features of the SQL query model limit the use of this method as a general-purpose rule-explanation facility, the current design accomodates a wide range of SQL query formulations and can provide efficient processing and intuitive explanations of many clinical rules.