File size: 2,322 Bytes
aef06c2
 
 
9927628
aef06c2
 
 
 
9927628
 
aef06c2
 
 
9927628
 
aef06c2
 
 
9927628
 
aef06c2
 
 
9927628
 
8a6dfc1
 
 
9927628
8a6dfc1
9927628
 
 
 
 
aef06c2
ec8dd84
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3987dee
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
[
  {
    "question": "LK:what is the status of my last order?",
    "context": "CREATE TABLE orders (status VARCHAR, amount DECIMAL, customer_id INT)",
    "answer": "SELECT status from orders where customer_id=<> order by id desc limit 1"
  },
  {
    "question": "LK:where is my last order?",
    "context": "CREATE TABLE orders (status VARCHAR, amount DECIMAL, customer_id INT)",
    "answer": "SELECT status from orders where customer_id=1 order by id desc limit 1"
  },
  {
    "question": "LK:what about my last order?",
    "context": "CREATE TABLE orders (status VARCHAR, amount DECIMAL, customer_id INT)",
    "answer": "SELECT status from orders where customer_id=1 order by id desc limit 1"
  },
{
    "question": "LK:when i getting my order?",
    "context": "CREATE TABLE orders (status VARCHAR, amount DECIMAL, customer_id INT)",
    "answer": "SELECT status from orders where customer_id=1 order by id desc limit 1"
  },
{
    "question": "LK:when i getting my order?",
    "context": "CREATE TABLE orders (status VARCHAR, amount DECIMAL, customer_id INT)",
    "answer": "SELECT status from orders where customer_id=1 order by id desc limit 1"
  },
  {
    "question": "LK:how many orders I have done so far?",
    "context": "CREATE TABLE orders (status VARCHAR, amount DECIMAL, customer_id INT)",
    "answer": "SELECT count(*) from orders where customer_id=1"
  },
  {
    "question": "LK:what is the total amount spent by customer?",
    "context": "CREATE TABLE orders (status VARCHAR, amount DECIMAL, customer_id INT)",
    "answer": "SELECT SUM(amount) FROM orders WHERE customer_id=1"
  }
  ,
  {
    "question": "LK:what is the most recent order date for customer?",
    "context": "CREATE TABLE orders (status VARCHAR, amount DECIMAL, customer_id INT)",
    "answer": "SELECT SUM(amount) FROM orders WHERE customer_id=1"
  }
  ,
  {
    "question": "LK:what is the total number of orders placed by me?",
    "context": "CREATE TABLE orders (status VARCHAR, amount DECIMAL, customer_id INT)",
    "answer": "SELECT SUM(amount) FROM orders WHERE customer_id=1"
  }
  ,
  {
    "question": "LK:what is the status of all orders placed by me?",
    "context": "CREATE TABLE orders (status VARCHAR, amount DECIMAL, customer_id INT)",
    "answer": "SELECT status FROM orders WHERE customer_id=1"
  }
]