Update README.md
Browse files
README.md
CHANGED
@@ -221,7 +221,7 @@ text=''' <example_response>
|
|
221 |
### 2. SQL Generation
|
222 |
### prompt
|
223 |
```python
|
224 |
-
text =
|
225 |
<schema>CREATE TABLE department (Department_ID number,
|
226 |
Name text,
|
227 |
Creation text,
|
@@ -238,7 +238,7 @@ text = f"""Generate a simple SQL query from the schema mentioned for the followi
|
|
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
|
@@ -249,7 +249,7 @@ SELECT head.name FROM head WHERE head.born_state <> 'California';
|
|
249 |
### 3. Performance Schema Monitoring
|
250 |
### prompt
|
251 |
```python
|
252 |
-
text =
|
253 |
<example>
|
254 |
--question: What are the top 10 most frequently used queries/statements?
|
255 |
--sql: SELECT DIGEST_TEXT, COUNT(*) as frequency FROM performance_schema.events_statements_summary_by_digest GROUP BY DIGEST_TEXT ORDER BY frequency DESC LIMIT 10;
|
@@ -274,7 +274,7 @@ SELECT USER, CURRENT_CONNECTIONS FROM accounts;
|
|
274 |
|
275 |
### prompt
|
276 |
```python
|
277 |
-
|
278 |
<example>
|
279 |
--question: What are the top 10 most frequently used queries/statements?
|
280 |
--sql: SELECT DIGEST_TEXT, COUNT(*) as frequency FROM performance_schema.events_statements_summary_by_digest GROUP BY DIGEST_TEXT ORDER BY frequency DESC LIMIT 10;
|
|
|
221 |
### 2. SQL Generation
|
222 |
### prompt
|
223 |
```python
|
224 |
+
text = """Generate a simple SQL query from the schema mentioned for the following question.
|
225 |
<schema>CREATE TABLE department (Department_ID number,
|
226 |
Name text,
|
227 |
Creation text,
|
|
|
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
|
|
|
249 |
### 3. Performance Schema Monitoring
|
250 |
### prompt
|
251 |
```python
|
252 |
+
text = """Generate the SQL query for SkySQL performance schema for the following question.
|
253 |
<example>
|
254 |
--question: What are the top 10 most frequently used queries/statements?
|
255 |
--sql: SELECT DIGEST_TEXT, COUNT(*) as frequency FROM performance_schema.events_statements_summary_by_digest GROUP BY DIGEST_TEXT ORDER BY frequency DESC LIMIT 10;
|
|
|
274 |
|
275 |
### prompt
|
276 |
```python
|
277 |
+
text = """Generate the SQL query for SkySQL performance schema for the following question.
|
278 |
<example>
|
279 |
--question: What are the top 10 most frequently used queries/statements?
|
280 |
--sql: SELECT DIGEST_TEXT, COUNT(*) as frequency FROM performance_schema.events_statements_summary_by_digest GROUP BY DIGEST_TEXT ORDER BY frequency DESC LIMIT 10;
|