Back to results

Chalmers University of Technology

Natural-SQL Translator A general natural language interface to SQL using the Grammatical Framework programming language

Abstract

dc:description.abstract

Databases are powerful tools and the ability to use natural language to query databases makes these tools more accessible. For a natural language-database accessing system to become useful beyond niche applications, it needs to be able to scale and adapt. For that to be the case, it needs to be formulated generically to not require redesign for every new application. The central part of this system needs to be agnostic with regards to what database is to be accessed as well as agnostic with regards to what natural language is to be used. This project has as its goal to create a prototype of such a system for the database query language SQL. A system which is accessible, has a general form and can easily be adapted to new natural languages and databases. To do this the Grammatical Framework (GF) programming language was used, which is designed to enable translations based on an abstract grammar and multiple concrete descriptions of how everything that can be formed in the grammar is expressed in each language. For this project that list of languages includes SQL and natural languages such as English and Swedish. Around the GF grammar, an application was constructed which allows the user to perform translations without much technical skill, no commands need to be entered and nothing needs to be compiled once the system has been set up once. The system which is the result of this project has a general form and allows for easy use with a new database, and a somewhat more involved application to a new natural language. It allows access to databases without requiring any programming knowledge. It permits the user flexibility in their way of expressing themselves when using a natural language.

Degree

thesis:*
Level thesis:degree_level
H
Department dc:contributor.department
Chalmers tekniska högskola / Institutionen för data och informationsteknik
Year dc:date.issued
2021

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Davallius, Daniel
Advisor dc:contributor.supervisor
  • Ranta, Aarne
Committee member dc:contributor.committeemember
  • Ahrendt, Wolfgang

Subjects

dc:subject × 10

Rights

Language dc:language.iso
eng

Identifiers

dc:identifier.*

Chain of custody

source
Harvested from
Chalmers University of Technology
Base URL
odr.chalmers.se/oai/request
Last updated
2026-11-19
Source record
OAI-PMH GetRecord
citation

Davallius, Daniel. Natural-SQL Translator A general natural language interface to SQL using the Grammatical Framework programming language. H thesis, 2021. https://hdl.handle.net/20.500.12380/303909