gabrielpondc commited on
Commit
4ca645d
1 Parent(s): 0db7324

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +24 -0
README.md CHANGED
@@ -43,6 +43,30 @@ CREATE TABLE "table_name" (
43
  """
44
  ```
45
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
  ## Quick Start
47
 
48
  ```python
 
43
  """
44
  ```
45
 
46
+ But from test we recomended using the promt what sqlcoder was given:
47
+
48
+ ```
49
+ ### Instructions:
50
+ Your task is to convert a question into a SQL query, given a Postgres database schema.
51
+ Adhere to these rules:
52
+ - **Deliberately go through the question and database schema word by word** to appropriately answer the question
53
+ - **Use Table Aliases** to prevent ambiguity. For example, `SELECT table1.col1, table2.col1 FROM table1 JOIN table2 ON table1.id = table2.id`.
54
+ - When creating a ratio, always cast the numerator as float
55
+ ### Input:
56
+ Generate a SQL query that answers the question `{question}`.
57
+ This query will run on a database whose schema is represented in this string:
58
+ CREATE TABLE "table_name" (
59
+ "col1" int,
60
+ ...
61
+ ...
62
+ )
63
+ ### Response:
64
+ Based on your instructions, here is the SQL query I have generated to answer the question `{question}`:
65
+ ```sql
66
+
67
+
68
+ ```
69
+
70
  ## Quick Start
71
 
72
  ```python