Lune

SIGMOD2024Top-tier venue

SchemaPile: A Large Collection of Relational Database Schemas

Till Döhmen, Radu Geacu, Madelon Hulsebos, Sebastian Schelter

Abstract

Access to fine-grained schema information is crucial for understanding how relational databases are designed and used in practice, and for building systems that help users interact with them. Furthermore, such information is required as training data to leverage the potential of large language models (LLMs) for improving data preparation, data integration and natural language querying. Existing single-table corpora such as GitTables provide insights into how tables are structured in-the-wild, but lack detailed schema information about how tables relate to each other, as well as metadata like data types or integrity constraints. On the other hand, existing multi-table (or database schema) datasets are rather small and attribute-poor, leaving it unclear to what extent they actually represent typical real-world database schemas.

In order to address these challenges, we present SchemaPile, a corpus of 221,171 database schemas, extracted from SQL files on GitHub. It contains 1.7 million tables with 10 million column definitions, 700 thousand foreign key relationships, seven million integrity constraints, and data content for more than 340 thousand tables. We conduct an in-depth analysis on the millions of schema metadata properties in our corpus, as well as its highly diverse language and topic distribution. In addition, we showcase the potential of SchemaPile to improve a variety of data management applications, e.g., fine-tuning LLMs for schema-only foreign key detection, improving CSV header detection and evaluating multi-dialect SQL parsers. We publish the code and data for recreating SchemaPile and a permissively licensed subset SchemaPile-Perm.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

5 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • OmniSQL: Synthesizing High-quality Text-to-SQL Data at Scale cites LoRA: Low-Rank Adaptation of Large Language Models
  • OmniSQL: Synthesizing High-quality Text-to-SQL Data at Scale cites GraPPa: Grammar-Augmented Pre-Training for Table Semantic Parsing
  • OmniSQL: Synthesizing High-quality Text-to-SQL Data at Scale cites Few-shot Text-to-SQL Translation using Structure and Content Prompt Learning
  • Few-shot Text-to-SQL Translation using Structure and Content Prompt Learning cites GraPPa: Grammar-Augmented Pre-Training for Table Semantic Parsing
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers5

  1. OmniSQL: Synthesizing High-quality Text-to-SQL Data at ScaleHaoyang Li, Shang Wu, Xiaokang Zhang, Xinmei Huang et al.VLDB 2025 · 90 citations
  2. SNAILS: Schema Naming Assessments for Improved LLM-Based SQL InferenceKyle Luoma, Arun KumarSIGMOD 2025 · 11 citations
  3. Qualitative Join Discovery in Data Lakes using ExamplesMir Mahathir Mohammad, El Kindi RezigSIGMOD 2026 · 6 citations
  4. WikiDBGraph: A Data Management Benchmark Suite for Collaborative Learning Over Database SilosZhaomin Wu, Ziyang Wang, Bingsheng HeICDE 2026
  5. Dialect-Agnostic SQL Parsing via LLM-Based SegmentationJunwen An, Kabilan Mahathevan, Manuel RiggerSIGMOD 2026

Builds on12

  1. LoRA: Low-Rank Adaptation of Large Language ModelsEdward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu et al.ICLR 2022 · 18,833 citations
  2. How Large Language Models Will Disrupt Data ManagementRaul Castro Fernandez, Aaron J. Elmore, Michael J. Franklin, Sanjay Krishnan et al.VLDB 2023 · 127 citations
  3. Valentine: Evaluating Matching Techniques for Dataset DiscoveryChristos Koutras, George Siachamis, Andra Ionescu, Kyriakos Psarakis et al.ICDE 2021 · 87 citations
  4. Few-shot Text-to-SQL Translation using Structure and Content Prompt LearningZihui Gu, Ju Fan, Nan Tang, Lei Cao et al.SIGMOD 2023 · 60 citations
  5. GraPPa: Grammar-Augmented Pre-Training for Table Semantic ParsingTao Yu, Chien-Sheng Wu, Xi Victoria Lin, Bailin Wang et al.ICLR 2021 · 59 citations

Related papers

  1. GitTables: A Large-Scale Corpus of Relational TablesMadelon Hulsebos, Çagatay Demiralp, Paul GrothSIGMOD 2023 · 42 citations
  2. Can Large Language Models Predict Data Correlations from Column Names?Immanuel TrummerVLDB 2023 · 17 citations
  3. Intent-aware Schema Generation and Refinement for Literature Review TablesVishakh Padmakumar, Joseph Chee Chang, Kyle Lo, Doug Downey et al.EMNLP Findings 2025 · 1 citation
  4. GRIT: Guided Relational Integration for Efficient Multi-Table UnderstandingYujin Kang, Park Seong Woo, Yoon-Sik ChoEMNLP 2025 · 2 citations
  5. SchemaRAG: A Schema-aware Retrieval-Augmented Generation Framework for Text-to-SQLDi Wu, Zetong Tang, Yi He, Xin LuoSIGMOD 2026 · 9 citations
Dusk over the sea between two cliffs drawn in fine vertical lines