SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2024.findings-emnlp.131 · EMNLP Findings · 2024

SYNTQA: Synergistic Table-based Question Answering via Mixture of Text-to-SQL and E2E TQA

Chen Zhao, Siyue Zhang, Tuan Luu, Anh

Open in the Atlas

Code that ran

4 of 8 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 2 have no contract verdict; 2 failures of our instrument; 4 no recorded run), measured 2026-11-24; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2024.findings-emnlp.131.json · badge: /api/ran/2024.findings-emnlp.131.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
siyue-zhang/SynTableQA canonical (classifier label)
classifier basis: census
4 ran · 4 no recorded run
FunctionStatusWhere it lives
combine_csv Ran
ran on a synthesized input
siyue-zhang/SynTableQA/classifier.py
code served (permissive licence) · get_code("81df1db69c2ecb5d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned DataFrame. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import pandas as pd
import numpy as np

# Create sample dataframes for squall dataset
tableqa_dev = pd.DataFrame({
    'id': ['q1', 'q2'],
    'tbl': ['table1', 'table2'],
    'question': ['What is X?', 'What is Y?'],
    'answer': [['ans1'], ['ans2']],
    'src': ['src1', 'src2'],
    'predictions': ['pred1', 'pred2'],
    'acc': [True, False],
    'log_probs_sum': [-1.5, -2.3],
    'log_probs_avg': [-0.75, -1.15],
    'truncated': [False, True],
    'input_tokens': [50, 75]
})

text_to_sql_dev = pd.DataFrame({
    'nl_headers': [['header1', 'header2'], ['header3', 'header4']],
    'table_id': ['table1', 'table2'],
    'queried_ans': ['sql_ans1', 'sql_ans2'],
    'acc': [True, False],
    'log_probs_sum': [-1.2, -2.1],
    'log_probs_avg': [-0.6, -1.05],
    'truncated': [False, False],
    'query_fuzzy': [0.95, 0.87],
    'query_pred': ['SELECT * FROM table1', 'SELECT * FROM table2']
})

ARGS = {
    'tableqa_dev': tableqa_dev,
    'text_to_sql_dev': text_to_sql_dev,
    'dataset': 'squall'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataFrame — a DataFrame output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataFrame output the recorded ndim 2 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
evaluate_example Ran
ran on a synthesized input
siyue-zhang/SynTableQA/metric/wikisql.py
code served (permissive licence) · get_code("0fa7dbc498e62ae1")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

from collections import defaultdict

# Analyze the function:
# - _predict_str: string parameter, will be split by target_delimiter
# - _ground_str: string parameter, will be split by target_delimiter
# - target_delimiter: string parameter, defaults to ', '
# The function splits strings, processes spans (some numeric, some text),
# counts them in defaultdicts, and compares equality.

ARGS = {
    "_predict_str": "apple, banana, 3.14, 42",
    "_ground_str": "apple, banana, 3.14, 42",
    "target_delimiter": ", "
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
normalize Ran
ran; our contract draft was wrong, not the code
siyue-zhang/SynTableQA/metric/squall_evaluator.py
code served (permissive licence) · get_code("26d29894eedef789")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import re
import unicodedata

def normalize(x):
    if not isinstance(x, str):
        x = x.decode('utf8', errors='ignore')
    x = ''.join((c for c in unicodedata.normalize('NFKD', x) if unicodedata.category(c) != 'Mn'))
    x = re.sub('[''´`]', "'", x)
    x = re.sub('[""]', '"', x)
    x = re.sub('[‐‑‒–—−]', '-', x)
    while True:
        old_x = x
        x = re.sub('((?<!^)\\[[^\\]]*\\]|\\[\\d+\\]|[•♦†‡*#+])*$', '', x.strip())
        x = re.sub('(?<!^)( \\([^)]*\\))*$', '', x.strip())
        x = re.sub('^"([^"]*)"$', '\\1', x.strip())
        if x == old_x:
            break
    if x and x[-1] == '.':
        x = x[:-1]
    x = re.sub('\\s+', ' ', x, flags=re.U).lower().strip()
    return x

# Test with various input types
ARGS = {
    'x': "Hello World™ with some [citation] and (note) text."
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
postprocess_text Ran
ran; our contract draft was wrong, not the code
siyue-zhang/SynTableQA/metric/squall_tableqa.py
pointer only (licence: MIT); the stored copy get_code serves, from lamp-benchmark/lamp, is pointer only (licence: NONE) · get_code("1bea9980ec25d1c5")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from lamp-benchmark/lamp, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_squall_table_shape Not yet run
unverified (harvested, no recorded run)
siyue-zhang/SynTableQA/classifier.py
code served (permissive licence) · get_code("ba2a1f791632acc8")
How it ran

no invocation recorded.

load_dfs Not yet run
unverified (harvested, no recorded run)
siyue-zhang/SynTableQA/classifier.py
code served (permissive licence) · get_code("b105100741cdb579")
How it ran

no invocation recorded.

to_value Not yet run
unverified (harvested, no recorded run)
siyue-zhang/SynTableQA/metric/squall_evaluator.py
code served (permissive licence) · get_code("95596bb98adee891")
How it ran

no invocation recorded.

to_value_list Not yet run
unverified (harvested, no recorded run)
siyue-zhang/SynTableQA/metric/squall_evaluator.py
code served (permissive licence) · get_code("341e12be9fe50d6d")
How it ran

no invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 4 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 0 later) and 4 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
normalize 2 other papers
2 same year, order not determinable
2024.findings-emnlp.253 (2024 (year only))
PROTRIX: Building Models for Planning and Reasoning over Tables with Sentence Context
2402.01155 (2024-02)
CABINET: Content Relevance based Noise Reduction for Table Question Answering
to_value 2 other papers
1 dated earlier, 1 same year, order not determinable
2302.08468 (2023-02)
LEVER: Learning to Verify Language-to-Code Generation with Execution
2402.01155 (2024-02)
CABINET: Content Relevance based Noise Reduction for Table Question Answering
postprocess_text 1 other paper
1 same year, order not determinable
2404.05970 (2024-04)
Optimization Methods for Personalizing Large Language Models through Retrieval Augmentation
to_value_list 1 other paper
1 same year, order not determinable
2402.01155 (2024-02)
CABINET: Content Relevance based Noise Reduction for Table Question Answering

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Text-to-SQL parsing and end-to-end question answering (E2E TQA) are two main approaches for Table-based Question Answering task. Despite success on multiple benchmarks, they have yet to be compared and their synergy remains unexplored. In this paper, we identify different strengths and weaknesses through evaluating state-of-the-art models on benchmark datasets: Text-to-SQL demonstrates superiority in handling questions involving arithmetic operations and long tables; E2E TQA excels in addressing ambiguous questions, nonstandard table schema, and complex table contents. To combine both strengths, we propose a Synergistic Table-based Question Answering approach that integrate different models via answer selection, which is agnostic to any model types. Further experiments validate that ensembling models by either feature-based or LLM-based answer selector significantly improves the performance over individual models. Code will be publicly available at https: //github.com/siyue-zhang/SynTableQA.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2024.findings-emnlp.131")
get_code_for_paper("2024.findings-emnlp.131")
have("2024.findings-emnlp.131")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2024.findings-emnlp.131.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2024.findings-emnlp.131.svg)](https://syntology.ai/paper/2024.findings-emnlp.131)

Connect an agent — have() is free.