Papers › Towards Complex Text-to-SQL in Cross-Domain Database with Intermediate Representation

Towards Complex Text-to-SQL in Cross-Domain Database with Intermediate Representation

20 May 2019ACL 2019 7arXiv:1905.08205archive 2025-07-28

Jiaqi Guo, Zecheng Zhan, Yan Gao, Yan Xiao, Jian-Guang Lou, Ting Liu, Dongmei Zhang

We present a neural approach called IRNet for complex and cross-domain Text-to-SQL. IRNet aims to address two challenges: 1) the mismatch between intents expressed in natural language (NL) and the implementation details in SQL; 2) the challenge in predicting columns caused by the large number of out-of-domain words. Instead of end-to-end synthesizing a SQL query, IRNet decomposes the synthesis process into three phases. In the first phase, IRNet performs a schema linking over a question and a database schema. Then, IRNet adopts a grammar-based neural model to synthesize a SemQL query which is an intermediate representation that we design to bridge NL and SQL. Finally, IRNet deterministically infers a SQL query from the synthesized SemQL query with domain knowledge. On the challenging Text-to-SQL benchmark Spider, IRNet achieves 46.7% accuracy, obtaining 19.5% absolute improvement over previous state-of-the-art approaches. At the time of writing, IRNet achieves the first position on the Spider leaderboard.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="1905.08205")

Code

Syntology Ran 0 of 20 code samples harvested from 3 repositories linked to this paper; 20 have no recorded run.

By repository: official repository: 12 samples from 1 repository, 0 ran; community (archive-listed): 8 samples from 2 repositories, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

zhanzecheng/IRNet officialmentioned in papermentioned on GitHubNOASSERTION report
zhanzecheng/IRNet-1 officialmentioned in papermentioned on GitHubpytorchMIT report
brunnurs/valuenet mentioned on GitHubpytorchApache-2.0 report
microsoft/IRNet mentioned on GitHubpytorchMIT report
openbotai/nl2sql mentioned on GitHubnot reachable when probed 2026-09-17 — repositories for recent papers often appear after camera-ready report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

20 samples harvested; 0 ran; 0 honoured the contract we drafted; 20 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

20unverified

Licence: 12 of the 20 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 3 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

dot_prod_attention zhanzecheng/IRNet-1/src/models/nn_utils.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · d8099e5254807c28 · report
fully_part_header zhanzecheng/IRNet-1/preprocess/utils.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · 9c3576f9e3a3fead · report
get_table_colNames zhanzecheng/IRNet-1/src/utils.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · 963b51dd3dc75877 · report
group_header zhanzecheng/IRNet-1/preprocess/utils.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · 9fb6cf9d7ab4b89e · report
init_config zhanzecheng/IRNet-1/src/args.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · b07608731805c76b · report
length_array_to_mask_tensor zhanzecheng/IRNet-1/src/models/nn_utils.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · 8652ad5cc86d0e0c · report
load_dataSets zhanzecheng/IRNet-1/preprocess/utils.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · 162d168370fb82c5 · report
load_word_emb zhanzecheng/IRNet-1/src/utils.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · c455f0c88c1ce239 · report
lower_keys zhanzecheng/IRNet-1/src/utils.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · c72d53981f7830b8 · report
pop_front zhanzecheng/IRNet-1/sem2SQL.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · 556a6efd5f06ab91 · report
split_logical_form zhanzecheng/IRNet-1/sem2SQL.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · beb755eade641481 · report
table_dict_to_mask_tensor zhanzecheng/IRNet-1/src/models/nn_utils.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · 7e01be511a9ebcf6 · report
build_optimizer_encoder brunnurs/valuenet/src/optimizer.py community (archive-listed) unverified Apache-2.0 (permissive) · cfc906a590c69cbe · report
create_experiment_folder brunnurs/valuenet/src/utils.py community (archive-listed) unverified Apache-2.0 (permissive) · 6e5bb54df87a72ba · report
dot_prod_attention brunnurs/valuenet/src/neural_network_utils.py community (archive-listed) unverified Apache-2.0 (permissive) · e3de52f6de213f21 · report
dot_prod_attention microsoft/IRNet/src/models/nn_utils.py community (archive-listed) unverified MIT (permissive) · 286d5b153c10befb · report
get_data_loader brunnurs/valuenet/src/data_loader.py community (archive-listed) unverified Apache-2.0 (permissive) · 055bcd6f75fdf154 · report
load_word_emb brunnurs/valuenet/src/utils.py community (archive-listed) unverified Apache-2.0 (permissive) · fd6641ead78d10ee · report
load_word_emb_binary brunnurs/valuenet/src/utils.py community (archive-listed) unverified Apache-2.0 (permissive) · 16fad9d730a01050 · report
make_edge brunnurs/valuenet/src/intermediate_representation/graph.py community (archive-listed) unverified Apache-2.0 (permissive) · 47c4fc5b3bd99c76 · report

Tasks

Text to SQLText-To-SQL

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections