Pith. sign in

REVIEW 1 cited by

Quantifying Semantic Query Similarity for Automated Linear SQL Grading: A Graph-based Approach

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2403.14441 v1 pith:PSZSORGW submitted 2024-03-21 cs.DB

classification cs.DB
keywords semanticqueriesapproachgradingqueryautomateddatabasedissimilarity
verification ladder T0 review T1 audit T2 compute T3 formal
0 comments
read the original abstract

Quantifying the semantic similarity between database queries is a critical challenge with broad applications, ranging from query log analysis to automated educational assessment of SQL skills. Traditional methods often rely solely on syntactic comparisons or are limited to checking for semantic equivalence. This paper introduces a novel graph-based approach to measure the semantic dissimilarity between SQL queries. Queries are represented as nodes in an implicit graph, while the transitions between nodes are called edits, which are weighted by semantic dissimilarity. We employ shortest path algorithms to identify the lowest-cost edit sequence between two given queries, thereby defining a quantifiable measure of semantic distance. A prototype implementation of this technique has been evaluated through an empirical study, which strongly suggests that our method provides more accurate and comprehensible grading compared to existing techniques. Moreover, the results indicate that our approach comes close to the quality of manual grading, making it a robust tool for diverse database query comparison tasks.

Discussion (0). Sign in to comment.

Forward citations

Cited by 1 Pith paper

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score. Full citation record

  1. Taming SQL Complexity: LLM-Based Equivalence Evaluation for Text-to-SQL

    cs.CL 2025-06 reject novelty 4.0 of 10

    An LLM-based pipeline for judging SQL query equivalence achieves high accuracy on the authors' own data, but test-set fitting and a self-defined ground truth weaken the results.

Pith tools