NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Easing access to relational databases:investigating access to relational databases in the context of both novice and would-be expert users

Philip N. GarnerLancaster 2016

Abstract

Relational databases are commonplace in a wide variety of applications and are used by a broad range of users with varying levels of technical understanding. Extracting information from relational databases can be difficult; novice users should be able to do so without any understanding of the database structure or query languages and those who wish to become experts can find it difficult to learn the skills required. This thesis presents two applications: Context Aware Free Text ANalysis (CAFTAN) that aims to provide accurate keyword query interpretations for novices, and SQL in Steps (SiS) designed for students learning SQL. Both CAFTAN and SiS are subject to detailed evaluations; the former is shown to be capable of interpreting keyword queries in a way similar to humans; the latter was integrated into an undergraduate databases course and showed the potential benefits of introducing graphical aids into a student's learning process. The findings presented in this thesis have the potential to improve keyword search over relational databases in both a generic and customised context, as well as easing the process of learning SQL for new experts.

Introduction

Relational databases serve as the silent engines of the modern digital world, yet they remain largely inaccessible to those without mastery of Structured Query Language (SQL). This research identifies two primary gaps in database accessibility: the Novice Gap, where casual users expect "Google-like" simplicity but face rigid query requirements, and the Student Gap, where learners struggle with the declarative nature of SQL and the complexity of table joins.

To address these challenges, this work introduces two novel applications: CAFTAN (Context Aware Free Text ANalysis) for novices and SiS (SQL in Steps) for students. Both tools are powered by a core library called Shorthand SQL (SSQL), which automates the most difficult aspect of database querying: the relational join.

Methodology: The SSQL Engine

The foundation of both applications is SSQL, which conceptualizes a database schema as a graph where tables are nodes and relationships are edges. By applying graph algorithms—specifically Dijkstra’s and Prim’s—SSQL automatically calculates the shortest path between tables. This allows the system to generate complex JOIN logic programmatically, removing the burden from the user to understand the underlying schema architecture.

CAFTAN is designed to translate natural keyword searches into complex SQL queries for novice users. Unlike traditional keyword-to-SQL tools that often fail on complex queries, CAFTAN employs a fine-grained indexing system that assigns "weights" to words based on their prominence and frequency across the database.

Key features of CAFTAN include:

  • Intelligent Disambiguation: The system can determine if a keyword like "Noah" refers to a movie title or an actor's name based on calculated weights.
  • Numeric Handling: It automatically recognizes and processes numeric ranges (e.g., "100-180" for movie runtimes) without explicit user instructions.
  • Iterative Re-querying: Recognizing that keyword search is inherently ambiguous, CAFTAN allows users to cycle through interpretations if the initial result is not what they sought.

SiS: Bridging the Educational Gap

SQL in Steps (SiS) is a web-based pedagogical tool designed to help students visualize the query-building process. It moves away from static text editors toward an interactive environment featuring:

  • Live Translation: Graphical selections are immediately translated into SQL code, providing instant feedback.
  • Schema Visualization: A zoomable map allows students to create joins by simply clicking connections between tables.
  • The Sandpit: A visual interface for nesting Boolean logic (AND/OR), helping students grasp complex grouping through a "box-in-box" metaphor.

Evaluation and Results

The tools were evaluated using The Movie Database (TMDb), a relational dataset containing approximately 5,700 movies and their associated metadata.

CAFTAN Performance

CAFTAN’s accuracy was measured against a "gold standard" benchmark of 100 queries interpreted by 96 human participants. CAFTAN matched human intent 64% to 81% of the time. In comparison, the bespoke search engines for IMDb and TMDb only achieved match rates of 24% and 26%, respectively. Notably, CAFTAN maintained high performance even as query complexity increased to three or more terms.

Educational Impact of SiS

In an undergraduate database course, students using SiS reported significantly higher confidence in visualizing database structures (4.2/5) compared to traditional methods (3.75/5). A key qualitative finding was that students preferred "Tips" or "Hints" over "Help" buttons, suggesting that the framing of assistance is crucial in educational software to avoid the psychological stigma of failure.

Conclusion

This research demonstrates that automating path-finding between tables is the most effective way to lower the barrier to entry for relational databases. While CAFTAN provides a robust interface for novices, SiS offers a promising framework for training the next generation of database experts. Future work will focus on dynamic indexing for CAFTAN to handle real-time database updates and refining visual logic interfaces for advanced learners.

Summary updated

BibTeX
@inproceedings{garner2016easing,
  author = {Philip N. Garner},
  title = {{Easing access to relational databases:investigating access to relational databases in the context of both novice and would-be expert users}},
  booktitle = {Lancaster},
  year = {2016},
}
Figure