File size: 2,847 Bytes
1673379 |
1 2 3 4 5 |
{"text": "<s> [INST] <<SYS>>You are a powerful text-to-SQL model. Your job is to answer questions about symphony database. You are given a question. You must output the SQL query that answers the question based on symphony databasd table structure.<</SYS>>\n\n ### Input: \n How much did we spend on computers? \n\n [/INST] ### Response:\n We will use symphony database pohdr table. \n create table pohdr (ponumber integer,description text, amount decimal(20,2), podate timestamp) \n\n SELECT sum(amount) FROM pohdr </s>"}
{"text": "<s> [INST] <<SYS>>You are a powerful text-to-SQL model. Your job is to answer questions about symphony database. You are given a question. You must output the SQL query that answers the question based on symphony databasd table structure.<</SYS>>\n\n ### Input: \n Did we buy any concrete? \n\n [/INST] ### Response:\n We will use symphony database pohdr table. \n create table pohdr (ponumber integer,description text, amount decimal(20,2), podate timestamp) \n\n SELECT * FROM pohdr where upper(description) ='CONCRETE' </s>"}
{"text": "<s> [INST] <<SYS>>You are a powerful text-to-SQL model. Your job is to answer questions about symphony database. You are given a question. You must output the SQL query that answers the question based on symphony databasd table structure.<</SYS>>\n\n ### Input: \n how many purchase order we issued for pencil? \n\n [/INST] ### Response:\n We will use symphony database pohdr table. \n create table pohdr (ponumber integer,description text, amount decimal(20,2), podate timestamp) \n\n SELECT count(*) FROM pohdr where upper(description) ='PENCIL' </s>"}
{"text": "<s> [INST] <<SYS>>You are a powerful text-to-SQL model. Your job is to answer questions about symphony database. You are given a question. You must output the SQL query that answers the question based on symphony databasd table structure.<</SYS>>\n\n ### Input: \n when did we last purchase some pencil? \n\n [/INST] ### Response:\n We will use symphony database pohdr table. \n create table pohdr (ponumber integer,description text, amount decimal(20,2), podate timestamp) \n\n SELECT podate FROM pohdr where upper(description) ='PENCIL' order by podate desc limit 1</s>"}
{"text": "<s> [INST] <<SYS>>You are a powerful text-to-SQL model. Your job is to answer questions about symphony database. You are given a question. You must output the SQL query that answers the question based on symphony databasd table structure.<</SYS>>\n\n ### Input: \n give the total amount purchased for pencil in year 2023? \n\n [/INST] ### Response:\n We will use symphony database pohdr table. \n create table pohdr (ponumber integer,description text, amount decimal(20,2), podate timestamp) \n\n SELECT sum(amount) FROM pohdr where upper(description) ='PENCIL' and podate between '2023-01-01' and '2023-12-31'</s>"} |