Towards Complex Text-to-SQL in Cross-Domain Database with Intermediate Representation
Paper · 2019 · Jiaqi Guo, Zecheng Zhan, Yan Gao et al.
Summary
A person asking a database about students can say what they want to find without knowing which column the database uses to identify a student. A SQL query may still need that column to group records correctly. This paper studies how to translate ordinary questions into SQL when the database is unfamiliar and the query may involve several tables, group-level conditions, or a query nested inside another. On Spider, the difficulty comes from both the structure of the required SQL and the vocabulary of the new schemas. In Spider’s development schemas, 35% of words are absent from the training schemas. The corresponding figure reported for WikiSQL is 22%.
The authors’ system, IRNet, first links phrases in the question to possible tables, columns, and cell values. A grammar-guided parser then assembles a tree in an intermediate language called SemQL. That tree records choices such as which column to return, which table owns it, and what condition the result must satisfy. Rules turn the tree into SQL and fill in details such as how to join the tables. For the FROM clause, the rules look for a shortest connection through the foreign keys declared in the schema. The authors report that the assumption behind this step, that the necessary foreign keys are declared, holds for more than 95% of Spider training examples.
IRNet reaches 46.7% SQL exact matching accuracy on the Spider test set, an absolute improvement of 19.5% over the earlier SyntaxSQLNet result with data augmentation. It occupied the top position on the Spider leaderboard when the authors wrote the paper. With BERT as the encoder, test accuracy reaches 54.7%. The authors also retrain SQLNet, TypeSQL, and SyntaxSQLNet to generate SemQL. All improve on the Spider development set, which supports the use of an intermediate target beyond IRNet’s particular architecture.
The remaining errors show where the design has leverage. Of the 483 development examples that IRNet gets wrong, 32.3% involve a column mentioned only through a cell value, 23.9% involve complex nesting, and 15.2% involve a column name given through a partial mention or a synonym. Operator errors account for 12.4%. BERT fixes 30.5% of the original failures, with most of the repairs in column or operator prediction and limited progress on nested queries. SemQL makes parts of SQL generation predictable from the schema, while interpreting indirect references and assembling complex query structures remain substantial sources of error.
Deep dive: Towards Complex Text-to-SQL in Cross-Domain Database with Intermediate Representation
IRNet uses schema linking and SemQL to turn natural-language questions into complex SQL for unfamiliar databases on the Spider benchmark. · about 37 minutes to read
The problem and its context
A question can leave the database procedure implicit
Text-to-SQL is a form of semantic parsing. Its input is a question and the structure of a database. Its output is a formal query that specifies how to retrieve the requested information. A database schema describes the available tables and columns and can declare relations between them. A table groups records about some kind of entity or event, and a column names a property recorded for those rows. Because schemas can organize similar information in different ways, interpreting a request involves understanding both the words of the question and the choices made by the database designer.
Consider the paper’s example in which the reference query groups records by student_id. The question gives the parser no explicit mention of that field. A user can nonetheless express a request that applies to each student, since the notion of a student makes sense independently of the schema’s chosen identifier. The SQL author must determine what makes records belong to the same student and express that choice through GROUP BY. Guessing the correct column from the question’s wording alone is difficult when the relevant evidence is the column’s role in the database.
Grouping also affects where conditions go. A restriction on an individual row belongs in WHERE. A restriction on the result of aggregating a group belongs in HAVING. Both may sound like ordinary constraints in a question. For instance, a user can specify a condition on the number of related records without naming the clause that evaluates it. The paper identifies this as a mismatch between the way people express requirements and the way SQL implements them. The distinction still matters to the query. The design question is whether the parser needs to predict the SQL clause directly or can identify the kind of condition and let a later rule place it.
Other parts of a query pose a similar problem. The SELECT clause specifies the result expressions, while FROM identifies the source tables and, for a multi-table query, how their records are connected. A question can refer to properties at the ends of a chain of relations without mentioning every table along it. A nested query adds a different kind of complexity. Its result is used inside a larger query, requiring the parser to identify which part of the request belongs to the inner operation and which belongs to the outer one. Spider combines these structural demands with evaluation on unfamiliar databases.
New databases bring new words
The paper calls the other difficulty lexical. A system trained on some databases and evaluated on others has to work with schema names that its training examples may never have used. The authors quantify this at the level of schema words. On Spider, 35% of the words in development schemas do not occur in the training schemas. They report 22% for the corresponding comparison on WikiSQL. These figures describe the vocabulary of schema names. A low-frequency or previously unseen word can be hard to represent reliably, even if its appearance in both a question and a column name gives a clear clue within the current example.
Several kinds of clue can coexist. A question might repeat the full name of a column, mention only part of its name, or give a value that belongs in that column. The last case is especially demanding. The parser has to determine what kind of property the value is evidence for before it can choose a field. A phrase can also appear in more than one schema name. Recognizing the phrase and choosing the correct destination are then separate decisions. The paper’s schema-linking procedure makes the recognizable evidence available early and leaves the eventual choice to the parser.
These lexical and structural difficulties can affect the same query. An aggregate condition may require an unfamiliar column inside a nested expression, for example. Good schema linking can narrow the plausible fields while leaving the arrangement of the nesting unresolved. A grammar can constrain the shape of the tree while leaving several plausible fields available for an open slot. The authors give each problem a specific treatment. Schema linking exposes correspondences between the current question and schema, while SemQL changes which structural decisions have to be expressed during prediction.
Earlier interfaces and formal representations
The paper situates its approach in work on natural-language database interfaces dating back to the 1970s. In its account, many early systems were built by hand for individual databases. Such a system could encode detailed local knowledge, but carrying it to another database required work on the interface itself. Subsequent projects pursued reuse across databases with less human preparation. The paper casts Spider’s setting as a version of that portability problem in which the databases and their question–query pairs supply the basis for training and evaluation. An Efficient Easily Adaptable System for Interpreting Natural Language Queries
The introduction also describes renewed interest after the arrival of neural approaches and larger benchmarks. It cites work reporting more than 80% exact matching accuracy on established datasets such as ATIS, GeoQuery, and WikiSQL. Spider tests a different combination of requirements, including nested queries and clauses such as GROUP BY and HAVING. The paper singles out WikiSQL as an earlier, widely studied cross-domain benchmark with simpler SQL. This is why accuracy from the earlier benchmarks provides historical context rather than a scale for interpreting Spider results. Seq2SQL
Intermediate languages already had a place in semantic parsing. The authors draw inspiration from work using lambda calculus, FunQL, and dependency-based compositional semantics. In that tradition, a formal intermediate expression makes relationships in the question explicit and gives a later procedure something structured to interpret. Previous database interfaces such as LUNAR and MASQUE also put an intermediate representation between the question and the database query. As the paper describes them, their representations used predicates designed for particular databases. SemQL aims to carry a shared grammar from one domain to another, drawing the actual table and column names from the database in use. Learning to Parse Database Queries
The other source of inspiration is entity linking. In knowledge-base question answering, linking connects a phrase to something that the underlying knowledge base can identify. The analogous entities here are columns, tables, and stored values. The paper describes TypeSQL as a close precedent because it uses type information to help interpret rare entities and numbers, and because it identifies mentions of schema items. IRNet also describes how a column was mentioned, distinguishing evidence from a full name, part of a name, or a value. That distinction gives the downstream parser more information than a single indicator of whether a column received a match. TypeSQL
The method, step by step
Where the work is divided
IRNet starts with a question and a schema. Its first job is to put the two in correspondence wherever there is usable evidence. The linked question and schema then enter the encoders, which turn them into numerical representations. A decoder builds a SemQL tree, first determining its overall shape and then resolving its schema references. Finally, a procedure walks the completed tree and constructs the SQL. At that last stage, declared database relations supply facts that the question may have left unstated.
How IRNet turns a question into SQL
The steps in order.
The intermediate tree is an explicit contract between prediction and SQL construction. The decoder must choose the operations and schema references that the tree calls for. The conversion rules interpret those choices in the context of the schema. The paper’s friend example illustrates the difference. The tree associates name with the friend table and also associates the special column * with that table. These declarations help resolve what is being selected or counted and give the converter a table to use when constructing FROM.
Finding mentions of tables, columns, and values
Schema linking begins by enumerating question n-grams of lengths 1-6. Each is a candidate span of consecutive words. The procedure considers longer candidates first. If a candidate matches a column name fully or matches a subset of that name, the linker can mark it as a column mention. Table names are handled in the same manner. A match that qualifies as both receives the column interpretation. When the linker accepts a candidate, it discards overlapping candidates. The accepted spans and leftover individual words then form an ordered, nonoverlapping account of the question.
This choice changes what the question encoder treats as a unit. If a multiword span is recognized as a column mention, the encoder receives it with that role attached. The ordinary words around the span still reach the encoder and can contribute evidence about the action or relation the user intends. A label on the question side describes what a span appears to refer to. A label on the schema side describes how a particular column was implicated. Thus a span can have the type Column, while a column can carry Exact Match or Partial Match according to the strength of the name correspondence.
The value rule uses quotation marks. A candidate with a single quote at each end can be recognized as a value span. In the setting described in the paper, the contents of the database are unavailable to the linker. The procedure queries ConceptNet for the quoted expression and keeps results from its types-of-things and related-terms categories. It then compares the returned expressions with schema column names. A full name match gives a column the label Value Exact Match, and a partial one gives it Value Partial Match. ConceptNet is used as a knowledge graph supplying possible category and association clues.
Value linking therefore asks which column could plausibly hold this kind of thing. Even a successful ConceptNet lookup supplies evidence through language. The procedure has no observation of which column actually contains the value in the current database. Conversely, a direct name match is grounded in the schema itself, even if the words were absent from prior training schemas. Both types of evidence can be passed forward in a common form, as types associated with columns, while preserving how the link was obtained.
The choices SemQL puts in the tree
SemQL uses a context-free grammar to specify legal trees. A production rule gives the children that can appear under a particular kind of node. Generating a tree through such rules restricts the parser’s choices to expansions licensed at its current position. A node that introduces a condition, for example, can license a comparison or a nested query according to its rule. The tree also makes recursion explicit. A condition can contain the root of another query, whose structure can be built in the same manner as the outer query.
At the top of the tree, the node called Z distinguishes a single query from a combination involving UNION, EXCEPT, or INTERSECT. An R node introduces an individual query, with productions that indicate which filtering and ordering structure it has. Under Select, the expansion determines how many result expressions are requested. Each A node brings together an aggregate choice, a column, and the table that owns the column. The ordinary case of selecting a field without aggregation is represented by the aggregate choice None.
The table declaration matters even when a name appears only once in a particular question. The grammar draws column names from the distinct names in the schema, so the same name can lead to more than one possible table. Declaring the owner resolves that ambiguity in the tree. The wildcard * receives a table declaration too. In the paper’s example it aligns with friend, which the question mentions. That attachment gives an otherwise generic symbol a schema reference that the FROM inference can use.
SemQL puts ordinary row conditions and conditions on aggregates under Filter. The type of expression inside the filter later determines whether SQL uses WHERE or HAVING. The tree keeps operators such as conjunction, comparison, and membership. It also distinguishes ordinary ordering from a superlative construction derived from ordering with a limit. A query tree can therefore preserve the central organization of the request even though it leaves the grouping and source clauses to the converter. The parser still needs to infer which comparisons, aggregates, or set operations express the question.
Encoding the linked question and schema
In the usual encoder, the question is a sequence of typed spans. The paper writes that input as follows.
x = [(x₁, τ₁), …, (x_L, τ_L)]
Here x is the complete question input. Each xᵢ is a span at position i and τᵢ is the type assigned to it. The parentheses pair a span with its type, the brackets enclose the ordered sequence, and … stands for the intervening pairs. The subscript L identifies the final span, and L is the number of spans.
Each word is mapped to a vector, or embedding, and the span type is mapped to another vector. The encoder averages those word and type embeddings to obtain the span embedding. It then processes the sequence with a bidirectional LSTM, a recurrent network that reads it in both directions. At each position, the forward and backward hidden states are concatenated. The resulting sequence, Hₓ, gives the decoder access to contextual information from successive spans. The initial span vectors remain useful for a separate purpose, which is to build a question-specific representation of each schema item. Word embeddings
For the schema input, the paper uses the following notation.
s = (c, t)
Here s denotes the schema as supplied to the encoder, c is the collection of distinct column names and their link types, and t is the collection of table names. The parentheses combine these collections into the schema input. Within the column collection, cᵢ denotes a name at index i and ϕᵢ its schema-linking type. The encoder produces collections of column and table vectors, designated E꜀ and Eₜ in the paper’s notation.
To encode a column, the authors first average the word embeddings from its name. They compare that initial vector with each question-span embedding. The comparison is a cosine score, obtained by taking a dot product and dividing by the lengths of the two vectors.
gᵢₖ = (ê꜀ⁱ)ᵀ eₓᵏ / (‖ê꜀ⁱ‖ ‖eₓᵏ‖)
Here i indexes a column and k indexes a question span. ê꜀ⁱ is the initial vector for column cᵢ, and eₓᵏ is the embedding of span k from question x. gᵢₖ is the similarity score for this pairing. The superscript ᵀ denotes transpose, so the numerator is the dot product of the vectors. The paired bars ‖ ‖ give vector lengths, and / divides by their product.
The column receives a context vector formed from the question-span embeddings and their respective scores.
c꜀ⁱ = ∑ₖ₌₁ᴸ gᵢₖ eₓᵏ
Here c꜀ⁱ denotes the question context for column i. The sum ∑ ranges over span positions k, starting at 1 and ending at L, the question’s span count. For each position it multiplies the vector eₓᵏ by its scalar similarity score gᵢₖ. In the published expression, the scores enter the sum directly. The operation gives each column its own view of the same question because its similarity scores depend on the words in its name.
Finally, the encoder adds the column’s lexical, contextual, and linking information.
e꜀ⁱ = ê꜀ⁱ + c꜀ⁱ + ϕ⃗ᵢ
Here e꜀ⁱ is the final representation of column i, ê꜀ⁱ is its initial name embedding, and c꜀ⁱ is the context vector just calculated. ϕ⃗ᵢ is the embedding of the column’s link type ϕᵢ, with the arrow indicating a vector. The plus signs denote vector addition. Table representations follow the same construction without the column link-type contribution. Table mentions in the question still have a role in the question encoding.
Generating the tree and choosing schema items
The decoder constructs the SemQL tree by carrying out actions in sequence. ApplyRule expands the current part of the tree using a grammar production. SelectColumn fills a column position from the schema, and SelectTable fills a table position. An LSTM keeps track of the action history. The formula for a full query multiplies the probabilities of its successive actions, with every decision conditioned on the preceding ones. A Syntactic Neural Model for General-Purpose Code Generation
p(y | x, s) = ∏ᵀᵢ₌₁ p(aᵢ | x, s, a₍₍ᵢ₎)
In this block, a₍₍ᵢ₎ denotes the history of actions strictly before step i, written as a_{<i} in the paper. y is the completed SemQL query, x the linked question, and s the schema input. p denotes probability and the vertical bar marks what it is conditioned on. The product sign ∏ multiplies the terms for steps i from 1 through T, the length of the action sequence. aᵢ is the action at the current step. A production action applies a rule r, while a selection action names the column or table placed in the tree.
For column selection, the authors modify a pointer network, which scores items already available as input candidates. A plain pointer can keep assigning a high score to a column used earlier. Some repetitions are appropriate, so IRNet divides the candidates into previously chosen columns and columns still unused in this derivation. A selection transfers an item from the unused pool into memory. The decoder can then score the decision to revisit an existing column separately from the decision about which column to use.
For the remaining formulas, a<ᵢ represents the same earlier-action history. The column action has the following probability.
p(aᵢ = SelectColumn[c] | x, s, a<ᵢ) =
p(Mem | x, s, a<ᵢ) p(c | x, s, a<ᵢ, Mem)
+ p(S | x, s, a<ᵢ) p(c | x, s, a<ᵢ, S)
Here SelectColumn[c] means that action aᵢ chooses column c. Mem names the pool of columns already selected, and S the pool of unused schema columns. Each summand multiplies the probability of drawing from a pool by the probability of choosing c within it. The plus sign combines the two possible sources of a selection. Candidate eligibility comes from the current derivation history a<ᵢ, alongside the question x and schema s used by the decoder.
p(Mem | x, s, a<ᵢ) = sigmoid(wₘᵀ vᵢ)
p(Mem | x, s, a<ᵢ) is the probability of using memory at step i. vᵢ is a context vector obtained by attending to the question’s hidden state sequence Hₓ. wₘ is a trainable vector for the memory decision, with m referring to memory. Its transpose, indicated by ᵀ, gives the dot product with vᵢ. The sigmoid turns that score into a probability.
p(S | x, s, a<ᵢ) = 1 − p(Mem | x, s, a<ᵢ)
Here the probability of using the unused schema pool S is the complement of the memory probability. The 1 denotes the total probability for these alternatives and − subtracts the probability assigned to memory. The question, schema, and action history condition both alternatives.
p(c | x, s, a<ᵢ, Mem) ∝ exp(vᵢᵀ E꜀ᵐ)
The left side is the probability of choosing column c given that the decoder is drawing from memory. E꜀ᵐ represents the embeddings of memory candidates, with one score for each eligible column. The transpose of vᵢ gives its dot product with a candidate embedding. exp exponentiates the score, and ∝ indicates proportionality because the scores are normalized over the eligible memory candidates.
p(c | x, s, a<ᵢ, S) ∝ exp(vᵢᵀ E꜀ˢ)
This is the corresponding probability within the unused schema pool. E꜀ˢ contains the embeddings of columns still available there, with s in the superscript identifying that pool. The remaining symbols have the same roles as in the memory expression. The separate distributions let an unused column compete with other unused columns and a remembered column compete with other remembered columns. The probability of using either pool is set by the preceding gate.
The decoder next chooses a table for the column. This order makes the schema’s ownership relation available at the point when table candidates are scored.
p(aᵢ = SelectTable[t] | x, s, a<ᵢ) ∝ exp(vᵢᵀ Eₜ)
Here SelectTable[t] is the action of choosing table t at step i. Eₜ is the table-embedding collection, scored through dot products with vᵢ. exp and ∝ have the same meanings as in column selection, now applied to the eligible tables. By consulting which tables own the column already selected, the decoder can prune irrelevant tables. This matters when multiple tables share a column name. A valid name choice then narrows the table search while leaving the decoder to resolve the remaining ambiguity.
Predicting the shape before filling the details
IRNet uses coarse-to-fine decoding. Its skeleton is the SemQL tree with the descendants of each A node removed. The skeleton can therefore express how result expressions, filters, ordering, and nested queries are arranged while leaving the contents of the A positions open. A skeleton decoder applies grammar rules to produce this structure. A detail decoder then fills it in. The paper’s factorization describes the latter stage through the column and table selection actions. The approach assigns structural decisions and schema-item decisions different conditioning contexts.
p(y | x, s) = p(q | x, s) p(y | x, s, q)
q is the skeleton associated with complete query y. p(q | x, s) is the probability of that skeleton for question x and schema s. p(y | x, s, q) is the probability of completing the query given the same inputs and that skeleton. Juxtaposing the two terms means multiplication. For a particular completed tree, its skeleton is obtained by the prescribed removal of descendants.
p(q | x, s) = ∏ᵀˢᵢ₌₁ p(aᵢ = ApplyRule[r] | x, s, a<ᵢ)
The upper limit Tˢ is the number of skeleton actions. The product runs from step 1 through that limit. ApplyRule[r] applies production r; aᵢ is the rule action chosen at the current step, and a<ᵢ contains the earlier skeleton actions. p(q | x, s) thus combines the probabilities of the rule decisions that give the tree its shape.
p(y | x, s, q) =
∏ᵀᶜᵢ₌₁ [λᵢ p(aᵢ = SelectColumn[c] | x, s, q, a<ᵢ)
+ (1 − λᵢ) p(aᵢ = SelectTable[t] | x, s, q, a<ᵢ)]
Tᶜ is the number of completion actions, and i runs from 1 through that limit. λᵢ marks the action type. It is 1 at a column selection step and 0 otherwise, so either the column term or the table term contributes at that position. c denotes the column chosen by SelectColumn[c] and t the table chosen by SelectTable[t]. The brackets delimit the term for one position. Each choice can use q, the structural prediction, together with x, s, and the earlier completion actions a<ᵢ.
Getting a training target from SQL
Spider supplies questions paired with reference SQL. To train on SemQL, the authors transform the reference SQL into trees. They start at Z. A set operation produces separate R branches and an indication of the operation that combines them. A single query has one R branch. Under R, the expressions in SELECT determine the children beneath Select. An ordering clause containing LIMIT produces Superlative; ordinary ordering produces Order. Conditions from WHERE and HAVING supply the filter subtree. For a subquery, the converter repeats the procedure inside the enclosing condition.
For the expressions under A, the transformation records the aggregate choice and inserts a C node for the column name and a T node for its table. The wildcard has a special labeling rule. If the reference FROM clause leaves a single table unassigned to a column, that table can be assigned to *. Otherwise the authors label its table manually. The supplement also specifies a way to encode a table left unassigned to any column, by using a subtree with an in condition. These rules address cases where source tables carry information that would otherwise disappear when the explicit FROM clause is removed.
The reference trees provide the action sequences and their corresponding skeletons. Training maximizes the log-likelihood of the reference completion and skeleton actions.
max ∑₍ₓ,ₛ,ᵩ,ᵧ₎∈𝒟 [log p(y | x, s, q) + γ log p(q | x, s)]
The subscript tuple denotes (x, s, q, y), consisting of the input question, schema, reference skeleton, and complete reference SemQL query. 𝒟 is the training dataset, and ∈ indicates that the sum runs over its examples. log is the logarithm. max indicates that training seeks parameters that maximize the sum. γ controls the weight of the skeleton term relative to the completion term, and the authors set it to 1. The brackets enclose the contribution of an individual example.
Reconstructing the SQL
The rendering procedure visits the tree in preorder, processing a parent before its descendants. At Z, it determines whether to return a single query or combine queries with a set operator. Each R introduces its own query. The children under Select provide the result expressions and their aggregates. Order and Superlative map into SQL ordering. The productions under Filter supply the condition operators. If a filter contains an R subtree, the procedure recursively renders it as a nested query.
The expression being tested tells the converter how to handle a condition. A filter expression with an aggregate other than None goes into HAVING, while an ordinary filter goes into WHERE. For grouping, the paper describes recovering the relevant column from a selected expression in the usual case or using the primary key of a table whose column is aggregated. This is where a field such as student_id can enter the generated SQL even when it had no direct mention in the question. The authors place that inference in the SQL construction procedure.
The FROM clause relies on a graph built from the schema. Tables are vertices and declared foreign-key relations give undirected edges. A foreign key identifies a reference from a field in one table to a key in another, supplying information the converter can use in a join. The authors describe finding a shortest connection through the graph that covers the tables declared in the SemQL query. The generated FROM joins the tables along that connection. It can therefore include an intermediate table even when the question and the predicted expressions only identify tables at the ends.
The final stage makes the same kind of inference for every database, using that database’s own schema. Its input needs to name the correct tables, and the schema needs to contain the relevant edges. Choosing the shortest connection is the authors’ rule for supplying omitted detail. It makes the procedure deterministic as described by the paper and ties the result to the information available in the schema. The precision and completeness of that information are consequently part of the conditions under which the approach works.
Experiments and results
What the evaluation holds out
The Spider experiments use a database split across 206 databases. There are 146 training databases, 20 development databases, and 40 test databases. The splits contain 8625, 1034, and 2147 question–SQL pairs, respectively. The unit held out is the database, so evaluation asks whether a parser can use schemas unavailable during training, as well as interpret new questions. The authors submit their systems to the benchmark owners for evaluation on the nonpublic test set. The development set is used for comparisons that probe design choices, including the ablations.
The paper uses Spider’s SQL Exact Matching and Component Matching metrics. Exact matching asks whether the predicted SQL agrees with the reference at the level of the query under the benchmark’s comparison. Component matching examines individual parts of the query and reports F1. F1 reflects both the precision of the predicted component items and the recall of the reference items. Component scores can therefore reveal useful progress where an entire query still registers as incorrect. For instance, improved predictions for filters can appear in WHERE F1 even if errors in selection or nesting still defeat exact matching.
The baselines include a sequence-to-sequence system with attention and copying, which can attend to relevant input and reuse items from it, plus SQLNet, TypeSQL, and SyntaxSQLNet. The paper treats SyntaxSQLNet as the strongest existing Spider system in its main comparison. It reports it under several conditions, including a previously augmented setting and an implementation with BERT. Keeping those names qualified matters when comparing with the paper’s IRNet runs. The authors use no data augmentation for their training comparison and make the IRNet code publicly available. Sequence to Sequence Learning · Copying Mechanism · SQLNet
Training settings and the BERT comparison
The implementations use PyTorch. The paper sets the dimensions of its word embeddings, type embeddings, and hidden vectors to 300. The word embeddings start from GloVe, are shared by the question and schema encoders, and are held fixed during training. Action embeddings have dimension 128 and node-type embeddings have dimension 64. The dropout rate is 0.3, and training uses batches of size 64. Optimization uses Adam with its default hyper-parameters. These settings describe the implementation of the original encoding and decoding setup. GloVe · Adam
The BERT variant changes the encoding of the question and schema while retaining IRNet’s decoder. Its input combines the sequence of question spans with the distinct column names, using [SEP] between column names. To obtain a span representation, the encoder averages the hidden states for its words and type. For a column, a bidirectional LSTM processes the hidden states of the words in its name. Its final hidden state is added to the column’s type embedding. Table encodings follow the same approach to name representation. The authors use BERT’s base version because of resource limits and also give SyntaxSQLNet a BERT encoder for comparison.
Accuracy on the Spider test set
The main IRNet run achieves 46.7% SQL exact matching accuracy on the Spider test set. That is a reported absolute improvement of 27.0% over SyntaxSQLNet and 19.5% over SyntaxSQLNet with large-scale data augmentation. With BERT, IRNet reaches 54.7% on the same metric and split. BERT improves both IRNet and SyntaxSQLNet. The paper reports that the gap between the systems widens on both the development and test sets when both use it. The plain and augmented SyntaxSQLNet comparisons have different training conditions, so their absolute improvements describe distinct comparisons.
IRNet on Spider test SQL exact matching
IRNet reaches higher exact matching accuracy with the BERT encoder.
The numbers
| System or setting | Accuracy % |
|---|---|
| IRNet | 46.7 |
| IRNet with BERT (this paper) | 54.7 |
The component analysis assesses average F1 for individual SQL components on the test set. IRNet exceeds SyntaxSQLNet on every reported component. The authors describe absolute improvements of at least 18.2% for each component except KEYWORDS. BERT gives IRNet further gains across components, especially on WHERE. This makes the overall comparison more informative. The exact matching improvement is accompanied by gains in multiple pieces of the query, with the filter component particularly responsive to the stronger encoding.
The authors also report exact matching by Spider’s query hardness levels. IRNet outperforms SyntaxSQLNet at every level, in comparisons with and without BERT. On the Hard portion of the test set, the paper gives an absolute improvement of 23.3% for IRNet over SyntaxSQLNet. The breakdown matters because a single accuracy could improve predominantly through easier queries. Here the advantage persists when test queries are grouped by the benchmark’s assessment of SQL complexity. The error analysis still finds substantial difficulty within the hardest cases, especially when the intended structure is deeply compositional.
Changing the target for other parsers
A separate development-set experiment asks how much of the benefit travels with SemQL. The authors alter existing parsers so they learn from SemQL trees and convert their predictions back into SQL for evaluation. The reported absolute gains in SQL exact matching range from 6.6% to 14.4% on Spider development. SyntaxSQLNet gains 8.6% in that setup and exceeds the development accuracy of the SyntaxSQLNet variant using data augmentation. SQLNet and TypeSQL also benefit.
The paper attributes some of the limits on transfer to the baseline architectures. SQLNet and TypeSQL fill slots in structures they are already equipped to predict, which allows them to handle a subset of SemQL queries. The same representation can consequently help different parsers while leaving architectural constraints in place. This comparison supports the role of the intermediate target as a design choice. It also evaluates a complete route from SemQL supervision to SQL output, so the gains incorporate the effect of the conversion rules that make the target usable.
What the ablations show
Adding one component at a time
The development-set ablations start from an IRNet configuration that already predicts SemQL. It uses an ordinary pointer network and omits schema linking and coarse-to-fine decoding. The authors add schema linking, the memory mechanism, and coarse-to-fine decoding in sequence, examining the same progression with the original encoder and with BERT. The starting configuration already exceeds the SyntaxSQLNet results the authors compare against, including the augmented and BERT variants. Since the starting configuration contains the SemQL target, its performance is consistent with the separate experiment in which multiple baseline parsers benefit from that target.
Schema linking produces the largest explicitly quantified step in the authors’ discussion of the sequence. It improves Spider development exact matching accuracy by 8.5% in absolute terms for IRNet and by 6.4% for IRNet with BERT. The paper also reports a 12.5% increase in WHERE F1 when IRNet uses schema linking. Filter conditions commonly need a field whose name or value is expressed in the question. The movement in the clause-specific metric fits the intended behavior of the linker, while the whole-query scores show that the gains extend to complete examples.
Exact matching gains from schema linking on Spider development
Schema linking raises accuracy with both encoders and gives the larger gain with IRNet’s original encoder.
The numbers
| System or setting | Absolute accuracy improvement % |
|---|---|
| IRNet with BERT and schema linking | 6.4 |
| IRNet with schema linking (this paper) | 8.5 |
The memory-augmented pointer further raises development performance with both encoders. The authors inspect a specific behavior associated with ordinary pointers, namely reusing the same columns where the repeated selections cause a problem. The count of examples exhibiting that behavior decreases by 70% when memory is used. This percentage concerns the affected examples, instead of the number of all column decisions. The diagnostic connects the performance change to the design’s stated motivation. A remembered column remains available for legitimate reuse, with a separate gate controlling whether a decision draws from the remembered set.
Adding coarse-to-fine decoding gives another improvement. For the authors’ design, this supports predicting the structure before committing to details such as columns and tables. The progression measures the effect of adding each component given the earlier additions. In particular, the reported memory gain is observed after linking has been added, and the coarse-to-fine gain after the memory change. The experiments make those additions inspectable. They provide less information about how the components would interact in every possible combination, or how much a component would contribute if placed first in the sequence.
What the failed queries have in common
The error analysis looks at 483 failed development examples from IRNet. The largest reported group, 32.3%, consists of cases in which a question mentions a cell value and the parser predicts the wrong column for it. This is the case where the schema can contain the right answer to the linking problem without its field name appearing in the user’s wording. ConceptNet can offer plausible categories or associated expressions, but the actual location of the value would be direct evidence. The authors point to the usefulness of database contents for solving this kind of problem.
A further 15.2% of failed development examples involve columns referred to by a partial expression or a synonym. A substring match can suggest candidates from part of a name, but it can also leave the decoder with several plausible columns. A synonym can express the property accurately while sharing little surface form with the schema name. The authors suggest combining their string matching with embedding-based matching. Such a change would concern the evidence offered to the parser. The reported error proportion establishes the presence of the problem in the tested setting.
Complicated nested queries account for 23.9% of the development failures. Most of these are in Spider’s Extra Hard category. The authors report that Extra Hard queries make up roughly 20% of training queries, compared with roughly 23% at Easy. They relate the failures to the large number of ways a complex query can be assembled with relatively limited examples of the hardest level. A grammar can reduce the possible expansions at a node. The resulting collection of legal nested trees can still be large, and the parser must decide where the inner query begins and what operation consumes its result.
Operator errors make up 12.4% of the failed examples. The paper includes aggregation, WHERE operators, and sorting direction in this category. In its visitor example, the user wants names and membership levels for visitors whose level exceeds 4, listed with the oldest first. The age ordering must be descending. The phrase specifies direction in terms of people, while the query implements it as an order over age values. This kind of error can survive correct schema linking because the table and column choices supply only part of the answer.
Some failures are harder to categorize, and the authors identify a few with an incorrect FROM clause. In those cases, the reference queries join tables through relationships that are absent from the declared foreign keys. The error arises in a part of the pipeline that is deliberately left to SQL inference. BERT corrects 30.5% of the original failed examples. Most corrections concern columns or operators, and the authors report limited improvement on nesting. The correction figure follows a defined group of previously failed queries, so it is a different observation from the overall accuracy of the BERT variant.
Why matched difficulty counts still leave a gap
IRNet’s official development and test results differ, and the authors investigate whether the distributions of complex queries help explain the gap. They construct pseudo test sets from the official training data, sampling 20 databases for each and retraining on the remaining part of the training set. The resulting pseudo sets A, B, and C contain 1134, 1000, and 955 examples, respectively. The authors seek nearly the same hardness distribution as the official development set. They follow SQL exact matching over training epochs on development and on each pseudo test set.
IRNet is competitive on both development and pseudo test C, while A and B show clear gaps. The variation across the pseudo sets matters because their hardness profiles are similar. A coarse category can count queries with comparable complexity while grouping together different kinds of structure. The analysis shows that matching the proportions of the benchmark’s difficulty labels can leave performance sensitive to the particular selection of databases and queries. It makes variation within those categories a plausible part of the explanation for uneven performance across splits.
A related comparison uses SyntaxSQLNet. In this experiment, it reaches 16.9% development exact matching accuracy and 17.4% on pseudo test A. With BERT and SemQL together, SyntaxSQLNet reaches 34.5% on development and 30.2% on pseudo test A, a reported gap of 4.3%. The stronger configuration also improves on Hard and Extra Hard queries. For context, the paper reports that the ordinary SyntaxSQLNet reaches 4.6% exact matching on Extra Hard queries in the official test set. The authors’ interpretation is that a stronger parser can reveal split differences in categories where an earlier system gets very few examples right. The pseudo-set experiment supports that interpretation without isolating the particular structures or schema properties responsible.
Limitations
Limits identified by the authors
SemQL cannot express a self-join in FROM. In a self-join, SQL uses distinct instances of the same table so that fields from one instance can be compared with fields from another. Giving a column its owning table identifies the table in the schema, but a self-join also needs to identify which instance of that table the column belongs to. This is a limit on what the representation can say, even with accurate schema linking and perfect predictions over its available production rules. The authors propose variables or a mechanism for distinguishing scopes as possible ways to extend it.
The mismatch between a question and SQL also survives in some choices that SemQL retains. The paper points to INTERSECT as a case where the SQL has to express how conditions are combined although users seldom specify the distinction in database terms. Removing dedicated grouping and source clauses reduces some kinds of guessing, while the grammar still has to preserve distinctions that affect the query. The example defines a tradeoff in designing the intermediate language. Each operation left in it must be predicted from the question and schema, but dropping an operation requires a reliable way to reconstruct it.
Foreign-key declarations are another stated condition on the method. The authors report that their assumption holds for more than 95% of Spider training examples. They also observe development failures where the reference SQL uses a relationship that the schema has not declared. A rule that uses only the foreign-key graph cannot recover a missing edge directly from that graph. The training-set prevalence describes the support for the assumption in that split. The approach remains dependent on the quality of the schema metadata wherever it is applied.
The authors also identify avenues for improving linking and handling complex structures. They suggest combining the string matcher with embedding-based matching for column references expressed indirectly. They discuss data augmentation for complex nested SQL because the search space is large and the most difficult examples are rare. Their own experiments evaluate the unaugmented IRNet setup. Those suggestions explain where the authors see room for progress, while the reported gains belong to the implemented method and the comparisons they actually run.
Limits of the evidence and the setup
SQL exact matching and component matching are measures of agreement with the benchmark’s reference analyses. That scope matters for queries with more than one possible formulation. The experiments do not report whether alternative formulations can retrieve the intended answers, or how well the system would serve users whose priorities are result correctness, response time, or interaction when a request is ambiguous. Component F1 provides a useful account of which portions of a query improve. A strong score for one portion can coexist with a whole-query failure when the pieces are assembled incorrectly.
The evidence for transfer across databases comes from the Spider database split. It includes held-out schemas and a variety of query structures, which are central to the paper’s question about generalization. It leaves other types of variation open. In particular, the near-matched hardness distributions of the pseudo splits still permit changes in schema vocabulary, networks of relations, question wording, and kinds of nested composition. The authors’ split analysis establishes that the hardness buckets are too coarse to account for all the observed differences. It gives limited leverage for assigning those differences to individual factors.
Schema linking treats string overlap as usable evidence for names and quoted expressions as candidates for value linking. Its results therefore depend on how schema designers name their fields and how users refer to values. The question encoder can still read unmatched words, and the decoder can still select a column without a direct match. The type from the linker is an additional clue. The frequency of value-mediated failures shows the difficulty of replacing database contents with general associations. An evaluation with direct access to stored values would test a different information setting from the one described here.
The transfer comparisons show that multiple architectures can gain from learning SemQL and using the SQL converter. They leave open how the representation would fare with other grammars, different join inference procedures, or more extensive target coverage. The schema-linking ablation also bundles several sources of evidence, including span types and column match types. Its gain applies to that package, without a separate attribution to each signal. These boundaries are important for explaining why the results are credible on their own terms. The paper measures a particular division of labor between linking, grammar-based prediction, and SQL recovery on a benchmark that puts all three to work.
What came after
Better grounding in the schema
IRNet’s use of schema linking exposes a part of Text-to-SQL that later citing work could study by itself. The linking question is whether a parser can connect the user’s words to the right parts of the current database. In IRNet, string and value clues inform the representations, while the column-to-table relation narrows table selection. RAT-SQL takes up schema encoding and linking through relations. Its focus puts the relationships among the items being represented at the center of the encoding problem. In terms of IRNet’s method, this concerns how evidence is represented before a parser has committed to a query tree.
LGESQL also addresses relations, using a line graph with local and non-local relations in its Text-to-SQL design. It is useful to read that emphasis alongside the distinct graph used in IRNet. IRNet consults a foreign-key graph during SQL construction to connect selected tables. LGESQL’s stated line-graph focus concerns relational representation for Text-to-SQL. The two uses illustrate different points at which graph structure can matter in a parser, from representing information for a decision to supplying information for the SQL after a decision.
Two other citing works focus on the broader relation between language and tables. TaBERT takes joint understanding of textual and tabular data as a pretraining problem. Bridging Textual and Tabular Data puts the connection between those inputs directly in the setting of cross-domain Text-to-SQL. These are complementary angles on the evidence that goes into parsing. IRNet’s paper identifies name overlap, type clues, and foreign keys as ways of making a question usable in a database context. The later works’ stated focuses concern how textual and tabular information can be brought together in the first place.
Decomposing generation
RESDSQL explicitly separates schema linking from skeleton parsing. Those are recognizable jobs in IRNet, where a linker marks mentions and coarse-to-fine decoding predicts a structural outline before filling details. The labels also clarify that there are different decisions about where to divide the work. One distinction separates the outline of the query from its schema-specific expressions. Another separates choosing relevant schema items from determining the shape of the query. The connection is in treating these as tractable decisions that can be addressed separately within Text-to-SQL.
DIN-SQL pursues decomposition through in-context learning and adds self-correction. Its stated contribution shifts attention to how a query can be developed and revisited through staged work. IRNet’s final conversion follows rules over a completed SemQL tree. A framework that makes correction part of generation treats the possibility of revising an earlier answer as part of the method. The common question is how to divide a complex translation into meaningful operations, with different answers about where the steps live and whether a proposed result is open to revision.
MCS-SQL frames generation around multiple prompts and multiple-choice selection. This raises a related issue about the decision procedure after candidates have been generated. IRNet narrows choices through its grammar, schema constraints, and skeleton. Multiple-choice selection concerns how to decide among resulting alternatives. The shared context is a task where several outputs may initially seem plausible because questions leave implementation decisions implicit or because schema clues support several candidates.
Evaluating generalization and extending the task
Towards Robustness of Text-to-SQL Models against Synonym Substitution turns variation in wording into a robustness question. This follows directly from a difficulty visible in IRNet’s failed examples. A synonym can leave the request recognizable to a reader while changing the evidence available to a string matcher. A study described in terms of synonym substitution puts pressure on that dependence. It supplies a different angle on the lexical problem from counting unfamiliar schema words, since the challenge is what happens when the expression of a relevant concept changes.
Compositional Generalization and Natural Language Variation places the organization of a meaning and the variation in its wording in the same research question. IRNet’s analyses show why both matter. Structurally difficult queries can remain hard after column and operator predictions improve, and matching coarse complexity distributions still leaves different outcomes across splits. A focus on compositional generalization asks whether a parser can handle unfamiliar combinations of operations, while natural-language variation asks whether it can recognize a familiar operation under changed wording. Neither question reduces to the count of schema words held out during training.
CoSQL extends the cross-domain database interface to a conversational challenge. Editing-Based SQL Query Generation focuses on editing for context-dependent questions. These works take up a different source of information for constructing a query. In IRNet’s setting the question and the schema supply the input, with the schema helping recover details absent from the wording. In a context-dependent setting, the preceding interaction can also matter to the interpretation. Editing gives a way to frame a follow-up as a change to an existing query, while the conversational challenge makes the interaction itself central to the task.
The later work thus carries forward several distinct problems that IRNet made visible in one system. A schema has to be represented in a form that makes the right fields discoverable. The query’s structure has to be predicted in spite of variation in wording and combinations of operations. The final output has to realize the intended relations in SQL. IRNet gives those problems explicit boundaries through schema links, a SemQL tree, and schema-based conversion. The citing works revisit those boundaries through relational encoding, decomposition, linguistic variation, and the additional context supplied by dialogue.
Cite
Cite as Jiaqi Guo, Zecheng Zhan, Yan Gao, Yan Xiao, Jian-Guang Lou, Ting Liu and Dongmei Zhang. 2019. Towards Complex Text-to-SQL in Cross-Domain Database with Intermediate Representation. Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics.
@inproceedings{guo2019complex,
title = {{Towards Complex Text-to-SQL in Cross-Domain Database with Intermediate Representation}},
author = {Jiaqi Guo, Zecheng Zhan, Yan Gao, Yan Xiao, Jian-Guang Lou, Ting Liu and Dongmei Zhang},
booktitle = {Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics},
year = {2019},
doi = {10.18653/v1/p19-1444},
eprint = {1905.08205},
archivePrefix = {arXiv},
url = {https://doi.org/10.18653/v1/p19-1444}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/guo-2019-complex-text-sql-cross-domain/
References
- Hiyan Alshawi. 1992. The core language engine. MIT press. OpenAlex ↗ · Scholar ↗
- I. Androutsopoulos, G. Ritchie, and P. Thanisch. 1993. Masque/sql: An efficient and portable natural language query interface for relational databases. In Proceedings of the 6th International Conference on Industrial and Engineering Applications of Artificial Intelligence and Expert Systems, pages 327–330. Gordon & Breach Science Publishers. OpenAlex ↗ · Scholar ↗
- Ion Androutsopoulos, Graeme D Ritchie, and Peter Thanisch. 1995. Natural language interfaces to databases–an introduction. Natural language engineering, 1:29–81. OpenAlex ↗ · Scholar ↗
- Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. 2014. Neural machine translation by jointly learning to align and translate. arXiv preprint arXiv:1409.0473. Version 7. our card
- Jonathan Berant, Andrew Chou, Roy Frostig, and Percy Liang. 2013. Semantic parsing on freebase from question-answer pairs. In Proceedings of the 2013 Conference on Empirical Methods in Natural Language Processing, pages 1533–1544. Association for Computational Linguistics. our card
- James Bornholt, Emina Torlak, Dan Grossman, and Luis Ceze. 2016. Optimizing synthesis with metasketches. In Proceedings of the 43rd Annual ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages, pages 775–788. ACM. OpenAlex ↗ · Scholar ↗
- Bob Carpenter. 1997. Type-logical semantics. MIT press. OpenAlex ↗ · Scholar ↗
- Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2018. Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805. Version 1. our card
- Li Dong and Mirella Lapata. 2018. Coarse-to-fine decoding for neural semantic parsing. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics, pages 731–742. Association for Computational Linguistics. our card
- Catherine Finegan-Dollak, Jonathan K. Kummerfeld, Li Zhang, Karthik Ramanathan, Sesh Sadasivam, Rui Zhang, and Dragomir Radev. 2018. Improving text-to-sql evaluation methodology. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics, pages 351–360. Association for Computational Linguistics. our card
- Alessandra Giordani and Alessandro Moschitti. 2012. Generating sql queries using natural language syntactic dependencies and metadata. In Proceedings of the 17th International Conference on Applications of Natural Language Processing and Information Systems, pages 164–170. Springer-Verlag. OpenAlex ↗ · Scholar ↗
- Barbara J. Grosz, Douglas E. Appelt, Paul A. Martin, and Fernando C. N. Pereira. 1987. Team: An experiment in the design of transportable natural-language interfaces. Artificial Intelligence, 32:173–243. OpenAlex ↗ · Scholar ↗
- Jiatao Gu, Zhengdong Lu, Hang Li, and Victor O.K. Li. 2016. Incorporating copying mechanism in sequence-to-sequence learning. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics, pages 1631–1640. Association for Computational Linguistics. our card
- Izzeddin Gur, Semih Yavuz, Yu Su, and Xifeng Yan. 2018. Dialsql: Dialogue based structured query generation. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics, pages 1339–1349. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
- Catalina Hallett. 2006. Generic querying of relational databases using natural language generation techniques. In Proceedings of the Fourth International Natural Language Generation Conference, pages 95–102. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
- Gary G. Hendrix, Earl D. Sacerdoti, Daniel Sagalowicz, and Jonathan Slocum. 1978. Developing a natural language interface to complex data. ACM Transactions on Database Systems, 3:105–147. OpenAlex ↗ · Scholar ↗
- Jonathan Herzig and Jonathan Berant. 2018. Decoupling structure and lexicon for zero-shot semantic parsing. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pages 1619–1629. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
- Sepp Hochreiter and Jürgen Schmidhuber. 1997. Long short-term memory. Neural computation, 9:1735–1780. OpenAlex ↗ · Scholar ↗
- Wonseok Hwang, Jinyeung Yim, Seunghyun Park, and Minjoon Seo. 2019. A comprehensive exploration on wikisql with table-aware word contextualization. arXiv preprint arXiv:1902.01069. Version 1. our card
- Srinivasan Iyer, Ioannis Konstas, Alvin Cheung, Jayant Krishnamurthy, and Luke Zettlemoyer. 2017. Learning a neural semantic parser from user feedback. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics, pages 963–973. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
- Hans Kamp and U. Reyle. 1993. From Discourse to Logic Introduction to Modeltheoretic Semantics of Natural Language, Formal Logic and Discourse Representation Theory. OpenAlex ↗ · Scholar ↗
- Rohit Kate. 2008. Transforming meaning representation grammars to improve semantic parsing. In Proceedings of the Twelfth Conference on Computational Natural Language Learning, pages 33–40. Coling 2008 Organizing Committee. OpenAlex ↗ · Scholar ↗
- Rohit J. Kate, Yuk Wah Wong, and Raymond J. Mooney. 2005. Learning to transform natural to formal languages. In Proceedings of the 20th National Conference on Artificial Intelligence, pages 1062–1068. AAAI Press. OpenAlex ↗ · Scholar ↗
- Diederik P Kingma and Jimmy Ba. 2014. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980. Version 9. our card
- Nikolaos Kolitsas, Octavian-Eugen Ganea, and Thomas Hofmann. 2018. End-to-end neural entity linking. In Proceedings of the 22nd Conference on Computational Natural Language Learning, pages 519–529. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
- Jayant Krishnamurthy, Pradeep Dasigi, and Matt Gardner. 2017. Neural semantic parsing with type constraints for semi-structured tables. In Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing, pages 1516–1526. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
- Fei Li and H. V. Jagadish. 2014. Constructing an interactive natural language interface for relational databases. Proceedings of the VLDB Endowment, 8:73–84. OpenAlex ↗ · Scholar ↗
- Chen Liang, Jonathan Berant, Quoc Le, Kenneth D. Forbus, and Ni Lao. 2017. Neural symbolic machines: Learning semantic parsers on freebase with weak supervision. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics, pages 23–33. Association for Computational Linguistics. our card
- Percy Liang. 2013. Lambda dependency-based compositional semantics. arXiv preprint arXiv:1309.4408. Version 2. OpenAlex ↗ · Scholar ↗
- Percy Liang, Michael Jordan, and Dan Klein. 2011. Learning dependency-based compositional semantics. In Proceedings of the 49th Annual Meeting of the Association for Computational Linguistics: Human Language Technologies, pages 590–599. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
- Panupong Pasupat and Percy Liang. 2015. Compositional semantic parsing on semi-structured tables. In Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing, pages 1470–1480. Association for Computational Linguistics. our card
- Adam Paszke, Sam Gross, Soumith Chintala, Gregory Chanan, Edward Yang, Zachary DeVito, Zeming Lin, Alban Desmaison, Luca Antiga, and Adam Lerer. 2017. Automatic differentiation in pytorch. In NIPS-W. OpenAlex ↗ · Scholar ↗
- Jeffrey Pennington, Richard Socher, and Christopher Manning. 2014. Glove: Global vectors for word representation. In Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing, pages 1532–1543. Association for Computational Linguistics. our card
- Ana-Maria Popescu, Alex Armanasu, Oren Etzioni, David Ko, and Alexander Yates. 2004. Modern natural language interfaces to databases: Composing statistical parsing with semantic tractability. In Proceedings of the 20th International Conference on Computational Linguistics. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
- Armando Solar-Lezama. 2008. Program Synthesis by Sketching. Ph.D. thesis, Berkeley, CA, USA. AAI3353225. our card
- Robert Speer and Catherine Havasi. 2012. Representing general relational knowledge in conceptnet 5. In Proceedings of the Eighth International Conference on Language Resources and Evaluation, pages 3679–3686. European Language Resources Association. OpenAlex ↗ · Scholar ↗
- Yibo Sun, Duyu Tang, Nan Duan, Jianshu Ji, Guihong Cao, Xiaocheng Feng, Bing Qin, Ting Liu, and Ming Zhou. 2018. Semantic parsing with syntax- and table-aware sql generation. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics, pages 361–372. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
- Ilya Sutskever, Oriol Vinyals, and Quoc V. Le. 2014. Sequence to sequence learning with neural networks. In Proceedings of the 27th International Conference on Neural Information Processing Systems, pages 3104–3112. MIT Press. OpenAlex ↗ · Scholar ↗
- Lappoon R. Tang and Raymond J. Mooney. 2000. Automated construction of database interfaces: Integrating statistical and relational learning for semantic parsing. In Proceedings of the 2000 Joint SIGDAT Conference on Empirical Methods in Natural Language Processing and Very Large Corpora: Held in Conjunction with the 38th Annual Meeting of the Association for Computational Linguistics, pages 133–141. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
- Oriol Vinyals, Meire Fortunato, and Navdeep Jaitly. 2015. Pointer networks. In Advances in Neural Information Processing Systems 28, pages 2692–2700. Curran Associates, Inc. OpenAlex ↗ · Scholar ↗
- Chenglong Wang, Alvin Cheung, and Rastislav Bodik. 2017. Synthesizing highly expressive sql queries from input-output examples. In Proceedings of the 38th ACM SIGPLAN Conference on Programming Language Design and Implementation, pages 452–466. ACM. OpenAlex ↗ · Scholar ↗
- Chenglong Wang, Kedar Tatwawadi, Marc Brockschmidt, Po-Sen Huang, Yi Mao, Oleksandr Polozov, and Rishabh Singh. 2018. Robust text-to-sql generation with execution-guided decoding. arXiv preprint arXiv:1807.03100. Version 3. OpenAlex ↗ · Scholar ↗
- David H. D. Warren and Fernando Pereira. 1981. Easily adaptable system for interpreting natural language queries. American Journal of Computational Linguistics, 8:110–122. OpenAlex ↗ · Scholar ↗
- David H. D. Warren and Fernando C. N. Pereira. 1982. An efficient easily adaptable system for interpreting natural language queries. Computational Linguistics, 8:110–122. our card
- W A Woods. 1986. Readings in natural language processing. chapter Semantics and Quantification in Natural Language Question Answering, pages 205–248. Morgan Kaufmann Publishers Inc. OpenAlex ↗ · Scholar ↗
- Xiaojun Xu, Chang Liu, and Dawn Song. 2017. Sqlnet: Generating structured queries from natural language without reinforcement learning. arXiv preprint arXiv:1711.04436. Version 1. our card
- Navid Yaghmazadeh, Yuepeng Wang, Isil Dillig, and Thomas Dillig. 2017. Sqlizer: Query synthesis from natural language. Proceedings of the ACM on Programming Languages, 1:63:1–63:26. OpenAlex ↗ · Scholar ↗
- Semih Yavuz, Izzeddin Gur, Yu Su, and Xifeng Yan. 2018. What it takes to achieve 100 percent condition accuracy on wikisql. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pages 1702–1711. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
- Wen-tau Yih, Matthew Richardson, Chris Meek, Ming-Wei Chang, and Jina Suh. 2016. The value of semantic parse labeling for knowledge base question answering. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics, pages 201–206. Association for Computational Linguistics. our card
- Pengcheng Yin and Graham Neubig. 2017. A syntactic neural model for general-purpose code generation. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics, pages 440–450. Association for Computational Linguistics. our card
- Pengcheng Yin and Graham Neubig. 2018. Tranx: A transition-based neural abstract syntax parser for semantic parsing and code generation. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing: System Demonstrations, pages 7–12. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
- Tao Yu, Zifan Li, Zilin Zhang, Rui Zhang, and Dragomir Radev. 2018a. Typesql: Knowledge-based type-aware neural text-to-sql generation. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 588–594. Association for Computational Linguistics. our card
- Tao Yu, Michihiro Yasunaga, Kai Yang, Rui Zhang, Dongxu Wang, Zifan Li, and Dragomir Radev. 2018b. Syntaxsqlnet: Syntax tree networks for complex and cross-domain text-to-sql task. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pages 1653–1663. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
- Tao Yu, Rui Zhang, Kai Yang, Michihiro Yasunaga, Dongxu Wang, Zifan Li, James Ma, Irene Li, Qingning Yao, Shanelle Roman, Zilin Zhang, and Dragomir Radev. 2018c. Spider: A large-scale human-labeled dataset for complex and cross-domain semantic parsing and text-to-sql task. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pages 3911–3921. Association for Computational Linguistics. our card
- John M. Zelle and Raymond J. Mooney. 1996. Learning to parse database queries using inductive logic programming. In Proceedings of the Thirteenth National Conference on Artificial Intelligence, pages 1050–1055. AAAI Press. our card
- Victor Zhong, Caiming Xiong, and Richard Socher. 2017. Seq2sql: Generating structured queries from natural language using reinforcement learning. CoRR, abs/1709.00103. our card