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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[
|
2 |
+
{
|
3 |
+
"instruction": "Database Schema:\n```sql\nTable: customers\n Column: CustomerID int(11) NO PRI None auto_increment\n Column: Name varchar(255) YES None \n Column: Email varchar(255) YES None \n Column: Phone varchar(50) YES None \nTable: orderdetails\n Column: OrderDetailID int(11) NO PRI None auto_increment\n Column: OrderID int(11) YES MUL None \n Column: ProductID int(11) YES MUL None \n Column: Quantity int(11) YES None \nTable: orders\n Column: OrderID int(11) NO PRI None auto_increment\n Column: CustomerID int(11) YES MUL None \n Column: OrderDate date YES None \nTable: products\n Column: ProductID int(11) NO PRI None auto_increment\n Column: Name varchar(255) YES None \n Column: Price decimal(10,2) YES None \n```",
|
4 |
+
"input": "",
|
5 |
+
"output": ""
|
6 |
+
},
|
7 |
+
{
|
8 |
+
"instruction": "Sample scripts for table: customers\n```sql\nSELECT * FROM customers WHERE 1 = '1';\nSELECT * FROM customers WHERE 2 = '2';\nSELECT * FROM customers WHERE 3 = '3';\nSELECT * FROM customers WHERE 4 = '4';\nSELECT * FROM customers WHERE 5 = '5';\n```",
|
9 |
+
"input": "",
|
10 |
+
"output": ""
|
11 |
+
},
|
12 |
+
{
|
13 |
+
"instruction": "Sample scripts for table: orderdetails\n```sql\nSELECT * FROM orderdetails WHERE 1 = '1';\nSELECT * FROM orderdetails WHERE 2 = '2';\nSELECT * FROM orderdetails WHERE 3 = '3';\nSELECT * FROM orderdetails WHERE 4 = '4';\nSELECT * FROM orderdetails WHERE 5 = '5';\n```",
|
14 |
+
"input": "",
|
15 |
+
"output": ""
|
16 |
+
},
|
17 |
+
{
|
18 |
+
"instruction": "Sample scripts for table: orders\n```sql\nSELECT * FROM orders WHERE 1 = '1';\nSELECT * FROM orders WHERE 2 = '2';\nSELECT * FROM orders WHERE 3 = '3';\nSELECT * FROM orders WHERE 4 = '4';\nSELECT * FROM orders WHERE 5 = '5';\n```",
|
19 |
+
"input": "",
|
20 |
+
"output": ""
|
21 |
+
},
|
22 |
+
{
|
23 |
+
"instruction": "Sample scripts for table: products\n```sql\nSELECT * FROM products WHERE 1 = '1';\nSELECT * FROM products WHERE 2 = '2';\nSELECT * FROM products WHERE 3 = '3';\nSELECT * FROM products WHERE 4 = '4';\nSELECT * FROM products WHERE 5 = '5';\n```",
|
24 |
+
"input": "",
|
25 |
+
"output": ""
|
26 |
+
},
|
27 |
+
{
|
28 |
+
"instruction": "Find the average price of all products.",
|
29 |
+
"input": "",
|
30 |
+
"output": "The average price of all products is $X."
|
31 |
+
},
|
32 |
+
{
|
33 |
+
"instruction": "List all customers whose name starts with 'A'.",
|
34 |
+
"input": "",
|
35 |
+
"output": "Customers whose name starts with 'A':\n- Customer 1\n- Customer 2\n- ..."
|
36 |
+
},
|
37 |
+
{
|
38 |
+
"instruction": "Calculate the total number of orders for each customer.",
|
39 |
+
"input": "",
|
40 |
+
"output": "Customer 1: X orders\nCustomer 2: Y orders\n..."
|
41 |
+
},
|
42 |
+
{
|
43 |
+
"instruction": "What is the email of the customer with CustomerID 1?",
|
44 |
+
"input": "",
|
45 |
+
"output": "The email of the customer with CustomerID 1 is pagemichelle@example.com."
|
46 |
+
},
|
47 |
+
{
|
48 |
+
"instruction": "What is the name of the customer with CustomerID 1?",
|
49 |
+
"input": "",
|
50 |
+
"output": "The name of the customer with CustomerID 1 is Katherine Riley."
|
51 |
+
},
|
52 |
+
{
|
53 |
+
"instruction": "What is the email of the customer with CustomerID 2?",
|
54 |
+
"input": "",
|
55 |
+
"output": "The email of the customer with CustomerID 2 is kelsey13@example.com."
|
56 |
+
},
|
57 |
+
{
|
58 |
+
"instruction": "What is the name of the customer with CustomerID 2?",
|
59 |
+
"input": "",
|
60 |
+
"output": "The name of the customer with CustomerID 2 is Patricia Holmes."
|
61 |
+
},
|
62 |
+
{
|
63 |
+
"instruction": "What is the email of the customer with CustomerID 3?",
|
64 |
+
"input": "",
|
65 |
+
"output": "The email of the customer with CustomerID 3 is krystalbanks@example.com."
|
66 |
+
},
|
67 |
+
{
|
68 |
+
"instruction": "What is the name of the customer with CustomerID 3?",
|
69 |
+
"input": "",
|
70 |
+
"output": "The name of the customer with CustomerID 3 is Kathleen Lopez."
|
71 |
+
},
|
72 |
+
{
|
73 |
+
"instruction": "What is the email of the customer with CustomerID 4?",
|
74 |
+
"input": "",
|
75 |
+
"output": "The email of the customer with CustomerID 4 is stevenfrank@example.net."
|
76 |
+
},
|
77 |
+
{
|
78 |
+
"instruction": "What is the name of the customer with CustomerID 4?",
|
79 |
+
"input": "",
|
80 |
+
"output": "The name of the customer with CustomerID 4 is Melissa Herrera."
|
81 |
+
},
|
82 |
+
{
|
83 |
+
"instruction": "What is the email of the customer with CustomerID 5?",
|
84 |
+
"input": "",
|
85 |
+
"output": "The email of the customer with CustomerID 5 is turnerheather@example.org."
|
86 |
+
},
|
87 |
+
{
|
88 |
+
"instruction": "What is the name of the customer with CustomerID 5?",
|
89 |
+
"input": "",
|
90 |
+
"output": "The name of the customer with CustomerID 5 is Richard Gillespie."
|
91 |
+
},
|
92 |
+
{
|
93 |
+
"instruction": "What is the email of the customer with CustomerID 6?",
|
94 |
+
"input": "",
|
95 |
+
"output": "The email of the customer with CustomerID 6 is amanda13@example.com."
|
96 |
+
},
|
97 |
+
{
|
98 |
+
"instruction": "What is the name of the customer with CustomerID 6?",
|
99 |
+
"input": "",
|
100 |
+
"output": "The name of the customer with CustomerID 6 is Amber Bennett."
|
101 |
+
},
|
102 |
+
{
|
103 |
+
"instruction": "What is the email of the customer with CustomerID 7?",
|
104 |
+
"input": "",
|
105 |
+
"output": "The email of the customer with CustomerID 7 is claytonmelinda@example.com."
|
106 |
+
},
|
107 |
+
{
|
108 |
+
"instruction": "What is the name of the customer with CustomerID 7?",
|
109 |
+
"input": "",
|
110 |
+
"output": "The name of the customer with CustomerID 7 is Nicholas Butler."
|
111 |
+
},
|
112 |
+
{
|
113 |
+
"instruction": "What is the email of the customer with CustomerID 8?",
|
114 |
+
"input": "",
|
115 |
+
"output": "The email of the customer with CustomerID 8 is rose75@example.net."
|
116 |
+
},
|
117 |
+
{
|
118 |
+
"instruction": "What is the name of the customer with CustomerID 8?",
|
119 |
+
"input": "",
|
120 |
+
"output": "The name of the customer with CustomerID 8 is Victor Cardenas."
|
121 |
+
},
|
122 |
+
{
|
123 |
+
"instruction": "What is the email of the customer with CustomerID 9?",
|
124 |
+
"input": "",
|
125 |
+
"output": "The email of the customer with CustomerID 9 is nguyenderek@example.org."
|
126 |
+
},
|
127 |
+
{
|
128 |
+
"instruction": "What is the name of the customer with CustomerID 9?",
|
129 |
+
"input": "",
|
130 |
+
"output": "The name of the customer with CustomerID 9 is Anita Stewart."
|
131 |
+
},
|
132 |
+
{
|
133 |
+
"instruction": "What is the email of the customer with CustomerID 10?",
|
134 |
+
"input": "",
|
135 |
+
"output": "The email of the customer with CustomerID 10 is perrysamantha@example.org."
|
136 |
+
},
|
137 |
+
{
|
138 |
+
"instruction": "What is the name of the customer with CustomerID 10?",
|
139 |
+
"input": "",
|
140 |
+
"output": "The name of the customer with CustomerID 10 is David Clark."
|
141 |
+
},
|
142 |
+
{
|
143 |
+
"instruction": "How many orders did the customer with CustomerID 1 place?",
|
144 |
+
"input": "",
|
145 |
+
"output": "The customer with CustomerID 1 placed 2 orders."
|
146 |
+
},
|
147 |
+
{
|
148 |
+
"instruction": "How many orders did the customer with CustomerID 3 place?",
|
149 |
+
"input": "",
|
150 |
+
"output": "The customer with CustomerID 3 placed 3 orders."
|
151 |
+
},
|
152 |
+
{
|
153 |
+
"instruction": "How many orders did the customer with CustomerID 4 place?",
|
154 |
+
"input": "",
|
155 |
+
"output": "The customer with CustomerID 4 placed 3 orders."
|
156 |
+
},
|
157 |
+
{
|
158 |
+
"instruction": "How many orders did the customer with CustomerID 5 place?",
|
159 |
+
"input": "",
|
160 |
+
"output": "The customer with CustomerID 5 placed 2 orders."
|
161 |
+
},
|
162 |
+
{
|
163 |
+
"instruction": "How many orders did the customer with CustomerID 6 place?",
|
164 |
+
"input": "",
|
165 |
+
"output": "The customer with CustomerID 6 placed 4 orders."
|
166 |
+
},
|
167 |
+
{
|
168 |
+
"instruction": "How many orders did the customer with CustomerID 7 place?",
|
169 |
+
"input": "",
|
170 |
+
"output": "The customer with CustomerID 7 placed 2 orders."
|
171 |
+
},
|
172 |
+
{
|
173 |
+
"instruction": "How many orders did the customer with CustomerID 8 place?",
|
174 |
+
"input": "",
|
175 |
+
"output": "The customer with CustomerID 8 placed 1 orders."
|
176 |
+
},
|
177 |
+
{
|
178 |
+
"instruction": "How many orders did the customer with CustomerID 9 place?",
|
179 |
+
"input": "",
|
180 |
+
"output": "The customer with CustomerID 9 placed 6 orders."
|
181 |
+
},
|
182 |
+
{
|
183 |
+
"instruction": "How many orders did the customer with CustomerID 10 place?",
|
184 |
+
"input": "",
|
185 |
+
"output": "The customer with CustomerID 10 placed 1 orders."
|
186 |
+
},
|
187 |
+
{
|
188 |
+
"instruction": "How many orders did the customer with CustomerID 11 place?",
|
189 |
+
"input": "",
|
190 |
+
"output": "The customer with CustomerID 11 placed 1 orders."
|
191 |
+
},
|
192 |
+
{
|
193 |
+
"instruction": "What is the price of reduce?",
|
194 |
+
"input": "",
|
195 |
+
"output": "The price of reduce is $95.71."
|
196 |
+
},
|
197 |
+
{
|
198 |
+
"instruction": "What is the price of suddenly?",
|
199 |
+
"input": "",
|
200 |
+
"output": "The price of suddenly is $295.39."
|
201 |
+
},
|
202 |
+
{
|
203 |
+
"instruction": "What is the price of happen?",
|
204 |
+
"input": "",
|
205 |
+
"output": "The price of happen is $373.73."
|
206 |
+
},
|
207 |
+
{
|
208 |
+
"instruction": "What is the price of player?",
|
209 |
+
"input": "",
|
210 |
+
"output": "The price of player is $251.23."
|
211 |
+
},
|
212 |
+
{
|
213 |
+
"instruction": "What is the price of likely?",
|
214 |
+
"input": "",
|
215 |
+
"output": "The price of likely is $333.92."
|
216 |
+
},
|
217 |
+
{
|
218 |
+
"instruction": "What is the price of experience?",
|
219 |
+
"input": "",
|
220 |
+
"output": "The price of experience is $160.00."
|
221 |
+
},
|
222 |
+
{
|
223 |
+
"instruction": "What is the price of improve?",
|
224 |
+
"input": "",
|
225 |
+
"output": "The price of improve is $378.76."
|
226 |
+
},
|
227 |
+
{
|
228 |
+
"instruction": "What is the price of structure?",
|
229 |
+
"input": "",
|
230 |
+
"output": "The price of structure is $425.14."
|
231 |
+
},
|
232 |
+
{
|
233 |
+
"instruction": "What is the price of arm?",
|
234 |
+
"input": "",
|
235 |
+
"output": "The price of arm is $196.57."
|
236 |
+
},
|
237 |
+
{
|
238 |
+
"instruction": "What is the price of which?",
|
239 |
+
"input": "",
|
240 |
+
"output": "The price of which is $7.95."
|
241 |
+
},
|
242 |
+
{
|
243 |
+
"instruction": "Fetch all orders with customer names and product details.",
|
244 |
+
"input": "",
|
245 |
+
"output": "```sql\nSELECT Orders.OrderID, Customers.Name AS CustomerName, Products.Name AS ProductName, OrderDetails.Quantity\n FROM Orders\n JOIN Customers ON Orders.CustomerID = Customers.CustomerID\n JOIN OrderDetails ON Orders.OrderID = OrderDetails.OrderID\n JOIN Products ON OrderDetails.ProductID = Products.ProductID\n LIMIT 10;\n```"
|
246 |
+
},
|
247 |
+
{
|
248 |
+
"instruction": "Find customers who have placed more than one order.",
|
249 |
+
"input": "",
|
250 |
+
"output": "```sql\nSELECT Name, Email\n FROM Customers\n WHERE CustomerID IN (\n SELECT CustomerID\n FROM Orders\n GROUP BY CustomerID\n HAVING COUNT(OrderID) > 1\n )\n LIMIT 10;\n```"
|
251 |
+
},
|
252 |
+
{
|
253 |
+
"instruction": "Calculate the total sales for each product.",
|
254 |
+
"input": "",
|
255 |
+
"output": "```sql\nSELECT Products.Name, SUM(OrderDetails.Quantity * Products.Price) AS TotalSales\n FROM OrderDetails\n JOIN Products ON OrderDetails.ProductID = Products.ProductID\n GROUP BY Products.Name\n LIMIT 10;\n```"
|
256 |
+
},
|
257 |
+
{
|
258 |
+
"instruction": "Calculate running total of orders for each customer.",
|
259 |
+
"input": "",
|
260 |
+
"output": "```sql\nSELECT Orders.OrderID, Orders.CustomerID, Customers.Name,\n Orders.OrderDate, \n SUM(OrderDetails.Quantity * Products.Price) OVER (PARTITION BY Orders.CustomerID ORDER BY Orders.OrderDate) AS RunningTotal\n FROM Orders\n JOIN Customers ON Orders.CustomerID = Customers.CustomerID\n JOIN OrderDetails ON Orders.OrderID = OrderDetails.OrderID\n JOIN Products ON OrderDetails.ProductID = Products.ProductID\n LIMIT 10;\n```"
|
261 |
+
}
|
262 |
+
]
|