Dataset Viewer
Auto-converted to Parquet Duplicate
questions
stringlengths
399
3.05k
question id
stringlengths
9
9
sql statament
stringlengths
22
4.49k
difficulty
stringclasses
3 values
schema id
stringlengths
13
13
Full schema
stringlengths
157
126k
Schema content
stringlengths
225
631k
relevant tables
stringlengths
6
956
number of relevant tables
int64
1
20
execution_result
stringlengths
5
22k
"{\"verbose (original)\": \"What is the total number of comment threads that have a response count g(...TRUNCATED)
q_0000000
SELECT SUM(CASE WHEN responseCount > 5 THEN 1 ELSE 0 END) AS total_threads FROM CommentThread;
simple
schema_007558
"CREATE TABLE User ( id Integer NOT NULL UNIQUE, username Text NOT NULL, password Text NOT NUL(...TRUNCATED)
"{\"AlbumVersionLicense\": [{\"id\": 1, \"albumVersionId\": 1, \"licenseType\": \"CC BY 3.0\", \"lic(...TRUNCATED)
"[\"CommentThread\", \"DynamicSummary\", \"PlatformFeature\", \"ThreadTag\", \"UserBetaFeatureEnroll(...TRUNCATED)
6
[[6]]
"{\"verbose (original)\": \"What is the average priority of all active tasks in the ACT_RU_TASK tabl(...TRUNCATED)
q_0000001
SELECT AVG(priority_) FROM ACT_RU_TASK WHERE is_active_ = 1;
simple
schema_007207
"CREATE TABLE ACT_APP_DEPLOYMENT_RESOURCE ( ID_ Varchar NOT NULL UNIQUE, NAME_ Varchar NOT NULL,(...TRUNCATED)
"{\"ACT_RU_JOBDEF\": [{\"ID_\": \"JOBDEF_0001\", \"PROC_DEF_ID_\": \"PROCDEF_5052\", \"ACT_ID_\": \"(...TRUNCATED)
["ACT_RU_TASK", "ACT_RU_TASK_DELEGATION_HISTORY"]
2
[[47.833333333333336]]
"{\"casual\": \"Hey, can you get me the last modified dates for all the tables like assignments, emp(...TRUNCATED)
q_0000002
"SELECT 'egeis_assignment' AS table_name, MAX(lastmodifieddate) AS latest_modified_date, NULL AS ear(...TRUNCATED)
simple
schema_008964
"CREATE TABLE egeis_employeetype ( id BigInt NOT NULL UNIQUE, name TEXT NOT NULL, version BigI(...TRUNCATED)
"{\"egeis_grade_mstr\": [{\"grade_id\": 1, \"grade_value\": \"Grade A\", \"start_date\": \"2020-08-0(...TRUNCATED)
"[\"egeis_assignment\", \"egeis_category_mstr\", \"egeis_community_mstr\", \"egeis_employee\", \"ege(...TRUNCATED)
11
"[[\"egeis_assignment\", \"2023-07-21 18:40:00\", null], [\"egeis_employee_hod\", \"2023-01-30 00:00(...TRUNCATED)
"{\"structured\": \"1. Identify the user's email address. 2. Access was granted at location 6. 3. Da(...TRUNCATED)
q_0000003
"SELECT u.email FROM users u JOIN access_card_logs a ON u.id = a.user_id WHERE a.location_id = 6 (...TRUNCATED)
simple
schema_007217
"CREATE TABLE master ( type Varchar NOT NULL, password Varchar NOT NULL ); CREATE TABLE employe(...TRUNCATED)
"{\"cw_operators_devices\": [{\"id\": 1, \"operator_id\": 5, \"device_id\": 104, \"assignment_date\"(...TRUNCATED)
["access_card_logs", "users"]
2
[["vallance.alpin@company.com"]]
"{\"spelling_grammar_mistakes\": \"Whar is the phonenumber of the office wer the employe with the la(...TRUNCATED)
q_0000004
"SELECT e.last_name, d.dept_name, l.phone_number FROM employee e JOIN department d ON e.dept_id = d.(...TRUNCATED)
simple
schema_007573
"CREATE TABLE employee ( employee_id TEXT NOT NULL UNIQUE, first_name Varchar NOT NULL, last_n(...TRUNCATED)
"{\"location_phone_number\": [{\"office\": \"Main Office\", \"phone_number\": \"(451) 639-2522\"}, {(...TRUNCATED)
["department", "employee", "employee_location", "location_phone_number"]
4
[["Feetham", "Finance Unit", "(772) 839-863"]]
"{\"short_high_level\": \"Compute average devices per active user, excluding blocked and default dar(...TRUNCATED)
q_0000005
"SELECT users.user_id, COUNT(user_devices.device_id) AS num_devices FROM users JOIN user_subscriptio(...TRUNCATED)
hard
schema_007274
"CREATE TABLE user_token ( token Varchar NOT NULL UNIQUE, user_id BigInt NOT NULL, created Tim(...TRUNCATED)
"{\"user_token\": [{\"token\": \"token_0001\", \"user_id\": 3381, \"created\": \"2022-11-06 00:00:00(...TRUNCATED)
"[\"account_status_history\", \"billing_invoices\", \"blocked_users\", \"device_notification_tokens\(...TRUNCATED)
18
[[10, 1]]
"{\"short_ambiguous\": \"Race ID results query\", \"short_high_level\": \"Count results for race 622(...TRUNCATED)
q_0000006
SELECT COUNT(*) FROM race_results_garmin_summary WHERE race_id = 6225;
simple
schema_008963
"CREATE TABLE race_results_garmin_summary ( id TEXT NOT NULL UNIQUE, race_id Integer NOT NULL, (...TRUNCATED)
"{\"race_results_garmin_summary\": [{\"id\": \"1\", \"race_id\": 7529, \"summary_id\": 110}, {\"id\"(...TRUNCATED)
["race_results_garmin_summary"]
1
[[1]]
"{\"structured\": \"1. Retrieve product descriptions for items in Category 1\\n2. Include current st(...TRUNCATED)
q_0000007
"SELECT g.goods_name, gi.goods_introduce, g.stock FROM php41_goods g JOIN php41_goods_introduce gi(...TRUNCATED)
moderate
schema_007230
"CREATE TABLE php41_goods_introduce ( goods_id Int NOT NULL, goods_introduce mediumtext NOT NULL(...TRUNCATED)
"{\"php41_goods_introduce\": [{\"goods_id\": 1, \"goods_introduce\": \"Designed with user comfort an(...TRUNCATED)
"[\"php41_goods\", \"php41_goods_categories\", \"php41_goods_introduce\", \"php41_goods_reviews\", \(...TRUNCATED)
7
[["Product 3", "Designed with user comfort and convenience in mind.", 66]]
"{\"short_high_level\": \"Find users with dark theme on Crunchyroll\", \"short_ambiguous\": \"Users (...TRUNCATED)
q_0000008
"SELECT u.* FROM user u JOIN user_settings us ON u.id = us.user_id JOIN user_platform_subscription (...TRUNCATED)
simple
schema_007575
"CREATE TABLE user ( id Integer NOT NULL UNIQUE, username Text NOT NULL UNIQUE, password Text (...TRUNCATED)
"{\"user\": [{\"id\": 1, \"username\": \"Carter_Tuckey\", \"password\": \"Passw0rd!403\"}, {\"id\": (...TRUNCATED)
"[\"forum_subscription\", \"message_thread\", \"movie_platform_availability\", \"movie_streaming_pla(...TRUNCATED)
14
[[8, "Cousins_Cunningham", "MyP@ssw0rd710"]]
"{\"requirements_list\": \"List all users. Include assigned role names. Add role descriptions. Menti(...TRUNCATED)
q_0000009
"SELECT Users.id, Users.username, RoleDefinitions.role_name, RoleDefinitions.role_description, Users(...TRUNCATED)
moderate
schema_007209
"CREATE TABLE Users ( id Int NOT NULL UNIQUE, username Varchar NOT NULL, user_role Int NOT NUL(...TRUNCATED)
"{\"ErrorLogs\": [{\"id\": 1, \"system_id\": 2, \"error_code\": 592, \"error_message\": \"Timeout ex(...TRUNCATED)
"[\"BackupJobs\", \"DataTransformations\", \"RoleDefinitions\", \"SchedulerLogs\", \"SystemHealthMet(...TRUNCATED)
7
"[[1, \"Keeley_Ullman\", \"Role_2\", \"Can view and edit user data.\", 105], [2, \"Kreyling_Myers\",(...TRUNCATED)
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
74