RAT-SQL: Relation-Aware Schema Encoding and Linking for Text-to-SQL Parsers
Table 6: Accuracy (exact match %) on the development set given an oracle providing correct columns and tables (“Oracle columns”) and/or the AST sketch structure (“Oracle sketch”).
['[BOLD] Model', '[BOLD] Acc.']
S5SS4SSS0Px2 The Need for Schema Linking One natural question is how often does the decoder fail to select the correct column, even with the schema encoding and linking improvements we have made. For “oracle sketch”, at every grammar nonterminal the decoder is forced to choose the correct production so the final SQL sketch exactly matches that of the ground truth. The rest of the decoding proceeds conditioned on that choice. Likewise, “oracle columns” forces the decoder to emit the correct column/table at terminal nodes.