Create few_shots.py
Browse files- few_shots.py +26 -0
few_shots.py
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
few_shots = [
|
2 |
+
{'Question': "How many gel pens do we have left in blue color?",
|
3 |
+
'SQLQuery': "SELECT sum(stock_quantity) FROM pens WHERE type = 'Gel' AND color = 'Blue'",
|
4 |
+
'SQLResult': "Result of the SQL query",
|
5 |
+
'Answer': "85"},
|
6 |
+
{'Question': "How much is the total value of the inventory for all ballpoint pens?",
|
7 |
+
'SQLQuery': "SELECT SUM(price*stock_quantity) FROM pens WHERE type = 'Ballpoint'",
|
8 |
+
'SQLResult': "Result of the SQL query",
|
9 |
+
'Answer': "3542"},
|
10 |
+
{'Question': "If we apply a 15% discount to all fountain pens, how much revenue would our store generate?",
|
11 |
+
'SQLQuery': """SELECT SUM(price * stock_quantity * 0.85) FROM pens WHERE type = 'Fountain'""",
|
12 |
+
'SQLResult': "Result of the SQL query",
|
13 |
+
'Answer': "1632.45"},
|
14 |
+
{'Question': "How many books are there in the 'Science' genre?",
|
15 |
+
'SQLQuery': "SELECT sum(stock_quantity) FROM books WHERE genre = 'Science'",
|
16 |
+
'SQLResult': "Result of the SQL query",
|
17 |
+
'Answer': "120"},
|
18 |
+
{'Question': "How much revenue will our store generate if we sell all biography books today at a 10% discount?",
|
19 |
+
'SQLQuery': """SELECT SUM(price * stock_quantity * 0.90) FROM books WHERE genre = 'Biography'""",
|
20 |
+
'SQLResult': "Result of the SQL query",
|
21 |
+
'Answer': "2700"},
|
22 |
+
{'Question': "What is the total stock of rollerball pens in green color?",
|
23 |
+
'SQLQuery': "SELECT sum(stock_quantity) FROM pens WHERE type = 'Rollerball' AND color = 'Green'",
|
24 |
+
'SQLResult': "Result of the SQL query",
|
25 |
+
'Answer': "50"}
|
26 |
+
]
|