text
stringlengths
604
729
[Q] 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. ### Input: \n What is the bank balance for RHB bank? \n\n [A] ### 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>
[Q]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. ### Input: \n How much money left in RHB bank? \n\n [A]### 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>
[Q]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. ### Input: \n How much money left in OCBC bank? \n\n [A]### 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>
[Q]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. ### Input: \n How much money left in OCBC bank on 31 Dec 2022? \n\n [A]### 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>
[Q]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. ### Input: \n How much money was received in OCBC bank from 1 Jan 2022 to 31 Dec 2022? \n\n [A]### 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>
[Q]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. ### Input: \n Give me the balance in all the banks? \n\n [A]### 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>
[Q]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. ### Input: \n Which bank account has the most money? \n\n [A]### 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>
[Q]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. ### Input: \n Tell me the last 3 transactions in Hong Leong Bank? \n\n [A]### 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>
[Q]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. ### Input: \n Tell me the last 10 transactions in Public Bank? \n\n [A]### 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>
[Q]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. ### Input: \n What was the last withdrawal from Public Bank? \n\n [A]### 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>
[Q]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. ### Input: \n When was the last deposit to Public Bank and the amount deposited? \n\n [A]### 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>
[Q]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. ### Input: \n Printout the bank statement for OCBC Bank for year 2022? \n\n [A]### 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>
[Q]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.\n\n ### Input: \n What is the bank balance for OCBC bank? \n\n [A] ### 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>
[Q]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.\n\n ### Input: \n What is the bank balance for Hong Leong bank? \n\n [A] ### 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='Hong Leong'</sql>
[Q]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.\n\n ### Input: \n What is the bank balance for Citibank bank? \n\n [A] ### 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='Citibank'</sql>
[Q]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.\n\n ### Input: \n What is the bank balance for America bank? \n\n [A] ### 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='America'</sql>
[Q]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.\n\n ### Input: \n What is the bank balance for Alliance bank? \n\n [A] ### 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='Alliance'</sql>
[Q]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.\n\n ### Input: \n What is the bank balance for Affin bank? \n\n [A] ### 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='Affin'</sql>
[Q]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.\n\n ### Input: \n What is the bank balance for Deutsche bank? \n\n [A] ### 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='Deutsche'</sql>
[Q]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.\n\n ### Input: \n What is the bank balance for Mizuho bank? \n\n [A] ### 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='Mizuho'</sql>
[Q]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.\n\n ### Input: \n What is the bank balance for Nova Scotia bank? \n\n [A] ### 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='Nova Scotia'</sql>
[Q]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.\n\n ### Input: \n What is the bank balance for Asian Finance bank? \n\n [A] ### 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='Asian Finance'</sql>
[Q]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.\n\n ### Input: \n What is the bank balance for Al Rajhi bank? \n\n [A] ### 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='Al Rajhi'</sql>
[Q]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.\n\n ### Input: \n What is the bank balance for JPMorgan bank? \n\n [A] ### 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='JPMorgan'</sql>
[Q]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.\n\n ### Input: \n What is the bank balance for Goldman Sachs bank? \n\n [A] ### 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='Goldman Sachs'</sql>
[Q]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.\n\n ### Input: \n What is the bank balance for HSBC bank? \n\n [A] ### 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='HSBC'</sql>
[Q]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.\n\n ### Input: \n What is the bank balance for RHB bank? \n\n [A] ### 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>
[Q]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.\n\n ### Input: \n What is the bank balance for Truist bank? \n\n [A] ### 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='Truist'</sql>
[Q]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.\n\n ### Input: \n What is the bank balance for China bank? \n\n [A] ### 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='China'</sql>
[Q]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.\n\n ### Input: \n What is the bank balance for RHB bank? \n\n [A] ### 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>
[Q]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.\n\n ### Input: \n What is the bank balance for Russia bank? \n\n [A] ### 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='Russia'</sql>
[Q]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.\n\n ### Input: \n What is the bank balance for Singapore bank? \n\n [A] ### 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='Singapore'</sql>