{"text": " [INST] <>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 tag. <>\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 SELECT sum(in_amount - out_amount) FROM v_banktransaction where account_name='RHB' "} {"text": " [INST] <>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 tag. <>\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 SELECT sum(in_amount - out_amount) FROM v_banktransaction where account_name='RHB' "} {"text": " [INST] <>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 tag. <>\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 SELECT sum(in_amount - out_amount) FROM v_banktransaction where account_name='OCBC' "} {"text": " [INST] <>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 tag. <>\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 SELECT sum(in_amount - out_amount) FROM v_banktransaction where account_name='OCBC' and transactiondate::date <= '2022-12-31' "} {"text": " [INST] <>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 tag. <>\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 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' "} {"text": " [INST] <>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 tag. <>\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 SELECT sum(in_amount - out_amount),account_name FROM v_banktransaction group by account_name "} {"text": " [INST] <>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 tag. <>\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 SELECT sum(in_amount - out_amount) as amount,account_name FROM v_banktransaction group by account_name order by amount desc limit 1 "} {"text": " [INST] <>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 tag. <>\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 SELECT * FROM v_banktransaction where acc_name='Hong Leong' order by transactiondate desc limit 3' "} {"text": " [INST] <>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 tag. <>\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 SELECT * FROM v_banktransaction where acc_name='Public' order by transactiondate desc limit 10' "} {"text": " [INST] <>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 tag. <>\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 SELECT transactiondate FROM v_banktransaction where acc_name='Public' and out_amount > 0 order by transactiondate desc limit 1 "} {"text": " [INST] <>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 tag. <>\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 SELECT transactiondate,in_amount FROM v_banktransaction where acc_name='Public' and in_amount > 0 order by transactiondate desc limit 1' "} {"text": " [INST] <>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 tag. <>\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 SELECT * FROM v_banktransaction where acc_name='OCBC' and transactiondate::date >= '2022-01-01' and transactiondate::date <= '2022-12-31' "}