Update README.md
Browse files
README.md
CHANGED
|
@@ -6,88 +6,6 @@ tags:
|
|
| 6 |
- code-generation
|
| 7 |
- NLQ-to-SQL
|
| 8 |
- text2SQL
|
| 9 |
-
inference:
|
| 10 |
-
parameters:
|
| 11 |
-
max_length: 200
|
| 12 |
-
widget:
|
| 13 |
-
- text: |-
|
| 14 |
-
CREATE TABLE Loans
|
| 15 |
-
{
|
| 16 |
-
loan_id number,
|
| 17 |
-
client_id number,
|
| 18 |
-
budget real,
|
| 19 |
-
duration number,
|
| 20 |
-
interest real,
|
| 21 |
-
status varchar
|
| 22 |
-
}
|
| 23 |
-
CREATE TABLE Clients
|
| 24 |
-
{
|
| 25 |
-
client_id number,
|
| 26 |
-
first_name varchar,
|
| 27 |
-
last_name varchar,
|
| 28 |
-
email varchar,
|
| 29 |
-
city varchar,
|
| 30 |
-
year_of_birth number
|
| 31 |
-
}
|
| 32 |
-
CREATE TABLE Accounts
|
| 33 |
-
{
|
| 34 |
-
account_id number,
|
| 35 |
-
client_id number,
|
| 36 |
-
balance real,
|
| 37 |
-
type varchar
|
| 38 |
-
}
|
| 39 |
-
CREATE TABLE Deposits
|
| 40 |
-
{
|
| 41 |
-
deposit_id number,
|
| 42 |
-
account_id number,
|
| 43 |
-
source varchar,
|
| 44 |
-
amount real
|
| 45 |
-
}
|
| 46 |
-
-- Using valid SQLite, answer the following question for the tables provided above.
|
| 47 |
-
-- What is the duration and budget of the loan id 16342?
|
| 48 |
-
SELECT
|
| 49 |
-
example_title: Loan duration
|
| 50 |
-
- text: |-
|
| 51 |
-
CREATE TABLE Transactions
|
| 52 |
-
{
|
| 53 |
-
transaction_id number,
|
| 54 |
-
timestamp_id number,
|
| 55 |
-
primary_contract_id number,
|
| 56 |
-
client_id number,
|
| 57 |
-
beneficiary_id number,
|
| 58 |
-
transaction_amount real,
|
| 59 |
-
is_fraudulent boolean,
|
| 60 |
-
product_family_code varchar,
|
| 61 |
-
amount_currency varchar
|
| 62 |
-
}
|
| 63 |
-
CREATE TABLE Beneficiary
|
| 64 |
-
{
|
| 65 |
-
beneficiary_id number,
|
| 66 |
-
bank_branch_id number,
|
| 67 |
-
country_name varchar,
|
| 68 |
-
country_code varchar
|
| 69 |
-
}
|
| 70 |
-
CREATE TABLE Source
|
| 71 |
-
{
|
| 72 |
-
primary_contract_id number,
|
| 73 |
-
client_id number,
|
| 74 |
-
counterparty_bank_branch_id number,
|
| 75 |
-
counterparty_donor_id number
|
| 76 |
-
}
|
| 77 |
-
CREATE TABLE Time
|
| 78 |
-
{
|
| 79 |
-
timestamp_id number,
|
| 80 |
-
week_number number,
|
| 81 |
-
day_number number,
|
| 82 |
-
hour_number number,
|
| 83 |
-
day_name varchar,
|
| 84 |
-
year number,
|
| 85 |
-
month_number number
|
| 86 |
-
}
|
| 87 |
-
-- Using valid SQLite, answer the following question for the tables provided above.
|
| 88 |
-
-- How many transactions for the client id 15482?
|
| 89 |
-
SELECT
|
| 90 |
-
example_title: Client Transactions
|
| 91 |
datasets:
|
| 92 |
- salmane11/BanQies
|
| 93 |
language:
|
|
|
|
| 6 |
- code-generation
|
| 7 |
- NLQ-to-SQL
|
| 8 |
- text2SQL
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
datasets:
|
| 10 |
- salmane11/BanQies
|
| 11 |
language:
|