alex04.wang
commited on
Commit
•
797ce13
1
Parent(s):
ba772de
add table schema
Browse files- README.txt +133 -0
- dev.json +3 -0
- dev_gold.sql +3 -0
- tables.json +3 -0
- train_gold.sql +3 -0
README.txt
ADDED
@@ -0,0 +1,133 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# 08/03/2020 updated: corrected column name and column name original mismatch in 2 dbs (scholar and formula_1) in tables.json. Also, used process_sql.py to reparse SQL queries (this only affects some models (e.g. RATSQL) which use our parsed SQL as the SQL input).
|
2 |
+
# 06/01/2020 updated: corrected ~40 annotation errors/mismatches in dev.json
|
3 |
+
|
4 |
+
|
5 |
+
|
6 |
+
This folder contains the Spider training and dev data sets for the EMNLP 2018 paper Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Task.
|
7 |
+
|
8 |
+
It contains the following files:
|
9 |
+
|
10 |
+
- train_spider.json
|
11 |
+
# Training Examples: 7000
|
12 |
+
# Databases: 140
|
13 |
+
- train_others.json
|
14 |
+
# Training Examples: 1659
|
15 |
+
# Databases: 6
|
16 |
+
- dev.json
|
17 |
+
# Training Examples: 1034
|
18 |
+
# Databases: 20
|
19 |
+
- tables.json
|
20 |
+
# Databases: 166
|
21 |
+
- dev_gold.sql
|
22 |
+
- train_gold.sql
|
23 |
+
- database/
|
24 |
+
- README.txt
|
25 |
+
|
26 |
+
The official final Spider training data set combines train_spider.json and train_others.json.
|
27 |
+
The databases used in train_others.json are from Restaurants, GeoQuery, Scholar, Academic, IMDB, and Yelp which are prepared by Finegan-Dollak et al., 2018.
|
28 |
+
The databases and SQL examples in train_spider.json are originally prepared by us.
|
29 |
+
For the format of each json file, please refer to our github page https://github.com/taoyds/spider.
|
30 |
+
In database/, there is one folder for each database which contains the [db_name].sqlite file.
|
31 |
+
For most databases, we also provide a schema.sql file with SQL statements to create the database.
|
32 |
+
|
33 |
+
If you use the dataset, please cite the following papers including Finegan-Dollak et al., 2018 and the original datasets for Restaurants, GeoQuery, Scholar, Academic, IMDB, and Yelp.
|
34 |
+
|
35 |
+
@inproceedings{Yu&al.18c,
|
36 |
+
year = 2018,
|
37 |
+
title = {Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Task},
|
38 |
+
booktitle = {EMNLP},
|
39 |
+
author = {Tao Yu and Rui Zhang and Kai Yang and Michihiro Yasunaga and Dongxu Wang and Zifan Li and James Ma and Irene Li and Qingning Yao and Shanelle Roman and Zilin Zhang and Dragomir Radev }
|
40 |
+
}
|
41 |
+
|
42 |
+
@InProceedings{P18-1033,
|
43 |
+
author = "Finegan-Dollak, Catherine
|
44 |
+
and Kummerfeld, Jonathan K.
|
45 |
+
and Zhang, Li
|
46 |
+
and Ramanathan, Karthik
|
47 |
+
and Sadasivam, Sesh
|
48 |
+
and Zhang, Rui
|
49 |
+
and Radev, Dragomir",
|
50 |
+
title = "Improving Text-to-SQL Evaluation Methodology",
|
51 |
+
booktitle = "Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)",
|
52 |
+
year = "2018",
|
53 |
+
publisher = "Association for Computational Linguistics",
|
54 |
+
pages = "351--360",
|
55 |
+
location = "Melbourne, Australia",
|
56 |
+
url = "http://aclweb.org/anthology/P18-1033"
|
57 |
+
}
|
58 |
+
|
59 |
+
@InProceedings{data-sql-imdb-yelp,
|
60 |
+
dataset = {IMDB and Yelp},
|
61 |
+
author = {Navid Yaghmazadeh, Yuepeng Wang, Isil Dillig, and Thomas Dillig},
|
62 |
+
title = {SQLizer: Query Synthesis from Natural Language},
|
63 |
+
booktitle = {International Conference on Object-Oriented Programming, Systems, Languages, and Applications, ACM},
|
64 |
+
month = {October},
|
65 |
+
year = {2017},
|
66 |
+
pages = {63:1--63:26},
|
67 |
+
url = {http://doi.org/10.1145/3133887},
|
68 |
+
}
|
69 |
+
|
70 |
+
@article{data-academic,
|
71 |
+
dataset = {Academic},
|
72 |
+
author = {Fei Li and H. V. Jagadish},
|
73 |
+
title = {Constructing an Interactive Natural Language Interface for Relational Databases},
|
74 |
+
journal = {Proceedings of the VLDB Endowment},
|
75 |
+
volume = {8},
|
76 |
+
number = {1},
|
77 |
+
month = {September},
|
78 |
+
year = {2014},
|
79 |
+
pages = {73--84},
|
80 |
+
url = {http://dx.doi.org/10.14778/2735461.2735468},
|
81 |
+
}
|
82 |
+
|
83 |
+
@InProceedings{data-atis-geography-scholar,
|
84 |
+
dataset = {Scholar, and Updated ATIS and Geography},
|
85 |
+
author = {Srinivasan Iyer, Ioannis Konstas, Alvin Cheung, Jayant Krishnamurthy, and Luke Zettlemoyer},
|
86 |
+
title = {Learning a Neural Semantic Parser from User Feedback},
|
87 |
+
booktitle = {Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)},
|
88 |
+
year = {2017},
|
89 |
+
pages = {963--973},
|
90 |
+
location = {Vancouver, Canada},
|
91 |
+
url = {http://www.aclweb.org/anthology/P17-1089},
|
92 |
+
}
|
93 |
+
|
94 |
+
@inproceedings{data-geography-original
|
95 |
+
dataset = {Geography, original},
|
96 |
+
author = {John M. Zelle and Raymond J. Mooney},
|
97 |
+
title = {Learning to Parse Database Queries Using Inductive Logic Programming},
|
98 |
+
booktitle = {Proceedings of the Thirteenth National Conference on Artificial Intelligence - Volume 2},
|
99 |
+
year = {1996},
|
100 |
+
pages = {1050--1055},
|
101 |
+
location = {Portland, Oregon},
|
102 |
+
url = {http://dl.acm.org/citation.cfm?id=1864519.1864543},
|
103 |
+
}
|
104 |
+
|
105 |
+
@inproceedings{data-restaurants-logic,
|
106 |
+
author = {Lappoon R. Tang and Raymond J. Mooney},
|
107 |
+
title = {Automated Construction of Database Interfaces: Intergrating Statistical and Relational Learning for Semantic Parsing},
|
108 |
+
booktitle = {2000 Joint SIGDAT Conference on Empirical Methods in Natural Language Processing and Very Large Corpora},
|
109 |
+
year = {2000},
|
110 |
+
pages = {133--141},
|
111 |
+
location = {Hong Kong, China},
|
112 |
+
url = {http://www.aclweb.org/anthology/W00-1317},
|
113 |
+
}
|
114 |
+
|
115 |
+
@inproceedings{data-restaurants-original,
|
116 |
+
author = {Ana-Maria Popescu, Oren Etzioni, and Henry Kautz},
|
117 |
+
title = {Towards a Theory of Natural Language Interfaces to Databases},
|
118 |
+
booktitle = {Proceedings of the 8th International Conference on Intelligent User Interfaces},
|
119 |
+
year = {2003},
|
120 |
+
location = {Miami, Florida, USA},
|
121 |
+
pages = {149--157},
|
122 |
+
url = {http://doi.acm.org/10.1145/604045.604070},
|
123 |
+
}
|
124 |
+
|
125 |
+
@inproceedings{data-restaurants,
|
126 |
+
author = {Alessandra Giordani and Alessandro Moschitti},
|
127 |
+
title = {Automatic Generation and Reranking of SQL-derived Answers to NL Questions},
|
128 |
+
booktitle = {Proceedings of the Second International Conference on Trustworthy Eternal Systems via Evolving Software, Data and Knowledge},
|
129 |
+
year = {2012},
|
130 |
+
location = {Montpellier, France},
|
131 |
+
pages = {59--76},
|
132 |
+
url = {https://doi.org/10.1007/978-3-642-45260-4_5},
|
133 |
+
}
|
dev.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:30d64a3fccde493226df79687aed9e4a1c0129525baf44f29c0573d914d758a4
|
3 |
+
size 3629512
|
dev_gold.sql
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0b14e99791ebc59741608e68d1d73a6dbb75556c435faa3f4dce816b90c96661
|
3 |
+
size 124056
|
tables.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:61bb20aa401f03164e2d7f3b16509b7b5f79cc9c943ca7bd159046df1159e2ed
|
3 |
+
size 810971
|
train_gold.sql
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:20b623d4873dad57f5f66cbeaaee5d400def52d77c5a136bba879605660a6613
|
3 |
+
size 1176039
|