bijaygurung commited on
Commit
ab41077
1 Parent(s): 222bab8

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +34 -0
README.md CHANGED
@@ -1,3 +1,37 @@
1
  ---
2
  license: cc-by-4.0
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: cc-by-4.0
3
+ task_categories:
4
+ - text-generation
5
+ language:
6
+ - en
7
+ size_categories:
8
+ - n<1K
9
  ---
10
+
11
+ # BIQA Text-to-SQL Dataset
12
+
13
+ The data is from the [Stack Overflow Developer Survey 2023](https://survey.stackoverflow.co/2023/).
14
+
15
+ Created with this [Notebook](https://colab.research.google.com/drive/12NUeRMsld0toXMSXKFMaQVAv58XwOAT1?usp=sharing); uses [this spreadsheet](https://docs.google.com/spreadsheets/d/1Xh_TgMbyitvtw08g0byEmBpkwDGZDdBYenthOzcK6qI/edit?usp=sharing) defining manual adjustments.
16
+
17
+ - `data/eval_set_multi_answers_res.json`: Question and query pairs as list of `SQLSample`s with possibly more than one valid SQL for a question. Also results included.
18
+ - `data/survey_results_normalized_v2.db`: The main sqlite db file.
19
+
20
+ The json file contains a list of `SQLSample` objects as defined:
21
+
22
+ ```python
23
+ @dataclass
24
+ class SQLQuery:
25
+ query: str
26
+ results: Optional[list[tuple]] = None
27
+
28
+ @dataclass
29
+ class SQLSample:
30
+ question: str
31
+ labels: list[SQLQuery]
32
+ prediction: Optional[SQLQuery] = None
33
+ pred_eval: str = ""
34
+ comment: str = ""
35
+ ```
36
+
37
+ Can be read in through the code from the [related repository](https://github.com/deepset-ai/biqa-llm).