Pith. sign in

REVIEW 3 cited by

Querying Large Language Models with SQL

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 2304.00472 v3 pith:FHIGM6WL submitted 2023-04-02 cs.DB cs.AI

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

In many use-cases, information is stored in text but not available in structured data. However, extracting data from natural language text to precisely fit a schema, and thus enable querying, is a challenging task. With the rise of pre-trained Large Language Models (LLMs), there is now an effective solution to store and use information extracted from massive corpora of text documents. Thus, we envision the use of SQL queries to cover a broad range of data that is not captured by traditional databases by tapping the information in LLMs. To ground this vision, we present Galois, a prototype based on a traditional database architecture, but with new physical operators for querying the underlying LLM. The main idea is to execute some operators of the the query plan with prompts that retrieve data from the LLM. For a large class of SQL queries, querying LLMs returns well structured relations, with encouraging qualitative results. Preliminary experimental results make pre-trained LLMs a promising addition to the field of database systems, introducing a new direction for hybrid query processing. However, we pinpoint several research challenges that must be addressed to build a DBMS that exploits LLMs. While some of these challenges necessitate integrating concepts from the NLP literature, others offer novel research avenues for the DB community.

Discussion (0). Continue with ORCID to comment.

Forward citations

Cited by 3 Pith papers

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

  1. Large Language Models for Predictive Analysis: How Far Are They?

    cs.CL 2025-05 conditional novelty 6.0 of 10

    Existing LLMs perform poorly on predictive analysis, with the best model scoring 24.11/28 and most models failing to generate executable code.

  2. Contrato360 2.0: A Document and Database-Driven Question-Answer System using Large Language Models and Agents

    cs.AI 2024-12 conditional novelty 4.0 of 10

    Contrato360 2.0 answers contract-management queries by combining RAG, text-to-SQL, and agent orchestration, but the claimed improvement over prior methods is not rigorously established.

  3. Surveillance Capitalism Revealed: Tracing The Hidden World Of Web Data Collection

    cs.AI 2024-12 conditional novelty 2.0 of 10

    Visiting samsung.com triggered requests to Facebook, Twitter, TikTok, Pinterest, and ad networks, and Samsung ads later appeared on globo.com.

Pith tools