text
stringclasses 12
values |
---|
<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>>
### Input:
What is the bank balance for RHB bank?
[/INST] ### Response:
We will use symphony database v_banktransaction table with the following schema:
create table v_banktransaction (id integer primary key,account_name varchar(300), in_amount decimal(20,2),out_amount decimal(20,2), transactiondate timestamp )
<sql>SELECT sum(in_amount - out_amount) FROM v_banktransaction where account_name='RHB'</sql> </s> |
<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>>
### Input:
How much money left in RHB bank?
[/INST] ### Response:
We will use symphony database v_banktransaction table with the following schema:
create table v_banktransaction (id integer primary key,account_name varchar(300), in_amount decimal(20,2),out_amount decimal(20,2), transactiondate timestamp )
<sql>SELECT sum(in_amount - out_amount) FROM v_banktransaction where account_name='RHB'</sql> </s> |
<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>>
### Input:
How much money left in OCBC bank?
[/INST] ### Response:
We will use symphony database v_banktransaction table with the following schema:
create table v_banktransaction (id integer primary key,account_name varchar(300), in_amount decimal(20,2),out_amount decimal(20,2), transactiondate timestamp )
<sql>SELECT sum(in_amount - out_amount) FROM v_banktransaction where account_name='OCBC'</sql> </s> |
<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>>
### Input:
How much money left in OCBC bank on 31 Dec 2022?
[/INST] ### Response:
We will use symphony database v_banktransaction table with the following schema:
create table v_banktransaction (id integer primary key,account_name varchar(300), in_amount decimal(20,2),out_amount decimal(20,2), transactiondate timestamp )
<sql>SELECT sum(in_amount - out_amount) FROM v_banktransaction where account_name='OCBC' and transactiondate::date <= '2022-12-31'</sql> </s> |
<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>>
### Input:
How much money was received in OCBC bank from 1 Jan 2022 to 31 Dec 2022?
[/INST] ### Response:
We will use symphony database v_banktransaction table with the following schema:
create table v_banktransaction (id integer primary key,account_name varchar(300), in_amount decimal(20,2),out_amount decimal(20,2), transactiondate timestamp )
<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> |
<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>>
### Input:
Give me the balance in all the banks?
[/INST] ### Response:
We will use symphony database v_banktransaction table with the following schema:
create table v_banktransaction (id integer primary key,account_name varchar(300), in_amount decimal(20,2),out_amount decimal(20,2), transactiondate timestamp )
<sql>SELECT sum(in_amount - out_amount),account_name FROM v_banktransaction group by account_name</sql> </s> |
<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>>
### Input:
Which bank account has the most money?
[/INST] ### Response:
We will use symphony database v_banktransaction table with the following schema:
create table v_banktransaction (id integer primary key,account_name varchar(300), in_amount decimal(20,2),out_amount decimal(20,2), transactiondate timestamp )
<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> |
<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>>
### Input:
Tell me the last 3 transactions in Hong Leong Bank?
[/INST] ### Response:
We will use symphony database v_banktransaction table with the following schema:
create table v_banktransaction (id integer primary key,account_name varchar(300), in_amount decimal(20,2),out_amount decimal(20,2), transactiondate timestamp )
<sql>SELECT * FROM v_banktransaction where acc_name='Hong Leong' order by transactiondate desc limit 3'</sql> </s> |
<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>>
### Input:
Tell me the last 10 transactions in Public Bank?
[/INST] ### Response:
We will use symphony database v_banktransaction table with the following schema:
create table v_banktransaction (id integer primary key,account_name varchar(300), in_amount decimal(20,2),out_amount decimal(20,2), transactiondate timestamp )
<sql>SELECT * FROM v_banktransaction where acc_name='Public' order by transactiondate desc limit 10'</sql> </s> |
<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>>
### Input:
What was the last withdrawal from Public Bank?
[/INST] ### Response:
We will use symphony database v_banktransaction table with the following schema:
create table v_banktransaction (id integer primary key,account_name varchar(300), in_amount decimal(20,2),out_amount decimal(20,2), transactiondate timestamp )
<sql>SELECT transactiondate FROM v_banktransaction where acc_name='Public' and out_amount > 0 order by transactiondate desc limit 1</sql> </s> |
<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>>
### Input:
When was the last deposit to Public Bank and the amount deposited?
[/INST] ### Response:
We will use symphony database v_banktransaction table with the following schema:
create table v_banktransaction (id integer primary key,account_name varchar(300), in_amount decimal(20,2),out_amount decimal(20,2), transactiondate timestamp )
<sql>SELECT transactiondate,in_amount FROM v_banktransaction where acc_name='Public' and in_amount > 0 order by transactiondate desc limit 1'</sql> </s> |
<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>>
### Input:
Printout the bank statement for OCBC Bank for year 2022?
[/INST] ### Response:
We will use symphony database v_banktransaction table with the following schema:
create table v_banktransaction (id integer primary key,account_name varchar(300), in_amount decimal(20,2),out_amount decimal(20,2), transactiondate timestamp )
<sql>SELECT * FROM v_banktransaction where acc_name='OCBC' and transactiondate::date >= '2022-01-01' and transactiondate::date <= '2022-12-31'</sql> </s> |
No dataset card yet
New: Create and edit this dataset card directly on the website!
Contribute a Dataset Card- Downloads last month
- 7