command_set
int64 1
1
| table_name
stringclasses 7
values | create_statement
stringclasses 7
values | english_prompt
stringclasses 7
values | sql_statement
stringclasses 7
values | table_fields
stringclasses 7
values | select
stringclasses 7
values | order_by
null |
---|---|---|---|---|---|---|---|
1 | drafts | CREATE TABLE drafts (
id BIGSERIAL,
customer_id BIGINT,
age SMALLINT,
degree TEXT,
permissions TEXT,
note TEXT,
total FLOAT,
media_id INTEGER,
locale CHAR(5)
) | Just the note, total, degree, media_id, age, locale, id and permissions from drafts please | SELECT
note,
total,
degree,
media_id,
age,
locale,
id,
permissions
FROM drafts | [{"name": "id", "type": "BIGSERIAL"}, {"name": "customer_id", "type": "BIGINT"}, {"name": "age", "type": "SMALLINT"}, {"name": "degree", "type": "TEXT"}, {"name": "permissions", "type": "TEXT"}, {"name": "note", "type": "TEXT"}, {"name": "total", "type": "FLOAT"}, {"name": "media_id", "type": "INTEGER"}, {"name": "locale", "type": "CHAR(5)"}] | [{"name": "note", "aggregate": ""}, {"name": "total", "aggregate": ""}, {"name": "degree", "aggregate": ""}, {"name": "media_id", "aggregate": ""}, {"name": "age", "aggregate": ""}, {"name": "locale", "aggregate": ""}, {"name": "id", "aggregate": ""}, {"name": "permissions", "aggregate": ""}] | null |
1 | pull_requests | CREATE TABLE pull_requests (
department VARCHAR(255),
meta_keywords TEXT,
access_token VARCHAR(255),
password CHAR(60),
gender CHAR(1),
image TEXT,
points INTEGER,
answer TEXT,
password_hash CHAR(60),
product_id BIGINT,
university TEXT,
version VARCHAR(50)
) | Find gender from pull_requests | SELECT gender FROM pull_requests | [{"name": "department", "type": "VARCHAR(255)"}, {"name": "meta_keywords", "type": "TEXT"}, {"name": "access_token", "type": "VARCHAR(255)"}, {"name": "password", "type": "CHAR(60)"}, {"name": "gender", "type": "CHAR(1)"}, {"name": "image", "type": "TEXT"}, {"name": "points", "type": "INTEGER"}, {"name": "answer", "type": "TEXT"}, {"name": "password_hash", "type": "CHAR(60)"}, {"name": "product_id", "type": "BIGINT"}, {"name": "university", "type": "TEXT"}, {"name": "version", "type": "VARCHAR(50)"}] | [{"name": "gender", "aggregate": ""}] | null |
1 | branches | CREATE TABLE branches (
percentage NUMERIC(5,2),
question TEXT,
api_secret TEXT,
finished_at TIMESTAMP,
date_fired DATE,
unread_count SMALLINT,
supervisor_id BIGINT,
config TEXT,
province TEXT,
started_at TIMESTAMP
) | Inside branches, find supervisor_id and finished_at | SELECT
supervisor_id,
finished_at
FROM branches | [{"name": "percentage", "type": "NUMERIC(5,2)"}, {"name": "question", "type": "TEXT"}, {"name": "api_secret", "type": "TEXT"}, {"name": "finished_at", "type": "TIMESTAMP"}, {"name": "date_fired", "type": "DATE"}, {"name": "unread_count", "type": "SMALLINT"}, {"name": "supervisor_id", "type": "BIGINT"}, {"name": "config", "type": "TEXT"}, {"name": "province", "type": "TEXT"}, {"name": "started_at", "type": "TIMESTAMP"}] | [{"name": "supervisor_id", "aggregate": ""}, {"name": "finished_at", "aggregate": ""}] | null |
1 | languages | CREATE TABLE languages (
subtotal FLOAT,
configuration JSONB,
gpa FLOAT,
area GEOMETRY,
user_agent VARCHAR(500)
) | From languages get subtotal and gpa | SELECT
subtotal,
gpa
FROM languages | [{"name": "subtotal", "type": "FLOAT"}, {"name": "configuration", "type": "JSONB"}, {"name": "gpa", "type": "FLOAT"}, {"name": "area", "type": "GEOMETRY"}, {"name": "user_agent", "type": "VARCHAR(500)"}] | [{"name": "subtotal", "aggregate": ""}, {"name": "gpa", "aggregate": ""}] | null |
1 | dependencies | CREATE TABLE dependencies (
team_id BIGINT,
target_id BIGINT,
modified_at DATETIME,
relation TEXT,
image_id INTEGER,
file_size INTEGER,
image VARCHAR(255),
impressions BIGINT
) | From dependencies show me relation, team_id, image, target_id, modified_at, image_id and impressions | SELECT
relation,
team_id,
image,
target_id,
modified_at,
image_id,
impressions
FROM dependencies | [{"name": "team_id", "type": "BIGINT"}, {"name": "target_id", "type": "BIGINT"}, {"name": "modified_at", "type": "DATETIME"}, {"name": "relation", "type": "TEXT"}, {"name": "image_id", "type": "INTEGER"}, {"name": "file_size", "type": "INTEGER"}, {"name": "image", "type": "VARCHAR(255)"}, {"name": "impressions", "type": "BIGINT"}] | [{"name": "relation", "aggregate": ""}, {"name": "team_id", "aggregate": ""}, {"name": "image", "aggregate": ""}, {"name": "target_id", "aggregate": ""}, {"name": "modified_at", "aggregate": ""}, {"name": "image_id", "aggregate": ""}, {"name": "impressions", "aggregate": ""}] | null |
1 | music | CREATE TABLE music (
role TEXT,
owner_id BIGINT,
user_id BIGINT,
quantity SMALLINT,
order_id BIGINT,
address VARCHAR(255),
user_agent TEXT,
device_type TEXT,
member_count SMALLINT,
tag TEXT,
hash CHAR(40)
) | Out of music, pull quantity, member_count, user_id, user_agent, role, address, hash, tag and device_type | SELECT
quantity,
member_count,
user_id,
user_agent,
role,
address,
hash,
tag,
device_type
FROM music | [{"name": "role", "type": "TEXT"}, {"name": "owner_id", "type": "BIGINT"}, {"name": "user_id", "type": "BIGINT"}, {"name": "quantity", "type": "SMALLINT"}, {"name": "order_id", "type": "BIGINT"}, {"name": "address", "type": "VARCHAR(255)"}, {"name": "user_agent", "type": "TEXT"}, {"name": "device_type", "type": "TEXT"}, {"name": "member_count", "type": "SMALLINT"}, {"name": "tag", "type": "TEXT"}, {"name": "hash", "type": "CHAR(40)"}] | [{"name": "quantity", "aggregate": ""}, {"name": "member_count", "aggregate": ""}, {"name": "user_id", "aggregate": ""}, {"name": "user_agent", "aggregate": ""}, {"name": "role", "aggregate": ""}, {"name": "address", "aggregate": ""}, {"name": "hash", "aggregate": ""}, {"name": "tag", "aggregate": ""}, {"name": "device_type", "aggregate": ""}] | null |
1 | subscription_plans | CREATE TABLE subscription_plans (
last_name VARCHAR(50),
postal_code CHAR(5),
amount FLOAT,
attempts INTEGER
) | Fetch last_name and amount from subscription_plans | SELECT
last_name,
amount
FROM subscription_plans | [{"name": "last_name", "type": "VARCHAR(50)"}, {"name": "postal_code", "type": "CHAR(5)"}, {"name": "amount", "type": "FLOAT"}, {"name": "attempts", "type": "INTEGER"}] | [{"name": "last_name", "aggregate": ""}, {"name": "amount", "aggregate": ""}] | null |
README.md exists but content is empty.
Use the Edit dataset card button to edit it.
- Downloads last month
- 120