rvk7895 commited on
Commit
d2425c2
1 Parent(s): 5f3476a

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +30 -0
README.md CHANGED
@@ -133,6 +133,7 @@ tokenizer.decode(outputs[0], skip_special_tokens=True).split('<doc>')[-1].split(
133
 
134
  ## Examples
135
 
 
136
  ### prompt
137
  ```python
138
  text=''' <example_response>
@@ -216,5 +217,34 @@ text=''' <example_response>
216
  plot_bounding_polygon([[(0, 0), (1, 0), (1, 1), (0, 1)], [(2, 2), (3, 2), (3, 3), (2, 3)]], "my_map.html").
217
  ```
218
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
219
  ### Team
220
  Avi Kothari, Gyan Ranjan, Pratham Gupta, Ritvik Aryan Kalra, Soham Acharya
 
133
 
134
  ## Examples
135
 
136
+ ### 1. Code Documentation
137
  ### prompt
138
  ```python
139
  text=''' <example_response>
 
217
  plot_bounding_polygon([[(0, 0), (1, 0), (1, 1), (0, 1)], [(2, 2), (3, 2), (3, 3), (2, 3)]], "my_map.html").
218
  ```
219
 
220
+
221
+ ### 2. SQL Generation
222
+ ### prompt
223
+ ```python
224
+ text = f"""Generate simple SQL query from the schema mentioned for the following questions.
225
+ <schema>CREATE TABLE department (Department_ID number,
226
+ Name text,
227
+ Creation text,
228
+ Ranking number,
229
+ Budget_in_Billions number,
230
+ Num_Employees number);
231
+
232
+ CREATE TABLE head (head_ID number,
233
+ name text,
234
+ born_state text,
235
+ age number);
236
+
237
+ CREATE TABLE management (department_ID number,
238
+ head_ID number,
239
+ temporary_acting text);</schema>
240
+ <question>What are the names of the heads who are born outside the California state?</question>
241
+ <sql>
242
+ ```
243
+
244
+ ### response
245
+ ```sql
246
+ SELECT head.name FROM head WHERE head.born_state <> 'California';
247
+ ```
248
+
249
  ### Team
250
  Avi Kothari, Gyan Ranjan, Pratham Gupta, Ritvik Aryan Kalra, Soham Acharya