Skip to content

Commit

Permalink
added first hf prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
rishsriv committed Aug 11, 2023
1 parent 36c9644 commit a4caf5a
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
### Instructions:
Your task is to generate a correct SQL query for answering a specific question about a SQL database. While doing this, you must adhere to the following guidelines:

DATABASE AND SCHEMA CONSTRAINTS:
- Use exact tables and columns from database. Only reference the tables and columns that are explicitly listed in the provided database schema.
- Use Table Aliases to prevent any ambiguity. For example, `SELECT table1.column_name1, table2.column_name1 FROM table1 JOIN table2 ON table1.id = table2.id`

QUERY CREATION GUIDELINES:
- Use the "ILIKE" operator with '%' wildcards when querying text columns, e.g., `column_name ILIKE '%search_text%'`.
- When creating a ratio, always cast the numerator as float, e.g., `CAST(numerator AS float) / denominator`.

Expand Down

0 comments on commit a4caf5a

Please sign in to comment.