SOTAVerified

SQL Generation via Machine Reading Comprehension

2020-12-01COLING 2020Code Available0· sign in to hype

Zeyu Yan, Jianqiang Ma, Yang Zhang, Jianping Shen

Code Available — Be the first to reproduce this paper.

Reproduce

Code

Abstract

Text-to-SQL systems offers natural language interfaces to databases, which can automatically generates SQL queries given natural language questions. On the WikiSQL benchmark, state-of- the-art text-to-SQL systems typically take a slot-filling approach by building several specialized models for each type of slot. Despite being effective, such modularized systems are complex and also fall short in jointly learning for different slots. To solve these problems, this paper proposes a novel approach that formulates the task as a question answering problem, where different slots are predicted by a unified machine reading comprehension (MRC) model. For this purpose, we use a BERT-based MRC model, which can also benefit from intermediate training on other MRC datasets. The proposed method can achieve competitive results on WikiSQL, suggesting it being a promising direction for text-to-SQL.

Tasks

Reproductions