Skip to main content
QUICK REVIEW

[Paper Review] Meet Cyrus - The Query by Voice Mobile Assistant for the Tutoring and Formative Assessment of SQL Learners

Josue Espinosa Godinez, Hasan M. Jamil|arXiv (Cornell University)|Nov 9, 2018
Natural Language Processing Techniques4 citations
TL;DR

This paper presents Cyrus, a voice-enabled mobile SQL tutoring and formative assessment system that maps natural language queries to SQL through semantic analysis and heuristic parsing. It leverages iOS-based speech recognition and a custom similarity-based table and column matching algorithm to support entry-level SQL learning, achieving accurate execution of 18 test queries with intuitive error feedback.

ABSTRACT

Being declarative, SQL stands a better chance at being the programming language for conceptual computing next to natural language programming. We examine the possibility of using SQL as a back-end for natural language database programming. Distinctly from keyword based SQL querying, keyword dependence and SQL's table structure constraints are significantly less pronounced in our approach. We present a mobile device voice query interface, called Cyrus, to arbitrary relational databases. Cyrus supports a large type of query classes, sufficient for an entry level database class. Cyrus is also application independent, allows test database adaptation, and not limited to specific sets of keywords or natural language sentence structures. It's cooperative error reporting is more intuitive, and iOS based mobile platform is also more accessible compared to most contemporary mobile and voice enabled systems.

Motivation & Objective

  • To develop a mobile, voice-based SQL tutoring system that supports self-paced, formative assessment for novice learners.
  • To overcome limitations of keyword-based SQL interfaces by enabling semantic understanding of natural language queries.
  • To create an application-agnostic, test-database-adaptable system that works across diverse relational databases.
  • To improve accessibility and engagement in SQL education through hands-free, interactive voice interaction on widely available iOS devices.
  • To provide intuitive, cooperative error reporting that supports conceptual learning beyond syntax checking.

Proposed method

  • Cyrus uses a hybrid approach combining speech-to-text, natural language parsing, and semantic similarity scoring to map spoken queries to SQL.
  • It applies a Stable Marriage matching function to align natural language terms with database attributes, maximizing term-to-column matches.
  • A similarity score Ψ(a,r) is computed using term matching and a penalty function π(A) for unmatched terms to select the most relevant tables.
  • The system constructs SQL queries by analyzing dependency graphs from NLP parsers, identifying subqueries and aggregate operations through syntactic and semantic cues.
  • It supports division and aggregate queries by detecting set containment and aggregation patterns in dependency structures.
  • The system is implemented on iOS using native APIs for speech recognition and synthesis, enabling real-time, hands-free interaction.

Experimental results

Research questions

  • RQ1Can a voice-based mobile system effectively map natural language queries to correct SQL statements for novice learners?
  • RQ2How well can a system handle complex query types such as division and aggregate queries using heuristic parsing?
  • RQ3To what extent does cooperative error reporting improve the learning experience in SQL formative assessment?
  • RQ4Can a mobile, voice-enabled system be effectively used for self-paced, application-agnostic SQL tutoring?
  • RQ5How does the integration of semantic similarity and dependency parsing improve SQL query mapping accuracy?

Key findings

  • Cyrus successfully mapped and executed all 18 test queries in the evaluation, demonstrating feasibility for entry-level SQL learning.
  • The system achieved accurate table and column name identification using a similarity-based matching algorithm with penalty functions for unmatched terms.
  • Division and aggregate queries were minimally functional but correctly identified in structure, indicating room for refinement.
  • The use of dependency parsing and semantic cues enabled correct detection of subqueries and aggregation patterns despite parser limitations.
  • Cooperative error reporting provided intuitive feedback, supporting conceptual understanding beyond syntax correction.
  • The iOS-based implementation ensured high accessibility and usability due to widespread device availability and stable NLP APIs.

Better researchstarts right now

From reading papers to final review, dramatically reduce your research time.

No credit card · Free plan available

This review was created by AI and reviewed by human editors.