Upload sql_llama2_dataset3_r1.jsonl
Browse files- sql_llama2_dataset3_r1.jsonl +12 -0
sql_llama2_dataset3_r1.jsonl
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{"text": "<s> [INST] <<SYS>>You are a powerful text-to-SQL model. Your job is to response to an input by generating a SQL query based on Symphony Database table schema. The query must be enclosed in the <sql> tag. <</SYS>>\n\n ### Input: \n What is the bank balance for RHB bank? \n\n [/INST] ### Response:\n We will use symphony database v_banktransaction table with the following schema:\n\n create table v_banktransaction (id integer primary key,account_name varchar(300), in_amount decimal(20,2),out_amount decimal(20,2), transactiondate timestamp )\n\n <sql>SELECT sum(in_amount - out_amount) FROM v_banktransaction where account_name='RHB'</sql> </s>"}
|
2 |
+
{"text": "<s> [INST] <<SYS>>You are a powerful text-to-SQL model. Your job is to response to an input by generating a SQL query based on Symphony Database table schema. The query must be enclosed in the <sql> tag. <</SYS>>\n\n ### Input: \n How much money left in RHB bank? \n\n [/INST] ### Response:\n We will use symphony database v_banktransaction table with the following schema:\n\n create table v_banktransaction (id integer primary key,account_name varchar(300), in_amount decimal(20,2),out_amount decimal(20,2), transactiondate timestamp )\n\n <sql>SELECT sum(in_amount - out_amount) FROM v_banktransaction where account_name='RHB'</sql> </s>"}
|
3 |
+
{"text": "<s> [INST] <<SYS>>You are a powerful text-to-SQL model. Your job is to response to an input by generating a SQL query based on Symphony Database table schema. The query must be enclosed in the <sql> tag. <</SYS>>\n\n ### Input: \n How much money left in OCBC bank? \n\n [/INST] ### Response:\n We will use symphony database v_banktransaction table with the following schema:\n\n create table v_banktransaction (id integer primary key,account_name varchar(300), in_amount decimal(20,2),out_amount decimal(20,2), transactiondate timestamp )\n\n <sql>SELECT sum(in_amount - out_amount) FROM v_banktransaction where account_name='OCBC'</sql> </s>"}
|
4 |
+
{"text": "<s> [INST] <<SYS>>You are a powerful text-to-SQL model. Your job is to response to an input by generating a SQL query based on Symphony Database table schema. The query must be enclosed in the <sql> tag. <</SYS>>\n\n ### Input: \n How much money left in OCBC bank on 31 Dec 2022? \n\n [/INST] ### Response:\n We will use symphony database v_banktransaction table with the following schema:\n\n create table v_banktransaction (id integer primary key,account_name varchar(300), in_amount decimal(20,2),out_amount decimal(20,2), transactiondate timestamp )\n\n <sql>SELECT sum(in_amount - out_amount) FROM v_banktransaction where account_name='OCBC' and transactiondate::date <= '2022-12-31'</sql> </s>"}
|
5 |
+
{"text": "<s> [INST] <<SYS>>You are a powerful text-to-SQL model. Your job is to response to an input by generating a SQL query based on Symphony Database table schema. The query must be enclosed in the <sql> tag. <</SYS>>\n\n ### Input: \n How much money was received in OCBC bank from 1 Jan 2022 to 31 Dec 2022? \n\n [/INST] ### Response:\n We will use symphony database v_banktransaction table with the following schema:\n\n create table v_banktransaction (id integer primary key,account_name varchar(300), in_amount decimal(20,2),out_amount decimal(20,2), transactiondate timestamp )\n\n <sql>SELECT sum(in_amount - out_amount) FROM v_banktransaction where account_name='OCBC' and transactiondate::date >= '2022-01-01' and transactiondate::date <= '2022-12-31'</sql> </s>"}
|
6 |
+
{"text": "<s> [INST] <<SYS>>You are a powerful text-to-SQL model. Your job is to response to an input by generating a SQL query based on Symphony Database table schema. The query must be enclosed in the <sql> tag. <</SYS>>\n\n ### Input: \n Give me the balance in all the banks? \n\n [/INST] ### Response:\n We will use symphony database v_banktransaction table with the following schema:\n\n create table v_banktransaction (id integer primary key,account_name varchar(300), in_amount decimal(20,2),out_amount decimal(20,2), transactiondate timestamp )\n\n <sql>SELECT sum(in_amount - out_amount),account_name FROM v_banktransaction group by account_name</sql> </s>"}
|
7 |
+
{"text": "<s> [INST] <<SYS>>You are a powerful text-to-SQL model. Your job is to response to an input by generating a SQL query based on Symphony Database table schema. The query must be enclosed in the <sql> tag. <</SYS>>\n\n ### Input: \n Which bank account has the most money? \n\n [/INST] ### Response:\n We will use symphony database v_banktransaction table with the following schema:\n\n create table v_banktransaction (id integer primary key,account_name varchar(300), in_amount decimal(20,2),out_amount decimal(20,2), transactiondate timestamp )\n\n <sql>SELECT sum(in_amount - out_amount) as amount,account_name FROM v_banktransaction group by account_name order by amount desc limit 1</sql> </s>"}
|
8 |
+
{"text": "<s> [INST] <<SYS>>You are a powerful text-to-SQL model. Your job is to response to an input by generating a SQL query based on Symphony Database table schema. The query must be enclosed in the <sql> tag. <</SYS>>\n\n ### Input: \n Tell me the last 3 transactions in Hong Leong Bank? \n\n [/INST] ### Response:\n We will use symphony database v_banktransaction table with the following schema:\n\n create table v_banktransaction (id integer primary key,account_name varchar(300), in_amount decimal(20,2),out_amount decimal(20,2), transactiondate timestamp )\n\n <sql>SELECT * FROM v_banktransaction where acc_name='Hong Leong' order by transactiondate desc limit 3'</sql> </s>"}
|
9 |
+
{"text": "<s> [INST] <<SYS>>You are a powerful text-to-SQL model. Your job is to response to an input by generating a SQL query based on Symphony Database table schema. The query must be enclosed in the <sql> tag. <</SYS>>\n\n ### Input: \n Tell me the last 10 transactions in Public Bank? \n\n [/INST] ### Response:\n We will use symphony database v_banktransaction table with the following schema:\n\n create table v_banktransaction (id integer primary key,account_name varchar(300), in_amount decimal(20,2),out_amount decimal(20,2), transactiondate timestamp )\n\n <sql>SELECT * FROM v_banktransaction where acc_name='Public' order by transactiondate desc limit 10'</sql> </s>"}
|
10 |
+
{"text": "<s> [INST] <<SYS>>You are a powerful text-to-SQL model. Your job is to response to an input by generating a SQL query based on Symphony Database table schema. The query must be enclosed in the <sql> tag. <</SYS>>\n\n ### Input: \n What was the last withdrawal from Public Bank? \n\n [/INST] ### Response:\n We will use symphony database v_banktransaction table with the following schema:\n\n create table v_banktransaction (id integer primary key,account_name varchar(300), in_amount decimal(20,2),out_amount decimal(20,2), transactiondate timestamp )\n\n <sql>SELECT transactiondate FROM v_banktransaction where acc_name='Public' and out_amount > 0 order by transactiondate desc limit 1</sql> </s>"}
|
11 |
+
{"text": "<s> [INST] <<SYS>>You are a powerful text-to-SQL model. Your job is to response to an input by generating a SQL query based on Symphony Database table schema. The query must be enclosed in the <sql> tag. <</SYS>>\n\n ### Input: \n When was the last deposit to Public Bank and the amount deposited? \n\n [/INST] ### Response:\n We will use symphony database v_banktransaction table with the following schema:\n\n create table v_banktransaction (id integer primary key,account_name varchar(300), in_amount decimal(20,2),out_amount decimal(20,2), transactiondate timestamp )\n\n <sql>SELECT transactiondate,in_amount FROM v_banktransaction where acc_name='Public' and in_amount > 0 order by transactiondate desc limit 1'</sql> </s>"}
|
12 |
+
{"text": "<s> [INST] <<SYS>>You are a powerful text-to-SQL model. Your job is to response to an input by generating a SQL query based on Symphony Database table schema. The query must be enclosed in the <sql> tag. <</SYS>>\n\n ### Input: \n Printout the bank statement for OCBC Bank for year 2022? \n\n [/INST] ### Response:\n We will use symphony database v_banktransaction table with the following schema:\n\n create table v_banktransaction (id integer primary key,account_name varchar(300), in_amount decimal(20,2),out_amount decimal(20,2), transactiondate timestamp )\n\n <sql>SELECT * FROM v_banktransaction where acc_name='OCBC' and transactiondate::date >= '2022-01-01' and transactiondate::date <= '2022-12-31'</sql> </s>"}
|