Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,70 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
---
|
| 4 |
+
|
| 5 |
+
This is the training data with execution results of https://bird-bench.github.io/
|
| 6 |
+
|
| 7 |
+
Sample
|
| 8 |
+
|
| 9 |
+
```
|
| 10 |
+
[
|
| 11 |
+
{
|
| 12 |
+
"db_id": "book_publishing_company",
|
| 13 |
+
"question": "Please list the first names of the employees who work as Managing Editor.",
|
| 14 |
+
"evidence": "Managing Editor is a job description which refers to job_desc",
|
| 15 |
+
"SQL": "SELECT T1.fname FROM employee AS T1 INNER JOIN jobs AS T2 ON T1.job_id = T2.job_id WHERE T2.job_desc = 'Managing Editor'",
|
| 16 |
+
"execution_result": {
|
| 17 |
+
"status": "success",
|
| 18 |
+
"error_message": null,
|
| 19 |
+
"execution_time": 0.0029268264770507812,
|
| 20 |
+
"result": [
|
| 21 |
+
{
|
| 22 |
+
"fname": "Annette"
|
| 23 |
+
},
|
| 24 |
+
{
|
| 25 |
+
"fname": "Diego"
|
| 26 |
+
},
|
| 27 |
+
{
|
| 28 |
+
"fname": "Matti"
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"fname": "Victoria"
|
| 32 |
+
}
|
| 33 |
+
]
|
| 34 |
+
}
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"db_id": "book_publishing_company",
|
| 38 |
+
"question": "What is the highest level of job to get to for the employee who got hired the earliest?",
|
| 39 |
+
"evidence": "highest job level refers to MAX(job_lvl); hired the earliest refers to MIN(hire_date)",
|
| 40 |
+
"SQL": "SELECT T2.max_lvl FROM employee AS T1 INNER JOIN jobs AS T2 ON T1.job_id = T2.job_id ORDER BY T1.hire_date LIMIT 1",
|
| 41 |
+
"execution_result": {
|
| 42 |
+
"status": "success",
|
| 43 |
+
"error_message": null,
|
| 44 |
+
"execution_time": 0.0005319118499755859,
|
| 45 |
+
"result": [
|
| 46 |
+
{
|
| 47 |
+
"max_lvl": 100
|
| 48 |
+
}
|
| 49 |
+
]
|
| 50 |
+
}
|
| 51 |
+
},
|
| 52 |
+
{
|
| 53 |
+
"db_id": "book_publishing_company",
|
| 54 |
+
"question": "In which city is the store with the highest total sales quantity located?",
|
| 55 |
+
"evidence": "qty is abbreviation for quantity; highest sales quantity refers to MAX(qty)",
|
| 56 |
+
"SQL": "SELECT T2.city FROM sales AS T1 INNER JOIN stores AS T2 ON T1.stor_id = T2.stor_id GROUP BY T2.city ORDER BY SUM(T1.qty) DESC LIMIT 1",
|
| 57 |
+
"execution_result": {
|
| 58 |
+
"status": "success",
|
| 59 |
+
"error_message": null,
|
| 60 |
+
"execution_time": 0.0011227130889892578,
|
| 61 |
+
"result": [
|
| 62 |
+
{
|
| 63 |
+
"city": "Remulade"
|
| 64 |
+
}
|
| 65 |
+
]
|
| 66 |
+
}
|
| 67 |
+
},
|
| 68 |
+
...
|
| 69 |
+
]
|
| 70 |
+
```
|