Representing Schema Structure with Graph Neural Networks for Text-to-SQL Parsing

Ben Bogin, Matt Gardner, Jonathan Berant
5/15/2019
cs.CL
gnn

Official code: benbogin/spider-schema-gnn (141 stars, last commit 2024-07-25).

Abstract

Research on parsing language to SQL has largely ignored the structure of the database (DB) schema, either because the DB was very simple, or because it was observed at both training and test time. In Spider, a recently-released text-to-SQL dataset, new and complex DBs are given at test time, and so the structure of the DB schema can inform the predicted SQL query.

Show full abstract

In this paper, we present an encoder-decoder semantic parser, where the structure of the DB schema is encoded with a graph neural network, and this representation is later used at both encoding and decoding time. Evaluation shows that encoding the schema structure improves our parser accuracy from 33.8% to 39.4%, dramatically above the current state of the art, which is at 19.7%.

View on arXivView PDF

Code Implementations(1)

Author implementation of the paper "Representing Schema Structure with Graph Neural Networks for Text-to-SQL Parsing"

14143May 15, 20192 years ago

Similar Papers

Cite this paper

@article{bogin2019representing,
  title  = {Representing Schema Structure with Graph Neural Networks for Text-to-SQL Parsing},
  author = {Ben Bogin and Matt Gardner and Jonathan Berant},
  year   = {2019},
  eprint = {1905.06241},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1905.06241}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1905.06241.svg)](https://codeofpaper.com/paper/1905.06241)

Discussion